@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Manrope:wght@400;500;600;700;800&family=Reem+Kufi:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================================
   ELHARIFA — design tokens (from the app's Velocity Prime theme)
   ============================================================ */
:root {
  --bg:            #0D0E13;  /* Deep Obsidian (app background) */
  --bg-2:          #0a0b10;
  --surface:       #16171d;
  --surface-high:  #1e1f26;
  --surface-bright:#24252d;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --lime:  #cafd00;
  --lime-soft: #f3ffca;
  --cyan:  #00ffcc;
  --grad:  linear-gradient(135deg, #00ffcc 0%, #cafd00 100%);

  /* Reward tier accent — matches the app's ratings, trophy tiers and
     the Harif coin. Scoped to trophy/ranking/currency moments only. */
  --gold:      #ffb43a;
  --gold-soft: #ffd98a;

  --text:      #ffffff;
  --text-dim:  #abaab1;
  --text-mute: #6f7079;

  --radius: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

/* `clip` (not `hidden`): kills sideways scroll from decorative
   overflow (halo, orbit) WITHOUT creating a scroll container — so
   position:sticky on the nav keeps working. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.55;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.05; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(202, 253, 0, 0.85); color: #0d0e13; }

/* Slim, on-brand scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--surface-bright), var(--surface-high));
  border-radius: 8px; border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: #33353f; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.glow-text { filter: drop-shadow(0 0 18px rgba(0,255,204,0.35)); }
.grad-bg { background: var(--grad); }
.cyan-bg { background: linear-gradient(135deg, #00ffcc, #00b3ff); }

/* ============ Ambient layers ============ */
.pitch-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 70%);
}
/* The orbs are soft radial gradients already — an extra filter:blur()
   on 60vw fixed surfaces cost real GPU (and stalled capture tooling)
   for no visible gain. */
.orb {
  position: fixed; z-index: -2; pointer-events: none; border-radius: 50%;
}
.orb-1 { top: -22%; left: -12%; width: 62vw; height: 62vw;
  background: radial-gradient(circle, rgba(0,255,204,0.11) 0%, transparent 66%); }
.orb-2 { bottom: -26%; right: -14%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(202,253,0,0.09) 0%, transparent 66%); }
/* Film-grain noise: keeps the big dark surfaces from banding. */
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 0.7rem 1.35rem; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  border: 1px solid transparent; white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn span { position: relative; z-index: 2; }
.btn-primary { background: var(--grad); color: #05221c; box-shadow: 0 6px 22px rgba(0,255,204,0.22); }
.btn-primary::before {
  /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.65) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,255,204,0.38); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(0,255,204,0.35); transform: translateY(-2px); }

/* Google Play badge */
.play-badge-link { display: inline-block; }
.play-badge {
  height: 62px; width: auto; display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
  transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease);
}
.play-badge-link:hover .play-badge,
.play-badge-link:focus-visible .play-badge {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 10px 26px rgba(0,255,204,0.3));
}

/* ============ NAV (floating pill) ============ */
.nav-shell { position: sticky; top: 0.9rem; z-index: 100; padding: 0 clamp(0.8rem, 3vw, 2rem); }
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto;
  padding: 0.65rem 1rem 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(16, 17, 23, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; margin-inline-end: auto; }
