/* ============================================================
   Season Star — Marketing Site
   Design tokens copied verbatim from the app theme (see brief §5)
   ============================================================ */

/* ---------- Fonts (self-hosted, WOFF2) ---------- */
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../assets/fonts/Sora-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../assets/fonts/Tajawal-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../assets/fonts/Tajawal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../assets/fonts/Tajawal-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../assets/fonts/Tajawal-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Sands & dunes */
  --sand-light: #F3E7C4; --sand: #EEDC9A; --dune: #D4B872; --dune-deep: #B8923F;
  --bronze: #9A6B15; --sand-fill: #EAD79A; --sand-fill-deep: #DDC378; --sand-tint: #F3E9CC;
  /* Accents */
  --terracotta: #C15C34; --terracotta-deep: #8F3F1E; --terracotta-light: #E8825A;
  --primary: #B24E2B; --sunset: #E08A3C; --oasis: #4E8D6E; --oasis-deep: #35674E;
  /* Ink */
  --espresso: #3E2723; --cocoa: #5B4A3F; --taupe: #8A7B6E; --sand-line: #E7DCC4;
  /* Backgrounds */
  --canvas: #FAF3DE; --cream: #FFFDF6; --surface-white: #FFFFFF;
  /* Status */
  --success-bg: #C3E4C5; --success-fg: #4CAF75;
  --info-bg: #E2F3FF; --info-fg: #006687;
  --warning-bg: #FFEAAC; --warning-fg: #F0A832;
  --error-bg: #FCEEEE; --error-fg: #E06C6C;
  --neutral-bg: #F3E9CC; --neutral-fg: #4D453D;
  --accent-bg: #EEDC9A; --accent-fg: #9A7A34;
  /* Medals */
  --gold-ring: #FFC53D; --gold-badge: #7A5600; --gold-soft: #FFF6DC; --gold-accent: #E7A400;
  --silver-ring: #C5CAD3; --silver-badge: #565D6B; --silver-soft: #F1F3F7; --silver-accent: #98A0AD;
  --bronze-ring: #E0A16A; --bronze-badge: #7A4A1E; --bronze-soft: #F9EEE2; --bronze-accent: #C2793C;
  /* Radius */
  --radius-card: 20px; --radius-tile: 16px; --radius-chip: 12px; --radius-pill: 999px; --radius-input: 8px;
  /* Elevation */
  --elevation-tile: 0 4px 10px rgba(11,19,43,.06);
  --elevation-card: 0 10px 20px rgba(11,19,43,.07), 0 1px 3px rgba(0,0,0,.04);
  --elevation-active: 0 12px 26px rgba(78,141,110,.15), 0 1px 3px rgba(0,0,0,.04);
  /* Motion */
  --motion-standard: 200ms; --motion-enter: 350ms; --motion-exit: 250ms;
  --ease-enter: cubic-bezier(.215,.61,.355,1); --ease-exit: cubic-bezier(.55,.055,.675,.19);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  /* Layout */
  --content-max: 1200px; --screen-pad: 16px; --section-gap: 24px;
  /* Type */
  --font-latin: 'Sora', system-ui, sans-serif;
  --font-arabic: 'Tajawal', system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--espresso);
  font-family: var(--font-latin);
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="ar"] body { font-family: var(--font-arabic); line-height: 1.85; }
/* Numerals stay Sora in both locales (brand rule) */
.num, .points, .countdown { font-family: var(--font-latin) !important; font-feature-settings: 'tnum'; }

img, video, svg { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; font-weight: 700; }
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 { line-height: 1.45; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* Language visibility */
html[data-lang="en"] [data-l="ar"] { display: none !important; }
html[data-lang="ar"] [data-l="en"] { display: none !important; }

.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- Typography helpers ---------- */
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta);
}
html[data-lang="ar"] .overline { letter-spacing: 0; font-size: 14px; }
.overline::before { content: ''; width: 28px; height: 2px; background: var(--terracotta); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
html[data-lang="ar"] .section-title { letter-spacing: 0; }
.section-sub { color: var(--cocoa); font-size: clamp(16px, 1.6vw, 18px); max-width: 640px; margin-top: 14px; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }
.center .overline { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-chip);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: transform var(--motion-standard) var(--ease-enter),
              background var(--motion-standard), color var(--motion-standard),
              box-shadow var(--motion-standard);
  will-change: transform;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(178,78,43,.28); }
.btn-primary:hover { background: var(--terracotta-deep); box-shadow: 0 10px 24px rgba(143,63,30,.35); }
.btn-secondary { border: 1.5px solid var(--terracotta); color: var(--terracotta); background: transparent; }
.btn-secondary:hover { background: var(--terracotta); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 14px; }

/* Store badges — hand-built, flat, on-brand */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--espresso); color: #fff;
  padding: 11px 20px; border-radius: 14px; min-width: 190px;
  transition: transform var(--motion-standard) var(--ease-enter), box-shadow var(--motion-standard), background var(--motion-standard);
  box-shadow: 0 6px 16px rgba(62,39,35,.25);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(62,39,35,.32); background: #2C1B18; }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .sb-small { font-size: 11px; opacity: .75; font-weight: 400; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; font-family: var(--font-latin); }
