/* ==========================================================
   TASHKEELA - Stadium Editorial
   ========================================================== */
:root {
  --bg:        #060e07;
  --bg-deep:   #03070400;
  --s1:        #0b1a0d;
  --s2:        #0e2412;
  --gold:      #f5c542;
  --gold2:     #d4a017;
  --gold3:     #fde68a;
  --green:     #2ecc4b;
  --green-deep:#1a8a32;
  --muted:     #6b8f71;
  --muted-2:   #8ea893;
  --text:      #dde8df;
  --text-hi:   #f4f8f4;
  --border:    rgba(245,197,66,.14);
  --border-2:  rgba(245,197,66,.06);
  --line:      rgba(255,255,255,.06);

  --fz-display: clamp(3.2rem, 7vw, 7rem);
  --fz-h2:      clamp(2.4rem, 4.6vw, 4.6rem);
  --fz-h3:      clamp(1.6rem, 2.4vw, 2.4rem);
  --fz-eyebrow: .68rem;
  --fz-body:    1rem;
  --fz-small:   .82rem;

  --pad-x: clamp(20px, 4.5vw, 64px);
  --max-w: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Barlow', 'Noto Kufi Arabic', sans-serif; font-weight: 300;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* lang - use !important so component display values (inline-flex etc) don't win */
.ar, .ari            { display: none !important; }
html[lang="ar"] .en  { display: none !important; }
html[lang="ar"] .eni { display: none !important; }
html[lang="ar"] .ar, html[lang="ar"] .ari { display: revert !important; }
html[lang="ar"] body { font-family: 'Noto Kufi Arabic', sans-serif; }

/* ── Background - subtle stadium pattern ── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('./assets/bg_pattern.webp') repeat center center / 480px auto;
  opacity: .12;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(46,204,75,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(245,197,66,.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,14,7,.4) 0%, rgba(6,14,7,.7) 100%);
}

/* ── Type primitives ── */
.display, .h2, .h3 {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  letter-spacing: .02em;
  line-height: .92;
}
.display { font-size: var(--fz-display); }
.h2      { font-size: var(--fz-h2); }
.h3      { font-size: var(--fz-h3); }

html[lang="ar"] .display,
html[lang="ar"] .h2,
html[lang="ar"] .h3 {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}
html[lang="ar"] .display { font-size: clamp(2.2rem, 5vw, 5rem); }
html[lang="ar"] .h2      { font-size: clamp(1.8rem, 3.6vw, 3.6rem); }

.gold-grad {
  background: linear-gradient(160deg, var(--gold3) 0%, var(--gold) 45%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 3px 24px rgba(245,197,66,.18));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: var(--fz-eyebrow); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--green);
}
html[lang="ar"] .eyebrow { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: .78rem; }
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
  display: inline-block;
}

.section-num {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(8rem, 16vw, 18rem);
  line-height: 1;
  color: rgba(245,197,66,.045);
  letter-spacing: .02em;
  position: absolute;
  pointer-events: none; user-select: none;
}

/* ── Layout helpers ── */
section { position: relative; z-index: 2; }
.wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}
.section { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }

/* divider - pitch line motif */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.18), transparent);
  margin: 0 auto;
  max-width: var(--max-w);
}

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(245,197,66,.22);
  color: var(--gold);
  background: rgba(245,197,66,.04);
  transition: all .25s ease;
}
.chip.green { color: var(--green); border-color: rgba(46,204,75,.28); background: rgba(46,204,75,.05); }
.chip.muted { color: var(--muted); border-color: var(--line); background: transparent; }
html[lang="ar"] .chip { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: .74rem; }

