/* =========================================================
   علامة — «كيف أفهم القرآن وأتدبره؟» — النسخة 2
   الفكرة: «باب الفهم». ليل الإعجاب في الأول، والفجر عند التسجيل،
   ونور بيكشف النقش المخفي زي ما التدبر بيكشف المعنى.
   Mobile first.
   ========================================================= */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

:root {
  --navy-950: #040b1a;
  --navy-900: #061430;
  --navy-850: #081a3b;
  --navy-800: #0a1f42;
  --navy-700: #112c5a;
  --sky: #03A6E1;
  --sky-soft: #6fd2f5;
  --gold-100: #fcf1d6;
  --gold-200: #f3dca4;
  --gold-300: #e7c47e;
  --gold-400: #d4a955;
  --gold-500: #b8873a;
  --white: #f7f9fc;
  --ink: #d6e0f0;
  --muted: #95a8c9;
  --paper-ink: #0f2147;

  --gold-grad: linear-gradient(100deg, #b8873a 0%, #f3dca4 28%, #d9b062 50%, #fcf1d6 72%, #c4964a 100%);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .25, 1);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --quran: "Amiri Quran", "Amiri", "Traditional Arabic", serif;
  --dawn: 0;
  --prog: 0;
  --px: 0;
  --py: 0;
  --wrap: min(1220px, 100% - 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font);
  font-size: clamp(1.04rem, .98rem + .3vw, 1.18rem); line-height: 1.9;
  color: var(--ink); background: var(--navy-950);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: rgba(231, 196, 126, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- السما: ليل بيقرب من الفجر مع النزول ---------- */
.sky-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #133a78 0%, rgba(12, 36, 80, .55) 35%, transparent 70%),
    linear-gradient(180deg, #071737 0%, #050f26 45%, #040b1a 100%);
}
.sky-bg::after {
  content: ""; position: absolute; inset: 0; opacity: var(--dawn);
  background: radial-gradient(100% 60% at 50% 112%, rgba(231, 196, 126, .45), rgba(3, 166, 225, .1) 45%, transparent 72%);
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* النقش المخفي: بيبان على الأطراف، ونور الماوس بيكشفه */
.lattice { display: none; }

/* ---------- الكتابة بالنور ---------- */
.js .ink {
  --reveal: -22%;
  -webkit-mask-image: linear-gradient(to left, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  mask-image: linear-gradient(to left, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  transition: --reveal 1.9s var(--ease-io);
}
.js .is-in .ink, .js .ink.is-in { --reveal: 100%; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- الأزرار ---------- */
.btn {
  --h: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s, border-color .3s, color .3s, opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--primary {
  color: #1d1406;
  background: linear-gradient(180deg, #f8e3ae 0%, #e6c27a 48%, #c99a4c 100%);
  box-shadow: 0 14px 34px -14px rgba(231, 196, 126, .75), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(110, 72, 20, .25);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(110%); animation: shine 6s var(--ease-io) 3s infinite;
}
@keyframes shine { 0% { transform: translateX(110%); } 20%, 100% { transform: translateX(-110%); } }
.btn__arrow {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-inline-end: -10px;
  border-radius: 50%; background: var(--navy-800); color: var(--gold-200); transition: transform .4s var(--ease);
}
.btn__arrow svg { width: 18px; height: 18px; }
.btn--ghost { color: var(--gold-100); background: rgba(6, 20, 48, .4); border: 1px solid rgba(231, 196, 126, .5); font-weight: 500; }
.btn--ink { color: var(--gold-100); background: var(--paper-ink); box-shadow: 0 12px 26px -14px rgba(15, 33, 71, .9); }
.btn--ink .btn__arrow { background: var(--gold-300); color: var(--paper-ink); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { --h: 60px; font-size: 1.12rem; width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 22px 44px -14px rgba(231, 196, 126, .95), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(110, 72, 20, .25); }
  .btn:hover .btn__arrow { transform: translateX(-4px); }
  .btn--ghost:hover { background: rgba(231, 196, 126, .1); border-color: var(--gold-300); }
}

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  padding: max(8px, env(safe-area-inset-top)) 0 8px;
  transition: background-color .45s, box-shadow .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s;
}
.topbar.is-scrolled {
  background: rgba(5, 15, 38, .74);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(231, 196, 126, .14);
}
.topbar__inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__cta { display: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand__logo { height: 38px; width: auto; }
/* المفاتيح الأربعة في الهيدر: كل مهارة بتعدّي عليها بتدّيكِ مفتاحها */
.keyring { position: relative; display: inline-flex; align-items: flex-start; gap: 3px; height: 28px; padding: 3px 3px 0; }
.keyring::before { /* العلّاقة */
  content: ""; position: absolute; top: 1px; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 196, 126, .6) 20%, rgba(231, 196, 126, .6) 80%, transparent);
}
.keyring i { display: block; width: 10px; height: 21px; color: rgba(231, 196, 126, .34); transform-origin: 50% 0; transition: color .6s, filter .6s; }
.keyring svg, .key-fly svg, .skill__key svg, .door__keys svg { display: block; width: 100%; height: 100%; overflow: visible; }
.keyring i.is-got { color: var(--gold-200); --kf: rgba(243, 220, 164, .92); --kh: var(--navy-900); filter: drop-shadow(0 0 5px rgba(243, 220, 164, .75)); animation: swing 1.5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes swing { 0% { transform: rotate(22deg) scale(1.25); } 35% { transform: rotate(-12deg); } 65% { transform: rotate(5deg); } 100% { transform: none; } }
.keyring.is-full i { animation: swing 1.5s cubic-bezier(.3, 1.5, .5, 1), glint 2.6s ease-in-out 1.2s; }
@keyframes glint { 50% { filter: drop-shadow(0 0 10px rgba(255, 246, 220, 1)); } }
.key-fly { position: fixed; z-index: 80; pointer-events: none; color: var(--gold-200); --kf: rgba(243, 220, 164, .92); --kh: var(--navy-900); filter: drop-shadow(0 0 12px rgba(243, 220, 164, .95)); will-change: transform; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(231, 196, 126, .45); background: rgba(6, 20, 48, .4);
  color: var(--gold-100); text-decoration: none; font-size: .86rem; font-weight: 500; white-space: nowrap;
  transition: background-color .3s, border-color .3s;
}
.pill .ico { width: 18px; height: 18px; flex: none; }
@media (hover: hover) { .pill:hover { background: rgba(231, 196, 126, .12); border-color: var(--gold-300); } }

/* =========================================================
   1. الافتتاحية
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 84px 14px 76px;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 56px; z-index: -1;
  width: min(100%, 64rem); height: 90px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(231, 196, 126, .2), transparent); pointer-events: none;
}
.hero__stage {
  --w: min(92vw, 30rem);
  position: relative; width: var(--w);
  padding: calc(var(--w) * .58) 20px 34px;
  text-align: center;
}

/* البوابة */
.portal { --peak: .5; position: absolute; inset: 0; }
.portal__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.arch__fill { fill: url(#g-sky); }
.portal__halo { fill: url(#g-halo); }
.portal__shade { fill: url(#g-shade); }
.portal__img { opacity: 0; transition: opacity 1.8s var(--ease); transform-box: fill-box; transform-origin: center; }
.has-portal-img .portal__img { opacity: .9; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.07) translate(-1%, -.6%); } }
.has-portal-img .portal__shade { opacity: .3; }
.has-portal-img .portal__svg { -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
.dune { display: none; }
.dune--far { fill: #0b1f45; stroke: rgba(231, 196, 126, .18); stroke-width: 1; }
.dune--near { fill: #071633; stroke: rgba(231, 196, 126, .32); stroke-width: 1.2; }
.has-portal-img .dune { opacity: 0; }

.arch__glow { fill: none; stroke: var(--gold-300); stroke-width: 6; opacity: .35; filter: url(#f-glow); }
.arch__line { fill: none; stroke: url(#g-gold); stroke-width: 2; }
.arch__line--inner { stroke-width: 1; opacity: .5; }
.js .portal__svg path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-io) .05s; }
.js .portal__svg .arch__line--inner { transition-delay: .2s; }
.is-ready .portal__svg path[pathLength] { stroke-dashoffset: 0; }
.js .portal__svg > g { opacity: 0; transition: opacity .35s var(--ease); }
.is-ready .portal__svg > g { opacity: 1; }

.leaf { transform-box: fill-box; transition: transform .5s cubic-bezier(.7, 0, .15, 1), opacity .5s var(--ease); }
.leaf--r { transform-origin: right center; }
.leaf--l { transform-origin: left center; }
.leaf__body { fill: url(#g-leaf); stroke: rgba(231, 196, 126, .45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.leaf__panel { fill: rgba(255, 255, 255, .02); stroke: rgba(231, 196, 126, .32); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* «ويَفتحُها غيرُكِ في لَحظة!»: الباب مقفول وأول سطر بيتكتب، وفي نص ثانية الضلفتين بيتفتحوا مع التاني (كله بيخلص في ثانية) */
.no-js .leaf, .is-ready .leaf { transform: scaleX(.06); opacity: .85; }
.is-ready .leaf { transition-delay: .5s; }
.portal .portal__lock { top: 57%; opacity: 0; }
.no-js .portal__lock { display: none; }
.is-ready .portal__lock { animation: portallock .62s var(--ease) both; }
@keyframes portallock {
  0% { opacity: 0; transform: scale(.7); }
  22%, 62% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 1px rgba(110, 72, 20, .4), 0 0 40px 12px rgba(255, 246, 220, .95); }
  100% { opacity: 0; transform: scale(1.4); }
}
.arch__key {
  position: absolute; top: -13px; left: 50%; width: 28px; height: 28px;
  color: var(--gold-200); filter: drop-shadow(0 0 10px rgba(243, 220, 164, .9));
  transform: translateX(-50%) scale(0) rotate(-45deg); transition: transform .8s var(--ease) .75s;
}
.arch__key svg { width: 100%; height: 100%; }
.no-js .arch__key, .is-ready .arch__key { transform: translateX(-50%) scale(1) rotate(0); }

.sky {
  position: absolute; inset-inline: 0; top: calc(var(--w) * .17); height: calc(var(--w) * .36);
  display: grid; place-items: center; pointer-events: none;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .8s var(--ease) .8s, transform 1s var(--ease) .8s;
}
.no-js .sky, .is-ready .sky { opacity: 1; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -8px)); }
.orbit { position: relative; width: calc(var(--w) * .76); height: calc(var(--w) * .3); transform: rotate(-7deg); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring path { fill: none; vector-effect: non-scaling-stroke; }
.ring__line { stroke: url(#g-gold); stroke-width: 1.4; }
.ring__glow { stroke: var(--gold-300); stroke-width: 5; opacity: .3; filter: url(#f-glow); }
.ring--back { z-index: 1; opacity: .45; }
.ring--front { z-index: 3; }
.moon {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: calc(var(--w) * .17); aspect-ratio: 1; margin: calc(var(--w) * -.105) 0 0 calc(var(--w) * -.085);
  border-radius: 50%;
  box-shadow: inset calc(var(--w) * .034) calc(var(--w) * .006) 0 0 #f8e8c0;
  filter: drop-shadow(0 0 16px rgba(248, 232, 192, .55));
  transform: rotate(-35deg) translate(calc(var(--px) * 6px), calc(var(--py) * 4px));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -5px; } }
.chip {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  border: 1px solid rgba(243, 220, 164, .5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: var(--gold-200); will-change: transform, opacity;
}
.chip svg { width: 26px; height: 26px; }
.acc { stroke: var(--sky-soft); }

/* نص الافتتاحية */
.hero__copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold-300); font-weight: 500; font-size: .95rem; }
.eyebrow__star { width: 14px; height: 14px; color: var(--gold-300); }
.eyebrow__star svg { width: 100%; height: 100%; }
.hero__title {
  font-weight: 800; color: var(--white);
  font-size: clamp(2.2rem, calc(var(--w) * .105), 4.3rem); line-height: 1.3; text-wrap: balance;
  text-shadow: 0 6px 40px rgba(3, 166, 225, .18);
}
.hero__title .mark { color: var(--gold-300); }
/* السطر الأول بيتكتب بالنور على مهله (عُمر)، والتاني بيلمع مرة واحدة مع فتحة الباب (لحظة) */
.hero__title { --ink-d: .05s; }
.hero__title .ln:first-child { color: var(--ink); font-weight: 700; }
.js .hero__title .ln:first-child { transition-duration: .7s; }
.js .hero__title.ink--lines .ln--flash { -webkit-mask-image: none; mask-image: none; opacity: 0; }
.is-ready .hero__title .ln--flash { animation: flashin .6s var(--ease) .5s both; }
@keyframes flashin {
  0% { opacity: 0; filter: blur(12px); transform: scale(1.08); }
  35% { opacity: 1; text-shadow: 0 0 34px rgba(255, 246, 220, .95), 0 0 80px rgba(231, 196, 126, .6); }
  100% { opacity: 1; filter: none; transform: none; }
}
.no-js .hero__title .ln--flash { opacity: 1; }
.lead__dim { color: var(--muted); }
.lead__dim, .lead__glow { white-space: nowrap; }
.lead__glow { color: var(--gold-200); font-weight: 700; text-shadow: 0 0 22px rgba(243, 220, 164, .45); }
.hero__lead { margin: 14px auto 22px; max-width: 31ch; font-size: clamp(1.08rem, 1rem + .45vw, 1.34rem); }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__wa { display: none; }
.hero__facts {
  list-style: none; margin: 22px 0 0; padding: 12px 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 18px; background: rgba(6, 20, 48, .55); border: 1px solid rgba(231, 196, 126, .16);
}
.hero__facts li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; font-size: .84rem; line-height: 1.45; color: var(--ink); }
.hero__facts li + li { border-inline-start: 1px solid rgba(231, 196, 126, .16); }
.hero__facts svg { width: 20px; height: 20px; color: var(--gold-300); }
.hero__facts b { color: var(--white); font-weight: 800; }
/* على الموبايل: كل خانة سطرين ثابتين، الرقم كبير فوق والوصف تحته */
@media (max-width: 1023px) {
  .hero__facts li > span { display: flex; flex-direction: column; align-items: center; }
  .hero__facts b { display: block; }
  .hero__facts li:not(:last-child) b { order: -1; font-size: 1.32rem; line-height: 1.2; color: var(--gold-100); }
  .hero__facts { grid-template-columns: repeat(3, auto); } /* كل خانة على قد كلامها، من غير ما سطر يتكسر */
  .hero__facts li > span { white-space: nowrap; }
  .scroll-cue { display: none; } /* الموبايل بيتسحب بالصباع، فعلامة الماوس مالهاش لازمة */
}
/* الدخول: العنوان بيتكتب بالنور، وبعده الكلام والزرار بسرعة عشان الزرار يبان بدري */
.js .eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__facts { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-ready .eyebrow { opacity: 1; transform: none; transition-delay: 0s; }
.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .7s; }
.is-ready .hero__ctas { opacity: 1; transform: none; transition-delay: .8s; }
.is-ready .hero__facts { opacity: 1; transform: none; transition-delay: .95s; }

.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 1px solid rgba(231, 196, 126, .45); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold-300); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   القصة: ثلاث مشاهد ثم السؤال
   ========================================================= */
.story { width: var(--wrap); margin: 0 auto; padding: 30px 0 20px; }
.scenes { position: relative; display: grid; gap: 34px; }
.js .scenes[data-reveal] { opacity: 1; transform: none; }
.scenes__thread { display: none; }
.scene {
  position: relative; padding: 22px 20px 22px; border-radius: 22px;
  background: linear-gradient(180deg, #0f2850, #081a3b);
  border: 1px solid rgba(231, 196, 126, .16);
}
.scene + .scene::before { /* وصلة بين المشاهد على الجوال */
  content: ""; position: absolute; top: -34px; left: 50%; width: 1px; height: 34px;
  background: linear-gradient(180deg, transparent, var(--gold-300));
}
/* كل مشهد بيظهر لوحده لما يوصله (على الموبايل تحت بعض)، وجواه الجمل واحدة ورا التانية */
.scene { --sd: 0s; }
.js .scenes .scene { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .8s; transition-delay: var(--sd); }
.js .scenes .scene.is-in { opacity: 1; transform: none; }
.scene__art { height: 104px; display: grid; place-items: center; margin-bottom: 12px; }
.scene__text { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--white); font-weight: 500; line-height: 1.85; }
.scene__text span { display: block; }
.scene__text .hl { color: var(--gold-200); }
.js .scene__text > span, .js .scene--quote .quote {
  opacity: 0; filter: blur(8px); translate: 0 .5em;
  transition: opacity .9s var(--ease), filter 1.1s var(--ease), translate 1.1s var(--ease);
  transition-delay: calc(var(--sd) + .35s + var(--n, 0) * .5s);
}
.js .scene--quote .quote { transition-delay: calc(var(--sd) + .55s); }
.js .scene.is-in .scene__text > span, .js .scene.is-in .quote { opacity: 1; filter: none; translate: 0 0; }

/* مشهد 1: آيات مترابطة بتكشف هدايات */
.verses { width: 220px; height: 110px; overflow: visible; }
.vl { fill: rgba(149, 168, 201, .16); }
.vl--main { fill: url(#g-gold); opacity: .85; }
.vlink { fill: none; stroke: var(--sky-soft); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-io) .9s; }
.scene.is-in .vlink { stroke-dashoffset: 0; }
.spark { color: var(--gold-200); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(1.6s + var(--d)); }
.scene.is-in .spark { transform: scale(1); animation: twinkle 3.2s ease-in-out infinite; animation-delay: calc(2.4s + var(--d)); }
@keyframes twinkle { 50% { opacity: .35; } }

/* مشهد 2: الإعجاب */
.scene--quote { background: linear-gradient(160deg, #1b3a66, #0c2147); border-color: rgba(243, 220, 164, .3); border-radius: 26px 26px 26px 8px; }
.scene__intro { color: var(--muted); font-size: 1rem; margin-bottom: 6px; }
.quote { margin: 0; }
.quote p { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.65; color: var(--white); }
.quote .q { color: var(--gold-300); }

/* مشهد 3: الأيام بتمر */
.moons { display: flex; gap: 10px; }
.moons i {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .04);
  box-shadow: inset var(--x) 0 0 0 var(--gold-200); opacity: .3;
  animation: phase 5.6s ease-in-out infinite paused; animation-delay: calc(var(--i) * .4s);
}
.scene.is-in .moons i { animation-play-state: running; }
@keyframes phase { 0%, 45%, 100% { opacity: .3; filter: none; } 15% { opacity: 1; filter: drop-shadow(0 0 7px rgba(243, 220, 164, .8)); } }

/* السؤال والتحوّل في الفهم */
.turn { position: relative; isolation: isolate; text-align: center; padding: 64px 4px 30px; }
.turn__mark {
  position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%, -54%);
  font-size: clamp(14rem, 40vw, 26rem); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(231, 196, 126, .16);
  pointer-events: none;
}
.turn__q { max-width: 26ch; margin: 0 auto; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 800; line-height: 1.6; color: var(--white); text-wrap: balance; }
.ul { position: relative; white-space: nowrap; color: var(--gold-200); }
.ul::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease) 1.6s; }
.is-in .ul::after, .no-js .ul::after { transform: scaleX(1); }
.turn__reframe {
  display: block;
  max-width: 24ch; margin: 34px auto 0; font-size: clamp(1.5rem, 1.15rem + 1.9vw, 2.6rem); font-weight: 800; line-height: 1.6; color: var(--white); text-wrap: balance;
}
.js .turn__reframe { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease) 2.2s, transform 1.1s var(--ease) 2.2s; }
.js .is-in .turn__reframe { opacity: 1; transform: none; }
.turn__key {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  color: var(--sky-soft); border: 1px solid rgba(111, 210, 245, .4);
  box-shadow: 0 0 0 8px rgba(3, 166, 225, .06), 0 0 30px rgba(3, 166, 225, .35);
}
.turn__key svg { width: 26px; height: 26px; }
.js .turn__key svg { transform: rotate(-90deg); transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1) 3s; }
.js .is-in .turn__key svg { transform: none; }
.dim { position: relative; display: inline-block; transition: opacity 1s var(--ease) 3s; }
.dim::after { content: ""; position: absolute; inset-inline: -2px; top: 54%; height: 2px; background: var(--gold-300); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease) 3.2s; }
.is-in .dim { opacity: .5; }
.is-in .dim::after { transform: scaleX(1); }
.lit { transition: color 1s var(--ease) 3.6s, text-shadow 1s var(--ease) 3.6s; }
.is-in .lit, .no-js .lit { color: var(--sky-soft); text-shadow: 0 0 24px rgba(3, 166, 225, .8); }

/* =========================================================
   2. التحوّل
   ========================================================= */
.shift { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 56px 18px 60px; }
.shift::before {
  content: ""; position: absolute; left: 50%; top: 40%; z-index: -1; width: min(100%, 980px); height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(231, 196, 126, .16), transparent); pointer-events: none;
}
.shift__title { display: flex; flex-direction: column; align-items: center; }
.shift__from { font-size: clamp(1.3rem, 1.05rem + 1.3vw, 2.1rem); font-weight: 500; color: var(--muted); }
.shift__beam { position: relative; width: 2px; height: 58px; margin: 14px 0 12px; background: linear-gradient(180deg, rgba(149, 168, 201, .5), var(--gold-300)); transform-origin: top; }
.shift__beam i { position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold-100); box-shadow: 0 0 14px 4px rgba(243, 220, 164, .7); }
.js .shift__beam { transform: scaleY(0); transition: transform 1s var(--ease) .5s; }
.js .is-in .shift__beam { transform: scaleY(1); }
.shift__to { font-size: clamp(2rem, 1.35rem + 3.3vw, 4rem); font-weight: 800; line-height: 1.4; max-width: 15ch; text-wrap: balance; }
.gold-text {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 7s linear infinite; filter: drop-shadow(0 4px 22px rgba(231, 196, 126, .25));
}
@keyframes goldflow { to { background-position: -220% 0; } }
.js .shift__to { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease) 1.1s, transform 1.1s var(--ease) 1.1s; }
.js .is-in .shift__to { opacity: 1; transform: none; }

.program { margin-top: 40px; }
.plaque {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 24px 30px 18px;
  border-radius: 18px; border: 1px solid rgba(231, 196, 126, .35);
  background: linear-gradient(180deg, rgba(17, 44, 90, .7), rgba(6, 20, 48, .55));
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9), inset 0 0 0 5px rgba(6, 20, 48, .6), inset 0 0 0 6px rgba(231, 196, 126, .16);
}
.plaque__star { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; color: var(--gold-300); filter: drop-shadow(0 0 8px rgba(231, 196, 126, .7)); }
.plaque__star svg { width: 100%; height: 100%; }
.plaque h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 800; color: var(--white); line-height: 1.5; }
.plaque__lbl { display: block; font-size: .62em; font-weight: 500; color: var(--gold-300); }
.program__desc { max-width: 34ch; margin: 18px auto 0; font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); }
.program__desc mark {
  color: var(--gold-100); font-weight: 800; padding: 0 .15em; white-space: nowrap;
  background: linear-gradient(rgba(231, 196, 126, .3), rgba(231, 196, 126, .3)) right 88% / 0% 34% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px;
  transition: background-size 1.1s var(--ease) .6s;
}
.is-in mark, .no-js mark { background-size: 100% 34%; }

/* =========================================================
   3. المهارات + التدريب + المثال
   ========================================================= */
.learn { width: var(--wrap); margin: 0 auto; padding: 30px 0 30px; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; text-align: center; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; color: var(--white); }
.section-title > span { flex: none; white-space: nowrap; }
.section-title::before, .section-title::after { content: ""; flex: 1 1 0; max-width: 90px; min-width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-300)); }
.section-title::after { transform: scaleX(-1); }
/* «أربعةُ مفاتيح.» كبيرة، و«تفتحُ لكِ مغاليقَ الآيات.» تحتها بالدهبي */
.section-title--keys > span { flex: 0 1 auto; white-space: normal; line-height: 1.35; }
.section-title--keys .ln { display: block; }
.section-title--keys .ln + .ln { margin-top: 6px; font-size: .62em; font-weight: 700; color: var(--gold-200); }

/* ---------- جملة جملة ---------- */
.ln:nth-child(2), .scene__text > span:nth-child(2) { --n: 1; }
.ln:nth-child(3), .scene__text > span:nth-child(3) { --n: 2; }
.js .seq .ln {
  opacity: 0; filter: blur(10px); translate: 0 .4em;
  transition: opacity 1s var(--ease), filter 1.2s var(--ease), translate 1.2s var(--ease);
  transition-delay: calc(.15s + var(--n, 0) * .55s);
}
.js .seq.is-in .ln { opacity: 1; filter: none; translate: 0 0; }
/* الكتابة بالنور سطر سطر: كل جملة بتتكتب بعد اللي قبلها */
.ink--lines .ln { display: block; }
.js .ink--lines { -webkit-mask-image: none; mask-image: none; }
.js .ink--lines .ln {
  --reveal: -22%;
  -webkit-mask-image: linear-gradient(to left, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  mask-image: linear-gradient(to left, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  transition: --reveal 1.5s var(--ease-io); transition-delay: calc(var(--ink-d, .2s) + var(--n, 0) * .8s);
}
.js .ink--lines.is-in .ln, .js .is-in .ink--lines .ln, .is-ready .hero__title .ln { --reveal: 100%; }

.skills { list-style: none; margin: 0; padding: 44px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 12px; position: relative; }
.js .skills[data-reveal] { opacity: 1; transform: none; }
.skill {
  --rx: 0deg; --ry: 0deg; --lx: 50%; --ly: 0%;
  position: relative; text-align: center; padding: 0 12px 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 46, 94, .62), rgba(6, 20, 48, .55));
  border: 1px solid rgba(231, 196, 126, .18);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .6s, box-shadow .6s, opacity 1s var(--ease);
}
.skill::after { /* لمعة بتمشي ورا الماوس */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--lx) var(--ly), rgba(243, 220, 164, .16), transparent 60%);
}
.skill.is-hover::after { opacity: 1; }
.skill.is-hover { border-color: rgba(231, 196, 126, .5); box-shadow: 0 26px 50px -30px rgba(231, 196, 126, .5); transition: transform .12s linear, border-color .6s, box-shadow .6s; }
.skill__win { width: 80px; height: 92px; margin: -44px auto 10px; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.win__bg { fill: rgba(9, 28, 62, .96); stroke: rgba(231, 196, 126, .55); stroke-width: 1.2; }
.win__line { fill: none; stroke: rgba(231, 196, 126, .28); stroke-width: 1; }
.skill__win use { color: var(--gold-200); }
.js .skill__win use { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); transition-delay: calc(.35s + var(--i) * .2s); }
.js .is-in .skill__win use { stroke-dashoffset: 0; }
/* «المفتاح الأول…»: المفتاح بيتملي لما يطير للهيدر */
.skill__tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--gold-300); font-size: .8rem; font-weight: 700; }
.skill__key { display: block; width: 10px; height: 19px; color: rgba(231, 196, 126, .7); transition: color .6s, filter .6s; }
.skill.is-key .skill__key { color: var(--gold-200); --kf: rgba(243, 220, 164, .92); --kh: var(--navy-800); filter: drop-shadow(0 0 6px rgba(243, 220, 164, .8)); }
.skill h3 { margin-bottom: 6px; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); font-weight: 800; color: var(--gold-200); }
.skill p { font-size: .94rem; line-height: 1.75; }
.skill .skill__tag { font-size: .8rem; line-height: 1.4; }
.skill .skill__maxim { margin: 2px 0 8px; color: var(--white); font-weight: 700; font-size: .9rem; line-height: 1.7; text-wrap: balance; }
.skill > p:last-child { color: var(--muted); font-size: .86rem; }
.js .skills .skill { opacity: 0; translate: 0 24px; transition: transform .5s var(--ease), translate 1s var(--ease), border-color .6s, box-shadow .6s, opacity 1s var(--ease); transition-delay: calc(var(--i) * .12s); }
.js .skills.is-in .skill { opacity: 1; translate: 0 0; }

