/* =========================================================
   Tali3a — landing site
   ========================================================= */
:root {
  --bg: #060a1c;
  --bg-2: #0b1230;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #9ba6cb;
  --brand: #1565e0;
  --brand-2: #3d8bff;
  --violet: #7b5cff;
  --sky: #19a1ff;
  --gold: #ffc531;
  --pink: #ff5fa2;
  --green: #18b979;
  --navy: #08283e;
  --radius: 22px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(6, 10, 28, 0.66);
  --grad: linear-gradient(120deg, #3d8bff 0%, #7b5cff 50%, #ff5fa2 100%);
  --font: "Poppins", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --border: rgba(11, 23, 54, 0.09);
  --text: #0b1736;
  --muted: #5a6488;
  --shadow: 0 30px 70px -25px rgba(21, 50, 120, 0.28);
  --nav-bg: rgba(245, 247, 255, 0.75);
  color-scheme: light;
}

html[lang="ar"] { --font: "Cairo", "Poppins", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob.b1 { width: 560px; height: 560px; background: #1d4fd8; top: -160px; left: -140px; }
.blob.b2 { width: 520px; height: 520px; background: #5b2bd6; top: 30%; right: -180px; animation-delay: -6s; }
.blob.b3 { width: 420px; height: 420px; background: #0e7490; bottom: -160px; left: 30%; animation-delay: -12s; opacity: .35; }
:root[data-theme="light"] .blob { opacity: .22; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}
.grid-fx {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  transition: transform .35s ease;
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.5);
}
html[dir="rtl"] .nav-inner { padding: 10px 20px 10px 12px; }
.brand img { height: 34px; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }

.lang { position: relative; }
.lang-btn {
  height: 40px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); font-size: .88rem; font-weight: 600;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 170px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s ease;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: start; font-size: .92rem;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-current="true"] { color: var(--brand-2); font-weight: 600; }
.lang-menu small { color: var(--muted); font-size: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 0;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -10px rgba(21,101,224,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(21,101,224,.9); background: #1d6ff5; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.nav .btn { padding: 10px 18px; font-size: .88rem; }
.menu-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px 28px 40px;
  opacity: 0; visibility: hidden; transition: .3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 1.6rem; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 20px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%) rotateX(-60deg); transition: .6s cubic-bezier(.2,.8,.2,1);
}
.rotator span.on { opacity: 1; transform: none; }
.rotator span.out { opacity: 0; transform: translateY(-40%) rotateX(60deg); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 16px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18);
  transition: transform .25s, box-shadow .25s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(61,139,255,.8); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: .68rem; opacity: .8; }
.store strong { font-size: 1.08rem; font-weight: 600; }
:root[data-theme="light"] .store { border-color: #000; }

.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* phone mockups (real device frame, transparent PNG/WebP) */
.phone {
  position: relative; width: 270px; aspect-ratio: 640 / 1213;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .5));
}
:root[data-theme="light"] .phone { filter: drop-shadow(0 26px 40px rgba(21, 50, 120, .28)); }
.phone .screen { position: relative; width: 100%; height: 100%; }
.phone .screen img { width: 100%; height: 100%; object-fit: contain; }

.hero-visual { position: relative; height: 620px; perspective: 1400px; }
.hero-visual .phone { position: absolute; }
.hero-visual .p-main { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 290px; }
.hero-visual .p-left { left: 0; top: 90px; transform: rotate(-9deg) scale(.86); z-index: 2; opacity: .95; }
.hero-visual .p-right { right: 0; top: 90px; transform: rotate(9deg) scale(.86); z-index: 2; opacity: .95; }
.tilt { transition: transform .2s ease-out; transform-style: preserve-3d; height: 100%; }

.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.chip-fly {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #0b1736; font-weight: 600; font-size: .85rem;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
  animation: float 5s ease-in-out infinite;
}
html[dir="rtl"] .chip-fly { padding: 8px 8px 8px 14px; }
.chip-fly img { width: 34px; height: 34px; border-radius: 50%; }
.chip-fly .up { color: var(--sky); }
.chip-fly.c1 { top: 70px; left: -10px; animation-delay: -1s; }
.chip-fly.c2 { top: 300px; right: -20px; animation-delay: -2.5s; }
.chip-fly.c3 { bottom: 40px; left: 30px; animation-delay: -3.5s; }
.emoji-fly { position: absolute; font-size: 2.2rem; z-index: 6; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.emoji-fly.e1 { top: 10px; right: 60px; }
.emoji-fly.e2 { bottom: 120px; right: 10px; animation-delay: -2s; }
.emoji-fly.e3 { top: 210px; left: 40px; animation-delay: -3s; font-size: 1.8rem; }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 40px 0 20px; }
.marquee-title { text-align: center; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 20px; }
html[lang="ar"] .marquee-title { letter-spacing: 0; }
.marquee {
  display: flex; overflow: hidden; gap: 14px; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; flex: none; animation: scroll 50s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-100% - 14px)); } }