.store-badge.light { background: var(--cream); color: var(--espresso); box-shadow: var(--elevation-card); }
.store-badge.light:hover { background: #fff; }

/* Pre-launch state — stores not live yet */
.store-badge.is-soon { cursor: default; opacity: .82; padding-inline-end: 14px; }
.store-badge.is-soon:hover { transform: none; background: var(--espresso); box-shadow: 0 6px 16px rgba(62,39,35,.25); }
.store-badge.is-soon.light:hover { background: var(--cream); }
.soon-tag {
  margin-inline-start: auto; align-self: center;
  font-family: var(--font-latin); font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(238,220,154,.16); color: var(--gold-ring);
  border: 1px solid rgba(238,220,154,.32);
}
.store-badge.light .soon-tag { background: rgba(193,92,52,.10); color: var(--terracotta); border-color: rgba(193,92,52,.24); }
[data-lang="ar"] .soon-tag { font-family: var(--font-arabic); letter-spacing: 0; font-size: 11px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background var(--motion-enter), box-shadow var(--motion-enter), backdrop-filter var(--motion-enter);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; max-width: 1280px; }
.site-header.scrolled {
  background: rgba(255,253,246,.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--sand-line), var(--elevation-tile);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--espresso); }
/* Brand wordmark (نجم الموسم). Two colourways are stacked and cross-faded by
   surface: navy on cream, gold over the hero video and other dark surfaces. */
.brand-mark {
  position: relative; display: block; height: 50px; aspect-ratio: 900 / 531; flex-shrink: 0;
  transition: transform .5s var(--ease-spring);
}
.brand:hover .brand-mark { transform: scale(1.06); }
.brand-mark img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: opacity var(--motion-enter);
}
.brand-mark .lm-gold { opacity: 0; }
.site-header.on-hero:not(.scrolled) .brand-mark .lm-gold { opacity: 1; }
.site-header.on-hero:not(.scrolled) .brand-mark .lm-navy { opacity: 0; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--taupe); letter-spacing: .08em; }
/* The footer sits on espresso — always the gold colourway. */
.site-footer .brand-mark .lm-gold { opacity: 1; }
.site-footer .brand-mark .lm-navy { opacity: 0; }
/* On phones the mark carries the brand alone — the tagline would wrap into
   the menu button. */
@media (max-width: 560px) {
  .site-header .brand-mark { height: 40px; }
  .site-header .brand-name { display: none; }
}
/* over hero (transparent header) */
.site-header.on-hero:not(.scrolled) .brand, .site-header.on-hero:not(.scrolled) .nav a { color: #fff; }
.site-header.on-hero:not(.scrolled) .brand-name small { color: rgba(255,255,255,.7); }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--cocoa);
  border-radius: var(--radius-pill); transition: color var(--motion-standard); white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform var(--motion-standard) var(--ease-enter);
}
.nav a:hover { color: var(--terracotta); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--terracotta); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--sand-line); background: rgba(255,253,246,.6);
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--espresso);
  transition: border-color var(--motion-standard), background var(--motion-standard), transform var(--motion-standard);
}
.lang-switch:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-1px); }
.site-header.on-hero:not(.scrolled) .lang-switch { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.header-cta { margin-inline-start: 4px; }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; z-index: 130; }
.nav-toggle span {
  position: absolute; inset-inline: 12px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-enter), opacity .2s, top .35s var(--ease-enter);
}
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.site-header .nav-toggle { color: var(--espresso); }
.site-header.on-hero:not(.scrolled) .nav-toggle { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-inline-start: auto; }
  /* backdrop-filter would become the containing block for the fixed nav overlay */
  .site-header.nav-open, .site-header.nav-open.scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: transparent; box-shadow: none;
  }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 120; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: var(--canvas);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-enter);
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 24px; font-weight: 700; color: var(--espresso); opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease-enter), transform .4s var(--ease-enter); }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(1){transition-delay:.05s}.nav.open a:nth-child(2){transition-delay:.1s}.nav.open a:nth-child(3){transition-delay:.15s}.nav.open a:nth-child(4){transition-delay:.2s}.nav.open a:nth-child(5){transition-delay:.25s}.nav.open a:nth-child(6){transition-delay:.3s}.nav.open a:nth-child(7){transition-delay:.35s}
  .site-header.nav-open:not(.scrolled) .brand, .site-header.nav-open .nav-toggle { color: var(--espresso) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img.poster { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(43,24,16,.55) 0%, rgba(43,24,16,.35) 40%, rgba(62,39,35,.55) 78%, var(--canvas) 100%);
}
.hero-inner { position: relative; z-index: 3; padding-top: 100px; padding-bottom: clamp(140px, 22vh, 240px); text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ring); animation: kicker-pulse 1.6s ease-in-out infinite; }
@keyframes kicker-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,197,61,.55);} 60% { box-shadow: 0 0 0 9px rgba(255,197,61,0);} }

