/* ============================================================
   LSANY — Redesign
   Gamified, playful-but-premium, dark+gold
   ============================================================ */

/* Self-hosted Arabic fonts. Amiri for hero display, Montserrat Arabic elsewhere. */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Amiri-Regular-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Amiri-Bold-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Montserrat Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/MontserratArabic-Regular.woff2') format('woff2'),
       url('fonts/MontserratArabic-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/MontserratArabic-Bold.woff2') format('woff2'),
       url('fonts/MontserratArabic-Bold.woff') format('woff');
}

:root {
  /* Core palette — deeper, richer, more confident than original */
  --bg: #0B1917;
  --bg-2: #10221F;
  --bg-3: #163029;
  --surface: #1B3831;
  --surface-2: #214339;
  --stroke: rgba(230, 184, 97, 0.14);
  --stroke-strong: rgba(230, 184, 97, 0.32);

  --cream: #FAF5E8;
  --cream-muted: #E8DFC8;
  --secondary: #B8B2A0;
  --muted: #7E8981;

  /* Accents */
  --gold: #E6B861;
  --gold-2: #F5D08C;
  --gold-deep: #B88838;
  --gold-glow: rgba(230, 184, 97, 0.35);

  --green: #4DBF8E;
  --green-deep: #2E7D5C;

  --coral: #E8614A;
  --coral-deep: #B8442F;

  /* Type */
  --f-display: "Unbounded", "Outfit", system-ui, sans-serif;
  --f-body: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-arabic: "Montserrat Arabic", "Amiri", "Noto Naskh Arabic", sans-serif;
  --f-arabic-hero: "Amiri", "Montserrat Arabic", "Noto Naskh Arabic", serif;

  /* Motion */
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-smooth: cubic-bezier(.22,.8,.36,1);

}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(230,184,97,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(77,191,142,0.05) 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Utilities */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 28px; }
.arabic { font-family: var(--f-arabic); direction: rtl; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Section labels — plain text, no pill */
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* Pill button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .25s var(--ease-bounce), box-shadow .2s ease;
  position: relative;
  white-space: nowrap;
}
.btn:hover, .btn:focus, .btn:focus-visible, .btn:active { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #1A0F00;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset,
    0 10px 30px -8px rgba(230,184,97,0.5),
    0 2px 0 var(--gold-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -2px 0 rgba(0,0,0,0.2) inset, 0 16px 40px -8px rgba(230,184,97,0.65), 0 4px 0 var(--gold-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 20px -8px rgba(230,184,97,0.4), 0 0 0 var(--gold-deep); }
.btn-ghost {
  background: rgba(250,245,232,0.04);
  color: var(--cream);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(250,245,232,0.08); border-color: var(--stroke-strong); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: rgba(11,25,23,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: top .3s var(--ease-smooth);
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
}
.nav-brand .ar { color: var(--gold); font-family: var(--f-arabic); font-size: 19px; font-weight: 700; }
.nav-links { display: flex; gap: 4px; padding: 0 8px; }
.nav-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--cream); background: rgba(250,245,232,0.04); }
.nav-link.gold { color: var(--gold); }
.nav-link.gold:hover { background: rgba(230,184,97,0.1); }

.nav-xp {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 10px;
  background: rgba(230,184,97,0.1);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.nav-xp svg { filter: drop-shadow(0 0 4px var(--gold-glow)); }

.nav .btn { padding: 10px 18px; font-size: 13.5px; }

@media (max-width: 820px) {
  .nav {
    left: 12px; right: 12px; transform: none;
    padding: 8px 8px 8px 16px;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-links { display: none; }
  .nav-xp { display: none; }
  .nav-burger { margin-left: auto; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(230,184,97,0.6), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(230,184,97,0.4), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(230,184,97,0.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(230,184,97,0.4), transparent);
  animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:0.7} 50%{opacity:1} }

.hero-aura {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 1400px; height: 1000px;
  background: radial-gradient(closest-side, rgba(230,184,97,0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: aura-pulse 6s ease-in-out infinite;
}
@keyframes aura-pulse { 0%,100%{opacity:.7;transform:translateX(-50%) scale(1)} 50%{opacity:1;transform:translateX(-50%) scale(1.05)} }

.hero-dunes {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 420px;
  pointer-events: none;
  opacity: 0.6;
  background: radial-gradient(ellipse 110% 90% at 50% 40%, rgba(230,184,97,0.1) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 60%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin: 18px 0 24px;
}
.hero-title .gold {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}
.hero-title .gold::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.hero-title .wiggle {
  display: inline-block;
  animation: wiggle 4s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-3deg)} 75%{transform:rotate(3deg)} }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-muted);
  max-width: 520px;
  margin: 0 0 32px;
  font-weight: 400;
}
@media (max-width: 960px) { .hero-sub { margin: 0 auto 32px; } }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-ctas { justify-content: center; } }

.hero-stats {
  display: flex; gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--stroke);
}
.hero-stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
@media (max-width: 960px) { .hero-stats { justify-content: center; } }

/* Hero right-side: Saqr + floating flashcard */
.hero-stage {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 960px) { .hero-stage { height: 420px; } }