.nav-logo { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(0,255,204,0.35)); }
.nav-word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 2px; font-size: 1.02rem; }
.nav-links { display: flex; gap: 0.4rem; }
.nav-links a {
  color: var(--text-dim); font-weight: 600; font-size: 0.9rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta { font-size: 0.85rem; padding: 0.55rem 1.15rem; }

/* ============ HERO ============ */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) 3.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2.2px; color: var(--cyan);
  background: rgba(0,255,204,0.07); border: 1px solid rgba(0,255,204,0.22);
  padding: 0.42rem 0.9rem; border-radius: 999px; margin-bottom: 1.4rem;
  box-shadow: inset 0 0 20px rgba(0,255,204,0.05);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0,255,204,0.6); animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0,255,204,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(0,255,204,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,204,0); }
}
.hero-title {
  font-size: clamp(2.8rem, 6.4vw, 4.9rem); font-weight: 700; letter-spacing: -1.5px;
}
.hero-title .line { display: block; }
.hero-sub { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.16rem); margin: 1.4rem 0 2.1rem; max-width: 30rem; }
.hero-sub strong { color: var(--lime); font-weight: 700; }
.hero-sub em { color: var(--text); font-style: normal; opacity: 0.85; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-trust { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust li.sep { width: 1px; height: 30px; background: var(--line-strong); }
.hero-trust strong { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; }
.hero-trust span { color: var(--text-mute); font-size: 0.78rem; }

/* Hero stage */
.hero-stage { position: relative; display: flex; justify-content: center; }
.stage-halo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(480px, 94vw); height: min(480px, 94vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,204,0.14) 0%, rgba(202,253,0,0.06) 42%, transparent 70%);
  filter: blur(10px); animation: halo-breathe 7s ease-in-out infinite;
}
@keyframes halo-breathe { 0%,100% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }

.float-card {
  position: absolute; z-index: 5;
  background: rgba(30,31,38,0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 15px;
  padding: 0.6rem 0.9rem; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.55rem;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-icon { font-size: 1.2rem; }
.float-card small { display: block; color: var(--text-mute); font-weight: 500; font-size: 0.68rem; }
.float-card-a { top: 10%; left: -5%; animation-delay: 0.6s; }
.float-card-b { bottom: 30%; right: -7%; color: var(--cyan); }
.float-card-c { bottom: 6%; left: 2%; animation-delay: 1.4s; }

/* ============ Phone frame ============ */
.phone {
  /* Mockups stay LTR even on the Arabic (RTL) page — the app screens
     read cleanly with their icons/scores/labels in a stable layout. */
  direction: ltr;
  position: relative; width: 288px; aspect-ratio: 9 / 19.2;
  background: #05060a; border-radius: 42px;
  border: 1px solid var(--line-strong);
  padding: 10px;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.6),
    0 0 0 2px rgba(255,255,255,0.02),
    inset 0 0 0 2px rgba(255,255,255,0.03);
  transform-style: preserve-3d;
}
.tilt { transition: transform 0.35s var(--ease-out); will-change: transform; }
.phone-hero {
  animation: float 7s ease-in-out infinite;
  box-shadow: 0 50px 110px rgba(0,0,0,0.65), 0 0 60px rgba(0,255,204,0.13);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: #05060a; border-radius: 0 0 14px 14px; z-index: 6;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex; flex-direction: column; padding: 30px 12px 0;
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.95rem 0; margin: 1rem 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; color: var(--text-dim); }
.marquee-track i { color: var(--cyan); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ Stats band ============ */
.stats-band {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2.5rem) 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  text-align: center; padding: 1.4rem 0.8rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid var(--line);
}
.stat b {
  display: block; font-family: 'Space Grotesk'; font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: var(--text-dim); font-size: 0.82rem; line-height: 1.35; display: inline-block; margin-top: 0.3rem; }

/* ============ Sections ============ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.6rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.kicker { font-family: 'Space Grotesk'; font-size: 0.72rem; letter-spacing: 2.6px; color: var(--cyan); font-weight: 600; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 700; margin: 0.8rem 0; letter-spacing: -0.8px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* Spotlight cards — the radial hotspot follows the cursor (JS sets
   --mx/--my per card), Linear-style. Falls back to a static sheen. */
.card-spot { position: relative; overflow: hidden; }
.card-spot::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0,255,204,0.09), transparent 55%);
}
.card-spot:hover::before { opacity: 1; }
.card-spot > * { position: relative; z-index: 1; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(0,255,204,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.45); }
.f-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; color: #05221c; margin-bottom: 1.15rem;
  box-shadow: 0 8px 22px rgba(0,255,204,0.2);
}
/* Trophy moments borrow the app's gold tier colour. */
.f-ico--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #3a2600; box-shadow: 0 8px 22px rgba(255,180,58,0.28);
}
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.93rem; }

/* ============ Screens showcase ============ */
/* Real app screenshots sit flush inside the device frame (no fake
   notch — the shot carries its own status bar). */