.hero-title {
  margin-top: 28px;
  font-size: clamp(40px, 8vw, 96px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
html[data-lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.3; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; position: relative; z-index: 2; }
.hero-title .word > span { display: inline-block; transform: translateY(110%); animation: word-rise .9s var(--ease-enter) forwards; }
@keyframes word-rise { to { transform: translateY(0); } }

/* The prize line: blob + rays behind, gold numeral */
.hero-prize { position: relative; display: inline-block; margin-top: 6px; padding: 10px 30px; }
.hero-prize .blob, .hero-prize .rays {
  position: absolute; top: 50%; left: 50%; z-index: -1; pointer-events: none;
}
.hero-prize .blob { width: 112%; max-width: none; height: 130%; object-fit: fill; transform: translate(-50%,-50%); opacity: .97; animation: blob-breathe 7s ease-in-out infinite; }
.hero-prize .rays { width: 150%; max-width: none; transform: translate(-50%,-50%); opacity: .9; animation: rays-spin 60s linear infinite; }
@keyframes blob-breathe { 0%,100% { transform: translate(-50%,-50%) scale(1) rotate(0deg);} 50% { transform: translate(-50%,-50%) scale(1.06) rotate(2deg);} }
@keyframes rays-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-prize .amount { color: var(--terracotta-deep); font-weight: 800; font-family: var(--font-latin); letter-spacing: -.02em; text-shadow: none; }
.hero-prize .currency { font-size: .42em; font-weight: 700; vertical-align: super; letter-spacing: .04em; margin-inline-end: .25em; color: var(--primary); }

.hero-sub { margin-top: 26px; font-size: clamp(16px, 2vw, 21px); font-weight: 400; opacity: .95; }
.hero-elig { margin-top: 12px; font-size: 14px; opacity: .75; letter-spacing: .04em; }
.hero-ctas { margin-top: 34px; display: flex; justify-content: center; }
.hero-ctas .store-badges { justify-content: center; }
.hero-rise { opacity: 0; transform: translateY(26px); animation: hero-rise .8s var(--ease-enter) forwards; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* Camel silhouettes strip crossing the hero bottom */
.hero-camels {
  position: absolute; bottom: clamp(48px, 9vh, 90px); inset-inline: 0; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.hero-camels .train { display: flex; width: max-content; animation: camel-run 52s linear infinite; }
.hero-camels img { height: clamp(70px, 11vw, 130px); width: auto; margin-inline-end: 12vw; filter: brightness(0) invert(1); opacity: .5; }
@keyframes camel-run { to { transform: translateX(-50%); } }
html[dir="rtl"] .hero-camels .train { animation-name: camel-run-rtl; }
@keyframes camel-run-rtl { to { transform: translateX(50%); } }

.scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px;
}
.scroll-cue::after {
  content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1;} 70% { transform: translateY(14px); opacity: 0;} 100% { opacity: 0;} }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--sand); border-block: 1px solid var(--sand-fill-deep);
  overflow: hidden; padding: 16px 0; position: relative; z-index: 4;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 26px; padding-inline-end: 26px;
  font-weight: 700; font-size: 15px; color: var(--bronze); white-space: nowrap;
}
.marquee-item .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; }
.marquee-item .ar-term { font-family: var(--font-arabic); font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section.tint { background: var(--sand-tint); }
.section.espresso { background: var(--espresso); color: var(--sand-light); }
.section.espresso .section-title { color: #fff; }
.section.espresso .section-sub { color: var(--sand-light); opacity: .8; }
.section.espresso .overline { color: var(--gold-ring); }
.section.espresso .overline::before { background: var(--gold-ring); }

/* Dune divider */
.dune-divider { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.dune-divider path { fill: var(--canvas); }
.dune-divider.to-tint path { fill: var(--sand-tint); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream); border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--elevation-card);
  transition: transform var(--motion-enter) var(--ease-enter), box-shadow var(--motion-enter);
}
.card:hover { box-shadow: 0 18px 34px rgba(11,19,43,.10), 0 1px 3px rgba(0,0,0,.04); }
.card.active-green { border: 1.5px solid var(--oasis); box-shadow: var(--elevation-active); }

.icon-chip {
  width: 54px; height: 54px; border-radius: var(--radius-tile);
  display: grid; place-items: center; background: var(--sand-tint);
  transition: transform .45s var(--ease-spring), background var(--motion-standard);
}
.icon-chip svg, .icon-chip img { width: 26px; height: 26px; }
.card:hover .icon-chip { transform: rotate(-6deg) scale(1.1); background: var(--sand-fill); }

/* Pitch trio */
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pitch-card h3 { font-size: 21px; margin-top: 20px; font-weight: 700; }
.pitch-card p { color: var(--cocoa); margin-top: 10px; font-size: 15px; }
.pitch-card .step-no {
  font-family: var(--font-latin); font-weight: 800; font-size: 15px; color: var(--dune-deep);
  letter-spacing: .1em;
}
@media (max-width: 820px) { .pitch-grid { grid-template-columns: 1fr; } }

/* Tilt (JS sets --rx / --ry) */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt > * { transform: translateZ(24px); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease-enter), transform .7s var(--ease-enter); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease-enter), transform .7s var(--ease-enter); transition-delay: var(--d, 0ms); }
.reveal-scale.in { opacity: 1; transform: none; }