.hero-saqr {
  position: relative;
  width: min(420px, 100%);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)) drop-shadow(0 0 80px rgba(230,184,97,0.25));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.hero-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(230,184,97,0.22) 0%, rgba(230,184,97,0.08) 40%, transparent 70%);
  border-radius: 50%;
  animation: halo 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo { 0%,100%{transform:translate(-50%,-50%) scale(1); opacity:.8} 50%{transform:translate(-50%,-50%) scale(1.15); opacity:1} }

/* Floating flashcards orbiting Saqr */
.orbit-card {
  position: absolute;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
  z-index: 4;
  animation: orbit-float 6s ease-in-out infinite;
}
.orbit-card .ar {
  font-family: var(--f-arabic-hero);
  direction: rtl;
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.orbit-card .tr {
  font-family: var(--f-mono);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
.orbit-card .en {
  color: var(--cream-muted);
  font-size: 11px;
  margin-top: 2px;
  display: block;
}
.orbit-card.card-1 { top: 12%; left: -6%; animation-delay: 0s; transform: rotate(-6deg); }
.orbit-card.card-2 { top: 20%; right: -4%; animation-delay: -2s; transform: rotate(5deg); }
.orbit-card.card-3 { bottom: 18%; left: 2%; animation-delay: -4s; transform: rotate(-3deg); }
.orbit-card.card-4 { bottom: 8%; right: 4%; animation-delay: -3s; transform: rotate(7deg); }

@keyframes orbit-float {
  0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.orbit-card.card-1 { --r: -6deg; }
.orbit-card.card-2 { --r: 5deg; }
.orbit-card.card-3 { --r: -3deg; }
.orbit-card.card-4 { --r: 7deg; }

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
section { position: relative; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--cream);
  margin: 16px 0 12px;
}
.section-title .gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: 18px; color: var(--cream-muted);
  max-width: 640px; margin: 0 auto;
  line-height: 1.55;
}

/* =========================================================
   JOURNEY MAP
   ========================================================= */
.journey {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 140%; max-width: 1400px;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(230,184,97,0.07) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  z-index: 0;
}
@media (max-width: 820px) {
  .journey { padding: 36px 0 72px; }
}
.journey-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 820px) {
  .journey-head { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 32px; }
  .journey-hud { align-self: stretch; width: 100%; box-sizing: border-box; }
  .hud-bars { min-width: 0; }
}

.journey-head-left { flex: 1; max-width: 640px; }
.journey-hud {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.hud-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: radial-gradient(circle, var(--gold-2), var(--gold-deep));
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(230,184,97,0.4);
  position: relative;
}
.hud-avatar img {
  width: 86%; height: 86%;
  object-fit: contain;
  display: block;
  clip-path: circle(50%);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.hud-bars { flex: 1; min-width: 180px; }
.hud-bar-label { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.hud-bar-label span.gold { color: var(--gold); }
.hud-bar {
  height: 8px; background: rgba(0,0,0,0.3);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--stroke);
}
.hud-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
  border-radius: 999px;
  box-shadow: 0 0 10px var(--gold-glow);
  position: relative;
}
.hud-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

.hud-streak {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}
.hud-streak .flame { font-size: 18px; animation: flame 1.8s ease-in-out infinite; }
@keyframes flame { 0%,100%{transform:scale(1) rotate(0)} 50%{transform:scale(1.15) rotate(-5deg)} }
.hud-streak-num { font-family: var(--f-display); font-weight: 700; color: var(--coral); font-size: 16px; }

.map {
  position: relative;
  padding: 50px 0;
}
.map-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(230,184,97,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(77,191,142,0.04), transparent 40%);
  pointer-events: none;
}

.map-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .map-nodes { gap: 40px; }
}
.node {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  gap: 48px;
}
.node:nth-child(even) { direction: rtl; }
.node:nth-child(even) > * { direction: ltr; }

.node-info { text-align: right; }
.node:nth-child(even) .node-info { text-align: left; }
.node-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.node-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 8px;
  line-height: 1.1;
}
.node-desc { color: var(--cream-muted); font-size: 15px; line-height: 1.55; max-width: 360px; margin-left: auto; }
.node:nth-child(even) .node-desc { margin-left: 0; margin-right: auto; }