.practice-row { display: grid; gap: 22px; margin-top: 34px; }
.practice { text-align: center; padding: 6px 8px; }

/* صورة الكشكول: مخفية لحد ما ملفها يتحمّل */
.pfig { display: none; position: relative; margin: 0 0 22px; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(231, 196, 126, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.has-practice-img .pfig { display: block; }
.pfig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pfig::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 6px rgba(4, 11, 26, .35), inset 0 0 0 7px rgba(231, 196, 126, .28), inset 0 -60px 80px -40px rgba(4, 11, 26, .55); }
.js .pfig img { transform: scale(1.1); transition: transform 2.4s var(--ease); }
.js .pfig.is-in img { transform: none; }
.practice__from { color: var(--muted); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); }
.practice__to { margin-top: 4px; color: var(--white); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.55; text-wrap: balance; }

.ayah__paper {
  position: relative; padding: 38px 22px 32px; text-align: center; color: var(--paper-ink); border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #f6eedf 55%, #eadcc1 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(184, 135, 58, .45), inset 0 0 0 9px #f6eedf, inset 0 0 0 10px rgba(184, 135, 58, .55), inset 0 0 0 13px #f6eedf, inset 0 0 0 14px rgba(184, 135, 58, .3);
}
.corner { position: absolute; width: 18px; height: 18px; color: var(--gold-500); }
.corner svg { width: 100%; height: 100%; }
.corner--tr { top: 18px; right: 18px; } .corner--tl { top: 18px; left: 18px; }
.corner--br { bottom: 18px; right: 18px; } .corner--bl { bottom: 18px; left: 18px; }
.ayah__kicker { color: var(--gold-500); font-weight: 700; font-size: .95rem; }
.ayah__title { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem); font-weight: 800; color: var(--paper-ink); margin-bottom: 14px; }
.ayah__step { color: #4a5677; font-size: 1rem; }
.verse { margin: 4px 0; font-family: var(--quran); font-weight: 400; font-size: clamp(1.6rem, 1.05rem + 2.7vw, 2.6rem); line-height: 2; color: #0b1d44; }
.verse .orn { color: var(--gold-500); font-size: .9em; padding-inline: .12em; }
.verse .vk { color: #9a6a22; text-shadow: 0 0 22px rgba(231, 196, 126, .55); }
.ayah__insight b { color: #9a6a22; font-weight: 800; }
.ayah__q { font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem); font-weight: 700; margin: 2px 0 18px; }
.ayah .btn { transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .4s; }
.ayah.is-open .btn--ink { opacity: 0; transform: translateY(-8px); pointer-events: none; height: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; }
.js .ayah__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.js .ayah__more > div { overflow: hidden; }
.js .ayah.is-open .ayah__more { grid-template-rows: 1fr; }
.verse--next { position: relative; display: block; margin-top: 4px; padding: .05em .4em; border-radius: 16px; background: rgba(231, 196, 126, .2); box-shadow: inset 0 0 0 1px rgba(184, 135, 58, .32); }
.js .verse--next { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease-io) .5s; }
.js .is-open .verse--next { clip-path: inset(0 0 0 0); }
.ayah__ref { font-size: .9rem; color: #6a7493; margin-bottom: 14px; }
.ayah__insight { font-size: clamp(1.04rem, 1rem + .35vw, 1.2rem); font-weight: 500; line-height: 1.9; max-width: 32ch; margin: 0 auto; text-wrap: pretty; }
.ayah__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(184, 135, 58, .35); color: var(--gold-500); font-weight: 700; font-size: 1rem; }
.ayah__src { max-width: 42ch; margin: 12px auto 0; color: #5d6a8a; font-size: .88rem; line-height: 1.8; }
.js .ayah__insight, .js .ayah__note, .js .ayah__ref, .js .ayah__src { opacity: 0; transition: opacity 1s var(--ease) 1.6s; }
.js .is-open .ayah__insight, .js .is-open .ayah__note, .js .is-open .ayah__ref, .js .is-open .ayah__src { opacity: 1; }
.js .ayah__src { transition-delay: 2s; }

/* شهادات */
.voices { width: var(--wrap); margin: 0 auto; padding: 40px 0; }
.voices__list { display: grid; gap: 14px; }
.voice { margin: 0; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 196, 126, .2); }
.voice blockquote { margin: 0; color: var(--white); font-size: 1.08rem; }
.voice figcaption { margin-top: 10px; color: var(--gold-300); font-weight: 700; font-size: .95rem; }

/* =========================================================
   4. العرض والتسجيل (الفجر)
   ========================================================= */
.register { position: relative; isolation: isolate; overflow: hidden; padding: 70px 0 120px; }
.register__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 45% at 50% 100%, rgba(243, 220, 164, .42), rgba(231, 196, 126, .12) 45%, transparent 75%),
    linear-gradient(180deg, transparent 0%, rgba(12, 35, 80, .55) 35%, rgba(30, 58, 104, .55) 75%, rgba(80, 70, 70, .4) 100%);
}
.register__dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; transition: opacity 1s; }
.rd--far { fill: #0b2048; stroke: rgba(243, 220, 164, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rd--near { fill: #061431; stroke: rgba(243, 220, 164, .4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.register__inner { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.register__inner > .jform { margin-top: 34px; }

/* صورة الفجر: مخفية لحد ما ملفها يتحمّل */
.dawn { display: none; position: relative; margin: 0 0 26px; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(243, 220, 164, .35); box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 60px rgba(243, 220, 164, .12); }
.has-dawn-img .dawn { display: block; }
.dawn img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 45%; }
.dawn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(4, 11, 26, .45), transparent 40%); }
.js .dawn img { transform: scale(1.1); filter: brightness(.55) saturate(.8); transition: transform 3s var(--ease), filter 3s var(--ease); }
.js .dawn.is-in img { transform: none; filter: none; }