/* ---------- How it works (sticky phone) ---------- */
.hiw-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 56px; }
.hiw-steps { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }
.hiw-step {
  padding: 28px; border-radius: var(--radius-card); background: transparent;
  border: 1.5px solid transparent;
  transition: background .45s var(--ease-enter), border-color .45s, box-shadow .45s;
}
.hiw-step.active { background: var(--cream); border-color: var(--oasis); box-shadow: var(--elevation-active); }
.step-badge {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand-fill); color: var(--bronze); font-family: var(--font-latin);
  font-weight: 800; font-size: 17px; transition: background .4s, color .4s, transform .5s var(--ease-spring);
}
.hiw-step.active .step-badge { background: var(--terracotta); color: #fff; transform: scale(1.12); }
.hiw-step h3 { font-size: 22px; margin-top: 16px; }
.hiw-step p { color: var(--cocoa); margin-top: 10px; font-size: 15.5px; }
.hiw-step .tip { display: flex; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--taupe); align-items: baseline; }
.hiw-step .tip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dune); flex-shrink: 0; transform: translateY(-2px); }
.hiw-phone-col { position: sticky; top: 110px; }
@media (max-width: 980px) {
  .hiw-layout { grid-template-columns: 1fr; }
  .hiw-phone-col { position: static; order: -1; display: flex; justify-content: center; }
}

/* Phone frame */
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 19; margin-inline: auto;
  background: #1C1310; border-radius: 44px; padding: 10px;
  box-shadow: 0 24px 60px rgba(62,39,35,.35), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
.phone::after { /* notch */
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 22px; background: #1C1310; border-radius: 12px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--canvas); position: relative;
}
.phone-view { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-enter), transform .5s var(--ease-enter); pointer-events: none; display: flex; flex-direction: column; }
.phone-view.active { opacity: 1; transform: none; pointer-events: auto; }
.phone-illustrative {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 6;
  font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); opacity: .75;
  background: rgba(255,253,246,.8); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}

/* Mini app-UI vocabulary (inside phone) */
.mini-header { background: var(--sand); padding: 34px 16px 12px; }
.mini-overline { font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.mini-title { font-size: 15px; font-weight: 800; color: var(--espresso); margin-top: 2px; }
.mini-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: hidden; }
.mini-card { background: var(--cream); border-radius: 14px; padding: 12px; box-shadow: var(--elevation-tile); }
.mini-card.green { border: 1.5px solid var(--oasis); box-shadow: var(--elevation-active); }
.mini-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 8.5px; font-weight: 700; }
.mini-pill .pd { width: 5px; height: 5px; border-radius: 50%; }
.mini-pill.success { background: var(--success-bg); color: var(--success-fg); } .mini-pill.success .pd { background: var(--success-fg); }
.mini-pill.info { background: var(--info-bg); color: var(--info-fg); } .mini-pill.info .pd { background: var(--info-fg); }
.mini-pill.accent { background: var(--accent-bg); color: var(--accent-fg); } .mini-pill.accent .pd { background: var(--accent-fg); }
.mini-label { font-size: 9px; color: var(--taupe); font-weight: 500; }
.mini-strong { font-size: 12px; font-weight: 700; color: var(--espresso); }
.mini-count { font-family: var(--font-latin); font-weight: 300; font-size: 22px; letter-spacing: .06em; color: var(--espresso); }
.mini-points { font-family: var(--font-latin); font-weight: 800; font-size: 20px; letter-spacing: -.5px; color: var(--accent-fg); }
.mini-btn { background: var(--primary); color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-size: 10.5px; font-weight: 700; }
.mini-row { display: flex; align-items: center; gap: 8px; }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.mini-medals { display: flex; justify-content: center; align-items: flex-end; gap: 8px; padding: 6px 0 2px; }
.mini-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mini-medal .m-ring { border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--font-latin); }
.mini-medal.gold .m-ring { width: 52px; height: 52px; border: 3px solid var(--gold-ring); background: var(--gold-soft); color: var(--gold-badge); font-size: 15px; }
.mini-medal.silver .m-ring, .mini-medal.bronzem .m-ring { width: 42px; height: 42px; font-size: 12px; }
.mini-medal.silver .m-ring { border: 3px solid var(--silver-ring); background: var(--silver-soft); color: var(--silver-badge); }
.mini-medal.bronzem .m-ring { border: 3px solid var(--bronze-ring); background: var(--bronze-soft); color: var(--bronze-badge); }
.mini-medal .m-name { font-size: 8.5px; font-weight: 700; color: var(--cocoa); }
.mini-joker {
  border-radius: 14px; padding: 12px; background: var(--sand-fill);
  border: 1.5px solid var(--dune-deep); position: relative; overflow: hidden;
}
.mini-joker.pulsing { animation: joker-glow 1.2s ease-in-out infinite; }
@keyframes joker-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,146,63,.0); }
  50% { box-shadow: 0 0 22px 2px rgba(231,164,0,.45); }
}
.mini-bar { height: 7px; border-radius: 4px; background: var(--sand-tint); overflow: hidden; }
.mini-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--dune-deep); transform-origin: left center; }
html[dir="rtl"] .mini-bar > i { transform-origin: right center; }
.phone-view.active .mini-bar > i { animation: bar-grow 1s var(--ease-enter) forwards; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Podium demo (interactive) ---------- */
.demo-shell { margin-top: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .demo-shell { grid-template-columns: 1fr; } }
.podium-stage { position: relative; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2.4vw, 24px); }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 14px; width: clamp(96px, 12vw, 150px); }
.podium-slot .medal {
  width: clamp(76px, 9.5vw, 116px); height: clamp(76px, 9.5vw, 116px); border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--cream); cursor: pointer;
  transition: transform .45s var(--ease-spring), box-shadow .3s;
  box-shadow: var(--elevation-tile);
}
.podium-slot .medal:hover { transform: scale(1.06); }
.podium-slot.gold .medal { border: 4px solid var(--gold-ring); background: var(--gold-soft); }
.podium-slot.silver .medal { border: 4px solid var(--silver-ring); background: var(--silver-soft); }
.podium-slot.bronze .medal { border: 4px solid var(--bronze-ring); background: var(--bronze-soft); }
.podium-slot .medal .placeholder { font-size: 30px; font-weight: 300; color: var(--taupe); transition: opacity .2s; }
.podium-slot .medal img.camel { width: 58%; filter: none; }
.podium-slot .medal .picked-name { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--espresso); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.podium-slot .medal.filled { animation: medal-pop .5s var(--ease-spring); }
@keyframes medal-pop { 0% { transform: scale(.7);} 60% { transform: scale(1.12);} 100% { transform: scale(1);} }
.podium-slot .stand {
  width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center;
  font-family: var(--font-latin); font-weight: 800; font-size: clamp(20px, 2.6vw, 30px);
}
.podium-slot.gold .stand { height: clamp(84px, 10vw, 128px); background: var(--sand-fill-deep); color: var(--gold-badge); }
.podium-slot.silver .stand { height: clamp(60px, 7.4vw, 92px); background: var(--sand-fill); color: var(--silver-badge); }
.podium-slot.bronze .stand { height: clamp(44px, 5.6vw, 68px); background: var(--sand-tint); color: var(--bronze-badge); }
.podium-slot .place-label { font-size: 12px; font-weight: 700; color: var(--taupe); letter-spacing: .08em; text-transform: uppercase; }
html[data-lang="ar"] .podium-slot .place-label { letter-spacing: 0; }

