/* ستايل مستوحى من البساطة الأنيقة: مساحات واسعة، عناوين كبيرة، رمادي فاتح، أزرق واحد للتفاعل */
:root {
  --bg: #fff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --dark: #000;
  --dark-2: #161617;
  --radius: 28px;
  --font: "Readex Pro", -apple-system, BlinkMacSystemFont, "SF Arabic", "SF Pro Display", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- الشريط العلوي ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(22,22,23,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { max-width: 1024px; margin: auto; height: 48px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-weight: 600; font-size: 17px; }
.brand img { filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.8); font-size: 13px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta { background: var(--blue); color: #fff; padding: 4px 14px; border-radius: 980px; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; right: 7px; left: 7px; height: 1.5px; background: #f5f5f7; transition: transform .3s; }
.nav-toggle span:first-child { top: 12px; } .nav-toggle span:last-child { top: 19px; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- عناصر مشتركة ---------- */
.eyebrow { color: #bf4800; font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 980px; padding: 12px 24px; font-size: 17px; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--link); font-size: 17px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.light { color: #2997ff; }
.links { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.ico { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 120px; height: 120px; stroke-width: 1.4; opacity: .9; }

.section { padding: 110px 22px; }
.section.gray { background: var(--gray); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head h2 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; line-height: 1.15; }
.head p { font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); margin: 14px 0 0; }

/* ---------- البطل ---------- */
.hero { text-align: center; padding: 96px 22px 0; background: var(--gray); overflow: hidden; }
.hero h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 700; line-height: 1.05; }
.hero-sub { font-size: clamp(20px, 2.6vw, 28px); color: var(--muted); max-width: 680px; margin: 18px auto 30px; line-height: 1.45; }
.hero-art { position: relative; height: 340px; max-width: 760px; margin: 64px auto 0; }
.paper { position: absolute; bottom: -40px; width: 220px; height: 300px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.12); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.paper i { display: block; height: 8px; border-radius: 4px; background: #e8e8ed; }
.paper i.s { width: 60%; }
.paper b { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.p1 { right: 50%; transform: translateX(110%) rotate(8deg); }
.p3 { right: 50%; transform: translateX(-10%) rotate(-8deg); }
.p2 { right: 50%; transform: translateX(50%); z-index: 2; bottom: -20px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-bottom: 16px; }
.bars em { flex: 1; height: var(--h); background: linear-gradient(180deg, #2997ff, var(--blue)); border-radius: 6px 6px 2px 2px; }

/* ---------- الأرقام ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1024px; margin: auto; padding: 70px 22px; text-align: center; gap: 20px; }
.stat strong { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 700; background: linear-gradient(90deg, #0071e3, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 17px; }

/* ---------- البطاقات ---------- */
.tiles { max-width: 1024px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--gray); border-radius: var(--radius); padding: 40px 34px; display: flex; flex-direction: column; gap: 12px; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }

.tile h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.tile p { color: var(--muted); margin: 0; font-size: 17px; flex: 1; }
.tile .ico { color: var(--blue); margin-bottom: 6px; }
.tile.wide { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; gap: 40px; }
.tile.wide h3 { font-size: clamp(28px, 4vw, 40px); }
.tile.wide p { font-size: 19px; margin: 12px 0 18px; max-width: 520px; }
.tile.dark { background: var(--dark); color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.tile.dark .ico { color: #f5f5f7; }
.tile.blue { background: linear-gradient(135deg, #0071e3, #5e5ce6); color: #fff; }
.tile.blue p { color: rgba(255,255,255,.85); }
.tile.blue .ico, .tile.blue .link.light { color: #fff; }

/* ---------- الخطوات ---------- */
.dark-band { background: var(--dark); color: #f5f5f7; }
.dark-band .head p { color: #a1a1a6; }
.steps { list-style: none; padding: 0; margin: auto; max-width: 1024px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--dark-2); border-radius: var(--radius); padding: 34px 28px; }
.steps span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2997ff, #5e5ce6); font-weight: 700; font-size: 19px; margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: #a1a1a6; margin: 0; }

/* ---------- المزايا ---------- */
.features { max-width: 1024px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.feature .ico { margin: 0 auto 16px; color: var(--ink); }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- النماذج ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 44px; max-width: 820px; margin: auto; box-shadow: 0 4px 24px rgba(0,0,0,.04); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea, .track input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 17px; background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none; -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat left 16px center; padding-left: 40px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .track input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e30000; background: #fff5f5; }
.field small { color: #e30000; font-size: 13px; }
.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 20px; cursor: pointer; color: var(--muted); transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--blue); background: #f0f7ff; }
.drop.has { border-style: solid; border-color: var(--blue); color: var(--ink); }
.drop svg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form .btn { align-self: flex-start; padding: 14px 34px; }
.form-error { color: #e30000; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.form-ok { color: #1d8f3a; font-weight: 600; margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.done { text-align: center; }
.done h3 { font-size: 32px; margin: 18px 0 6px; }
.done p { margin: 6px 0; font-size: 17px; }
.done .code { font-size: 40px; font-weight: 700; letter-spacing: .06em; color: var(--blue); margin: 10px 0 14px; }
.done .links { margin-top: 18px; }
.check { width: 72px; height: 72px; margin: auto; fill: none; stroke: #1d8f3a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- التتبّع ---------- */
.track { max-width: 760px; margin: auto; display: flex; gap: 12px; }
.track input { flex: 1; }
.track-result { max-width: 760px; margin: 28px auto 0; background: var(--gray); border-radius: 20px; padding: 28px 32px; }
.track-result h3 { font-size: 21px; margin-bottom: 18px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.progress div { text-align: center; font-size: 13px; color: var(--muted); }
.progress div::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.progress div.on { color: var(--ink); font-weight: 600; }
.progress div.on::before { background: var(--blue); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; background: #e8f2ff; color: var(--blue); }
.badge.cancelled { background: #fdecec; color: #c00; }
.badge.done { background: #e7f6ec; color: #1d8f3a; }

/* ---------- الأسئلة ---------- */
.faq { max-width: 820px; margin: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-size: 21px; font-weight: 600; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }

/* ---------- التواصل ---------- */
.contact { max-width: 1024px; margin: auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.channels { display: flex; flex-direction: column; gap: 16px; }
.channel { display: flex; align-items: center; gap: 18px; background: var(--gray); border-radius: 22px; padding: 24px; color: var(--ink); transition: transform .3s; }
a.channel:hover { transform: translateX(-4px); }
.channel svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#ch-whatsapp svg { stroke: #25a244; }
.channel h3 { font-size: 19px; }
.channel p { margin: 2px 0 0; color: var(--muted); }
.contact .card { margin: 0; max-width: none; background: var(--gray); box-shadow: none; }

/* ---------- التذييل ---------- */
.footer { background: var(--gray); color: var(--muted); font-size: 12px; padding: 22px; }
.footer-inner { max-width: 1024px; margin: auto; }
.footer-inner > p { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0 0 14px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

.float-wa { position: fixed; bottom: 22px; left: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); z-index: 40; transition: transform .2s; }
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- حركة الظهور ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 48px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(22,22,23,.97); padding: 8px 32px 28px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .3s; }
  .nav.open .nav-links { max-height: 420px; opacity: 1; }
  .nav-links a { font-size: 22px; font-weight: 600; padding: 12px 0; color: #f5f5f7; }
  .nav-links .nav-cta { background: none; padding: 12px 0; color: #2997ff; }
  .section { padding: 80px 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .tiles, .steps, .features, .grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .tile.wide .ico.big { width: 80px; height: 80px; align-self: center; }
  .card { padding: 28px 20px; }
  .track { flex-direction: column; }
  .hero-art { height: 260px; transform: scale(.75); transform-origin: bottom center; }
  .done .code { font-size: 30px; }
  .form .btn { align-self: stretch; }
}

/* =====================================================================
   الإصدار المتحرك: بطل داكن، جهاز ثلاثي الأبعاد، قصة بالتمرير، بطاقات تفاعلية
   ===================================================================== */
.scroll-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; margin-inline-start: 0; background: linear-gradient(270deg, #2997ff, #a855f7, #ff6b9a); box-shadow: 0 0 12px rgba(168,85,247,.7); }

/* ---------- البطل ---------- */
.hero2 { position: relative; background: #000; color: #f5f5f7; text-align: center; padding: 110px 22px 0; overflow: hidden; }
.hero2 .hero-sub { color: #a1a1a6; }
.hero-copy { position: relative; z-index: 2; }
.mesh { position: absolute; inset: 0; pointer-events: none; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.mesh .b1 { width: 520px; height: 520px; background: #0071e3; top: -160px; right: -120px; }
.mesh .b2 { width: 460px; height: 460px; background: #a855f7; top: 120px; left: -160px; animation-duration: 22s; }
.mesh .b3 { width: 380px; height: 380px; background: #ff375f; bottom: 80px; right: 30%; opacity: .3; animation-duration: 26s; }
.mesh .b4 { width: 300px; height: 300px; background: #30d158; bottom: -120px; left: 20%; opacity: .22; animation-duration: 20s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,60px) scale(1.15); } 100% { transform: translate(60px,-40px) scale(.9); } }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .9; } }

.eyebrow.glow { color: #2997ff; text-shadow: 0 0 20px rgba(41,151,255,.6); animation: rise 1s .1s both; }
.split-title { font-size: clamp(54px, 10vw, 112px); font-weight: 700; line-height: 1.15; }
.split-title .w { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.split-title .w:nth-child(2) { animation-delay: .25s; }
.grad { background: linear-gradient(90deg, #2997ff, #a855f7, #ff6b9a, #ffd60a, #2997ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.1s .25s cubic-bezier(.2,.8,.2,1) both, shimmer 8s linear infinite !important; }
@keyframes rise { from { opacity: 0; transform: translateY(50px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { to { background-position: 300% 0; } }
.hero2 .hero-sub { animation: rise 1s .5s both; }
.hero2 .links { animation: rise 1s .7s both; }
.btn-glow { position: relative; box-shadow: 0 0 0 0 rgba(0,113,227,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(0,113,227,0); } 100% { box-shadow: 0 0 0 0 rgba(0,113,227,0); } }

.device-stage { --p: 0; position: relative; max-width: 980px; margin: 70px auto 0; perspective: 1800px; padding-bottom: 60px; animation: rise 1.4s .8s both; }
.device { width: min(760px, 92%); margin: auto; transform-origin: center bottom; transform: rotateX(calc((1 - var(--p)) * 32deg)) scale(calc(.84 + var(--p) * .16)); will-change: transform; }
.screen { background: #fff; border: 12px solid #1d1d1f; border-radius: 24px 24px 6px 6px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px #3a3a3c, 0 50px 140px rgba(41,151,255,.35), 0 20px 60px rgba(168,85,247,.25); }
.base { height: 20px; width: 112%; margin-inline-start: -6%; background: linear-gradient(#e3e3e8, #8e8e93); border-radius: 0 0 22px 22px; position: relative; }
.base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18%; height: 7px; background: #a1a1a6; border-radius: 0 0 10px 10px; }
.win-bar { height: 30px; background: #f2f2f7; border-bottom: 1px solid #e5e5ea; display: flex; align-items: center; gap: 6px; padding: 0 12px; direction: ltr; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { flex: 1; text-align: center; font-size: 11px; color: #8e8e93; margin-right: 40px; }
.doc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; padding: 22px 26px; text-align: right; color: var(--ink); height: calc(100% - 30px); }
.doc h4 { margin: 0 0 12px; font-size: clamp(11px, 1.6vw, 17px); }
.typing { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.typing i { display: block; height: 7px; border-radius: 4px; background: #d1d1d6; width: 0; animation: type 7s var(--d) ease-out infinite; }
@keyframes type { 0% { width: 0; } 12%, 88% { width: var(--w); } 100% { width: var(--w); opacity: 0; } }
.mini-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 14px; }
.mini-table span { height: 12px; background: #f2f2f7; border-radius: 2px; }
.mini-table span:nth-child(-n+3) { background: #cfe3ff; }
.doc-col.side { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 45%; width: 100%; border-bottom: 2px solid #e5e5ea; }
.chart em { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #5ac8fa, #0071e3); transform-origin: bottom; animation: grow 7s var(--d) cubic-bezier(.2,.8,.2,1) infinite; }
.chart em:nth-child(even) { background: linear-gradient(180deg, #d0a4ff, #a855f7); }
@keyframes grow { 0% { transform: scaleY(0); } 15%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.donut { width: 38%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 6; }
.d-bg { stroke: #f2f2f7; }
.d-a { stroke: #0071e3; stroke-dasharray: 0 100; animation: donutA 7s infinite; }
.d-b { stroke: #ff6b9a; stroke-dasharray: 0 100; stroke-dashoffset: -62; animation: donutB 7s infinite; }
@keyframes donutA { 0% { stroke-dasharray: 0 100; } 20%, 90% { stroke-dasharray: 62 100; } 100% { stroke-dasharray: 0 100; } }
@keyframes donutB { 0%, 10% { stroke-dasharray: 0 100; } 30%, 90% { stroke-dasharray: 26 100; } 100% { stroke-dasharray: 0 100; } }

.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 980px; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: float 6s ease-in-out infinite alternate; translate: 0 calc((1 - var(--p)) * 40px); }
.chip b { font-weight: 400; }
.c1 { top: 8%; right: 0; } .c2 { top: 40%; left: -10px; animation-delay: -2s; } .c3 { top: 62%; right: -10px; animation-delay: -4s; } .c4 { top: 2%; left: 6%; animation-delay: -1s; }
@keyframes float { from { transform: translateY(-10px) rotate(-2deg); } to { transform: translateY(12px) rotate(2deg); } }

/* ---------- شريط التخصصات ---------- */
.marquee { background: #000; overflow: hidden; padding: 26px 0; border-top: 1px solid #1d1d1f; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: 24px; font-weight: 600; color: #6e6e73; padding: 0 26px; white-space: nowrap; transition: color .3s; }
.marquee span::after { content: "✦"; color: #a855f7; margin-right: 52px; font-size: 14px; vertical-align: middle; }
.marquee span:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- حلقات الأرقام ---------- */
.stat { position: relative; display: flex; flex-direction: column; align-items: center; }
.ring { width: 130px; height: 130px; transform: rotate(-90deg); margin-bottom: -98px; }
.ring circle { fill: none; stroke: #ececf0; stroke-width: 6; }
.ring .ring-fill { stroke: #0071e3; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2s cubic-bezier(.2,.8,.2,1) .2s; }
.stat:nth-child(2) .ring-fill { stroke: #a855f7; } .stat:nth-child(3) .ring-fill { stroke: #ff375f; } .stat:nth-child(4) .ring-fill { stroke: #30d158; }
.stat.in .ring-fill { stroke-dashoffset: calc(327 * (1 - var(--v))); }
.stat strong { font-size: 34px !important; min-height: 66px; display: grid !important; place-items: center; }
.stat span { margin-top: 44px; }

/* ---------- جملة تمتلئ ---------- */
.statement { padding: 150px 22px; }
.statement p { max-width: 980px; margin: auto; font-size: clamp(28px, 4.4vw, 54px); font-weight: 700; line-height: 1.4; text-align: center; }
.statement p span { color: #d2d2d7; transition: color .35s; }
.statement p span.lit { color: var(--ink); }
.statement p span.lit.hl { background: linear-gradient(90deg, #0071e3, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- قصة التمرير ---------- */
.story { position: relative; height: 420vh; background: #000; color: #f5f5f7; --p: 0; }
.story-sticky { position: sticky; top: 0; height: 100vh; max-width: 1100px; margin: auto; padding: 60px 22px 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.story-steps { list-style: none; margin: 10px 0 30px; padding: 0; }
.story-steps li { padding: 14px 0; opacity: .22; transform: translateX(0); transition: opacity .5s, transform .5s; }
.story-steps li.active { opacity: 1; transform: translateX(-10px); }
.story-steps span { font-size: 14px; font-weight: 700; letter-spacing: .1em; background: linear-gradient(90deg, #2997ff, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-steps h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin: 2px 0 4px; }
.story-steps p { margin: 0; color: #a1a1a6; font-size: 18px; max-width: 420px; max-height: 0; overflow: hidden; transition: max-height .6s; }
.story-steps li.active p { max-height: 120px; }
.story-bar { height: 4px; background: #2c2c2e; border-radius: 2px; overflow: hidden; max-width: 420px; }
.story-bar span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(270deg, #2997ff, #a855f7, #ff6b9a); }
.story-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.orb { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2997ff, #a855f7 45%, transparent 70%); filter: blur(50px) hue-rotate(calc(var(--p) * -110deg)); opacity: .55; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); } }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.75) rotate(-8deg); transition: opacity .7s, transform .9s cubic-bezier(.2,.8,.2,1); }
.scene.on { opacity: 1; transform: none; }
.scene * { transform-box: fill-box; }
/* 1 الفكرة */
.s1 .rays path { stroke: #ffd60a; stroke-width: 8; stroke-linecap: round; fill: none; }
.s1.on .rays { animation: raysPulse 1.8s ease-in-out infinite; transform-origin: 200px 200px; transform-box: view-box; }
@keyframes raysPulse { 50% { opacity: .3; transform: scale(1.08); } }
.bulb { fill: rgba(255,214,10,.18); stroke: #ffd60a; stroke-width: 7; }
.s1.on .bulb { animation: bulbGlow 1.8s ease-in-out infinite; }
@keyframes bulbGlow { 50% { fill: rgba(255,214,10,.45); filter: drop-shadow(0 0 24px #ffd60a); } }
.filament { fill: none; stroke: #ffd60a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cap { fill: #8e8e93; }
.notes rect { animation: float 5s ease-in-out infinite alternate; }
.n1 { fill: #ff9f0a; } .n2 { fill: #30d158; animation-delay: -2s !important; } .n3 { fill: #bf5af2; animation-delay: -3s !important; }
/* 2 الكتابة */
.paper-bg { fill: #fff; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.title-line { fill: #0071e3; }
.w-lines rect { fill: #c7c7cc; transform-origin: right center; transform: scaleX(0); }
.s2.on .w-lines rect { animation: write .6s var(--d) ease-out forwards; }
@keyframes write { to { transform: scaleX(1); } }
.pen { fill: #ff9f0a; transform: translate(300px, 120px); }
.pen-band { stroke: #1d1d1f; stroke-width: 6; }
.s2.on .pen { animation: penMove 2.7s steps(8) forwards; transform-box: view-box; }
@keyframes penMove { from { transform: translate(300px, 128px); } to { transform: translate(300px, 300px); } }
/* 3 التحليل */
.axis { stroke: #48484a; stroke-width: 5; fill: none; stroke-linecap: round; }
.bars3 rect { fill: #2997ff; transform-origin: bottom; transform: scaleY(0); }
.bars3 rect:nth-child(even) { fill: #a855f7; }
.s3.on .bars3 rect { animation: write2 .9s var(--d) cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes write2 { to { transform: scaleY(1); } }
.trend { fill: none; stroke: #30d158; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.s3.on .trend { animation: draw 1.4s .6s ease-out forwards; }
.dot { fill: #30d158; opacity: 0; transform-origin: center; }
.s3.on .dot { animation: dotIn .5s 1.9s forwards, dotPulse 1.6s 2.4s infinite; }
@keyframes dotIn { to { opacity: 1; } }
@keyframes dotPulse { 50% { transform: scale(1.6); opacity: .6; } }
/* 4 النجاح */
.gcap-top { fill: #2997ff; } .gcap-base { fill: #0a4fa8; }
.s4.on .gcap-top, .s4.on .gcap-base { animation: capBounce 1.2s cubic-bezier(.3,1.6,.5,1) both; transform-origin: center; }
@keyframes capBounce { from { transform: translateY(-80px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tassel { stroke: #ffd60a; stroke-width: 6; stroke-linecap: round; }
.tassel-end { fill: #ffd60a; }
.s4.on .tassel, .s4.on .tassel-end { animation: swing 2s ease-in-out infinite; transform-origin: 330px 170px; transform-box: view-box; }
@keyframes swing { 50% { transform: rotate(14deg); } }
.confetti > * { fill: #ff375f; opacity: 0; }
.confetti > :nth-child(3n+1) { fill: #ffd60a; } .confetti > :nth-child(3n+2) { fill: #30d158; } .confetti > :nth-child(4n) { fill: #a855f7; }
.s4.on .confetti > * { animation: pop 1.6s ease-out infinite; }
.s4.on .confetti > :nth-child(2n) { animation-delay: .4s; } .s4.on .confetti > :nth-child(3n) { animation-delay: .8s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(20px) rotate(0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) rotate(220deg) scale(1); } }
.diploma rect { fill: #fff; } .diploma circle { fill: #ff375f; }
.s4.on .diploma { animation: rise .8s .6s both; }

/* ---------- بطاقات تفاعلية ---------- */
.tilt { position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .4s; }
.tilt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,.16), transparent 45%); }
.tile.dark.tilt::before, .tile.blue.tilt::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 45%); }
.tilt:hover::before { opacity: 1; }
.tilt > * { position: relative; }

@keyframes icoHop { 40% { transform: translateY(-8px) rotate(-8deg) scale(1.1); } }
.tile.dark .ico.big { animation: float 5s ease-in-out infinite alternate; filter: drop-shadow(0 0 30px rgba(41,151,255,.5)); stroke: #f5f5f7; }
.tile.dark { background: radial-gradient(circle at 15% 50%, #1b2a4a, #000 60%); }

@media (max-width: 900px) {
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding-top: 70px; align-content: start; }
  .story-visual { order: -1; max-width: 300px; }
  .story-steps li:not(.active) { display: none; }
}
@media (max-width: 760px) {
  .hero2 { padding-top: 80px; }
  .chip { font-size: 12px; padding: 7px 12px; }
  .c3, .c4 { display: none; }
  .c2 { left: 0; top: 70%; }
  .doc { padding: 12px; gap: 10px; }
  .typing { gap: 5px; } .typing i { height: 5px; }
  .statement { padding: 100px 18px; }
  .marquee span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .device { transform: none; }
}
@media (max-width: 760px) { .stat strong { font-size: 24px !important; } .ring { width: 110px; height: 110px; margin-bottom: -88px; } .stat span { margin-top: 36px; } }

/* =================== صقل: إمكانية الوصول والتفاصيل =================== */
.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #2997ff; outline-offset: 3px; border-radius: 6px; }
.drop:focus-within { border-color: var(--blue); background: #f0f7ff; outline: 3px solid #2997ff; outline-offset: 3px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .track input:focus-visible { outline: none; }

/* سلّم الخط: نسبة ~1.25 على 17px */
body { font-size: 17px; font-weight: 400; }
.head h2 { font-weight: 700; }
.hero-sub, .head p { font-weight: 300; }
.story-title { font-size: 19px; color: #a1a1a6; margin-bottom: 8px; font-weight: 600; }

/* زر إيقاف الحركة (WCAG 2.2.2) */
.motion-toggle { position: absolute; bottom: 18px; left: 22px; z-index: 4; background: rgba(255,255,255,.1); color: #f5f5f7; border: 1px solid rgba(255,255,255,.2); border-radius: 980px; padding: 8px 16px; font-size: 14px; cursor: pointer; min-height: 44px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.motion-toggle:hover { background: rgba(255,255,255,.18); }
.motion-toggle::before { content: "❚❚"; font-size: 10px; margin-inline-end: 8px; }
body.still .motion-toggle::before { content: "▶"; }
body.still *, body.still *::before, body.still *::after { animation-play-state: paused !important; }
body.still .statement p span { color: var(--ink); }
.marquee:focus-within .marquee-track { animation-play-state: paused; }

/* اللمس: أهداف 44px على الأقل */
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a { padding: 10px 0; }
@media (min-width: 761px) { .nav-links .nav-cta { min-height: 30px; align-self: center; } }
@media (max-width: 760px) {
  .nav-links { visibility: hidden; }
  .nav.open .nav-links { visibility: visible; }
  .motion-toggle { bottom: 10px; left: 12px; }
}

/* =================== مشهد المكتب والتكبير بالتمرير =================== */
.zoom { position: relative; height: 280vh; background: #000; color: #f5f5f7; }
.zoom-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; text-align: center; }
.zoom .hero-copy { position: relative; z-index: 3; padding: 84px 22px 0; will-change: opacity, transform; }
.zoom .hero-sub { color: #a1a1a6; font-size: clamp(18px, 2.2vw, 24px); max-width: 640px; margin: 14px auto 26px; animation: rise 1s .5s both; }
.zoom .links { animation: rise 1s .7s both; }
.zoom .split-title { font-size: clamp(48px, 8vw, 96px); }

.desk { --white: 0; position: absolute; left: 0; right: 0; bottom: 0; margin: auto; direction: ltr;
  width: min(1100px, 100vw, calc((100vh - 380px) * 2.3)); aspect-ratio: 1100 / 500; will-change: transform; animation: rise 1.3s .8s both; }
.desk-light { position: absolute; inset: 20% -10% -30%; background: radial-gradient(ellipse at 50% 70%, rgba(255,214,150,.16), rgba(41,151,255,.08) 40%, transparent 70%); pointer-events: none; }
.desk::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: 0; height: 14%; background: linear-gradient(180deg, #2a1d14, #1a120c); border-top: 1px solid #3b2a1d; z-index: 0; }
.prop { position: absolute; z-index: 2; overflow: visible; }
.books { left: 0; bottom: 9%; width: 21%; }
.notes { left: 4%; bottom: 52%; width: 11%; animation: float 6s ease-in-out infinite alternate; }
.glasses { left: 13%; bottom: 3%; width: 12%; z-index: 4; }
.thesis { left: 77%; bottom: 9%; width: 21%; }
.mug { left: 88%; bottom: 4%; width: 8%; z-index: 4; }
.pen { left: 58%; bottom: 3%; width: 17%; transform: rotate(-6deg); z-index: 4; }
.steam path { animation: steam 3s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: -1s; } .steam path:nth-child(3) { animation-delay: -2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }

.desk .device { position: absolute; left: 24%; bottom: 10%; width: 52%; margin: 0; transform: none; z-index: 3; }
.desk .screen { position: relative; box-shadow: 0 0 0 1px #3a3a3c, 0 40px 120px rgba(41,151,255,.3); }
.screen-white { position: absolute; inset: 0; background: #fff; opacity: var(--white); pointer-events: none; }
.desk .chip { translate: none; font-size: 14px; }
.desk .c1 { top: 22%; left: 70%; right: auto; } .desk .c2 { top: 50%; left: 13%; } .desk .c3 { top: 30%; left: 19%; right: auto; }

/* =================== المشكلات التي نحلّها =================== */
.problems { max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.problem h3 { font-size: 22px; margin: 20px 0 8px; line-height: 1.35; }
.problem p { margin: 0; color: var(--muted); }
.ph { --s: 1.3; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--bg1), var(--bg2)); }
.ph svg { width: 100%; height: 100%; transform: scale(var(--s)); transform-origin: 50% 55%; will-change: transform; }
.float-a { animation: float 5s ease-in-out infinite alternate; }
.float-b { animation: float 6s ease-in-out infinite alternate-reverse; }
.ph .float-a, .ph .float-b, .bars-up rect, .hl rect { transform-box: fill-box; }
.bars-up rect { transform-origin: bottom; animation: grow 6s var(--d) cubic-bezier(.2,.8,.2,1) infinite; }
.hl rect { transform-origin: right; animation: mark 5s var(--d) ease-out infinite; opacity: .75; }
@keyframes mark { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.clock-hand { transform-box: view-box; transform-origin: 0 0; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .zoom { height: 220vh; }
  .zoom .hero-copy { padding-top: 78px; }
  .desk { width: 100vw; aspect-ratio: 375 / 260; }
  .desk .device { left: 12%; width: 76%; bottom: 14%; }
  .books { left: -6%; width: 26%; bottom: 12%; } .thesis { left: 80%; width: 26%; }
  .notes, .glasses, .desk .c3 { display: none; }
  .mug { left: 86%; width: 11%; } .pen { left: 50%; width: 30%; }
  .desk .chip { font-size: 11px; padding: 6px 10px; }
  .desk .c1 { top: -6%; left: 58%; } .desk .c2 { top: 20%; left: 0; }
  .problems { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom { height: 100vh; }
}
.desk { --props: 1; }
.desk .chip { opacity: var(--props); }
@media (max-width: 760px) {
  .zoom .split-title { font-size: 42px; }
  .zoom .hero-sub { font-size: 17px; margin: 10px auto 20px; }
  .zoom .links { gap: 14px; flex-direction: column; }
  .desk { bottom: 5vh; }
}
@media (max-width: 760px) {
  .desk { aspect-ratio: 375 / 320; bottom: 7vh; }
  .desk .device { left: 14%; width: 72%; bottom: 26%; }
  .books { left: -3%; width: 34%; bottom: 3%; z-index: 4; }
  .thesis { left: 66%; width: 36%; bottom: 1%; z-index: 4; }
  .mug { display: none; }
  .pen { left: 34%; width: 30%; bottom: 4%; }
  .desk .c1 { top: -2%; left: 56%; } .desk .c2 { top: 16%; left: 0; }
}

/* المكتب يأتي بعد النص دائمًا ولا يتداخل معه، ويلتصق بالأسفل إن توفرت مساحة */
.zoom-sticky { display: flex; flex-direction: column; }
.zoom .hero-copy { flex: none; }
.desk { position: relative; left: auto; right: auto; bottom: auto; flex: none; margin: auto auto 0; }
@media (max-width: 760px) { .desk { bottom: auto; margin-bottom: 5vh; } }
@media (max-width: 760px) {
  .desk { width: min(100vw, calc((100vh - 400px) * 1.17)); }
  .desk .c1 { top: 4%; }
}
/* القسم الثابت يبدأ تحت شريط التنقل (48px) ولا يتجاوز النافذة */
.zoom-sticky { top: 48px; height: calc(100vh - 48px); }
.zoom .hero-copy { padding-top: 44px; }
@media (max-width: 760px) { .zoom .hero-copy { padding-top: 30px; } }
/* المكتب بلا حركة دخول: التكبير بالتمرير هو حركته الوحيدة */
.desk { animation: none; }
