/* برق 360 · Barq 360 — صفحة الهبوط. فاتح ونضيف. CSS عادي، من غير Tailwind.
 * الاتجاه من ui-ux-pro-max: Hero + Features + CTA · أزرق ثقة · خلفية فاتحة · Plus Jakarta Sans. */
:root {
  --bg: #F8FAFC;
  --bg-alt: #EEF3FB;
  --card: #FFFFFF;
  --ink: #0F172A;
  --text: #1E293B;
  --muted: #475569;
  --border: #E2E8F0;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #DBEAFE;
  --green: #16A34A;
  --wa: #25D366;
  --green-soft: #DCFCE7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .15);
  --shadow-lg: 0 30px 60px -20px rgba(37, 99, 235, .30);
  --r-card: 20px;
  --r-btn: 12px;
  --max: 1180px;
  --font: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
html[lang="en"] { --font: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a, button, summary, input[type="range"], select { cursor: pointer; }

/* ── الأزرار ── (btn-gold = الزرار الأساسي، اسمه فاضل عشان الـHTML والـJS) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--r-btn);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: background .2s, box-shadow .2s, transform .2s, border-color .2s;
}
.btn-gold { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn-gold:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-wa { background: #fff; color: #15803D; border-color: #BBF7D0; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: var(--green-soft); }
.btn-wa-solid { background: var(--wa); color: #05301A; }
.btn-wa-solid:hover { filter: brightness(.95); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }

/* ── الشريط العلوي ── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; text-decoration: none; color: var(--ink); }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: #fff; border: 1px solid var(--border); color: var(--ink); border-radius: 10px;
  min-height: 44px; min-width: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-wa { display: none; }

/* ── الأقسام ── */
section { padding-block: 100px; }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head h2, .honest h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.01em; }
.center { text-align: center; margin-inline: auto; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ── الهيرو ── */
.hero {
  position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(700px 400px at 90% 80%, rgba(37, 211, 102, .10), transparent 60%),
    linear-gradient(180deg, #F1F6FF 0%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-hover); margin-bottom: 24px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -.02em; color: var(--ink); }
.hero h1 strong {
  display: block; font-weight: 800;
  background: linear-gradient(90deg, var(--primary) 0%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--muted); max-width: 580px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-ticks { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-ticks span::before { content: '✓'; color: var(--green); font-weight: 700; margin-inline-end: 6px; }

.phone-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  position: relative; z-index: 1;
  width: 310px; max-width: 100%; height: 580px; border-radius: 44px; padding: 11px;
  background: #0F172A; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .1);
}
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: #EFEAE2; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: #075E54; color: #fff; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); }
.chat-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.chat-status { font-size: 12px; color: #B7F5CD; line-height: 1.3; }
.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg {
  max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; color: #111B21;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: msgIn .35s ease both;
}
.msg-in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg-out { align-self: flex-end; background: #D9FDD3; border-start-end-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #667781; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.float-card small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.fc-green { background: var(--green-soft); color: var(--green); }
.fc-top { top: 70px; inset-inline-end: -10px; }
.fc-bottom { top: 330px; inset-inline-start: -30px; animation-delay: -2.5s; }

.lead-card {
  position: relative; z-index: 2;
  width: 310px; max-width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 600; border-radius: 14px; color: var(--ink);
  background: #fff; border: 1px solid #BBF7D0; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.lead-card.show { opacity: 1; transform: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); margin-inline-end: 8px; vertical-align: middle; }

/* ── شريط الأرقام ── */
.stats { background: var(--ink); color: #fff; padding-block: 34px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: 'Plus Jakarta Sans', var(--font); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; line-height: 1.2; }
.stats span { font-size: 14px; color: #94A3B8; }

/* ── المشكلة / الخطوات / المزايا ── */
.icon { width: 48px; height: 48px; padding: 11px; margin-bottom: 18px; display: block; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.problem .card .icon { background: #FEE2E2; color: #DC2626; }
.problem .card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.problem-line {
  text-align: center; font-size: 20px; margin: 44px auto 0; max-width: 760px;
  padding: 18px 24px; border-radius: 16px; background: var(--primary-soft); color: var(--ink);
}
.problem-line strong { color: var(--primary-hover); }

#how { background: #fff; border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.steps .card { background: var(--bg); text-align: center; }
.step-num {
  font-family: 'Plus Jakarta Sans', var(--font); font-weight: 800; color: #fff; font-size: 18px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
}
.step-arrow { align-self: center; color: #94A3B8; font-size: 24px; }
html[dir="ltr"] .step-arrow { transform: scaleX(-1); }

.feature { padding: 36px; }
.feature h3 { font-size: 22px; }
.feature.bot { background: linear-gradient(160deg, #F0FDF4 0%, #fff 60%); border-color: #BBF7D0; }
.feature.bot .icon { background: var(--green-soft); color: var(--green); }

.proof-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.big-num { font-family: 'Plus Jakarta Sans', var(--font); font-size: clamp(36px, 5vw, 54px); font-weight: 800; color: var(--primary); display: block; }

/* ── الأسعار ── */
#pricing { background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card { position: relative; padding: 40px; border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price { font-family: 'Plus Jakarta Sans', var(--font); font-size: clamp(36px, 4.6vw, 50px); font-weight: 800; color: var(--ink); line-height: 1.2; margin: 12px 0 4px; }
.price-sub { color: var(--muted); margin-bottom: 22px; }
.price-sub strong { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li::before {
  content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 800; margin-inline-end: 10px;
}
.price-card .btn-gold { width: 100%; margin-top: 8px; }
.calc label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.calc output { color: var(--primary); font-weight: 800; }
.calc input[type="range"] { width: 100%; accent-color: var(--primary); min-height: 32px; margin-bottom: 10px; }
.calc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 14px; }
.calc-col { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.calc-col span { display: block; font-size: 14px; color: var(--muted); }
.calc-col strong { display: block; font-size: 22px; margin-top: 4px; color: var(--ink); }
.calc-col.park { background: var(--primary-soft); border-color: #BFDBFE; }
.calc-col.park strong { color: var(--primary-hover); }
.calc-verdict { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.founders {
  margin: 26px auto 0; text-align: center; color: var(--muted); max-width: 860px;
  padding: 16px 22px; border-radius: 16px; background: #fff; border: 1px dashed #93C5FD;
}
.founders strong { color: var(--ink); }

/* ── الصراحة ── */
.honest { max-width: 780px; margin: 0 auto; background: #FFFBEB; border-color: #FDE68A; }
.honest ul { color: var(--text); padding-inline-start: 20px; margin: 0 0 16px; }
.honest li { margin-bottom: 4px; }

/* ── الأسئلة ── */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: #BFDBFE; }
.faq summary { padding: 20px 24px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 24px 22px; color: var(--muted); margin: 0; }

/* ── النموذج ── */
.demo {
  background: radial-gradient(800px 400px at 50% 0%, rgba(124, 58, 237, .35), transparent 60%), linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #fff;
}
.demo h2 { font-size: clamp(28px, 4vw, 44px); text-align: center; max-width: 740px; margin: 0 auto 40px; color: #fff; }
.form {
  max-width: 580px; margin: 0 auto; display: grid; gap: 18px;
  background: #fff; color: var(--text); padding: 34px; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .5);
}
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; color: var(--ink); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg); color: var(--ink); border: 1px solid #CBD5E1; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); background: #fff; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #DC2626; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.form .btn-gold { width: 100%; min-height: 54px; font-size: 17px; }
.form-alt { text-align: center; margin: 0; }
.form-alt a { color: #15803D; font-weight: 700; }
.form-msg { border-radius: 14px; padding: 16px; text-align: center; }
.form-msg.ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--ink); }
.form-msg.err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.form-msg p { margin: 0 0 12px; }

/* ── الفوتر ── */
footer { background: var(--ink); padding-block: 36px; font-size: 14px; color: #94A3B8; }
footer strong { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .lang-btn { background: transparent; color: #fff; border-color: #334155; }

/* ── الظهور عند التمرير ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .typing i, .float-card { animation: none; }
  .lead-card, .card, .btn { transition: none; }
}

/* ── الموبايل ── */
@media (max-width: 960px) {
  .hero .wrap, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .grid-3, .grid-2, .proof-nums { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(-90deg); justify-self: center; }
  html[dir="ltr"] .step-arrow { transform: rotate(-90deg); }
  section { padding-block: 68px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-demo, .nav-lang { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .nav-wa { display: inline-flex; }
  body { font-size: 16px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .card, .feature, .price-card { padding: 24px; }
  .form { padding: 22px; }
  .calc-cols { grid-template-columns: 1fr; }
  .phone { height: 530px; }
  .float-card { display: none; }
}

/* ── المنصة وجولة الفيديوهات ── */
.motion .js .reveal, .motion .reveal { opacity: 1; transform: none; transition: none; } /* GSAP بيتولّى الحركة */
.stage { padding-top: 40px; perspective: 1600px; overflow: hidden; }
.stage-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.stage-head h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.02em; }
.stage-scene { position: relative; max-width: 1080px; margin: 0 auto; transform-style: preserve-3d; }
.browser {
  position: relative; background: #0B1220; border-radius: 16px; overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(30, 58, 138, .45), 0 0 0 1px rgba(15, 23, 42, .08);
  transform-origin: center top;
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding-inline: 14px; background: #111827; direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #EF4444; }
.browser-bar i:nth-child(2) { background: #F59E0B; }
.browser-bar i:nth-child(3) { background: #22C55E; }
.browser-bar span { margin-inline: auto; font-size: 12px; color: #94A3B8; font-family: 'Plus Jakarta Sans', sans-serif; padding: 3px 14px; border-radius: 6px; background: #1F2937; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; background: #0B1220; }
.stage-phone {
  position: absolute; bottom: -40px; inset-inline-start: -30px; width: 210px;
  border-radius: 34px; padding: 8px; background: #0F172A; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .55);
}
.stage-phone .demo-video { aspect-ratio: 390 / 844; border-radius: 26px; }

.showcase { background: #fff; border-block: 1px solid var(--border); perspective: 1400px; }
.show-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.show-row + .show-row { margin-top: 110px; }
.show-row.flip .show-text { order: 2; }
.show-text h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.01em; }
.show-text p { font-size: 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--primary); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.show-media { transform-style: preserve-3d; }

@media (max-width: 960px) {
  .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .show-row.flip .show-text { order: 0; }
  .show-row + .show-row { margin-top: 70px; }
  .stage-phone { width: 130px; bottom: -24px; inset-inline-start: -6px; border-radius: 22px; padding: 5px; }
  .stage-phone .demo-video { border-radius: 18px; }
  .stage { padding-bottom: 80px; }
}
html, body { overflow-x: clip; }
.showcase { overflow: hidden; }
.price { font-size: clamp(26px, 3vw, 34px); }

/* ═════════ الافتتاح · الهيرو ٣D · القصة · Bento · الفوتر ═════════ */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #F8FAFC; transition: opacity .6s ease, visibility .6s; }
.preloader.out { opacity: 0; visibility: hidden; }
.preloader { animation: plFailsafe 0s 3s forwards; }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }
.pl-bolt { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: plDraw 1s cubic-bezier(.65,0,.35,1) forwards, plFill .4s .85s forwards; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plFill { to { fill: var(--primary); } }

#heroGL { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .wrap { z-index: 1; }

.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.hero h1 strong .wi { background: linear-gradient(90deg, var(--primary), #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* القصة */
#how.story { border: 0; background: radial-gradient(900px 600px at 80% 20%, rgba(37,99,235,.25), transparent 60%), #0A0F1F; color: #E2E8F0; padding-block: 0; }
.story-pin { min-height: 100vh; display: flex; align-items: center; padding-block: 90px; }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; width: 100%; }
.eyebrow-dark { background: rgba(59,130,246,.15); color: #93C5FD; }
.story-clock { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 28px; }
.story-clock span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(56px, 7vw, 92px); line-height: 1; color: #fff; letter-spacing: -.03em; direction: ltr; }
.story-clock small { color: #64748B; font-size: 15px; }
.story-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.story-steps li { padding: 14px 18px; border-inline-start: 2px solid #1E293B; opacity: .38; transition: opacity .4s, border-color .4s, background .4s; }
.story-steps li.is-active { opacity: 1; border-color: #3B82F6; background: rgba(59,130,246,.08); }
.story-steps h3 { color: #fff; font-size: 20px; margin: 0 0 2px; }
.story-steps p { color: #94A3B8; margin: 0; font-size: 15px; }
.story-bar { height: 3px; background: #1E293B; border-radius: 3px; margin-top: 26px; overflow: hidden; }
.story-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3B82F6, #A78BFA); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .story-bar i { transform-origin: right; }
.story-scene { position: relative; height: 560px; }
.st-browser { position: absolute; inset-inline-start: 0; top: 40px; width: 88%; }
.st-phone { position: absolute; inset-inline-end: 0; top: 0; width: 250px; height: 470px; border-radius: 36px; padding: 9px; background: #020617; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); display: flex; flex-direction: column; overflow: hidden; z-index: 2; }
.st-phone .chat-head { border-radius: 28px 28px 0 0; padding: 12px; }
.st-chat { flex: 1; background: #EFEAE2; border-radius: 0 0 28px 28px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.st-chat .msg { font-size: 13px; animation: none; }
.st-lead { position: absolute; inset-inline-end: 30px; top: 400px; z-index: 3; display: flex; align-items: center; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); white-space: nowrap; }
.st-notify { position: absolute; inset-inline-start: 36px; bottom: 30px; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); padding: 12px 16px; border-radius: 16px; box-shadow: 0 24px 50px -12px rgba(0,0,0,.6); }
.st-notify strong { display: block; font-size: 14px; }
.st-notify small { color: var(--muted); font-size: 12px; }
@media (max-width: 960px) {
  .story-pin { min-height: 0; padding-block: 70px; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-steps li { opacity: 1; }
  .story-scene { height: 440px; }
  .st-browser { width: 100%; top: 0; }
  .st-phone { width: 180px; height: 340px; top: 120px; }
  .st-lead { top: auto; bottom: 70px; inset-inline-end: 0; white-space: normal; }
  .st-notify { bottom: 0; inset-inline-start: 0; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.bento-a { grid-column: span 2; background: linear-gradient(160deg, #F0FDF4, #fff 55%); border-color: #BBF7D0; }
.bento-d { grid-column: span 2; }
.bento-a .icon { background: var(--green-soft); color: var(--green); }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.10), transparent 60%); }
.spot:hover::after { opacity: 1; }
.mini-chat { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 22px; }
.mini-chat .b { height: 30px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); width: 55%; transform: translateY(10px); opacity: 0; }
.mini-chat .b.out { align-self: flex-end; background: #D9FDD3; width: 42%; }
.mini-chat .b.s { width: 35%; }
.mini-chat .typing { display: flex; align-items: center; gap: 4px; width: 64px; padding-inline: 12px; }
.mini-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: #667781; animation: dot 1s infinite; }
.mini-chat .typing i:nth-child(2) { animation-delay: .15s; }
.mini-chat .typing i:nth-child(3) { animation-delay: .3s; }
.bento.live .mini-chat .b { animation: bIn .5s ease forwards; }
.bento.live .mini-chat .b:nth-child(2) { animation-delay: .5s; }
.bento.live .mini-chat .b:nth-child(3) { animation-delay: 1s; }
.bento.live .mini-chat .b:nth-child(4) { animation-delay: 1.5s; }
@keyframes bIn { to { transform: none; opacity: 1; } }
.mini-xp { margin-top: auto; padding-top: 22px; }
.xp-top { display: flex; justify-content: space-between; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--ink); margin-bottom: 8px; direction: ltr; }
.xp-top b { background: linear-gradient(135deg, var(--primary), #7C3AED); color: #fff; padding: 2px 10px; border-radius: 8px; font-size: 13px; }
.xp-bar { height: 10px; border-radius: 10px; background: var(--primary-soft); overflow: hidden; direction: ltr; }
.xp-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--primary), #7C3AED); transition: width 2s cubic-bezier(.2,.8,.2,1); }
.bento.live .xp-bar i { width: 78%; }
.mini-bars { margin-top: auto; padding-top: 22px; height: 120px; display: flex; align-items: flex-end; gap: 8px; direction: ltr; }
.mini-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60A5FA, var(--primary)); height: 4%; transition: height 1.2s cubic-bezier(.2,.8,.2,1); }
.bento.live .mini-bars .h1 { height: 35%; }
.bento.live .mini-bars .h2 { height: 55%; transition-delay: .08s; }
.bento.live .mini-bars .h3 { height: 42%; transition-delay: .16s; }
.bento.live .mini-bars .h4 { height: 70%; transition-delay: .24s; }
.bento.live .mini-bars .h5 { height: 60%; transition-delay: .32s; }
.bento.live .mini-bars .h6 { height: 88%; transition-delay: .4s; }
.bento.live .mini-bars .h7 { height: 76%; transition-delay: .48s; }
.mini-sec { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.mini-sec li { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink); }
.mini-sec li::before { content: "✓"; color: var(--green); margin-inline-end: 6px; font-weight: 800; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .bento-a, .bento-d { grid-column: auto; } .bento .card { min-height: 0; } }

/* الفوتر */
footer { padding-block: 64px 28px; }
footer .wrap.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 360px; color: #94A3B8; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav strong { color: #fff; margin-bottom: 4px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #1E293B; padding-top: 22px; }
@media (max-width: 760px) { footer .wrap.footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.nav-links { gap: 22px; }
@media (max-width: 1100px) { .nav-links a:nth-child(4) { display: none; } }

.mini-chat .b.in { border: 1px solid #DCE3EC; }

/* ═════════ الاتجاه السينمائي: دبي بالليل (بيغطّي على الألوان الفاتحة فوق) ═════════ */
:root {
  --bg: #05070F; --bg-alt: #080C18; --card: #0B1122; --ink: #F8FAFC; --text: #CBD5E1; --muted: #94A3B8;
  --border: rgba(148, 163, 184, .14); --primary: #3B82F6; --primary-hover: #2563EB; --primary-soft: rgba(59, 130, 246, .14);
  --green-soft: rgba(34, 197, 94, .14);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset; --shadow: 0 30px 60px -30px rgba(0,0,0,.8); --shadow-lg: 0 40px 80px -30px rgba(37,99,235,.45);
}
body { background: var(--bg); color: var(--text); }
::selection { background: #2563EB; color: #fff; }

/* التمرير: Lenis بيتولّاه — التمرير الناعم بتاع CSS بيتعارض معاه وبيعمل تقطيع */
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.preloader { background: #05070F; }
.preloader img { filter: none; }
.nav { background: rgba(5, 7, 15, .6); border-bottom-color: rgba(148,163,184,.08); }
.logo { color: #fff; }
.nav-links a { color: #94A3B8; }
.nav-links a:hover { color: #fff; }
.lang-btn { background: transparent; color: #E2E8F0; border-color: rgba(148,163,184,.25); }
.btn-gold { background: linear-gradient(135deg, #3B82F6, #6D28D9); box-shadow: 0 10px 30px -10px rgba(59,130,246,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-gold:hover { background: linear-gradient(135deg, #60A5FA, #7C3AED); }
.btn-wa { background: rgba(255,255,255,.04); color: #E2E8F0; border-color: rgba(148,163,184,.25); box-shadow: none; }
.btn-wa:hover { background: rgba(255,255,255,.08); }
h1, h2, h3 { color: #fff; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border-color: var(--border); box-shadow: none; }
.card p, .muted { color: var(--muted); }
.icon { background: rgba(59,130,246,.12); color: #93C5FD; }
.badge { background: rgba(59,130,246,.12); color: #BFDBFE; border: 1px solid rgba(59,130,246,.3); }
.eyebrow { background: rgba(59,130,246,.12); color: #93C5FD; }

/* الهيرو السينمائي */
.hero.hero-cine { min-height: 100vh; padding: 0; display: grid; place-items: center; background: #05070F; overflow: hidden; }
.hero.hero-cine::before { display: none; }
.hero-cine #heroGL { opacity: 1; }
.hero-vignette { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, rgba(5,7,15,.55) 0%, rgba(5,7,15,.15) 45%, rgba(5,7,15,.5) 90%), linear-gradient(180deg, rgba(5,7,15,0) 70%, #05070F 100%); }
.hero-cine .hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 110px; padding-bottom: 110px; max-width: 1040px; }
.hero-cine h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -.025em; color: #fff; text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.hero-cine h1 strong { background: linear-gradient(90deg, #93C5FD, #60A5FA 40%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cine h1 strong .wi { background: linear-gradient(90deg, #93C5FD, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cine .hero-sub { color: #CBD5E1; max-width: 680px; font-size: clamp(17px, 1.6vw, 20px); margin-inline: auto; }
.hero-cine .hero-ctas { justify-content: center; }
.hero-cine .hero-ticks { justify-content: center; color: #94A3B8; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1.5px solid rgba(203,213,225,.4); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #93C5FD; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* باقي الأقسام */
.stage { background: #05070F; }
.stage-head h2 { color: #fff; }
.browser { box-shadow: 0 60px 120px -40px rgba(37,99,235,.55), 0 0 0 1px rgba(148,163,184,.14); }
.stats { background: linear-gradient(180deg, #05070F, #080C18); border-block: 1px solid var(--border); }
.problem .card .icon { background: rgba(239,68,68,.12); color: #FCA5A5; }
.problem-line { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25); color: #E2E8F0; }
.problem-line strong { color: #93C5FD; }
#how.story { background: radial-gradient(900px 600px at 80% 20%, rgba(37,99,235,.22), transparent 60%), #070A14; border-block: 1px solid var(--border); }
.showcase { background: #05070F; border-color: var(--border); }
.show-text p { color: var(--muted); }
.bento-a { background: linear-gradient(160deg, rgba(34,197,94,.10), rgba(255,255,255,.02) 55%); border-color: rgba(34,197,94,.25); }
.bento-a .icon { background: rgba(34,197,94,.14); color: #86EFAC; }
.mini-chat .b { background: #1E293B; box-shadow: none; }
.mini-chat .b.in { border-color: rgba(148,163,184,.2); }
.mini-chat .b.out { background: rgba(34,197,94,.25); }
.xp-top { color: #fff; }
.xp-bar { background: rgba(59,130,246,.15); }
.mini-sec li { background: rgba(255,255,255,.04); border-color: var(--border); color: #E2E8F0; }
.spot::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.16), transparent 60%); }
#pricing { background: #080C18; }
.price-card { border-color: rgba(59,130,246,.55); box-shadow: 0 40px 80px -40px rgba(37,99,235,.6); }
.price { color: #fff; }
.price-sub, .price-sub strong { color: #CBD5E1; }
.ticks li::before { background: rgba(34,197,94,.14); color: #86EFAC; }
.calc label { color: #fff; }
.calc-col { background: rgba(255,255,255,.03); border-color: var(--border); }
.calc-col strong { color: #fff; }
.calc-col.park { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); }
.calc-col.park strong { color: #93C5FD; }
.calc-verdict { color: #E2E8F0; }
.founders { background: rgba(201,164,92,.06); border-color: rgba(201,164,92,.35); color: #CBD5E1; }
.founders strong { color: #E9D29F; }
.faq details { background: rgba(255,255,255,.03); border-color: var(--border); box-shadow: none; }
.faq details[open] { border-color: rgba(59,130,246,.4); }
.faq summary { color: #fff; }
.demo { background: radial-gradient(800px 400px at 50% 0%, rgba(124,58,237,.35), transparent 60%), linear-gradient(135deg, #0B1B4D, #1D4ED8); }
.form { background: #0B1122; border: 1px solid rgba(148,163,184,.18); color: var(--text); }
.field label { color: #fff; }
.field input, .field select { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(148,163,184,.25); }
.field input:focus, .field select:focus { background: rgba(255,255,255,.06); }
.field select option { background: #0B1122; }
.form-alt a { color: #86EFAC; }
footer { background: #03050B; border-top: 1px solid var(--border); }
section h2 { letter-spacing: -.015em; }