.demo-camels { display: flex; flex-direction: column; gap: 14px; }
.camel-chip {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: start;
  background: var(--cream); border-radius: var(--radius-tile); padding: 14px 18px;
  box-shadow: var(--elevation-tile); border: 1.5px solid transparent;
  transition: transform var(--motion-standard) var(--ease-enter), border-color var(--motion-standard), box-shadow var(--motion-standard), opacity var(--motion-standard);
}
.camel-chip:hover { transform: translateX(6px); border-color: var(--dune); box-shadow: var(--elevation-card); }
html[dir="rtl"] .camel-chip:hover { transform: translateX(-6px); }
.camel-chip.placed { opacity: .45; }
.camel-chip.placed:hover { transform: none; }
.camel-chip .c-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sand-tint);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.camel-chip .c-avatar img { width: 68%; }
.camel-chip .c-name { font-weight: 700; font-size: 16px; }
.camel-chip .c-meta { font-size: 12.5px; color: var(--taupe); }
.camel-chip .c-lane {
  margin-inline-start: auto; font-family: var(--font-latin); font-weight: 800; font-size: 13px;
  background: var(--sand-fill); color: var(--bronze); border-radius: 8px; padding: 4px 10px; flex-shrink: 0;
}
.demo-result {
  margin-top: 22px; display: none; align-items: center; gap: 12px;
  background: var(--success-bg); color: var(--oasis-deep);
  border-radius: var(--radius-tile); padding: 14px 20px; font-weight: 700; font-size: 15px;
}
.demo-result.show { display: flex; animation: medal-pop .5s var(--ease-spring); }
.demo-reset { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--terracotta); display: none; }
.demo-reset.show { display: inline-block; }
.demo-reset:hover { text-decoration: underline; }

/* Gold particle burst */
.burst-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 20; }

/* ---------- Prize section ---------- */
.prize-band { text-align: center; overflow: hidden; }
.prize-amount {
  font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(56px, 11vw, 136px); letter-spacing: -.03em; line-height: 1.05;
  color: var(--gold-ring); text-shadow: 0 6px 40px rgba(231,164,0,.25);
}
.prize-amount .cur { font-size: .34em; font-weight: 700; letter-spacing: .05em; vertical-align: super; color: var(--sand); margin-inline-end: .3em; }
.prize-treasure { width: clamp(140px, 20vw, 230px); margin-inline: auto; margin-bottom: 8px; animation: treasure-float 5s ease-in-out infinite; }
@keyframes treasure-float { 0%,100% { transform: translateY(0) rotate(-2deg);} 50% { transform: translateY(-14px) rotate(2deg);} }
.tournament-chips {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; margin-top: 40px;
}
.t-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  border: 1px solid rgba(238,220,154,.35); color: var(--sand-light);
  border-radius: 16px; padding: 16px 14px; font-size: 14px; font-weight: 600;
  line-height: 1.4; text-align: center; text-wrap: balance;
  transition: background var(--motion-standard), transform var(--motion-standard);
}
.t-chip:hover { background: rgba(238,220,154,.12); transform: translateY(-2px); }
.t-chip .num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(238,220,154,.14); border: 1px solid rgba(238,220,154,.3);
  color: var(--gold-ring); font-weight: 800; font-size: 13px; flex-shrink: 0;
}
@media (max-width: 1000px) { .tournament-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tournament-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prize-free-line { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; color: var(--sand-light); font-size: 15px; }
.prize-free-line .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--oasis); display: grid; place-items: center; }
.prize-free-line .tick svg { width: 12px; height: 12px; stroke: #fff; }

/* ---------- Feature tiles ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-tile h3 { font-size: 18px; margin-top: 18px; }
.feature-tile p { color: var(--cocoa); font-size: 14.5px; margin-top: 8px; }

/* Alternating feature rows (features page) */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.feat-row:nth-child(even) .feat-media { order: -1; }
@media (max-width: 900px) { .feat-row { grid-template-columns: 1fr; } .feat-row:nth-child(even) .feat-media { order: 0; } }
.feat-copy h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-top: 12px; }
.feat-copy p { color: var(--cocoa); margin-top: 14px; }
.feat-copy ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.feat-copy li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--cocoa); }
.feat-copy li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; transform: translateY(-1px); }