/* button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 100px;
  border: 1px solid var(--gold);
  color: #060e07; background: var(--gold);
  cursor: pointer; transition: transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 8px 28px rgba(245,197,66,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245,197,66,.28); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(245,197,66,.08); }
html[lang="ar"] .btn { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  background: linear-gradient(to bottom, rgba(6,14,7,.92) 0%, rgba(6,14,7,.7) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.n-logo { display: flex; align-items: center; gap: 12px; }
.n-logo-badge {
  height: 34px; width: auto;
  filter: drop-shadow(0 0 10px rgba(245,197,66,.45));
}
.n-logo-text {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .14em;
  background: linear-gradient(135deg, var(--gold3), var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html[lang="ar"] .n-logo-text {
  font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900;
  font-size: 1.25rem; letter-spacing: 0;
}
.n-mid {
  display: flex; align-items: center; gap: 28px;
}
.n-link {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
  transition: color .2s;
  cursor: pointer;
}
.n-link:hover { color: var(--text-hi); }
html[lang="ar"] .n-link { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: .85rem; }

.n-r { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; border: 1px solid var(--border);
  border-radius: 100px; overflow: hidden;
  background: rgba(255,255,255,.025);
}
.lb {
  padding: 6px 14px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  color: var(--muted); transition: all .25s;
}
.lb.on { background: var(--gold); color: #000; }

.n-cta {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #060e07; background: var(--gold);
  padding: 8px 16px; border-radius: 100px;
  transition: transform .15s ease;
}
.n-cta:hover { transform: translateY(-1px); }

/* ── HERO (scroll-storytelling refined) ── */
.track { height: 500vh; position: relative; z-index: 2; }
.sticky-wrap {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid;
  grid-template-columns: 46% 1fr;
  overflow: hidden;
}
.phone-side {
  display: flex; align-items: center; justify-content: center;
  padding: 90px 24px 48px var(--pad-x);
  position: relative;
}
.phone-side::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 55%, rgba(46,204,75,.12) 0%, transparent 65%);
  pointer-events: none; animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

/* pitch lines decoration on the phone side */
.phone-side::after {
  content: ''; position: absolute;
  inset: 14% 8% 14% 8%;
  border: 1px solid rgba(245,197,66,.06);
  border-radius: 4px;
  pointer-events: none;
}
.pitch-circle {
  position: absolute; left: 50%; top: 50%;
  width: 220px; height: 220px;
  border: 1px solid rgba(245,197,66,.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pitch-circle::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,75,.04), transparent 70%);
}

.phone-wrap { position: relative; }
.phone-glow {
  position: absolute; inset: -56px; border-radius: 96px;
  pointer-events: none; filter: blur(36px);
  transition: background 1.2s ease;
  background: radial-gradient(ellipse, rgba(46,204,75,.32) 0%, transparent 70%);
}
.phone-shell {
  position: relative; z-index: 2;
  width: 290px; height: 622px;
  background: #050c06; border-radius: 50px;
  border: 8px solid #192b1b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 60px 120px rgba(0,0,0,.85),
    0 30px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.phone-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 28px; background: #000; border-radius: 20px; z-index: 10;
}
.phone-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 42px; }
.phone-frames {
  display: flex; flex-direction: column; width: 100%;
  transition: transform .9s cubic-bezier(.16,1,.3,1); will-change: transform;
}
.pframe {
  width: 100%; flex-shrink: 0; height: 622px;
  background-size: cover; background-position: top center;
}
.pf1 > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pf2 { background-image: url('./assets/screen_packs.webp'); }
.pf3 { background-image: url('./assets/screen_quiz.webp'); }
.pf4 { background-image: url('./assets/screen_trivia.webp'); }