.node-stage {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.node-pin {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-3));
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    0 0 40px var(--gold-glow),
    0 20px 40px -10px rgba(0,0,0,0.6),
    0 0 0 6px rgba(11,25,23,1),
    0 0 0 8px rgba(230,184,97,0.2);
  transition: transform .3s var(--ease-bounce);
  cursor: pointer;
}
.node-pin:hover { transform: scale(1.08) rotate(-3deg); }
.node-pin img { width: 70%; height: 70%; object-fit: contain; }
.node-pin img[src*="burj-khalifa"] {
  max-height: 72%;
  max-width: 40%;
  width: auto;
  height: auto;
  object-position: center top;
  transform: translateY(-14%);
}
.node-pin img[src*="emirates-towers"] {
  transform: translateY(-10%);
}
.node-pin-num {
  position: absolute;
  top: -10px; left: -10px;
  width: 36px; height: 36px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #1A0F00;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.node-pin-xp {
  position: absolute;
  bottom: -6px; right: -8px;
  padding: 3px 9px;
  background: var(--coral);
  color: white;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  transform: rotate(6deg) scale(0);
  opacity: 0;
  transition:
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1) 220ms,
    opacity 260ms ease-out 220ms;
}
.node.reveal.in .node-pin-xp,
.node-finale.reveal.in .node-pin-xp {
  transform: rotate(6deg) scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .node-pin-xp {
    transition: none;
    transform: rotate(6deg) scale(1);
    opacity: 1;
  }
}
.node-caption {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-demo {
  /* The interactive/demo card on the opposite side of the node */
}
.node:nth-child(even) .node-demo { }

.demo-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
}
.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--stroke);
}
.demo-title {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--muted);
  text-transform: uppercase;
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: rgba(230,184,97,0.1);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
}

@media (max-width: 820px) {
  /* Stack journey nodes vertically: pin on top, title+desc centered, demo full-width */
  .node {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    direction: ltr !important;
  }
  .node > * { direction: ltr !important; min-width: 0; }

  .node-stage {
    order: 1;
    align-items: center;
    margin: 0 auto;
  }
  .node-pin {
    width: 104px; height: 104px;
    box-shadow:
      0 0 28px var(--gold-glow),
      0 16px 30px -10px rgba(0,0,0,0.5),
      0 0 0 5px rgba(11,25,23,1),
      0 0 0 7px rgba(230,184,97,0.2);
  }
  .node-pin img { width: 72%; height: 72%; }
  .node-pin-num { width: 30px; height: 30px; font-size: 12px; top: -9px; left: -9px; border-width: 2px; }
  .node-pin-xp { font-size: 10px; padding: 3px 8px; bottom: -4px; right: -8px; }
  .node-caption { margin-top: 10px; font-size: 10.5px; text-align: center; }

  .node-info {
    order: 2;
    text-align: center;
    padding: 0 4px;
  }
  .node-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 8px;
  }
  .node-eyebrow { margin-bottom: 4px; }
  .node-desc {
    margin: 0 auto;
    max-width: 420px;
    font-size: 14.5px;
    line-height: 1.55;
  }
  .node-demo { order: 3; width: 100%; }
  .demo-card {
    padding: 16px;
    border-radius: 18px;
    width: 100%;
  }
  .demo-header { margin-bottom: 12px; padding-bottom: 10px; gap: 8px; }
  .demo-title { font-size: 10.5px; letter-spacing: 0.12em; }
  .demo-badge { font-size: 9.5px; padding: 2px 8px; }

  /* Demo internals — prevent horizontal overflow */
  .chat-input-row { flex-wrap: wrap; gap: 8px; }
  .chat-input { flex: 1 1 160px; min-width: 0; font-size: 13.5px; padding: 9px 12px; }
  .chat-send { padding: 9px 14px; }
  .chat-bubble { max-width: 100%; word-break: break-word; }

  .streak-stats { gap: 8px; }
  .streak-stat { padding: 8px 6px; }
  .streak-stat-num { font-size: 17px; }
  .streak-stat-label { font-size: 9px; letter-spacing: 0.06em; }

  .lesson-demo .lesson-top { gap: 8px; }
  .lesson-word-ar { font-size: 26px !important; }
  .lesson-prompt { font-size: 13px; }
  .lesson-trans { font-size: 13px; }
  .lesson-en { font-size: 12px; }

  .pron-demo .pron-stage { padding: 16px 8px; }
  .pron-demo .pron-score { padding: 5px 12px; font-size: 12px; }
  .pron-demo .pron-mic { width: 54px; height: 54px; margin-top: 20px; }
  .pron-demo .pron-mic svg { width: 20px; height: 20px; }
  @keyframes mic-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(230,184,97,0.45), 0 6px 16px rgba(230,184,97,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(230,184,97,0), 0 6px 16px rgba(230,184,97,0.45); }
  }

  .shuf-demo .shuf-stage { padding: 14px 0; }
}

/* Lesson demo specifics */
.lesson-demo .lesson-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.lesson-progress {
  flex: 1;
  display: flex; gap: 3px;
  padding: 0 12px;
}
.lesson-seg {
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(250,245,232,0.08);
}
.lesson-seg.done { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.lesson-seg.current { background: var(--gold); animation: seg-pulse 1.4s ease-in-out infinite; }
@keyframes seg-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.lesson-body {
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
}
.lesson-hearts { color: var(--coral); font-size: 16px; }

.lesson-word-ar {
  font-family: var(--f-arabic); direction: rtl;
  font-size: 56px; font-weight: 700;
  color: var(--gold);
  line-height: 1; margin-bottom: 4px;
}
.lesson-trans {
  font-family: var(--f-mono);
  color: var(--green);
  font-size: 16px; font-weight: 500;
}
.lesson-en {
  color: var(--cream-muted);
  font-size: 13px; margin-top: 2px;
}
.lesson-play {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(230,184,97,0.1);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lesson-play:hover { background: rgba(230,184,97,0.18); }

.lesson-check-btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--green);
  color: #0A2418;
  border: none;
  font-family: inherit; font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--green-deep);
  transition: transform .15s;
}
.lesson-check-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--green-deep); }