/* ---------- Gulf / language section ---------- */
.gulf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 980px) { .gulf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gulf-grid { grid-template-columns: 1fr; } }
.lang-card { text-align: center; padding: 32px 20px; }
.lang-card .big { font-size: 30px; font-weight: 800; }
.lang-card .big.ar-font { font-family: var(--font-arabic); }
.lang-card p { font-size: 13.5px; color: var(--taupe); margin-top: 8px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--sand); border-block: 1px solid var(--sand-fill-deep); padding-block: 36px; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .trust-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-items { grid-template-columns: 1fr; } }
.trust-item { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14.5px; color: var(--espresso); }
.trust-item .t-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--elevation-tile); }
.trust-item .t-icon svg { width: 20px; height: 20px; stroke: var(--terracotta); }

/* ---------- Download band ---------- */
.dl-band { border-radius: 28px; background: var(--cream); box-shadow: var(--elevation-card); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 860px) { .dl-band { grid-template-columns: 1fr; text-align: center; } .dl-band .store-badges { justify-content: center; } .dl-qr { margin-inline: auto; } }
.dl-band::before { content: ''; position: absolute; top: -70px; inset-inline-end: -70px; width: 260px; height: 260px; border-radius: 50%; background: var(--sand-tint); z-index: 0; }
.dl-band > * { position: relative; z-index: 1; }
.dl-qr {
  width: 168px; height: 168px; border-radius: var(--radius-tile); background: var(--surface-white);
  box-shadow: var(--elevation-tile); display: grid; place-items: center; padding: 14px;
}
.dl-qr .qr-note { font-size: 11px; color: var(--taupe); text-align: center; margin-top: 6px; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } }
.stat-tile { text-align: center; padding: 34px 20px; }
.stat-value { font-family: var(--font-latin); font-weight: 800; font-size: clamp(38px, 5vw, 52px); letter-spacing: -.02em; color: var(--terracotta); line-height: 1.1; }
.stat-label { margin-top: 8px; color: var(--cocoa); font-weight: 600; font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--sand); padding: 150px 0 64px; border-bottom: 1px solid var(--sand-fill-deep); }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 800; letter-spacing: -.02em; margin-top: 14px; }
html[data-lang="ar"] .page-hero h1 { letter-spacing: 0; }
.page-hero p { color: var(--cocoa); font-size: clamp(16px, 1.8vw, 19px); max-width: 640px; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--cream); border-radius: var(--radius-tile); box-shadow: var(--elevation-tile); overflow: hidden; border: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--dune); box-shadow: var(--elevation-card); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { margin-inline-start: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sand-tint); display: grid; place-items: center; flex-shrink: 0; transition: transform .35s var(--ease-enter), background .3s; position: relative; }
.faq-item summary .faq-plus::before, .faq-item summary .faq-plus::after { content: ''; position: absolute; background: var(--terracotta); border-radius: 2px; }
.faq-item summary .faq-plus::before { width: 12px; height: 2px; }
.faq-item summary .faq-plus::after { width: 2px; height: 12px; transition: transform .35s var(--ease-enter); }
.faq-item[open] summary .faq-plus { transform: rotate(180deg); background: var(--sand-fill); }
.faq-item[open] summary .faq-plus::after { transform: scaleY(0); }
.faq-body { padding: 0 24px 22px; color: var(--cocoa); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; padding: 40px 24px; }
.contact-card .icon-chip { margin-inline: auto; }
.contact-card h3 { margin-top: 18px; font-size: 17px; }
.contact-card .val { font-family: var(--font-latin); direction: ltr; unicode-bidi: embed; color: var(--terracotta); font-weight: 600; margin-top: 6px; display: inline-block; }

/* ---------- Legal ---------- */
.legal-body { max-width: 780px; margin: 0 auto; padding-block: 64px; }
.legal-body h2 { font-size: 24px; margin-top: 48px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--cocoa); margin-top: 14px; }
.legal-updated { font-size: 13px; color: var(--taupe); letter-spacing: .04em; }

/* ---------- Steps (download page) ---------- */
.steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
@media (max-width: 820px) { .steps-line { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 34px; }
.step-card .n {
  position: absolute; top: -22px; inset-inline-start: 24px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: #fff;
  display: grid; place-items: center; font-family: var(--font-latin); font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px rgba(193,92,52,.35);
}
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--cocoa); font-size: 14.5px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand-light); padding: 72px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: rgba(243,231,196,.6); }
.footer-tag { margin-top: 18px; font-size: 14px; color: rgba(243,231,196,.75); max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dune); margin-bottom: 18px; }
html[data-lang="ar"] .footer-col h4 { letter-spacing: 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--sand-light); font-size: 14.5px; opacity: .85; transition: opacity var(--motion-standard), color var(--motion-standard); }
.footer-col a:hover { opacity: 1; color: var(--gold-ring); }
.footer-contact-val { font-family: var(--font-latin); direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(243,231,196,.15);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
  font-size: 13px; color: rgba(243,231,196,.6);
}
.footer-disclaimer { font-size: 12px; color: rgba(243,231,196,.45); margin-top: 16px; max-width: 640px; }

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; background: var(--terracotta); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(193,92,52,.4);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--ease-enter), background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--terracotta-deep); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .hero-media video { display: none; }
  .hero-media img.poster { display: block !important; }
  .hero-title .word > span { transform: none; }
  .hero-rise { opacity: 1; transform: none; }
  .marquee-track, .hero-camels .train { animation: none; }
}