.offer, .offer__head { text-align: center; }
.offer__title { max-width: 24ch; margin: 0 auto 8px; font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem); font-weight: 800; line-height: 1.5; color: var(--white); text-wrap: balance; }
.offer__title .ln { display: block; }
.counted { white-space: nowrap; }
.counted i { display: inline-block; width: .17em; height: .17em; margin-inline-start: .16em; border-radius: 50%; vertical-align: .18em; background: var(--gold-300); box-shadow: 0 0 10px rgba(231, 196, 126, .8); }
.js .counted i { opacity: 0; transform: scale(0); }
.js .is-in .counted i { animation: dot .5s var(--ease) both; animation-delay: calc(.75s + var(--d) * .28s); }
.counted i:nth-of-type(1) { --d: 0; }
.counted i:nth-of-type(2) { --d: 1; }
.counted i:nth-of-type(3) { --d: 2; }
@keyframes dot { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
.stretch { position: relative; color: var(--gold-200); white-space: nowrap; }
.stretch::after {
  content: ""; position: absolute; top: 62%; right: calc(100% + .2em); width: 100vw; height: 2px; pointer-events: none;
  background: linear-gradient(270deg, var(--gold-300), rgba(231, 196, 126, .35) 30%, transparent 75%);
  transform-origin: right; transform: scaleX(0); transition: transform 2.4s var(--ease-io) 1.35s;
}
.no-js .stretch::after, .is-in .stretch::after { transform: scaleX(1); }
.offer__kicker { margin-bottom: 24px; color: var(--gold-300); font-weight: 700; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.ticket {
  position: relative; max-width: 520px; margin: 0 auto; padding: 18px 16px 18px; border-radius: 24px;
  background: rgba(6, 20, 48, .6); border: 1px solid rgba(231, 196, 126, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.facts { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; text-align: start; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); font-size: 1.02rem; line-height: 1.5; }
.facts svg { width: 24px; height: 24px; flex: none; color: var(--gold-300); }
.facts b { color: var(--white); font-weight: 800; }
/* «يبدأ البرنامج بعد…»: بتتحسب من التاريخ بتوقيت السعودية، وبتختفي بعد البداية */
.countdown { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 14px auto 0; padding: 7px 16px; border-radius: 999px;
  background: rgba(231, 196, 126, .1); border: 1px solid rgba(231, 196, 126, .35); color: var(--gold-100); font-weight: 700; font-size: .98rem; }
.countdown[hidden] { display: none; }
.countdown i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-200); box-shadow: 0 0 10px rgba(243, 220, 164, .9); }
.countdown i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold-200); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.price { padding: 12px 0 10px; }
.price__label { font-weight: 500; color: var(--ink); }
.price__value { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price__num {
  font-size: clamp(3.8rem, 3rem + 4vw, 5.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 9s linear infinite; filter: drop-shadow(0 6px 24px rgba(231, 196, 126, .3));
}
.price__cur { font-size: 1.4rem; font-weight: 700; color: var(--gold-200); }
.ticket__wa { width: 100%; white-space: normal; text-align: center; line-height: 1.35; } /* «لديّ سؤال قبل التسجيل — واتساب» أطول من 320 */

/* ---------- الفورم: رحلة من 3 أقمار ---------- */
.jform {
  position: relative; isolation: isolate; padding: 36px 18px 22px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 50, 100, .94), rgba(6, 20, 48, .97));
  box-shadow: 0 50px 100px -50px #000, 0 0 90px -34px rgba(231, 196, 126, .45);
}
.jform::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), #8f6527, #fcf1d6, #d4a955, #4d3512, #f3dca4, #b8873a, #8f6527);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: foil 8s linear infinite;
}
@keyframes foil { to { --ang: 360deg; } }
.jform.is-pulse { animation: pulse 1.2s var(--ease); }
@keyframes pulse { 30% { box-shadow: 0 50px 100px -50px #000, 0 0 0 6px rgba(231, 196, 126, .35), 0 0 90px -10px rgba(231, 196, 126, .6); } }
.jform__crown {
  position: absolute; top: -24px; left: 50%; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy-850); border: 1px solid rgba(231, 196, 126, .6); color: var(--gold-300); box-shadow: 0 0 24px rgba(231, 196, 126, .4);
}
.jform__crown svg { width: 26px; height: 26px; }
.jform__line { text-align: center; color: var(--white); font-weight: 800; font-size: clamp(1.18rem, 1.05rem + .7vw, 1.5rem); line-height: 1.6; text-wrap: balance; }

.jform__moons { list-style: none; margin: 16px auto 18px; padding: 0; display: flex; justify-content: center; align-items: center; gap: 0; }
.jform__moons li { position: relative; display: grid; place-items: center; width: 30px; height: 30px; }
.jform__moons li + li { margin-inline-start: 46px; }
.jform__moons li + li::before { content: ""; position: absolute; inset-inline-end: calc(100% + 6px); top: 50%; width: 34px; height: 1px; background: rgba(231, 196, 126, .22); transition: background-color .6s; }
.jform__moons li.is-done + li::before, .jform__moons li.is-done + li.is-now::before { background: var(--gold-300); }
.jform__moons i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(231, 196, 126, .35); transition: box-shadow .8s var(--ease), border-color .6s, filter .6s; box-shadow: inset 0 0 0 0 var(--gold-200); }
.jform__moons .is-now i { border-color: var(--gold-300); box-shadow: inset 7px 0 0 0 var(--gold-200); filter: drop-shadow(0 0 6px rgba(243, 220, 164, .6)); }
.jform__moons .is-done i { border-color: var(--gold-200); box-shadow: inset 22px 0 0 0 var(--gold-200); filter: drop-shadow(0 0 8px rgba(243, 220, 164, .7)); }