.phone--shot .phone-screen { padding: 0; background-image: none; background: #05060a; }
.phone--shot .phone-notch { display: none; }
.phone-shot-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
}

/* Breadth strip — flick through the rest of the app. Scroll-snap,
   not a marquee: the visitor drives it. */
.screens-strip {
  display: flex; gap: clamp(0.9rem, 2vw, 1.5rem);
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding: 0.6rem 0.2rem 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.screens-strip::-webkit-scrollbar { display: none; }
.screens-strip figure { scroll-snap-align: center; }
.screens-strip .phone {
  width: 176px; flex: 0 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.screens-strip figcaption {
  margin-top: 0.85rem; text-align: center;
  color: var(--text-mute); font-size: 0.74rem; font-weight: 600;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.3px;
}

.screens-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap; perspective: 1200px; }
.screen-item { display: flex; flex-direction: column; align-items: center; }
.screen-item figcaption { margin-top: 1.4rem; text-align: center; color: var(--text-dim); font-size: 0.86rem; max-width: 15rem; }
.screen-item figcaption b { display: block; color: var(--text); font-family: 'Space Grotesk'; font-size: 0.98rem; margin-bottom: 0.25rem; }
.screen-item.featured { transform: translateY(-26px); }
.screen-item.featured .phone { box-shadow: 0 50px 100px rgba(0,0,0,0.6), 0 0 60px rgba(202,253,0,0.13); }

/* ============ How it works ============ */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative; padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(202,253,0,0.3); }
.step-num {
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 2.6rem; letter-spacing: -1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.05));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ FAQ ============ */
.faq-section .section-head { margin-bottom: 2.2rem; }
.faq-list { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-list details {
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.25s var(--ease);
}
.faq-list details[open] { border-color: rgba(0,255,204,0.3); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 1rem;
  padding: 1.05rem 1.3rem; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-x {
  font-family: 'Manrope'; font-weight: 400; font-size: 1.4rem; color: var(--cyan); line-height: 1;
  transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.faq-list details[open] .faq-x { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.3rem 1.15rem; color: var(--text-dim); font-size: 0.94rem; }

/* ============ CTA band ============ */
.cta-band { max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1rem,4vw,2.5rem) 4.5rem; }
.cta-inner {
  position: relative; text-align: center; padding: clamp(2.6rem, 6vw, 4.8rem) 1.5rem;
  border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,255,204,0.13), transparent 60%),
    linear-gradient(180deg, var(--surface-high), var(--bg-2));
  border: 1px solid var(--line-strong);
}
.cta-orbit {
  position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0,255,204,0.06) 40deg, transparent 90deg, transparent 200deg, rgba(202,253,0,0.05) 250deg, transparent 300deg);
  animation: rotate 26s linear infinite;
}
.cta-inner > *:not(.cta-orbit) { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700; margin: 1.2rem 0 0.6rem; letter-spacing: -0.6px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 2rem; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.qr-box {
  display: flex; align-items: center; gap: 0.8rem; text-align: left;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 0.55rem 1rem 0.55rem 0.55rem;
}
.qr-box img { border-radius: 12px; display: block; background: var(--bg); }
.qr-box span { font-family: 'Space Grotesk'; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); line-height: 1.35; text-align: start; }