/* ============================================================
   FX layer — advanced motion systems
   ============================================================ */

/* Cross-page view transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .25s; }
::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    border-radius: 50%; will-change: transform;
  }
  .cursor-dot { width: 8px; height: 8px; background: var(--terracotta); }
  .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(193,92,52,.55);
    transition: width .25s var(--ease-enter), height .25s var(--ease-enter),
                border-color .25s, background .25s;
  }
  .cursor-ring.is-link { width: 58px; height: 58px; border-color: var(--gold-accent); background: rgba(255,197,61,.12); }
  .cursor-ring.is-press { width: 30px; height: 30px; }
}

/* ---------- Hero dust canvas ---------- */
.hero-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* ---------- Button ripple ---------- */
.btn, .store-badge, .camel-chip { position: relative; overflow: hidden; }
.fx-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.35); transform: scale(0); opacity: .8;
}
.camel-chip .fx-ripple { background: rgba(193,92,52,.18); }
.fx-ripple.run { animation: fx-ripple .6s var(--ease-enter) forwards; }
@keyframes fx-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Split-text titles ---------- */
.section-title .fx-seg { display: inline-block; overflow: hidden; vertical-align: bottom; }
.section-title .fx-seg > i {
  display: inline-block; font-style: normal;
  transform: translateY(115%); transition: transform .7s var(--ease-enter);
  transition-delay: var(--cd, 0ms);
}
.section-title.fx-in .fx-seg > i { transform: none; }
html[data-lang="ar"] .section-title .fx-seg { padding-bottom: .18em; margin-bottom: -.18em; }

/* ---------- Scroll-scrubbed race scene ---------- */
.race-scene { height: 340vh; position: relative; background: var(--sand-tint); }
.race-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.race-head { text-align: center; padding-inline: 20px; }
.race-clock {
  margin-top: 14px; font-weight: 300; font-size: clamp(34px, 5vw, 56px);
  letter-spacing: .08em; color: var(--espresso); font-family: var(--font-latin);
}
.race-hint { font-size: 13px; color: var(--taupe); margin-top: 6px; letter-spacing: .06em; }
.race-track { margin-top: clamp(22px, 4vh, 48px); position: relative; padding-block: 10px; }
.race-lane {
  position: relative; height: clamp(74px, 11vh, 104px);
  border-bottom: 2px dashed var(--sand-fill-deep);
}
.race-lane:first-child { border-top: 2px dashed var(--sand-fill-deep); }
.lane-tag {
  position: absolute; top: 8px; inset-inline-start: clamp(16px, 4vw, 40px);
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--cocoa); z-index: 2;
}
.lane-tag .num { background: var(--sand-fill); color: var(--bronze); border-radius: 6px; padding: 2px 8px; }
.race-camel {
  position: absolute; bottom: 4px; inset-inline-start: 0;
  height: clamp(48px, 7.5vh, 72px); width: auto; will-change: transform;
  filter: brightness(0) saturate(100%) invert(16%) sepia(14%) saturate(1400%) hue-rotate(330deg) brightness(95%);
}
html[dir="rtl"] .race-camel { transform: scaleX(-1); }
.race-camel::after { content: ''; }
.finish-line {
  position: absolute; top: 0; bottom: 0; inset-inline-end: clamp(20px, 5vw, 56px); width: 10px;
  background: repeating-linear-gradient(to bottom, var(--espresso) 0 10px, var(--cream) 10px 20px);
  border-radius: 4px; opacity: .85;
}
.race-result {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(18px, 3.5vh, 36px); opacity: 0; transform: translateY(20px) scale(.94);
  transition: opacity .5s var(--ease-enter), transform .5s var(--ease-spring);
}
.race-result.show { opacity: 1; transform: none; }
.rr-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); border-radius: var(--radius-pill); padding: 10px 20px;
  font-weight: 700; font-size: 15px; box-shadow: var(--elevation-card);
}
.rr-chip .rr-medal {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-latin); font-weight: 800; font-size: 13px;
}
.rr-chip:nth-child(1) .rr-medal { background: var(--gold-soft); border: 2px solid var(--gold-ring); color: var(--gold-badge); }
.rr-chip:nth-child(2) .rr-medal { background: var(--silver-soft); border: 2px solid var(--silver-ring); color: var(--silver-badge); }
.rr-chip:nth-child(3) .rr-medal { background: var(--bronze-soft); border: 2px solid var(--bronze-ring); color: var(--bronze-badge); }