.jform__steps { position: relative; transition: height .55s var(--ease); }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .7s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.no-js .step { display: block; margin-bottom: 26px; }
.step__q { display: block; width: 100%; margin-bottom: 14px; text-align: center; color: var(--gold-200); font-weight: 800; font-size: clamp(1.2rem, 1.08rem + .6vw, 1.45rem); }
.step__q small { display: block; font-size: .7em; font-weight: 500; color: var(--muted); }
.step__next, .step__send { width: 100%; margin-top: 16px; }

.field { position: relative; margin-top: 6px; }
.field__input {
  width: 100%; padding: 22px 4px 10px; border: 0; border-bottom: 1px solid rgba(231, 196, 126, .35); border-radius: 0;
  background: transparent; color: var(--white); font: inherit; font-size: 1.2rem; font-weight: 500; outline: none; resize: none;
}
.field__label { position: absolute; inset-inline-start: 4px; top: 20px; color: var(--muted); font-size: 1.05rem; pointer-events: none; transition: transform .35s var(--ease), color .35s, font-size .35s; transform-origin: right top; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label { transform: translateY(-20px); font-size: .82rem; color: var(--gold-300); }
.field__line { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.field__input:focus ~ .field__line { transform: scaleX(1); }
.field--area { margin-top: 14px; }
.field--area .field__input { font-size: 1.05rem; line-height: 1.7; }
.field__err { min-height: 0; color: #ffb4a8; font-size: .9rem; margin-top: 6px; }
.field__err:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span, .choice--icon {
  /* المربع نفسه */
}
.choice > span {
  display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 12px; border-radius: 16px; text-align: center;
  font-weight: 700; font-size: .98rem; line-height: 1.45; color: var(--white);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 196, 126, .22);
  transition: background-color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease), color .35s;
}
.choice input:checked + span, .choice--icon:has(input:checked) {
  background: linear-gradient(180deg, rgba(231, 196, 126, .22), rgba(231, 196, 126, .08)); border-color: var(--gold-300); color: var(--gold-100);
  box-shadow: 0 0 0 4px rgba(231, 196, 126, .1), 0 14px 26px -18px rgba(231, 196, 126, .8);
}
.choice input:focus-visible + span, .choice--icon:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (hover: hover) { .choice:hover > span, .choice--icon:hover { border-color: rgba(231, 196, 126, .5); } }
.choice--icon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 10px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(231, 196, 126, .22); color: var(--white);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.choice--icon > span { all: unset; font-weight: 700; font-size: .92rem; line-height: 1.4; text-align: center; }
.choice--icon svg { width: 30px; height: 30px; color: var(--gold-200); }
.choice--icon .acc { stroke: var(--sky-soft); }

.preview { margin-top: 16px; }
.preview__label { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.preview__label svg { width: 16px; height: 16px; color: #46d37a; }
.bubble {
  position: relative; padding: 10px 14px 12px; border-radius: 4px 16px 16px 16px;
  background: #dcf8c6; color: #102018; font-size: .9rem; line-height: 1.7; white-space: pre-wrap; text-align: start;
  max-height: 190px; overflow: auto; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .8);
}
.bubble b { font-weight: 700; }
.jform__note { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--muted); }
.jform__back { /* تحت الخطوة، عشان ما يغطّيش على سطر «نبدأ هذا السبت…» */
  display: flex; align-items: center; gap: 4px; margin: 16px auto 0;
  padding: 6px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer;
}
.jform__back svg { width: 16px; height: 16px; }
.jform__back[hidden] { display: none; }

/* ---------- التذييل ---------- */
/* الفوتر بيكمّل لون الكثبان اللي فوقه، من غير خط فاصل */
.footer { position: relative; margin-top: -1px; padding: 40px 18px calc(108px + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, #061431, #040b1a 70%); }
.footer__logo { height: 54px; width: auto; margin: 0 auto 8px; }
.footer__tag { color: var(--gold-300); font-weight: 500; font-size: 1.05rem; }
.footer__links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; transition: color .3s; }
.footer__links a:hover { color: var(--gold-200); }
.footer__links svg { width: 20px; height: 20px; color: var(--gold-300); }

/* ---------- الزر الثابت (جوال) ---------- */
.dock {
  position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(6, 18, 44, .84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(231, 196, 126, .25); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8);
  transform: translateY(150%); opacity: 0; visibility: hidden;
  transition: transform .6s var(--ease), opacity .6s var(--ease), visibility 0s .6s;
}
.dock.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .6s var(--ease), opacity .6s var(--ease), visibility 0s; }
.dock__wa { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(231, 196, 126, .45); color: var(--gold-100); }
.dock__wa svg { width: 22px; height: 22px; }
.dock__cta { --h: 48px; flex: 1; padding: 0 14px; font-size: .98rem; gap: 10px; justify-content: space-between; }
.dock__price { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 31, 66, .9); color: var(--gold-200); font-size: .82rem; font-weight: 700; }
.dock__price b { font-size: 1rem; }
@media (max-width: 350px) { .dock__price { display: none; } .dock__cta { justify-content: center; } }