.mascot {
  position: absolute; right: -12px; bottom: -10px;
  height: clamp(180px, 26vh, 340px); width: auto; pointer-events: none;
  filter: drop-shadow(0 8px 30px rgba(46,204,75,.18));
  animation: float 8s ease-in-out infinite;
  z-index: 3;
}
html[dir="rtl"] .mascot { right: auto; left: -12px; transform: scaleX(-1); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
html[dir="rtl"] @keyframes float { 0%,100% { transform: translateY(0) scaleX(-1); } 50% { transform: translateY(-12px) scaleX(-1); } }

.content-side {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 90px var(--pad-x) 48px 40px;
  position: relative;
}
.step {
  position: absolute;
  left: 40px; right: var(--pad-x);
  top: 50%; transform: translateY(-50%) translateX(30px);
  opacity: 0; transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
html[dir="rtl"] .step { left: var(--pad-x); right: 40px; transform: translateY(-50%) translateX(-30px); }
.step.active { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }

.step-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.step-tag::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
}
html[lang="ar"] .step-tag { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: .78rem; }

.step-num {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 6.5rem; line-height: 1;
  color: rgba(245,197,66,.07);
  margin-bottom: -32px; letter-spacing: .03em;
}

.step-title {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: .9; letter-spacing: .02em;
  background: linear-gradient(150deg, var(--gold3) 0%, var(--gold) 50%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 22px;
  filter: drop-shadow(0 3px 20px rgba(245,197,66,.18));
}
html[lang="ar"] .step-title {
  font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 4rem); letter-spacing: 0; line-height: 1.1;
}

.step-body {
  font-size: 1.04rem; line-height: 1.8; color: var(--muted-2);
  max-width: 380px; margin-bottom: 30px;
  text-wrap: pretty;
}
html[lang="ar"] .step-body { line-height: 2.1; font-size: .96rem; }

.store-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.store-badge-wrap {
  display: inline-block; border-radius: 12px; overflow: hidden;
  transition: transform .2s ease;
}
.store-badge-wrap:hover { transform: translateY(-2px); }
.store-badge-img { display: block; height: 52px; width: auto; border-radius: 12px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 36px; left: 40px;
  display: flex; align-items: center; gap: 10px; opacity: .5;
  transition: opacity .4s;
}
html[dir="rtl"] .scroll-cue { left: auto; right: 40px; }
.sc-line {
  width: 44px; height: 1px;
  background: linear-gradient(to right, rgba(245,197,66,.8), transparent);
  animation: scPulse 2.5s ease-in-out infinite;
}
html[dir="rtl"] .sc-line { background: linear-gradient(to left, rgba(245,197,66,.8), transparent); }
@keyframes scPulse { 0%,100% { transform: scaleX(1); opacity: .4; } 50% { transform: scaleX(.6); opacity: .9; } }
.sc-lbl { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif; font-weight: 600; }

.prog-dots {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 20;
}
html[dir="rtl"] .prog-dots { right: auto; left: 22px; }
.pd {
  width: 5px; height: 5px; border-radius: 4px;
  background: rgba(255,255,255,.13); cursor: pointer; transition: all .4s ease;
}
.pd.on { background: var(--gold); height: 24px; box-shadow: 0 0 10px rgba(245,197,66,.5); }

/* ── DEMO SECTION (interactive) ── */
.demo {
  position: relative;
  padding-top: clamp(100px, 14vh, 180px);
  padding-bottom: clamp(100px, 14vh, 180px);
}
.demo-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap; gap: 20px;
}
.demo-head .lhs { max-width: 720px; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.pitch-card {
  position: relative;
  background:
    radial-gradient(ellipse at center, #0e2814 0%, #061508 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.pitch-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 36px, rgba(255,255,255,.018) 36px 72px);
  pointer-events: none;
}

.pitch-hud {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
  position: relative; z-index: 2;
}
.pitch-hud-l { display: flex; align-items: center; gap: 14px; }
.pitch-pill {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(245,197,66,.05);
}
.pitch-timer {
  color: var(--green); font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

/* The actual SVG-style pitch */
.pitch-stage {
  position: relative;
  aspect-ratio: 5 / 7;
  max-height: 620px;
  margin: 0 auto;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0) 0 8%,
      rgba(255,255,255,.03) 8% 16%);
}
.pitch-stage::before {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 36%; aspect-ratio: 1;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-stage::after {
  content: ''; position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1.5px solid rgba(255,255,255,.18);
}
/* penalty boxes */
.box-top, .box-bot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 56%; height: 18%;
  border: 1.5px solid rgba(255,255,255,.18);
}
.box-top { top: 0; border-top: none; }
.box-bot { bottom: 0; border-bottom: none; }
.box-top-s, .box-bot-s {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 28%; height: 8%;
  border: 1.5px solid rgba(255,255,255,.18);
}
.box-top-s { top: 0; border-top: none; }
.box-bot-s { bottom: 0; border-bottom: none; }

/* crests positioned via inline style - flag-filled token, name reveal under */
.crest {
  position: absolute; transform: translate(-50%, -50%);
  width: 11%; aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  overflow: visible;
  user-select: none;
  animation: crestIn .5s cubic-bezier(.2,.9,.3,1.4) backwards;
  border: 2px solid rgba(245,197,66,.6);
  box-shadow:
    0 6px 20px rgba(0,0,0,.6),
    0 0 18px rgba(245,197,66,.18);
}
.crest .crest-flag {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.crest .crest-flag-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-weight: 800; font-size: .85rem; color: #111;
  background: #fff;
}
/* glass crescent highlight, mirroring the mobile PlayerDot lens */
.crest::after {
  content: ''; position: absolute;
  top: 8%; left: 18%; right: 18%;
  height: 22%;
  border-radius: 50%/35%;
  background: rgba(255,255,255,.45);
  pointer-events: none;
  z-index: 2;
}
.crest .crest-name {
  position: absolute;
  top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-weight: 800; font-size: .68rem;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.9);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.crest .crest-name.on { opacity: 1; }
html[lang="ar"] .crest .crest-name { font-family: 'Noto Kufi Arabic', sans-serif; font-size: .6rem; font-weight: 700; }

/* Position colours mirror the mobile app (AppColors.positionGK/DF/MF/FW). */
.crest.crest-gk { border-color: #f5c542; box-shadow: 0 6px 20px rgba(0,0,0,.65), 0 0 16px rgba(245,197,66,.45); }
.crest.crest-df { border-color: #4aa3ff; box-shadow: 0 6px 20px rgba(0,0,0,.65), 0 0 16px rgba(74,163,255,.45); }
.crest.crest-mf { border-color: #2ecc4b; box-shadow: 0 6px 20px rgba(0,0,0,.65), 0 0 16px rgba(46,204,75,.45); }
.crest.crest-fw { border-color: #ff5f5f; box-shadow: 0 6px 20px rgba(0,0,0,.65), 0 0 16px rgba(255,95,95,.5); }

@keyframes crestIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Demo right column */
.demo-side h3 {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 2rem; letter-spacing: .04em; line-height: 1;
  color: var(--text-hi);
  margin-bottom: 6px;
}
html[lang="ar"] .demo-side h3 { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900; letter-spacing: 0; font-size: 1.6rem; }
.demo-side .formation-line {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.demo-side p {
  color: var(--muted-2);
  font-size: .98rem; line-height: 1.7;
  margin-bottom: 20px;
}
html[lang="ar"] .demo-side p { line-height: 2; }

.guess-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.guess-btn {
  text-align: left;
  padding: 14px 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; align-items: center; justify-content: space-between;
}
html[dir="rtl"] .guess-btn { text-align: right; }
.guess-btn:hover { background: rgba(245,197,66,.06); border-color: var(--border); }
.guess-btn.correct { border-color: var(--green); background: rgba(46,204,75,.08); color: var(--green); }
.guess-btn.wrong   { border-color: #c0392b; background: rgba(192,57,43,.1); color: #ff7e6e; }
.guess-btn.disabled-fade { opacity: .35; pointer-events: none; }
.guess-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .68rem; font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif; font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  margin-right: 12px;
}
html[dir="rtl"] .guess-letter { margin-right: 0; margin-left: 12px; }
.guess-btn.correct .guess-letter { border-color: var(--green); color: var(--green); }
.guess-btn.wrong .guess-letter { border-color: #ff7e6e; color: #ff7e6e; }

.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; }

.result-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
  background: rgba(46,204,75,.05);
  border-radius: 4px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
}
html[dir="rtl"] .result-card { border-left: none; border-right: 2px solid var(--green); }
.result-card.wrong { border-color: #ff7e6e; background: rgba(192,57,43,.06); }

/* ── PACKS SECTION ── */
.packs-head { margin-bottom: 56px; max-width: 720px; }
.packs-head .h2 { margin-top: 14px; margin-bottom: 18px; }
.packs-head p { color: var(--muted-2); font-size: 1.05rem; line-height: 1.7; max-width: 560px; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pack-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--s2), var(--s1));
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.05), border-color .25s ease;
}
.pack-card:hover { transform: translateY(-6px); border-color: rgba(245,197,66,.32); }
.pack-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65) 100%);
  z-index: 2;
}
.pack-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  letter-spacing: -.02em;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}
.pack-pitch-mini {
  position: absolute; inset: 14% 16% 32% 16%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  z-index: 1;
}
.pack-pitch-mini::after {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 30%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pack-crests {
  position: absolute; inset: 14% 16% 32% 16%;
  z-index: 2;
}
.pack-crest {
  position: absolute; transform: translate(-50%, -50%);
  width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(245,197,66,.4), 0 4px 10px rgba(0,0,0,.5);
  overflow: hidden;
}
.pack-meta {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 20px;
  z-index: 3;
}
.pack-tag {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .64rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 4px;
}
.pack-name {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 1.5rem; line-height: 1; letter-spacing: .04em;
  color: var(--text-hi);
}
html[lang="ar"] .pack-name { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: 0; }
.pack-count {
  margin-top: 4px;
  font-size: .76rem; color: var(--muted);
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── FEATURES GRID ── */
.features-head { margin-bottom: 56px; max-width: 760px; }
.features-head .h2 { margin-top: 14px; margin-bottom: 18px; }
.features-head p { color: var(--muted-2); font-size: 1.05rem; line-height: 1.7; max-width: 560px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(14,36,18,.5), rgba(11,26,13,.4));
  padding: 28px 28px 24px;
  overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: rgba(245,197,66,.28); transform: translateY(-2px); }
.feature .f-num {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  font-weight: 600;
}
.feature .f-title {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 1.7rem; letter-spacing: .03em; line-height: 1;
  color: var(--text-hi);
  margin-bottom: 10px;
}
html[lang="ar"] .feature .f-title { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900; letter-spacing: 0; font-size: 1.35rem; }
.feature .f-body {
  color: var(--muted-2);
  font-size: .95rem; line-height: 1.65;
  max-width: 360px;
  margin-bottom: auto;
}
html[lang="ar"] .feature .f-body { line-height: 1.9; }

.feature .f-art {
  margin-top: 18px;
  height: 90px;
  display: flex; align-items: end;
  position: relative;
}

/* feature spans */
.feature.f-span-6 { grid-column: span 6; }
.feature.f-span-4 { grid-column: span 4; }
.feature.f-span-8 { grid-column: span 8; }
.feature.f-span-3 { grid-column: span 3; }

/* feature art elements */
.streak-flames { display: flex; gap: 4px; align-items: end; height: 100%; }
.streak-flame {
  width: 16px;
  background: linear-gradient(180deg, transparent, var(--green));
  border-radius: 3px 3px 0 0;
  opacity: .4;
}
.streak-flame.on { opacity: 1; box-shadow: 0 0 12px rgba(46,204,75,.5); }

.xp-bar {
  width: 100%; height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 100px; overflow: hidden;
  margin-bottom: 14px;
}
.xp-bar-fill {
  height: 100%; width: 68%;
  background: linear-gradient(90deg, var(--gold2), var(--gold), var(--gold3));
  box-shadow: 0 0 10px rgba(245,197,66,.5);
  border-radius: 100px;
}
.xp-row { display: flex; align-items: center; justify-content: space-between; }
.xp-amt { font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif; font-size: 2.4rem; color: var(--gold); letter-spacing: .04em; line-height: 1; }
.xp-lbl { font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.diamond-stack { display: flex; gap: 6px; align-items: end; height: 100%; }
.diamond {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #65b0e8, #2c6da8);
  transform: rotate(45deg);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(101,176,232,.4), inset 0 0 0 1px rgba(255,255,255,.2);
}

.leaderboard-mini {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .8rem; letter-spacing: .04em;
}
.lb-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 18px; color: var(--muted); font-weight: 700; }
.lb-name { flex: 1; color: var(--text); font-weight: 600; }
.lb-pts { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.lb-row.you { color: var(--green); }
.lb-row.you .lb-rank, .lb-row.you .lb-name, .lb-row.you .lb-pts { color: var(--green); }

.daily-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  width: 100%;
  max-width: 200px;
}
.daily-cell {
  aspect-ratio: 1; border-radius: 4px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .58rem; color: var(--muted);
  font-weight: 600;
}
.daily-cell.done { background: rgba(46,204,75,.16); color: var(--green); }
.daily-cell.today { background: var(--gold); color: #060e07; box-shadow: 0 0 12px rgba(245,197,66,.4); }

/* ── MASCOT MOMENT ── */
.mascot-section {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vh, 160px) 0;
}
.mascot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.mascot-img-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}
.mascot-img-wrap::before {
  content: ''; position: absolute;
  inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,75,.18) 0%, transparent 70%);
  filter: blur(28px);
}
.mascot-img-wrap::after {
  content: ''; position: absolute;
  inset: 12%; border-radius: 50%;
  border: 1px dashed rgba(245,197,66,.18);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mascot-img {
  position: relative; z-index: 2;
  width: 78%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(46,204,75,.18));
}
.mascot-text .eyebrow { margin-bottom: 16px; }
.mascot-text .h2 { margin-bottom: 22px; }
.mascot-text p {
  color: var(--muted-2); font-size: 1.06rem; line-height: 1.8;
  max-width: 480px; margin-bottom: 18px;
}
html[lang="ar"] .mascot-text p { line-height: 2.1; }
.quote-line {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 1.6rem; letter-spacing: .02em; line-height: 1.1;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-top: 28px;
  max-width: 480px;
}
html[dir="rtl"] .quote-line { border-left: none; border-right: 2px solid var(--gold); padding-left: 0; padding-right: 18px; }
html[lang="ar"] .quote-line { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900; font-size: 1.3rem; line-height: 1.4; letter-spacing: 0; }