/* Logo glow */
.logo-wrapper { position: relative; display: inline-flex; justify-content: center; align-items: center; width: 150px; height: 150px; }
.logo-glow-ring {
  position: absolute; width: 128px; height: 128px; border-radius: 50%;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--grad);
  background-origin: border-box; background-clip: content-box, border-box;
  border: 2px solid transparent; filter: blur(7px); opacity: 0.5; animation: rotate 15s linear infinite;
}
.logo-glow-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: var(--grad); filter: blur(22px); opacity: 0.3; z-index: -1; }
.shield-logo-wrapper { position: relative; z-index: 2; width: 118px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.7)) drop-shadow(0 0 22px rgba(0,255,204,0.25)); }
.main-logo-img { width: 100%; height: auto; display: block; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 3rem clamp(1rem,4vw,2.5rem) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-family: 'Space Grotesk'; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 0.8rem; }
.footer-logo { height: 30px; }
.footer-brand-col p { color: var(--text-mute); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--text-mute); font-size: 0.92rem; font-weight: 600; padding: 0.28rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bar {
  max-width: var(--max); margin: 0 auto;
  padding: 1.2rem clamp(1rem,4vw,2.5rem) 1.8rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bar p { color: var(--text-mute); font-size: 0.8rem; }
.to-top { color: var(--text-dim); font-size: 0.82rem; font-weight: 700; transition: color 0.2s; }
.to-top:hover { color: var(--cyan); }

/* ============ Motion system ============ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Staggered reveal: --d sets the stagger slot (×90ms). */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .nav-links { display: none; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .screen-item.featured { transform: none; order: -1; }
}
@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .phone { width: 264px; }
  .float-card-a { left: 0; } .float-card-b { right: 0; } .float-card-c { left: 4%; }
  .hero-trust { gap: 0.9rem; }
  .hero-trust li.sep { display: none; }
  .play-badge { height: 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bar { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Language toggle + Arabic (RTL) layer
   ============================================================ */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.42rem 0.75rem; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.8rem;
  color: var(--text-dim); transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-toggle:hover { border-color: rgba(0,255,204,0.4); background: rgba(255,255,255,0.07); }
.lt-sep { opacity: 0.35; font-weight: 400; }
/* Highlight the ACTIVE language (not the target). */
html:not(.lang-ar) .lt-en, html.lang-ar .lt-ar { color: var(--cyan); }

/* No-flash gate: the head script adds `ar-pending` only for Arabic
   first-loads; the end-of-body i18n script removes it once the text
   is swapped. English visitors never get this class → zero delay. */
html.ar-pending body { visibility: hidden; }

/* Arabic typography — Cairo covers Arabic (Space Grotesk / Manrope
   don't). Latin brand words render in Cairo's Latin glyphs, which is
   fine. Letter-spacing is zeroed everywhere it was set, because
   tracking breaks Arabic's connected letterforms. */
html.lang-ar body { font-family: 'Cairo', 'Manrope', system-ui, sans-serif; }
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4,
html.lang-ar .hero-title, html.lang-ar .nav-word, html.lang-ar .eyebrow,
html.lang-ar .kicker, html.lang-ar .step-num, html.lang-ar .stat b,
html.lang-ar .app-cta, html.lang-ar .section-head h2, html.lang-ar .faq-list summary,
html.lang-ar .footer-brand, html.lang-ar .lang-toggle {
  font-family: 'Cairo', sans-serif;
}
html.lang-ar .nav-word, html.lang-ar .eyebrow, html.lang-ar .kicker,
html.lang-ar .hero-title, html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4,
html.lang-ar .section-head h2, html.lang-ar .step-num, html.lang-ar .footer-col h4,
html.lang-ar .hero-trust strong, html.lang-ar .stat b, html.lang-ar .app-cta,
html.lang-ar .eyebrow > span, html.lang-ar .to-top {
  letter-spacing: normal;
}
/* The mockups are forced LTR (see .phone) and hold Latin/numeric UI —
   keep their own tracking intact by NOT resetting phone internals. */
html.lang-ar .phone, html.lang-ar .phone * { letter-spacing: normal; }

/* Brand wordmark "الحريفة" gets a geometric Kufi face in Arabic. */
html.lang-ar .nav-word,
html.lang-ar .footer-brand span {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-weight: 700;
}

/* RTL: mirror the hero float-card offsets so they hug the right side. */
html[dir="rtl"] .float-card-a { left: auto; right: -5%; }
html[dir="rtl"] .float-card-b { right: auto; left: -7%; }
html[dir="rtl"] .float-card-c { left: auto; right: 2%; }

/* Cairo runs a touch tall — relax the tight display line-height a bit. */
html.lang-ar .hero-title { line-height: 1.18; }
html.lang-ar .section-head h2, html.lang-ar .cta-inner h2 { line-height: 1.2; }

/* Screen Reader Only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