/* =========================================================
   لحظة الإرسال: الباب بيتفتح
   ========================================================= */
.gateway {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background: radial-gradient(90% 70% at 50% 40%, rgba(10, 31, 66, .97), rgba(3, 8, 20, .99));
  opacity: 0; transition: opacity .5s var(--ease);
}
.gateway[hidden] { display: none; }
.gateway.is-on { opacity: 1; }
.gateway .door { width: min(52vw, 220px); margin-bottom: 52px; }
.gateway__title { color: var(--white); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); text-wrap: balance; }
.gateway__sub { color: var(--ink); margin-bottom: 8px; }
.gateway__close { border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.door { position: relative; aspect-ratio: 300 / 420; }
.door__glow { position: absolute; left: 50%; top: 55%; width: 320%; height: 160%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(243, 220, 164, .34), rgba(3, 166, 225, .08) 55%, transparent); opacity: .15; transition: opacity 2.2s var(--ease) .5s; pointer-events: none; }
.door__opening {
  position: absolute; inset: 0; background: #030a18; perspective: 620px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 420' preserveAspectRatio='none'%3E%3Cpath d='M8 420V150C8 68 92 38 150 6c58 32 142 62 142 144v270z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 420' preserveAspectRatio='none'%3E%3Cpath d='M8 420V150C8 68 92 38 150 6c58 32 142 62 142 144v270z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.door__scene { position: absolute; inset: 0; background: 30% 55% / cover no-repeat; opacity: 0; transform: scale(1.08); /* الست في صورة الفجر شمال النص */ transition: opacity 1.6s var(--ease) .6s, transform 4s var(--ease) .4s; }
.door.is-open .door__scene { opacity: .95; transform: none; }
.door.has-scene.is-open .door__light { opacity: .5; mix-blend-mode: screen; }
.door.has-scene.is-open .door__rays { opacity: .5; }
.door__light { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 62%, #fffaf0 0%, #f6e2b0 20%, rgba(231, 196, 126, .7) 42%, rgba(3, 166, 225, .25) 70%, rgba(3, 10, 24, 0) 92%); opacity: .12; transition: opacity 1.8s var(--ease) .4s; }
.door__rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 58%, rgba(255, 246, 220, .2) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side at 50% 58%, #000, transparent 85%); mask-image: radial-gradient(closest-side at 50% 58%, #000, transparent 85%);
  opacity: 0; transition: opacity 1.8s var(--ease) 1s; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.door__leaf { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(180deg, #13305f 0%, #0b1f44 60%, #081733 100%); box-shadow: inset 0 0 0 1px rgba(231, 196, 126, .28), inset 0 0 40px rgba(0, 0, 0, .45); transition: transform 1.6s var(--ease-io) .1s, filter 1.6s var(--ease-io) .1s; }
.door__leaf::before, .door__leaf::after { content: ""; position: absolute; inset-inline: 18%; border: 1px solid rgba(231, 196, 126, .3); }
.door__leaf::before { top: 30%; bottom: 40%; border-radius: 50% 50% 4px 4px / 24% 24% 4px 4px; }
.door__leaf::after { top: 66%; bottom: 8%; border-radius: 4px; }
.door__leaf i { position: absolute; top: 58%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 8px rgba(231, 196, 126, .8); }
.door__leaf--r { right: 0; transform-origin: right center; }
.door__leaf--r i { left: 10px; }
.door__leaf--l { left: 0; transform-origin: left center; }
.door__leaf--l i { right: 10px; }
.door.is-open .door__leaf--r { transform: rotateY(-82deg); filter: brightness(1.5); }
.door.is-open .door__leaf--l { transform: rotateY(82deg); filter: brightness(1.5); }
.door.is-open .door__light, .door.is-open .door__rays, .door.is-open .door__glow { opacity: 1; }
.door__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.door__frame path { fill: none; vector-effect: non-scaling-stroke; }
.df-line { stroke: url(#g-gold); stroke-width: 2; }
.df-line--inner { stroke-width: 1; opacity: .6; }
.df-glow { stroke: var(--gold-300); stroke-width: 7; opacity: .35; filter: url(#f-glow); }
.door__key { position: absolute; top: -12px; left: 50%; width: 26px; height: 26px; margin-left: -13px; color: var(--gold-200); filter: drop-shadow(0 0 10px rgba(243, 220, 164, .9)); }
.door__key svg { width: 100%; height: 100%; }
/* القفل في نص الباب، والمفاتيح الأربعة بتنزل عليه وتلفّ، وبعدها الباب يتفتح (main.js: 1350ms) */
.door__lock {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 18px; height: 28px; margin: -14px 0 0 -9px; border-radius: 9px 9px 5px 5px;
  background:
    radial-gradient(circle at 50% 36%, #050d1f 0 2.6px, transparent 3.2px),
    linear-gradient(#050d1f, #050d1f) 50% 72% / 2.6px 9px no-repeat,
    linear-gradient(180deg, #f6e2ae, #c99a4c);
  box-shadow: 0 0 0 1px rgba(110, 72, 20, .4), 0 0 14px rgba(243, 220, 164, .55);
  transition: opacity .5s var(--ease);
}
.gateway.is-on .door__lock { animation: lockflash .7s var(--ease) .8s; }
@keyframes lockflash { 40% { transform: scale(1.2); box-shadow: 0 0 0 1px rgba(110, 72, 20, .4), 0 0 36px 10px rgba(255, 246, 220, .95); } }
.door.is-open .door__lock { opacity: 0; transition-delay: .15s; }
.door__keys { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.door__keys i {
  --sx: calc((var(--k) - 1.5) * 64px); --sy: -170px;
  position: absolute; left: 50%; top: 50%; width: 14px; height: 26px; margin: -13px 0 0 -7px; transform-origin: 50% 100%;
  color: var(--gold-200); --kf: rgba(243, 220, 164, .92); --kh: var(--navy-900);
  filter: drop-shadow(0 0 8px rgba(243, 220, 164, .9)); opacity: 0;
}
.gateway.is-on .door__keys i { animation: keyin .8s var(--ease-io) both; animation-delay: calc(.05s + var(--k) * .06s); }
@keyframes keyin {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1.4); }
  25% { opacity: 1; transform: translate(var(--sx), calc(var(--sy) + 30px)) scale(1.3); }
  78% { opacity: 1; transform: translate(0, -13px) scale(1); }
  100% { opacity: 0; transform: translate(0, -13px) scale(.92) rotate(90deg); }
}
.door__steps { position: absolute; top: 100%; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.door__steps i { display: block; flex: none; height: 10px; border-radius: 2px; background: linear-gradient(180deg, rgba(231, 196, 126, .4), rgba(231, 196, 126, .06)); border-top: 1px solid rgba(243, 220, 164, .5); }
.door__steps i:nth-child(1) { width: 104%; }
.door__steps i:nth-child(2) { width: 118%; opacity: .75; }
.door__steps i:nth-child(3) { width: 134%; opacity: .5; }
.door__motes { position: absolute; inset: 20% 15% 0; pointer-events: none; }
.door__motes i { position: absolute; bottom: 0; left: calc(8% + var(--i) * 9%); width: 3px; height: 3px; border-radius: 50%; background: var(--gold-100); box-shadow: 0 0 6px var(--gold-200); opacity: 0; }
.door.is-open .door__motes i { animation: mote 5s ease-in infinite; animation-delay: calc(1s + var(--i) * .45s); }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-160px) translateX(10px); } }

/* ---------- وضع المراجعة (?review) ---------- */
.is-review [data-proposal] { position: relative; outline: 2px dashed rgba(3, 166, 225, .85); outline-offset: 4px; }
.is-review [data-proposal]::after {
  content: attr(data-proposal); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 6;
  padding: 3px 12px; border-radius: 999px; background: var(--sky); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.review-panel { position: fixed; top: 70px; inset-inline-start: 10px; z-index: 70; max-width: min(340px, calc(100vw - 20px)); padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: #0f2147; font-size: .82rem; line-height: 1.6; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); }
.review-panel b { display: block; margin-bottom: 4px; font-size: .9rem; color: var(--sky); }
.review-panel ul { margin: 0; padding-inline-start: 18px; }
.review-panel button { position: absolute; top: 6px; inset-inline-end: 8px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: #0f2147; }

/* =========================================================
   شاشات أكبر
   ========================================================= */
@media (max-width: 370px) {
  .pill span { display: none; }
  .pill { padding: 0; width: 42px; justify-content: center; }
  .hero__facts li { font-size: .78rem; }
  .hero__title { font-size: 2rem; } /* «تَقرئينَ الآيةَ عُمرًا.» سطر واحد على 320 */
  /* الشاشات الصغيرة أوي: الكلام بيلف، والتاريخ بس اللي بيفضل سطر واحد */
  .hero__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.32fr); }
  .hero__facts li > span { white-space: normal; }
  .hero__facts li:last-child b { white-space: nowrap; }
}
/* الموبايل والتابلت لما صورة الليل موجودة: البوابة شباك فوق، والنص تحتها عشان الصورة تبان */
@media (max-width: 1023px) {
  .has-portal-img .hero { padding-top: 76px; }
  .has-portal-img .hero__stage { padding-top: 0; }
  /* --img-y: الست في صورة الليل تحت (60%–87%)، فالقصّ بيميل لتحت */
  .has-portal-img .portal { --img-y: .78; position: relative; inset: auto; height: min(calc(var(--w) * 1.1), 39svh); margin: 0 -20px 16px; }
  .has-portal-img .sky { top: 4%; height: 40%; }
  .offer__title { font-size: clamp(1.4rem, 6.9vw, 2.4rem); } /* «وبَصيرتُها في عُمركِ مَمدودة.» سطر واحد لحد 320 */
  html:not(.has-portal-img) .portal__lock { display: none; } /* من غير الصورة البوابة ورا الكلام كله، فالقفل هيقع على العنوان */
}

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 14px 8px; }
  .jform { padding: 40px 30px 26px; }
  .ayah__paper { padding: 44px 40px 36px; }
  .hero__ctas { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  :root { --wrap: min(1220px, 100% - 80px); }
  .brand__logo { height: 44px; }
  .brand { gap: 14px; }
  .keyring { gap: 5px; height: 32px; }
  .keyring i { width: 12px; height: 25px; }
  .topbar.is-scrolled.show-cta .topbar__cta { display: inline-flex; }

  /* النقش على الأطراف + نور الماوس */
  .lattice {
    display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 80 80'%3E%3Cpath d='M24.4 24.4h31.2v31.2H24.4zM40 18l22 22-22 22-22-22zM40 0v18M62 40h18M40 62v18M18 40H0M24.4 24.4 0 0M55.6 24.4 80 0M55.6 55.6 80 80M24.4 55.6 0 80' fill='none' stroke='%23e7c47e' stroke-width='.9'/%3E%3Ccircle cx='40' cy='40' r='4' fill='none' stroke='%23e7c47e' stroke-width='.9'/%3E%3C/svg%3E");
    background-size: 84px 84px; background-position: center -20px;
    -webkit-mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), rgba(0, 0, 0, .8), transparent 72%), linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .06) 16%, transparent 26%, transparent 74%, rgba(0, 0, 0, .06) 84%, rgba(0, 0, 0, .3));
    mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), rgba(0, 0, 0, .8), transparent 72%), linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .06) 16%, transparent 26%, transparent 74%, rgba(0, 0, 0, .06) 84%, rgba(0, 0, 0, .3));
  }

  /* الافتتاحية: نص يمين وبوابة شمال */
  .hero { padding: 96px 0 70px; }
  .hero__stage {
    width: var(--wrap); padding: 0; text-align: start;
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 40px;
  }
  .hero__copy { order: -1; }
  .portal {
    --w: min(31vw, 27rem, 50vh); --peak: .52;
    position: relative; inset: auto; width: var(--w); height: calc(var(--w) * 1.58); justify-self: center;
    transform: translate(calc(var(--px) * 8px), calc(var(--py) * 6px)); transition: transform .9s var(--ease);
  }
  .portal::before { /* هالة ورا البوابة */
    content: ""; position: absolute; inset: -18% -40%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(3, 166, 225, .14), rgba(231, 196, 126, .08) 50%, transparent);
  }
  .dune { display: block; }
  .portal__shade { opacity: .35; }
  .sky { top: calc(var(--w) * .2); height: calc(var(--w) * .4); }
  .chip { width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 14px; }
  .chip svg { width: 28px; height: 28px; }
  .eyebrow { font-size: 1.05rem; }
  .hero__title { font-size: clamp(2.8rem, 1.5rem + 2.2vw, 4.1rem); line-height: 1.25; max-width: 18ch; }
  .hero__lead { margin: 18px 0 28px; max-width: none; font-size: 1.45rem; }
  .hero__ctas { justify-content: flex-start; }
  .hero__wa { display: inline-flex; }
  .hero__facts { max-width: 680px; margin-top: 30px; padding: 16px 10px; grid-template-columns: repeat(3, auto); }
  .hero__facts li { flex-direction: row; justify-content: center; gap: 10px; padding: 0 14px; font-size: .98rem; white-space: nowrap; }
  .hero__facts svg { width: 24px; height: 24px; }

  /* القصة: ثلاث مشاهد جنب بعض وخيط بيربطهم */
  .story { padding: 40px 0 10px; }
  .scenes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
  .scene + .scene::before { display: none; }
  .scenes__thread {
    display: block; position: absolute; top: 50%; inset-inline: 4%; height: 1px; z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(231, 196, 126, .55) 12%, rgba(231, 196, 126, .55) 88%, transparent);
    transform-origin: right; transform: scaleX(0); transition: transform 2.4s var(--ease-io) .2s;
  }
  .scenes.is-in .scenes__thread { transform: scaleX(1); }
  .scene { --sd: calc(var(--i) * .45s); padding: 28px 28px; display: flex; flex-direction: column; justify-content: center; }
  .scene__text { font-size: 1.22rem; }
  .moons { gap: 12px; }
  .moons i { width: 26px; height: 26px; box-shadow: inset calc(var(--x) * 1.2) 0 0 0 var(--gold-200); }
  .scene--quote { padding: 32px 30px; transform-origin: center; }
  .turn { padding: 80px 0 30px; }
  .turn__q { max-width: 32ch; }
  .turn__reframe { max-width: 28ch; }

  /* التحوّل: من يمين لشمال */
  .shift { padding: 90px 24px 70px; }
  .shift__title { flex-direction: row; justify-content: center; gap: 28px; }
  .shift__from { flex: 0 1 auto; max-width: 12ch; text-align: start; line-height: 1.5; }
  .shift__beam { flex: none; width: 150px; height: 2px; margin: 0; background: linear-gradient(270deg, rgba(149, 168, 201, .5), var(--gold-300)); transform-origin: right; }
  .shift__beam i { left: -5px; bottom: auto; top: -4px; margin: 0; animation: travel 3.6s var(--ease-io) 2s infinite; }
  @keyframes travel { 0% { transform: translateX(150px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
  .js .shift__beam { transform: scaleX(0); }
  .js .is-in .shift__beam { transform: scaleX(1); }
  .shift__to { text-align: start; max-width: 13ch; }
  .program { display: flex; align-items: center; justify-content: center; gap: 36px; margin-top: 54px; }
  .program__desc { margin: 0; max-width: 36ch; text-align: start; font-size: 1.36rem; line-height: 1.9; text-wrap: pretty; }

  /* المهارات */
  .skills { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-top: 50px; }
  .skills::before {
    content: ""; position: absolute; top: 50px; inset-inline: 6%; height: 1px; z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(231, 196, 126, .5) 15%, rgba(231, 196, 126, .5) 85%, transparent);
    transform-origin: right; transform: scaleX(0); transition: transform 1.8s var(--ease-io) .3s;
  }
  .skills.is-in::before { transform: scaleX(1); }
  .skill { padding: 0 22px 28px; }
  .skill h3 { font-size: 1.34rem; margin-bottom: 8px; }
  .skill p { font-size: 1.06rem; }
  .skill .skill__maxim { font-size: 1.1rem; }
  .skill > p:last-child { font-size: .98rem; }
  .skill__win { width: 92px; height: 106px; margin-top: -50px; }
  .practice-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 56px; margin-top: 60px; }
  .practice { text-align: start; padding: 0 22px 0 0; border-inline-start: 3px solid var(--gold-400); }
  .practice__to { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem); }
  .pfig { aspect-ratio: 5 / 4; margin-bottom: 30px; }
  .practice-row--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }

  /* التسجيل: العنوان فوق التذكرة، والفورم جنبهم */
  .register { padding: 100px 0 150px; }
  .register__dunes { height: 220px; }
  .register__inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "head form" "offer form";
    column-gap: 56px; align-items: center;
  }
  .offer__head { grid-area: head; align-self: end; }
  .offer { grid-area: offer; align-self: start; }
  .register__inner > .jform { grid-area: form; margin-top: 0; }
  .offer, .offer__head { text-align: start; }
  .offer__title { margin-inline: 0; max-width: 24ch; font-size: clamp(2.2rem, 1.4rem + 1.8vw, 3rem); }

  /* ولما صورة الفجر موجودة: لوحة عريضة فوق، والعنوان مكتوب عليها */
  .has-dawn-img .register__inner { grid-template-areas: "head head" "offer form"; align-items: start; }
  .has-dawn-img .offer__head {
    position: relative; isolation: isolate; align-self: stretch; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(420px, 42vw, 600px); margin-bottom: 48px; padding: 48px 56px 40px; border-radius: 30px;
    border: 1px solid rgba(243, 220, 164, .35); box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 80px rgba(243, 220, 164, .1);
  }
  .has-dawn-img .dawn { position: absolute; inset: 0; z-index: -1; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
  .has-dawn-img .dawn img { object-position: 50% 60%; } /* الست في صورة الفجر بين 33% و87% من الطول، والنور فوق بين 22% و39% */
  /* الضلمة تحت يمين بس ورا العنوان، عشان نور الفجر فوق يفضل باين */
  .has-dawn-img .dawn::after { background: radial-gradient(62% 80% at 100% 100%, rgba(4, 11, 26, .88), rgba(4, 11, 26, .55) 45%, transparent 75%), linear-gradient(0deg, rgba(4, 11, 26, .5), transparent 35%); }
  .has-dawn-img .offer__title { text-shadow: 0 4px 30px rgba(4, 11, 26, .8); }
  .has-dawn-img .offer__kicker { margin-bottom: 0; text-shadow: 0 2px 16px rgba(4, 11, 26, .9); }
  .has-dawn-img .offer { align-self: start; }
  .ticket { margin: 0; max-width: none; padding: 20px; }
  .jform { padding: 44px 40px 30px; }
  .footer { padding-bottom: 40px; }
  .dock { display: none; }
}

/* =========================================================
   تقليل الحركة
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__facts, .js .scenes .scene, .js .skills .skill, .js .turn__reframe { opacity: 1 !important; transform: none !important; translate: none !important; }
  .js .ink, .js .ink--lines .ln { -webkit-mask-image: none !important; mask-image: none !important; }
  .js .seq .ln, .js .scene__text > span, .js .scene--quote .quote { opacity: 1 !important; filter: none !important; translate: none !important; }
  .door__motes, .door__keys, .portal__lock { display: none; }
  .js .hero__title .ln--flash { opacity: 1 !important; animation: none !important; }
}
.nw { white-space: nowrap; }