/* Ramsa chat */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.chat-user {
  background: rgba(230,184,97,0.1);
  color: var(--cream);
  border: 1px solid var(--stroke-strong);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-ai {
  background: linear-gradient(180deg, var(--bg-3), var(--surface));
  color: var(--cream);
  border: 1px solid var(--stroke);
  border-bottom-left-radius: 4px;
}
.chat-ai .ar { font-family: var(--f-arabic); direction: rtl; color: var(--gold); font-size: 22px; font-weight: 700; display: block; margin-bottom: 3px; }
.chat-ai .tr { font-family: var(--f-mono); color: var(--green); font-size: 12px; }

.chat-input-row {
  display: flex; gap: 8px;
  margin-top: 14px;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.chat-input:focus { border-color: var(--gold); }
.chat-input[readonly] { cursor: default; caret-color: transparent; user-select: none; }
.chat-input[readonly]:focus { border-color: var(--stroke); }
.chat-send {
  padding: 10px 18px;
  background: var(--gold);
  color: #1A0F00;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform .15s;
  font-family: inherit;
  font-size: 14px;
}
.chat-send:active { transform: translateY(3px); box-shadow: 0 0 0 var(--gold-deep); }

/* Shuf camera */
.shuf-demo .shuf-stage {
  aspect-ratio: 1 / 1.15;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4), rgba(0,0,0,0.6)), linear-gradient(180deg, #1a3028, #0c1a17);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
.shuf-corners { position: absolute; inset: 18px; pointer-events: none; }
.shuf-corner {
  position: absolute; width: 24px; height: 24px;
  border: 2px solid var(--gold);
}
.shuf-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.shuf-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.shuf-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.shuf-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.shuf-subject {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  width: 70%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.shuf-scanline {
  position: absolute;
  left: 8%; right: 8%; top: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 20px var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
@keyframes scan { 0%,100%{top:20%} 50%{top:70%} }

/* Scanline only runs while actively scanning */
.shuf-demo.scanning .shuf-scanline {
  opacity: 1;
  animation: scan 1.8s ease-in-out infinite;
}

.shuf-status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
  transition: color 280ms ease;
}
.shuf-demo.scanning .shuf-status { color: var(--green); }
.shuf-demo.scanned .shuf-status { color: var(--gold); }
.shuf-demo.can-rescan .shuf-status { color: var(--cream-muted); }

.shuf-label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(11,25,23,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
/* Stack Arabic + transliteration, each centered in its own column.
   The .tr row is a 3-column grid (1fr / auto / 1fr) so the middle "·"
   lands exactly at horizontal center, which sits under the Arabic word's
   visual center. */
.shuf-label-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.shuf-label-left .ar {
  font-family: var(--f-arabic); direction: rtl;
  color: var(--gold); font-size: 22px; font-weight: 700;
  line-height: 1;
}
.shuf-label-left .tr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  margin-top: 4px;
  font-family: var(--f-mono);
  color: var(--green);
  font-size: 12px;
  line-height: 1;
}
.shuf-label-left .tr-word { justify-self: end; }
.shuf-label-left .tr-dot { justify-self: center; opacity: 0.85; }
.shuf-label-left .tr-gloss { justify-self: start; }
.shuf-label-right {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: rgba(230,184,97,0.14);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
}

.shuf-actions { display: flex; justify-content: center; margin-top: 14px; }
.shuf-shutter {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg-3);
  cursor: pointer;
  position: relative;
  transition: transform .2s;
}
.shuf-shutter::before {
  content: ""; position: absolute; inset: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold-glow);
}
.shuf-shutter:hover { transform: scale(1.05); }
.shuf-shutter:active { transform: scale(0.95); }

/* Alphabet tracing */
.trace-demo .trace-letter-pad {
  aspect-ratio: 1;
  background:
    linear-gradient(rgba(230,184,97,0.06) 1px, transparent 1px) 0 0 / 25% 25%,
    linear-gradient(90deg, rgba(230,184,97,0.06) 1px, transparent 1px) 0 0 / 25% 25%,
    rgba(0,0,0,0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
}
.trace-letter {
  font-family: var(--f-arabic); direction: rtl;
  font-size: 220px;
  color: rgba(230,184,97,0.2);
  line-height: 1;
  pointer-events: none;
}
.trace-letter-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.trace-info { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.trace-name { font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: 18px; }
.trace-clear {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.trace-clear:hover { color: var(--cream); border-color: var(--stroke-strong); }
.trace-check {
  padding: 8px 16px;
  background: var(--gold);
  color: #1A0F00;
  border: 0;
  border-radius: 10px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.trace-check:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.trace-check:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--gold-deep); }
.trace-check.is-shaking { animation: lesson-shake 0.4s var(--ease-smooth); }

/* Pronunciation mic */
.pron-demo .pron-stage {
  aspect-ratio: 1.1;
  background: radial-gradient(ellipse at center top, rgba(230,184,97,0.1), rgba(0,0,0,0.3));
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
}
.pron-word-ar { font-family: var(--f-arabic); direction: rtl; color: var(--gold); font-size: 44px; font-weight: 700; line-height: 1; }
.pron-tr { font-family: var(--f-mono); color: var(--green); font-size: 15px; margin-top: 6px; }
.pron-en { color: var(--cream-muted); font-size: 13px; margin-top: 2px; }

.wave {
  display: flex; align-items: center; gap: 3px;
  height: 50px;
}
.wave span {
  display: block;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--green));
  border-radius: 999px;
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: center;
}
.wave span:nth-child(1) { --h: 20%; animation-delay: -0.2s; }
.wave span:nth-child(2) { --h: 60%; animation-delay: -0.4s; }
.wave span:nth-child(3) { --h: 90%; animation-delay: -0.1s; }
.wave span:nth-child(4) { --h: 70%; animation-delay: -0.3s; }
.wave span:nth-child(5) { --h: 100%; animation-delay: 0s; }
.wave span:nth-child(6) { --h: 80%; animation-delay: -0.5s; }
.wave span:nth-child(7) { --h: 50%; animation-delay: -0.2s; }
.wave span:nth-child(8) { --h: 70%; animation-delay: -0.4s; }
.wave span:nth-child(9) { --h: 40%; animation-delay: -0.1s; }
.wave span:nth-child(10) { --h: 90%; animation-delay: -0.3s; }
.wave span:nth-child(11) { --h: 60%; animation-delay: 0s; }
.wave span:nth-child(12) { --h: 30%; animation-delay: -0.2s; }

@keyframes wave {
  0%,100% { height: 10%; }
  50% { height: var(--h, 80%); }
}

.pron-mic {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 0 0 var(--gold-glow), 0 8px 20px rgba(230,184,97,0.4);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  animation: mic-pulse 2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(230,184,97,0.5), 0 8px 20px rgba(230,184,97,0.3); }
  50% { box-shadow: 0 0 0 18px rgba(230,184,97,0), 0 8px 20px rgba(230,184,97,0.5); }
}