/* ── FAQ ── */
.faq-head { margin-bottom: 48px; max-width: 720px; }
.faq-head .h2 { margin-top: 14px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
  transition: background .2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.faq-q-text {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem); letter-spacing: .03em; line-height: 1.1;
  color: var(--text-hi);
}
html[lang="ar"] .faq-q-text { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 900; font-size: clamp(1.05rem, 1.4vw, 1.4rem); letter-spacing: 0; line-height: 1.4; }
.faq-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: rgba(245,197,66,.1); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin-top .25s ease;
  color: var(--muted-2); font-size: 1rem; line-height: 1.75;
  max-width: 800px;
}
html[lang="ar"] .faq-a { line-height: 2.05; font-size: .96rem; }
.faq-item.open .faq-a {
  max-height: 240px; margin-top: 14px;
}

/* ── FOOTER ── */
footer.site-footer {
  position: relative; z-index: 2;
  padding: clamp(60px, 10vh, 110px) var(--pad-x) 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.footer-brand img { height: 36px; }
.footer-brand .brand-text {
  font-family: 'Bebas Neue', 'Noto Kufi Arabic', sans-serif;
  font-size: 1.6rem; letter-spacing: .14em;
  color: var(--gold);
}
.footer-brand p {
  color: var(--muted); font-size: .92rem; line-height: 1.7;
  max-width: 320px;
}
.footer-col h3 {
  font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
html[lang="ar"] .footer-col h3 { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: .82rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--muted-2); font-size: .92rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-socials {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 8px 0 20px;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.footer-socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,175,55,.08);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
  max-width: var(--max-w); margin: 0 auto;
}
.footer-bottom .copy { color: var(--muted); font-size: .8rem; }
.footer-bottom .built { color: var(--muted); font-size: .8rem; font-family: 'Barlow Condensed', 'Noto Kufi Arabic', sans-serif; letter-spacing: .14em; text-transform: uppercase; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .pitch-stage { max-height: 540px; }
  .packs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(6, 1fr); }
  .feature.f-span-6, .feature.f-span-4, .feature.f-span-8, .feature.f-span-3 { grid-column: span 6; }
  .mascot-grid { grid-template-columns: 1fr; gap: 30px; }
  .mascot-img-wrap { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 800px) {
  nav.site-nav { padding: 10px 16px; }
  .n-mid { display: none; }
  .n-cta { display: none; }
  .n-logo-badge { height: 26px; }
  .n-logo-text { font-size: 1.15rem; }

  .sticky-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 50svh 50svh;
    grid-template-rows: 50vh 50vh;
    grid-template-rows: 50svh 50svh;
  }
  .phone-side {
    grid-row: 1; grid-column: 1;
    padding: 56px 0 8px;
    justify-content: center; align-items: flex-end;
    overflow: hidden;
  }
  .phone-side::before, .phone-side::after, .pitch-circle { display: none; }
  .mascot { display: none; }
  .phone-shell {
    width: 155px;
    height: calc(50svh - 64px);
    border-radius: 28px; border-width: 6px;
  }
  .phone-island { width: 54px; height: 18px; top: 8px; }
  .phone-glow { inset: -18px; }
  .pframe {
    height: calc(50svh - 64px) !important;
    background-size: cover !important;
    background-position: top center !important;
  }
  .content-side {
    grid-row: 2; grid-column: 1;
    padding: 12px 20px 16px;
    align-items: center; justify-content: flex-start;
    overflow: hidden;
  }
  .step {
    top: 12px; bottom: 16px; left: 20px; right: 20px;
    transform: translateY(0) translateX(18px);
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
  }
  html[dir="rtl"] .step { transform: translateY(0) translateX(-18px); }
  .step.active { transform: translateY(0); }
  .step-tag { font-size: .6rem; margin-bottom: 6px; }
  .step-num { font-size: 3rem; margin-bottom: -12px; }
  .step-title { font-size: 1.9rem !important; line-height: .92; margin-bottom: 8px; }
  html[lang="ar"] .step-title { font-size: 1.5rem !important; }
  .step-body { font-size: .88rem; line-height: 1.6; margin-bottom: 12px; max-width: 100%; }
  .store-row { gap: 8px; margin-bottom: 10px; flex-wrap: nowrap; justify-content: center; }
  .store-badge-img { height: 38px; }
  .tags { gap: 5px; justify-content: center; }
  .scroll-cue { display: none; }
  .prog-dots { right: 6px; top: 70%; transform: translateY(-50%); }
  html[dir="rtl"] .prog-dots { right: auto; left: 6px; }

  /* sections */
  .section { padding-top: 70px; padding-bottom: 70px; }
  .demo-head { flex-direction: column; align-items: flex-start; }
  .packs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pack-card { aspect-ratio: 4 / 5; }
  .pack-name { font-size: 1.2rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature { min-height: 220px; }

  /* mascot section: tighter, centered, balanced for mobile */
  .mascot-section { padding: 70px 0; }
  .mascot-grid { gap: 18px; }
  .mascot-img-wrap { max-width: 220px; }
  .mascot-img-wrap::after { display: none; }
  .mascot-text { text-align: center; }
  .mascot-text .eyebrow { justify-content: center; }
  .mascot-text .eyebrow::before { display: none; }
  .mascot-text .h2 { font-size: 2rem !important; line-height: .95; margin-bottom: 14px; }
  html[lang="ar"] .mascot-text .h2 { font-size: 1.6rem !important; }
  .mascot-text p { font-size: .96rem; line-height: 1.65; margin: 0 auto 14px; max-width: 420px; }
  .quote-line {
    font-size: 1.05rem; line-height: 1.25;
    margin: 14px auto 0; max-width: 360px;
    text-align: center;
    border-left: none; border-right: none;
    padding: 12px 16px;
    background: rgba(245,197,66,.05);
    border: 1px solid rgba(245,197,66,.18);
    border-radius: 10px;
  }
  html[dir="rtl"] .quote-line { border-right: 1px solid rgba(245,197,66,.18); padding-right: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* lighter/denser tweaks */
body[data-density="compact"] .section { padding-top: 80px; padding-bottom: 80px; }
body[data-density="compact"] .demo-head { margin-bottom: 36px; }
body[data-density="compact"] .packs-grid { gap: 12px; }

body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation: none !important;
  transition-duration: .12s !important;
}

/* theme tints - controlled by --theme-accent */
body[data-theme="green"]  { --gold: #2ecc4b; --gold2:#1a8a32; --gold3:#9af5af; }
body[data-theme="blue"]   { --gold: #5da6ff; --gold2:#2b6cad; --gold3:#bfe1ff; --green:#9ad3ff; }
body[data-theme="red"]    { --gold: #ff7a5c; --gold2:#c0392b; --gold3:#ffd4c8; }
/* default = gold (no override) */