/* ---------- Live leaderboard (FLIP) ---------- */
.board { max-width: 620px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.board-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream); border-radius: var(--radius-tile); padding: 14px 20px;
  box-shadow: var(--elevation-tile); border: 1.5px solid transparent;
  will-change: transform;
}
.board-row.you { border-color: var(--oasis); box-shadow: var(--elevation-active); }
.board-rank {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-latin); font-weight: 800; font-size: 15px;
  background: var(--sand-tint); color: var(--cocoa);
  transition: background .3s, color .3s, border-color .3s; border: 2px solid transparent;
}
.board-row[data-rank="1"] .board-rank { background: var(--gold-soft); border-color: var(--gold-ring); color: var(--gold-badge); }
.board-row[data-rank="2"] .board-rank { background: var(--silver-soft); border-color: var(--silver-ring); color: var(--silver-badge); }
.board-row[data-rank="3"] .board-rank { background: var(--bronze-soft); border-color: var(--bronze-ring); color: var(--bronze-badge); }
.board-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-weight: 800; font-size: 14px;
}
.board-name { font-weight: 700; font-size: 15.5px; }
.board-sub { font-size: 12px; color: var(--taupe); }
.board-pts {
  margin-inline-start: auto; font-family: var(--font-latin); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em; color: var(--accent-fg);
}
.board-pts.bump { animation: pts-bump .5s var(--ease-spring); }
@keyframes pts-bump { 40% { transform: scale(1.28); color: var(--oasis); } }
.board-note { text-align: center; font-size: 12px; color: var(--taupe); margin-top: 18px; }

/* ---------- Prize sparkles ---------- */
.prize-band { position: relative; }
.spark {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--gold-ring); opacity: 0;
  animation: spark-float var(--sd, 6s) ease-in-out var(--sdel, 0s) infinite;
}
@keyframes spark-float {
  0% { opacity: 0; transform: translateY(0) scale(.4); }
  20% { opacity: .9; }
  80% { opacity: .25; }
  100% { opacity: 0; transform: translateY(-140px) scale(1); }
}
.prize-amount { animation: prize-glow 3.2s ease-in-out infinite; }
@keyframes prize-glow {
  0%, 100% { text-shadow: 0 6px 40px rgba(231,164,0,.25); }
  50% { text-shadow: 0 6px 64px rgba(255,197,61,.6), 0 0 24px rgba(255,197,61,.28); }
}

/* ---------- Phone idle float + 3D ---------- */
.hiw-phone-col .phone { animation: phone-float 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes phone-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(.6deg); } }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring, .hero-dust { display: none !important; }
  .race-scene { height: auto; padding-block: 72px; }
  .race-sticky { position: static; height: auto; }
  .race-result { opacity: 1; transform: none; }
  .prize-amount, .hiw-phone-col .phone, .spark { animation: none; }
  .section-title .fx-seg > i { transform: none !important; }
}

/* ============================================================
   FX2 layer — preloader · WebGL hero · particle prize · progress
   ============================================================ */

/* ---------- Cinematic preloader (race gates) ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.pl-panel { position: absolute; inset-inline: 0; height: 50.5%; background: var(--espresso); transition: transform .8s cubic-bezier(.77,0,.18,1); }
.pl-panel.top { top: 0; }
.pl-panel.bot { bottom: 0; }
.preloader.done .pl-panel.top { transform: translateY(-101%); }
.preloader.done .pl-panel.bot { transform: translateY(101%); }
.pl-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  transition: opacity .35s ease;
}
.preloader.done .pl-center { opacity: 0; }
.pl-center img { width: min(230px, 62vw); height: auto; animation: pl-logo 1s var(--ease-spring) both; }
@keyframes pl-logo { from { transform: scale(.72); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-name { color: var(--sand-light); font-family: var(--font-latin); font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.pl-count {
  color: var(--gold-ring); font-family: var(--font-latin); font-weight: 300;
  font-size: 44px; letter-spacing: .12em;
}
.pl-bar { width: min(280px, 60vw); height: 3px; background: rgba(243,231,196,.18); border-radius: 2px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0%; background: var(--gold-ring); border-radius: 2px; }
/* hold hero entrance until the gates open */
body.is-loading .hero-rise, body.is-loading .hero-title .word > span { animation-play-state: paused !important; }

/* ---------- Scroll progress race track ---------- */
.progress-track {
  position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 300;
  background: transparent; pointer-events: none;
}
.progress-fill {
  position: absolute; top: 0; inset-inline-start: 0; height: 100%; width: 0%;
  background: var(--terracotta);
}
.progress-camel {
  position: absolute; top: 1px; inset-inline-start: 0; width: 30px; height: 30px;
  transform: translate(-50%, 0); will-change: left, right;
  filter: brightness(0) saturate(100%) invert(38%) sepia(60%) saturate(900%) hue-rotate(340deg) brightness(90%);
}
html[dir="rtl"] .progress-camel { transform: translate(50%, 0) scaleX(-1); }

/* ---------- WebGL hero canvas ---------- */
.hero-gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-media.gl-on video { visibility: hidden; }

/* ---------- Particle prize number ---------- */
.prize-particles { position: relative; display: block; width: 100%; margin-inline: auto; }
.prize-particles canvas { width: 100%; height: auto; display: block; }
.prize-amount.particles-on { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .preloader, .progress-track { display: none !important; }
  body.is-loading .hero-rise, body.is-loading .hero-title .word > span { animation-play-state: running !important; }
}