.pron-score {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(77,191,142,0.12);
  border: 1px solid rgba(77,191,142,0.3);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 13px;
}

/* Streak calendar */
.streak-demo .streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.streak-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(250,245,232,0.04);
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  position: relative;
}
.streak-cell.done {
  background: linear-gradient(180deg, rgba(232,97,74,0.25), rgba(232,97,74,0.1));
  border-color: rgba(232,97,74,0.4);
  color: var(--coral);
}
.streak-cell.done::before { content: "🔥"; font-size: 18px; position: absolute; }
.streak-cell.today {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  border-color: var(--gold);
  color: #1A0F00;
  font-weight: 700;
  box-shadow: 0 0 20px var(--gold-glow);
}
.streak-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.streak-stat {
  padding: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  text-align: center;
}
.streak-stat-num { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--gold); }
.streak-stat-label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* =========================================================
   PROOF SECTION
   ========================================================= */
.proof {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(230,184,97,0.03), transparent);
  position: relative;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-card {
  position: relative;
  padding: 28px 22px 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .3s var(--ease-bounce), border-color .2s;
}
.proof-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); }
.proof-card::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.proof-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.proof-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 8px 0 10px;
}
.proof-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-muted);
  margin-bottom: 18px;
}
.proof-visual { margin-top: auto; min-height: 100px; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.proof-compare {
  display: flex; gap: 8px; width: 100%;
}
.proof-old, .proof-new { flex: 1; text-align: center; padding: 10px; border-radius: 10px; }
.proof-old { background: rgba(250,245,232,0.03); border: 1px solid var(--stroke); opacity: 0.6; }
.proof-old .ar { font-family: var(--f-arabic); direction: rtl; font-size: 17px; text-decoration: line-through; color: var(--secondary); }
.proof-old .lbl { font-family: var(--f-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.proof-new { background: rgba(230,184,97,0.08); border: 1px solid var(--stroke-strong); }
.proof-new .lbl { font-family: var(--f-mono); font-size: 9px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.proof-new .ar { font-family: var(--f-arabic); direction: rtl; font-size: 17px; color: var(--gold); font-weight: 700; }
.proof-new .tr { font-family: var(--f-mono); font-size: 11px; color: var(--green); margin-top: 3px; }

.proof-bubble {
  padding: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  text-align: center;
}
.proof-bubble .ar { font-family: var(--f-arabic); direction: rtl; color: var(--gold); font-size: 22px; font-weight: 700; display: block; }
.proof-bubble .tr { font-family: var(--f-mono); color: var(--green); font-size: 12px; margin-top: 2px; }
.proof-bubble .en { color: var(--cream-muted); font-size: 11px; margin-top: 3px; }

.proof-landmarks {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 20px 28px;
  width: 100%;
  justify-content: center;
  align-items: end;
  justify-items: center;
}
.proof-landmarks img { width: 88px; height: 88px; object-fit: contain; opacity: 0.92; }
@media (max-width: 600px) {
  .proof-landmarks { gap: 18px 24px; }
  .proof-landmarks img { width: 96px; height: 96px; }
}

.proof-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.proof-badge {
  padding: 5px 10px;
  background: rgba(230,184,97,0.08);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gold);
}

/* =========================================================
   GOLD TIER
   ========================================================= */
.gold-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(230,184,97,0.08), transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.gold-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 30px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 820px) { .gold-grid { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: 20px;
}
.tier:not(.tier-gold) .tier-name { font-size: 26px; }
.tier:not(.tier-gold) .tier-price { font-size: 34px; margin-top: 10px; }
.tier:not(.tier-gold) .tier-list { margin-top: 18px; }
.tier:not(.tier-gold) .tier-list li { padding: 6px 0; font-size: 13.5px; }
.tier-text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.tier-text-link:hover { color: var(--cream); }
.tier.tier-gold {
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  border-color: var(--gold-deep);
  color: #1A0F00;
  box-shadow:
    0 36px 72px -24px rgba(230,184,97,0.55),
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -2px 0 rgba(0,0,0,0.12) inset;
}
.tier-gold .tier-label {
  color: var(--gold);
  background: #1A0F00;
  border-color: transparent;
  font-weight: 700;
}
.tier-gold .tier-name {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #1A0F00;
}
.tier-gold .tier-price { color: #1A0F00; }
.tier-gold .tier-price-unit { color: rgba(26,15,0,0.65); }
.tier-gold .tier-list li { color: rgba(26,15,0,0.85); border-bottom-color: rgba(26,15,0,0.16); }
.tier-gold .tier-list svg { color: #1A0F00; }
.tier-gold .tier-cta {
  background: #1A0F00;
  color: var(--gold);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.tier-gold .tier-cta:hover { background: #2a1e0a; box-shadow: 0 14px 32px -10px rgba(0,0,0,0.7); transform: translateY(-1px); }

/* Basic tier excluded-feature rows */
.tier-list li.tier-off { color: var(--muted); font-style: italic; opacity: 0.75; }
.tier:not(.tier-gold) .tier-list li.tier-off svg { color: var(--coral); opacity: 0.9; }
.tier-label {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  background: rgba(250,245,232,0.04);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}
.tier-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 16px 0 4px;
}
.tier-price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 14px;
}
.tier-price-unit { font-family: var(--f-body); font-size: 14px; color: var(--muted); font-weight: 500; }
.tier-list { list-style: none; margin: 24px 0 0; padding: 0; }
.tier-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  color: var(--cream-muted);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--stroke);
}
.tier-list li:last-child { border-bottom: none; }
.tier-list svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.tier:not(.tier-gold) .tier-list svg { color: var(--green); }
.tier-cta { margin-top: 20px; width: 100%; justify-content: center; }

/* =========================================================
   INSTAGRAM MARQUEE
   ========================================================= */
.ig-section { padding: 80px 0 100px; }
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-row {
  display: flex; gap: 18px;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: block;
  width: 220px; aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--stroke);
  flex-shrink: 0;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
}
.marquee-item:hover,
.marquee-item:focus-visible {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(230, 184, 97, 0.18);
  outline: none;
}
.marquee-item img, .marquee-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding: 80px 0; }
.faq {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--stroke-strong); }
.faq-item[open] { border-color: var(--stroke-strong); background: var(--surface-2); }
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 56px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(230,184,97,0.1);
  color: var(--gold);
  font-size: 16px; font-weight: 400;
  display: grid; place-items: center;
  transition: transform .25s, background .2s;
}
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); color: #1A0F00; }
.faq-a {
  padding: 0 22px 20px;
  color: var(--cream-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.final-cta-inner {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--stroke-strong);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.final-saqr {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
  margin: 0 auto 20px;
  display: block;
  animation: float 4s ease-in-out infinite;
}
.waitlist {
  display: flex; gap: 8px;
  max-width: 460px;
  margin: 28px auto 0;
}
.waitlist-email {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist-email:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230,184,97,0.1); }
.waitlist-email::placeholder { color: var(--muted); }
@media (max-width: 520px) { .waitlist { flex-direction: column; } }

.waitlist-msg {
  margin-top: 12px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--green);
  opacity: 0;
  transition: opacity .3s;
}
.waitlist-msg.show { opacity: 1; }