.sec-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); white-space: nowrap; font-weight: 600; font-size: .95rem;
}
.sec-chip img { width: 34px; height: 34px; border-radius: 50%; }

/* ---------- sections ---------- */
section.block { padding: 110px 0; position: relative; }
.head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.head h2, .split h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
html[lang="ar"] .head h2, html[lang="ar"] .split h2 { letter-spacing: 0; line-height: 1.35; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .35s ease, border-color .35s ease, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(61,139,255,.16), transparent 40%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(61,139,255,.35); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 8px; font-size: 1.3rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 26px -10px currentColor;
}
.ico svg { width: 26px; height: 26px; }
.ico.blue { background: linear-gradient(135deg, #3d8bff, #1565e0); }
.ico.violet { background: linear-gradient(135deg, #a78bfa, #6d4aff); }
.ico.pink { background: linear-gradient(135deg, #ff8fc0, #ff3d8b); }
.ico.gold { background: linear-gradient(135deg, #ffd96a, #ffa800); }
.ico.green { background: linear-gradient(135deg, #4ade80, #0f9f6e); }
.ico.cyan { background: linear-gradient(135deg, #5eead4, #0891b2); }
.ico.orange { background: linear-gradient(135deg, #fdba74, #f97316); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: 1 / -1; }
.card.big { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: end; padding-bottom: 0; }
.card.big .mini-phone {
  width: 200px; height: 270px; overflow: hidden;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); transform: translateY(14px); transition: transform .4s;
}
.card.big:hover .mini-phone { transform: translateY(0); }
.card.big .mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card.big .txt { padding-bottom: 28px; }
.vote-demo { display: flex; gap: 10px; margin-top: 18px; }
.vote-demo span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); font-weight: 700; font-size: .9rem;
}
.vote-demo svg { width: 16px; height: 16px; }
.vote-demo .u { color: var(--sky); }
.wave { display: flex; align-items: center; gap: 3px; height: 36px; margin-top: 18px; }
.wave i { width: 4px; border-radius: 4px; background: var(--brand-2); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.avatars-row { display: flex; margin-top: 18px; }
.avatars-row img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg-2); margin-inline-end: -10px; }

/* ---------- story (sticky phone) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-phone { position: sticky; top: 110px; height: calc(100vh - 140px); display: grid; place-items: center; }
.story-phone .phone { width: min(300px, 32vh * .9 + 60px); }
.story-phone .screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease; }
.story-phone .screen img.on { opacity: 1; transform: none; }
.story-phone .glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--grad); filter: blur(100px); opacity: .35; z-index: -1;
}
.steps { padding: 10vh 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.step.on { opacity: 1; }
.step .num { font-size: .85rem; font-weight: 700; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; margin: 10px 0 14px; letter-spacing: -.02em; }
html[lang="ar"] .step h3 { letter-spacing: 0; line-height: 1.4; }
.step p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 460px; }
.step ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; align-items: flex-start; }
.step li::before { content: "✓"; color: var(--green); font-weight: 800; }
.step .phone.inline { display: none; }

/* ---------- ranking ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split p.sub { color: var(--muted); font-size: 1.1rem; }
.board { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; gap: 14px; padding: 14px; }
.trophy { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd96a, #ffa800); color: #fff; }
.trophy svg { width: 26px; height: 26px; }
.board-head strong { display: block; font-size: 1.15rem; }
.board-head span { color: var(--muted); font-size: .85rem; }
.row {
  display: grid; grid-template-columns: 44px 48px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 16px; transition: background .3s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.row:hover { background: var(--surface-2); }
.rank { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--muted); }
.row:nth-child(1) .rank { background: var(--gold); color: #3b2a00; box-shadow: 0 0 24px rgba(255,197,49,.6); }
.row:nth-child(2) .rank { background: #c8ccd6; color: #2a2f3a; }
.row:nth-child(3) .rank { background: #e8853a; color: #fff; }
.row img { width: 48px; height: 48px; border-radius: 50%; }
.row .who strong { display: block; }
.row .who span { color: var(--muted); font-size: .85rem; }
.row .who b { color: var(--sky); }
.row .bar { width: 90px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.row .bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.reveal.in .row .bar i { width: var(--w); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badges span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 600; }

/* ---------- safety ---------- */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safety .card { padding: 26px; }
.safety h3 { font-size: 1.1rem; }

/* ---------- languages ---------- */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lang-card { text-align: center; padding: 36px 24px; }
.lang-card .big { font-size: 3rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-card p { margin-top: 12px; }
.lang-card q { display: block; margin-top: 16px; font-size: 1.05rem; color: var(--text); quotes: none; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 24px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(61,139,255,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-2); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- download ---------- */
.download {
  position: relative; overflow: hidden; border-radius: 36px; padding: 70px 50px;
  background: linear-gradient(135deg, #0f3dbd 0%, #3b1fa3 55%, #6a1f8f 100%); color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.download h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.03em; }
html[lang="ar"] .download h2 { letter-spacing: 0; line-height: 1.35; }
.download p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 0 0 28px; }
.download .t3 { position: absolute; inset-inline-end: -60px; bottom: -80px; width: 380px; opacity: .1; transform: rotate(-12deg); }
.download .phones { position: relative; height: 340px; }
.download .phone { position: absolute; width: 190px; }
.download .phone:first-child { inset-inline-start: 10%; top: 0; transform: rotate(-8deg); }
.download .phone:last-child { inset-inline-end: 8%; top: 40px; transform: rotate(8deg); }

/* ---------- footer ---------- */
footer { padding: 80px 0 40px; border-top: 1px solid var(--border); margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 16px; font-size: .95rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--muted); max-width: 320px; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.made { display: inline-flex; gap: 6px; align-items: center; }
.heart { color: var(--pink); display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

/* ---------- legal / about pages ---------- */
.page-hero { padding: 160px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 14px 0 12px; letter-spacing: -.03em; line-height: 1.1; }
html[lang="ar"] .page-hero h1 { letter-spacing: 0; line-height: 1.35; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.updated { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; max-height: calc(100vh - 140px); overflow: auto; }
.toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
html[lang="ar"] .toc strong { letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: .88rem; color: var(--muted); transition: .2s; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.active { color: var(--brand-2); background: rgba(61,139,255,.1); font-weight: 600; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 50px; min-width: 0; }
.prose h2 { font-size: 1.45rem; margin: 46px 0 14px; scroll-margin-top: 110px; letter-spacing: -.01em; display: flex; gap: 12px; align-items: baseline; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { color: var(--brand-2); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.prose h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-inline-start: 20px; display: grid; gap: 8px; }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  border-inline-start: 3px solid var(--brand-2); background: rgba(61,139,255,.08);
  padding: 16px 20px; border-radius: 12px; margin: 20px 0; color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.prose td { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* i18n: show only the active language block */
[data-only] { display: none; }
html[lang="en"] [data-only="en"], html[lang="fr"] [data-only="fr"], html[lang="ar"] [data-only="ar"] { display: block; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad); z-index: 60; width: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .nav .btn-primary { display: none; }
  .hero-grid, .split, .download { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta-row, .hero-stats { justify-content: center; }
  .hero-visual { height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .card.big { grid-column: span 2; }
  .safety { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .download .phones { display: none; }
}
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .steps { padding: 0; }
  .step { min-height: auto; opacity: 1; padding: 40px 0; border-bottom: 1px solid var(--border); }
  .step .phone.inline { display: block; width: 230px; margin: 30px auto 0; }
  section.block { padding: 80px 0; }
  .langs, .about-grid, .values { grid-template-columns: 1fr; }
  .prose { padding: 28px 22px; border-radius: 22px; }
  .download { padding: 50px 26px; border-radius: 28px; text-align: center; }
  .download .cta-row { justify-content: center; }
}
@media (max-width: 560px) {
  .bento, .safety { grid-template-columns: 1fr; }
  .card.big { grid-column: span 1; grid-template-columns: 1fr; }
  .card.big .mini-phone { margin: 0 auto; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 190px; }
  .hero-visual .p-main { width: 215px; }
  .hero-visual .p-left { left: -20px; }
  .hero-visual .p-right { right: -20px; }
  .chip-fly { font-size: .75rem; }
  .chip-fly img { width: 28px; height: 28px; }
  .chip-fly.c2 { right: 0; }
  .hero-stats { gap: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 38px 42px 1fr; }
  .row .bar { display: none; }
  .nav .brand img { height: 28px; }
  .lang-btn .lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