.final-socials { margin-top: 24px; color: var(--cream-muted); font-size: 14px; }
.final-socials a { color: var(--gold); text-decoration: none; font-weight: 600; }
.final-socials a:hover { color: var(--gold-2); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--stroke);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* =========================================================
   XP BURST (for canvas pops & clicks)
   ========================================================= */
.xp-pop {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  animation: xp-pop 1s var(--ease-smooth) forwards;
}
@keyframes xp-pop {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  20% { opacity: 1; transform: translateY(-20px) scale(1.1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

/* Reveal animation baseline */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth); }
.reveal.in { opacity: 1; transform: none; }

/* Gate / section divider */
.divider-ornate {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 40px 0;
  color: var(--gold);
  opacity: 0.6;
}
@media (max-width: 820px) {
  .divider-ornate { padding: 20px 0; }
}
.divider-ornate .diamond {
  width: 8px; height: 8px; background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}
.divider-ornate .line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 300;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("images/noise.png");
  background-size: 180px;
}

/* =========================================================
   PHASE 4: Broken-interaction fixes
   ========================================================= */

/* Lesson: tappable word + shake feedback + prompt styling */
.lesson-prompt {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
button.lesson-word-ar.lesson-choice {
  background: transparent;
  border: 2px solid transparent;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  font-family: var(--f-arabic); direction: rtl;
  font-size: 56px; font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
button.lesson-word-ar.lesson-choice:hover {
  background: rgba(230,184,97,0.06);
  border-color: var(--stroke-strong);
}
button.lesson-word-ar.lesson-choice.selected {
  background: rgba(230,184,97,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(230,184,97,0.12);
}
@keyframes lesson-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.lesson-choice.shake { animation: lesson-shake .4s var(--ease-smooth); }

.lesson-prompt.success {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
  animation: lesson-success-pop .42s var(--ease-smooth);
}
@keyframes lesson-success-pop {
  0% { opacity: 0; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Shuf label: hidden by default, reveal on shutter tap */
.shuf-label {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease-smooth), transform .45s var(--ease-smooth);
  pointer-events: none;
}
.shuf-label.revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Pronunciation: placeholder when empty */
.pron-score:empty {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
}
.pron-score:empty::before {
  content: attr(data-placeholder);
}
.pron-score {
  transition: transform .3s var(--ease-bounce), background .3s, border-color .3s, color .3s;
}

/* Alphabet tracing: feedback chip (good / close / off) */
.trace-chip {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  background: var(--gold);
  color: #1A0F00;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 8px 20px var(--gold-glow);
  animation: trace-chip-in .35s var(--ease-bounce), trace-chip-out .4s ease-in 1.4s forwards;
  pointer-events: none;
}
.trace-chip-close {
  background: rgba(230,184,97,0.14);
  color: var(--gold);
  border: 1px solid rgba(230,184,97,0.4);
  box-shadow: none;
}
.trace-chip-off {
  background: rgba(232,97,74,0.14);
  color: var(--coral);
  border: 1px solid rgba(232,97,74,0.4);
  box-shadow: none;
}
@keyframes trace-chip-in {
  0% { opacity: 0; transform: translateY(-10px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trace-chip-out {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* =========================================================
   PHASE 5: Saqr in proof card 04
   ========================================================= */
.proof-card .proof-visual > img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
}

/* =========================================================
   PHASE 6: Waitlist msg states
   ========================================================= */
.waitlist-msg.error { color: var(--coral); }
.waitlist-msg.success { color: var(--green); }

/* =========================================================
   PHASE 8: Mobile hamburger + slide-down menu
   ========================================================= */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(230,184,97,0.08);
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(230,184,97,0.14); }
.nav-burger span {
  display: block;
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s var(--ease-smooth), opacity .2s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--stroke-strong);
  padding: 90px 24px 32px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-smooth);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-link {
  display: block;
  padding: 14px 16px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.mobile-menu-link:hover { background: rgba(250,245,232,0.04); }
.mobile-menu-link.gold { color: var(--gold); }
.mobile-menu-cta { margin-top: 16px; justify-content: center; }

body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav .nav-cta { display: none; }
}
@media (min-width: 821px) {
  .mobile-menu { display: none; }
}

/* =========================================================
   PHASE 7: Reduced motion baseline
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-stars, .hero-aura, .hero-dunes { animation: none !important; }
  .shuf-scanline { animation: none !important; }
  .pron-mic { animation: none !important; }
  .wiggle { animation: none !important; }
}

/* =========================================================
   PHASE 8: Stop 7 — Saqr finale pin + demo card
   ========================================================= */
/* Give node 7 the same visual distance from node 6 as the rest of the map.
   Node 6 ends with a tall streak demo which visually collapses the gap;
   this restores parity with the 4→5 and 5→6 rhythm. */
.node-finale { margin-top: 96px; }
@media (max-width: 820px) {
  .node-finale { margin-top: 32px; }
}

.node-pin-finale {
  border-color: var(--gold-2);
  box-shadow:
    0 0 60px rgba(230, 184, 97, 0.5),
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 0 6px rgba(11, 25, 23, 1),
    0 0 0 9px rgba(230, 184, 97, 0.35);
}
.node-pin-finale .node-pin-xp {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #1A0F00;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}
.node-pin-finale img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-2px);
}

.finale-demo {
  min-height: 200px;
}
.finale-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(ellipse 80% 100% at 20% 50%, rgba(230,184,97,0.14) 0%, transparent 70%),
    rgba(230, 184, 97, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  margin-top: 8px;
}
.finale-seal {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold-deep));
  display: grid; place-items: center;
  box-shadow:
    0 0 30px rgba(230, 184, 97, 0.35),
    inset 0 -4px 8px rgba(0, 0, 0, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.18);
  color: #1A0F00;
}
.finale-seal svg { display: block; }
.finale-copy { min-width: 0; flex: 1; }
.finale-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.finale-title .ar {
  font-family: var(--f-arabic-hero);
  font-size: 22px;
  color: var(--gold);
  margin-right: 4px;
}
.finale-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   PHASE 9: Legal pages (privacy / terms)
   ========================================================= */
/* Legal pages are read-through content — no staggered reveal */
.legal-page .reveal,
.legal-page .reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}

.legal-page {
  padding: 132px 0 80px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(230,184,97,0.06) 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
}
.legal-container { position: relative; }

.legal-header { margin-bottom: 44px; }
.legal-header .eyebrow { margin-bottom: 14px; }
.legal-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.legal-meta {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
}

.legal-intro {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.legal-intro::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
}
.legal-intro p {
  color: var(--cream-muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 12px;
}
.legal-intro p:last-child { margin-bottom: 0; }

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.legal-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.legal-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(230, 184, 97, 0.12);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.legal-section-icon svg { width: 20px; height: 20px; }
.legal-section-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.legal-section-body {
  padding-left: 54px;
  color: var(--cream-muted);
  line-height: 1.7;
  font-size: 15px;
}
.legal-section-body > p { margin: 0 0 14px; }
.legal-section-body strong { color: var(--cream); font-weight: 600; }
.legal-section-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 184, 97, 0.3);
  transition: border-color 0.15s ease;
}
.legal-section-body a:hover { border-bottom-color: var(--gold); }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.legal-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--cream-muted);
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.legal-contact {
  margin-top: 20px;
  padding: 24px 28px;
  background: rgba(230, 184, 97, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 24px;
  align-items: center;
}
.legal-contact-col { min-width: 0; }
.legal-contact-divider { background: var(--stroke); height: 48px; width: 1px; }
.legal-contact-email {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--gold);
  font-size: 15px;
  margin: 0 0 4px;
  word-break: break-word;
}
.legal-contact-email a { color: var(--gold); text-decoration: none; }
.legal-contact-email a:hover { text-decoration: underline; }
.legal-contact-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.legal-footer-ack {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 0;
  margin-top: 60px;
}
.site-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--cream);
  font-size: 18px;
  text-decoration: none;
}
.site-footer-brand .ar {
  font-family: var(--f-arabic-hero);
  color: var(--gold);
}
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-footer-links a {
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-links a:hover { color: var(--cream); }
.site-footer-links a.current { color: var(--gold); }
.site-footer-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(230, 184, 97, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-page { padding: 100px 0 60px; }
  .legal-header { margin-bottom: 32px; }
  .legal-intro { padding: 20px; margin-bottom: 36px; }
  .legal-sections { gap: 36px; }
  .legal-section-head { gap: 12px; margin-bottom: 12px; }
  .legal-section-icon { width: 36px; height: 36px; border-radius: 10px; }
  .legal-section-icon svg { width: 18px; height: 18px; }
  .legal-section-title { font-size: 19px; }
  .legal-section-body {
    padding-left: 0;
    font-size: 14.5px;
  }
  .legal-contact {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .legal-contact-divider { display: none; }
  .site-footer-row { justify-content: center; text-align: center; }
  .site-footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  .site-footer-meta { justify-content: center; text-align: center; }
  .finale-card {
    padding: 18px;
    gap: 14px;
  }
  .finale-seal { width: 60px; height: 60px; }
  .finale-seal svg { width: 32px; height: 32px; }
  .finale-title { font-size: 17px; }
}

/* =========================================================
   PHASE 10: Scroll-gold — the word fills in gold left→right as the user
   scrolls it toward the viewport center. Unfills as it moves away.
   Driven by --gild-x (0–100%) set per-element by a rAF loop in script.js.
   ========================================================= */
.scroll-gold,
.section-title .scroll-gold,
.hero-title .scroll-gold,
.node-title .scroll-gold,
.node-eyebrow.scroll-gold {
  --gild-x: 0%;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold) calc(var(--gild-x) - 3%),
    #8C8577 calc(var(--gild-x) + 3%),
    #8C8577 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  transition: text-shadow 400ms ease-out;
}
/* Subtle gold glow once mostly filled */
.scroll-gold.is-gilded {
  text-shadow: 0 0 24px rgba(230, 184, 97, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-gold { --gild-x: 100%; transition: none; }
}

/* ============================================================
   PHASE 11 — Billing toggle (Monthly / Yearly)
============================================================ */
.billing-toggle-wrap { display: flex; justify-content: center; margin: 0 0 32px; }
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(15, 31, 29, 0.22);
  border: 1px solid rgba(230, 184, 97, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.billing-btn {
  position: relative;
  padding: 10px 22px;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 236, 0.55);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease;
}
.billing-btn.active {
  background: var(--gold);
  color: #1A0F00;
  box-shadow: 0 4px 14px rgba(230, 184, 97, 0.28);
}
.billing-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.billing-save {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: var(--green);
  color: #F4F1EC;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-transform: uppercase;
}
.billing-btn.active .billing-save { background: #1A0F00; color: var(--gold); }

.tier-price-strike {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.55em;
  color: rgba(26, 15, 0, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 600;
  vertical-align: middle;
}
