/* Clearn landing page — brand "Kernel Notebook" (D-68): dot-grid paper, ink, teal, amber highlighter, night panels.
   Layout works without JavaScript; `.fx` (added by main.js when motion is allowed) switches on the scroll-animation layouts. */

/* ---------- Fonts (IBM Plex, SIL OFL — see fonts/OFL.txt). One family: Latin file + Arabic file by unicode-range. ---------- */
@font-face { font-family: 'Clearn Sans'; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Clearn Sans'; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Clearn Sans'; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Clearn Sans'; font-weight: 700; font-display: swap; src: url(fonts/plex-sans-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Clearn Sans'; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Clearn Sans'; font-weight: 500; font-display: swap; src: url(fonts/plex-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Clearn Sans'; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Clearn Sans'; font-weight: 700; font-display: swap; src: url(fonts/plex-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Clearn Mono'; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'Clearn Mono'; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --ink: #141922;
  --ink-2: #3B4452;
  --muted: #535D6B;
  --line: #DDE2E8;
  --teal: #0A6E6A;
  --teal-deep: #085A57;
  --teal-ink: #06201E;
  --teal-2: #3CC4B6;
  --teal-soft: #E9F5F3;
  --amber: #F0B44C;
  --amber-soft: #FFF8EA;
  --amber-line: #F0DDB5;
  --coral: #B4361E;
  --coral-2: #F08A70;
  --night: #0D1117;
  --night-2: #151B23;
  --night-3: #1B2330;
  --night-line: #2A3442;
  --night-line-2: #3A4656;
  --night-ink: #E7EBF0;
  --night-ink-2: #C9D0D8;
  --night-muted: #9BA6B4;
  --sans: 'Clearn Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Clearn Mono', 'Clearn Sans', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dots: radial-gradient(rgba(20, 25, 34, .085) 1.2px, transparent 1.6px);
  --dots-night: radial-gradient(rgba(231, 235, 240, .065) 1.2px, transparent 1.6px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--dots);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang='ar'] body { font-size: 18px; line-height: 1.75; }
html[lang='ar'] :is(h1, h2, h3, p, li, b, span, a, button, mark, em, small, figcaption) { letter-spacing: 0; }
.i18n-pending body { visibility: hidden; }
.js-motion:not(.fx) :is(.hero-copy, .hero-stage) { opacity: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.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; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 8px; }
section { position: relative; }

/* ---------- Type ---------- */
h2 { margin: 0 0 22px; font-size: clamp(38px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
html[lang='ar'] h2 { line-height: 1.3; }
.lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
html[lang='ar'] .kicker { font-family: var(--sans); font-size: 15px; font-weight: 600; text-transform: none; }
mark {
  color: inherit;
  padding: 0 .05em;
  background: linear-gradient(transparent 60%, var(--amber) 60%, var(--amber) 92%, transparent 92%) no-repeat 0 0 / var(--hl, 100%) 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[dir='rtl'] mark { background-position: 100% 0; }
code { font-family: var(--mono); font-size: .86em; white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 32px -14px rgba(10, 110, 106, .7); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .75); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { padding: 16px 26px; font-size: 18px; }
.btn-xl { padding: 20px 34px; font-size: 20px; border-radius: 16px; }
.btn .short { display: none; }
.arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir='rtl'] .arrow { transform: scaleX(-1); }
[dir='rtl'] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Scroll progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2), var(--amber)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
[dir='rtl'] .progress span { transform-origin: 100% 50%; background: linear-gradient(-90deg, var(--teal), var(--teal-2), var(--amber)); }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--ink); transition: background-color .35s, box-shadow .35s, color .35s; }
.nav.is-scrolled { background: rgba(245, 246, 248, .8); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 rgba(20, 25, 34, .08); }
.nav.is-night { color: var(--night-ink); }
.nav.is-night.is-scrolled { background: rgba(13, 17, 23, .74); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand .logo { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none; opacity: .78; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .13); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { padding: 7px 14px; border: 1px solid rgba(127, 127, 127, .4); border-radius: 999px; background: transparent; color: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.lang-btn:hover { background: rgba(127, 127, 127, .13); }
.nav.is-night .btn-primary { background: var(--teal-2); color: var(--teal-ink); box-shadow: none; }

/* ---------- Devices ---------- */
.phone { position: relative; padding: clamp(6px, .7vw, 10px); border-radius: clamp(28px, 3.2vw, 48px); background: #0B0F15; box-shadow: 0 50px 100px -40px rgba(16, 24, 40, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .09); }
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: clamp(22px, 2.6vw, 40px); background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-lg { width: min(340px, 78vw); }
.phone-sm { width: min(220px, 40vw); }
.browser { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 60px 120px -50px rgba(16, 24, 40, .45), 0 0 0 1px rgba(20, 25, 34, .08); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #EEF0F3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #CFD5DC; }
.browser-url { margin-inline: auto; max-width: 62%; overflow: hidden; padding: 4px 14px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- 1 · Hero ---------- */
.hero { overflow: clip; padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) 0 clamp(56px, 8vw, 110px); text-align: center; }
.hero-glow { position: absolute; inset: -10% -10% auto; height: 110vh; pointer-events: none; background: radial-gradient(40% 45% at 50% 38%, rgba(60, 196, 182, .24), transparent 70%), radial-gradient(26% 30% at 76% 26%, rgba(240, 180, 76, .2), transparent 70%), radial-gradient(22% 26% at 22% 30%, rgba(10, 110, 106, .12), transparent 70%); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ink-2); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
html[lang='ar'] .eyebrow { padding: 8px 12px 8px 16px; font-family: var(--sans); font-size: 14px; text-transform: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 196, 182, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(60, 196, 182, 0); } }
.hero-title { margin: 0; font-size: clamp(54px, 9vw, 136px); line-height: .9; letter-spacing: -.055em; font-weight: 700; }
html[lang='ar'] .hero-title { font-size: clamp(48px, 8vw, 120px); line-height: 1.2; }
.hero-title .w, .final-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .16em; margin: -.08em -.04em -.16em; }
html[lang='ar'] :is(.hero-title, .final-title) .w { padding: .16em .06em .3em; margin: -.16em -.06em -.3em; }
.hero-title .wi, .final-title .wi { display: inline-block; }
.hero-sub { margin: 0; max-width: 660px; font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-stage { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); margin: clamp(36px, 5vh, 56px) auto 0; perspective: 1800px; }
.laptop { position: relative; transform-origin: 50% 100%; }
.laptop-screen { padding: clamp(7px, 1.1vw, 16px); border-radius: clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px) 0 0; background: #0B0F15; box-shadow: 0 70px 130px -50px rgba(16, 24, 40, .55), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; }
.laptop-base { position: relative; height: clamp(12px, 1.6vw, 22px); margin: 0 -6%; border-radius: 0 0 22px 22px / 0 0 14px 14px; background: linear-gradient(#DCE0E5, #A9B1BB); }
.laptop-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 14%; height: 42%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #98A1AC; }
.hero-phone { position: absolute; z-index: 2; width: 22%; inset-inline-end: -3%; bottom: -7%; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(16, 24, 40, .4), 0 0 0 1px rgba(20, 25, 34, .07); }
.float-chip svg { width: 18px; height: 18px; flex: none; }
.chip-src { inset-inline-start: -3%; top: 24%; font-weight: 500; letter-spacing: .02em; }
.chip-streak { inset-inline-start: 13%; top: -5%; }
.chip-streak svg { fill: var(--amber); }
.chip-ok { inset-inline-end: 17%; bottom: 20%; }
.chip-ok svg { padding: 3px; border-radius: 50%; background: var(--teal); fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 2 · Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0 34px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.marquee-label { margin: 0 0 18px; text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang='ar'] .marquee-label { font-family: var(--sans); font-size: 15px; font-weight: 600; text-transform: none; }
.marquee-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-row { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; padding-inline: var(--gutter); }
.fx .marquee-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; }
.subj { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: 14px; padding: 10px 22px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: clamp(19px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.subj b { padding: 7px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-family: var(--mono); font-size: .5em; font-weight: 500; letter-spacing: .04em; }

/* ---------- 3 · How it works (pinned) ---------- */
.how { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 24px) 0 40px; }
.how-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-bars { display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-bottom: 26px; direction: ltr; width: max-content; }
.how-bars span { position: relative; overflow: hidden; width: 18px; border-radius: 6px; background: var(--line); }
.how-bars span:nth-child(1) { height: 40%; }
.how-bars span:nth-child(2) { height: 70%; }
.how-bars span:nth-child(3) { height: 100%; }
.how-bars i { position: absolute; inset: 0; background: var(--teal); transform-origin: 50% 100%; }
.how-bars span:nth-child(3) i { background: var(--amber); }
.how-titles { display: flex; flex-direction: column; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.how-title { display: flex; flex-direction: column; }
.how-title .mono { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.how-title b { font-size: clamp(52px, 7.4vw, 112px); line-height: 1; letter-spacing: -.045em; }
html[lang='ar'] .how-title b { line-height: 1.3; }
.how-paras p { margin: 0 0 14px; max-width: 520px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }
.fx .how-paras { display: grid; }
.fx .how-paras p { grid-area: 1 / 1; margin: 0; }
.how-device { display: flex; justify-content: center; }
.how .phone-lg { width: min(340px, calc((100svh - 190px) / 2.2)); }
.how-screen:not(:first-child) { clip-path: inset(100% 0 0 0); }

/* ---------- 4 · Statement ---------- */
.statement { padding: clamp(100px, 15vw, 210px) 0; }
.statement-text { max-width: 1150px; margin: 0; font-size: clamp(28px, 4.2vw, 62px); line-height: 1.16; letter-spacing: -.03em; font-weight: 600; text-wrap: pretty; }
html[lang='ar'] .statement-text { line-height: 1.6; }
.statement-text em { font-style: normal; color: var(--teal); }

/* ---------- 5 · Proof ---------- */
.proof { padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 160px); }
.proof-browser { width: min(1100px, 100%, calc((100svh - 190px) * 1.6)); margin-inline: auto; }
.proof .browser-view { direction: ltr; }
.proof-zoom { position: absolute; inset: 0; transform-origin: 25.2% 29.7%; }
.proof-ring { position: absolute; left: 21.7%; top: 27.3%; width: 7%; height: 4.8%; border-radius: 999px; box-shadow: 0 0 0 3px var(--amber), 0 0 0 9px rgba(240, 180, 76, .3); }
.proof-call { position: absolute; inset: 0; pointer-events: none; }
.proof-line { position: absolute; left: 29.2%; top: 29.7%; width: 2.6%; height: 2px; background: var(--amber); transform-origin: 0 50%; }
.proof-card { position: absolute; left: 31.6%; top: 29.7%; display: flex; flex-direction: column; gap: 3px; padding: 16px 20px; transform: translateY(-50%); border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -20px rgba(16, 24, 40, .6); text-align: start; }
.fx .proof-line { left: 33.6%; width: 3.2%; }
.fx .proof-card { left: 36.6%; }
.proof-card .mono { color: var(--amber); font-size: 14px; }
.proof-card b { font-size: clamp(17px, 1.6vw, 24px); }
.proof-card span:last-child { color: #C9D0D8; font-size: clamp(13px, 1.1vw, 16px); }
[dir='rtl'] .proof-card { direction: rtl; }

/* ---------- Night panels ---------- */
.night { position: relative; background: var(--night) var(--dots-night); background-size: 24px 24px; color: var(--night-ink); }
.night .kicker { color: var(--teal-2); }
.night .lead { color: var(--night-ink-2); }
.night mark { background: none; color: var(--amber); padding: 0; }
.night code { background: var(--night-3); border-color: var(--night-line); color: var(--night-ink); }
.night .btn-primary { background: var(--teal-2); color: var(--teal-ink); box-shadow: 0 18px 50px -14px rgba(60, 196, 182, .55); }
.night .btn-primary:hover { background: #63D4C8; }

/* ---------- 6 · Try a question ---------- */
.try { padding: clamp(110px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); }
.try-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.qcard { padding: clamp(18px, 2.6vw, 32px); border: 1px solid var(--night-line); border-radius: 26px; background: var(--night-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85); }
.q-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.q-tag { padding: 4px 10px; border: 1px solid var(--night-line); border-radius: 8px; color: var(--night-muted); font-size: 12px; letter-spacing: .1em; }
.q-src { padding: 4px 12px; border: 1px solid rgba(60, 196, 182, .35); border-radius: 999px; color: var(--teal-2); font-size: 13px; }
.q-translate { margin-inline-start: auto; padding: 6px 14px; border: 1px solid var(--night-line-2); border-radius: 999px; background: transparent; color: var(--night-ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.q-translate:hover { background: rgba(255, 255, 255, .06); }
.q-stem { margin: 0 0 20px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.45; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--night-line); border-radius: 16px; background: var(--night-3); color: inherit; text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease), opacity .3s; }
.q-opt:hover:not([aria-disabled='true']) { border-color: var(--teal-2); transform: translateY(-1px); }
.q-opt[aria-disabled='true'] { cursor: default; }
.q-letter { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--night-line-2); border-radius: 9px; background: rgba(255, 255, 255, .05); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.q-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding-top: 2px; }
.q-text { font-size: 17px; font-weight: 600; line-height: 1.4; }
.q-why { color: var(--night-muted); font-size: 15px; line-height: 1.5; animation: rise .5s var(--ease) both; }
.q-badge { flex: none; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.q-badge:lang(ar) { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.q-opt.is-right { border-color: var(--teal-2); background: rgba(60, 196, 182, .1); }
.q-opt.is-right .q-letter { border-color: transparent; background: var(--teal-2); color: var(--teal-ink); }
.q-opt.is-right .q-badge { background: rgba(60, 196, 182, .16); color: var(--teal-2); }
.q-opt.is-wrong { border-color: var(--coral-2); background: rgba(240, 138, 112, .08); }
.q-opt.is-wrong .q-letter { border-color: transparent; background: var(--coral-2); color: #2A0D06; }
.q-opt.is-wrong .q-badge { background: rgba(240, 138, 112, .16); color: #F7A894; }
.q-opt.is-dim { opacity: .8; }
.q-feedback { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--night-line); border-radius: 16px; background: rgba(255, 255, 255, .035); font-size: 16px; line-height: 1.6; animation: rise .5s var(--ease) both; }
.q-feedback strong { display: block; margin-bottom: 4px; font-size: 18px; }
.q-feedback.ok strong { color: var(--teal-2); }
.q-feedback.no strong { color: #F7A894; }
.q-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.q-foot:empty { display: none; }
.q-reset { padding: 9px 16px; border: 1px solid var(--night-line-2); border-radius: 12px; background: transparent; color: var(--night-ink); font-weight: 600; cursor: pointer; }
.q-reset:hover { background: rgba(255, 255, 255, .06); }
.q-static { margin: 0; padding-inline-start: 22px; color: var(--night-ink-2); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 7 · Numbers ---------- */
.numbers { padding: clamp(60px, 8vw, 100px) 0 clamp(110px, 14vw, 200px); }
.num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.num { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 230px; overflow: hidden; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--night-line); border-radius: 24px; background: var(--night-2); }
.num-big { grid-column: 1 / -1; min-height: 320px; background: radial-gradient(60% 90% at 85% 10%, rgba(60, 196, 182, .16), transparent 70%), var(--night-2); }
.num-val { font-size: clamp(60px, 8vw, 120px); font-weight: 700; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num-big .num-val { font-size: clamp(88px, 17vw, 250px); color: var(--teal-2); }
.num-label { max-width: 440px; color: var(--night-ink-2); font-size: 18px; line-height: 1.45; }
.num-note { margin: 22px 0 0; color: var(--night-muted); font-size: 13px; letter-spacing: .04em; }
html[lang='ar'] .num-note { font-family: var(--sans); font-size: 14px; }

/* ---------- Split sections ---------- */
.langs, .plan, .prep { padding: clamp(100px, 13vw, 180px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.ticks, .checks, .prep-list { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-inline-start: 38px; color: var(--ink-2); font-size: 17px; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .15em; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6E6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* 8 · Compare */
.compare-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.compare { --split: 50%; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 3; width: 0; }
.compare-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.compare-handle i { position: absolute; top: 50%; left: 0; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141922' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.compare:focus-visible { outline-offset: 6px; border-radius: 48px; }
.compare-labels { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.compare-labels span { white-space: nowrap; }
.compare-labels span:lang(ar), html[lang='ar'] .compare-labels { font-family: var(--sans); font-size: 13px; text-transform: none; letter-spacing: 0; }
.drag-hint { padding: 4px 10px; border: 1px dashed var(--line); border-radius: 999px; }

/* 9 · Plan */
.plan .split { grid-template-columns: 1.25fr .75fr; }
.plan-visual { position: relative; padding-inline-end: 9%; padding-bottom: 20%; }
.plan-browser { position: relative; }
.pace-card { position: absolute; z-index: 2; width: 40%; inset-inline-end: 0; top: 30%; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(16, 24, 40, .45), 0 0 0 1px rgba(20, 25, 34, .06); }
.plan-phone { position: absolute; z-index: 3; width: 25%; inset-inline-start: 5%; bottom: 0; }
.checks li { position: relative; padding: 14px 16px; padding-inline-start: 56px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink-2); font-size: 16px; transition: border-color .4s, box-shadow .4s; }
.checks li b { color: var(--ink); }
.checks li::before, .checks li::after { content: ''; position: absolute; inset-inline-start: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; }
.checks li::before { border: 2px solid var(--line); background: #fff; transition: background-color .4s var(--ease), border-color .4s; }
.checks li::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease); }
:root:not(.fx) .checks li::before, .checks li.is-done::before { border-color: var(--teal); background: var(--teal); }
:root:not(.fx) .checks li::after, .checks li.is-done::after { opacity: 1; transform: none; }
.checks li.is-done { border-color: rgba(10, 110, 106, .35); box-shadow: 0 10px 30px -18px rgba(10, 110, 106, .5); }

/* 10 · Prep */
.prep-list li { position: relative; padding: 15px 16px; padding-inline-start: 60px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink-2); font-size: 16px; }
.prep-list li b { color: var(--ink); }
.prep-list li::before { content: ''; position: absolute; inset-inline-start: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.prep-list li:last-child { border-color: var(--amber-line); background: var(--amber-soft); }
.prep-list li:last-child::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141922' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.prep-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
html[lang='ar'] .prep-note { font-family: var(--sans); font-size: 14px; }
.prep-visual { position: relative; display: flex; justify-content: center; }
.prep-stamp { position: absolute; z-index: 2; top: 9%; inset-inline-start: 4%; padding: 6px 16px; border: 3px solid var(--coral); border-radius: 14px; background: rgba(255, 255, 255, .88); color: var(--coral); font-size: clamp(26px, 3.4vw, 48px); font-weight: 500; letter-spacing: .06em; transform: rotate(-8deg); }

/* ---------- 11 · Gallery ---------- */
.gallery { overflow: hidden; padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.gallery .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.gallery-scroller { overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-track { display: flex; gap: clamp(20px, 3vw, 44px); width: max-content; padding-inline: max(var(--gutter), (100% - var(--max)) / 2); }
.g-item { display: flex; flex-direction: column; gap: 16px; width: clamp(200px, 21vw, 290px); margin: 0; scroll-snap-align: center; }
.g-item figcaption { font-size: 16px; font-weight: 600; text-align: center; }
.fx .gallery { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 8px) 0 28px; }
.fx .gallery-scroller { overflow: visible; padding: 0; }
.fx .gallery-track { padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); }
.fx .g-item { width: min(290px, calc((100svh - 330px) / 2.2)); }

/* ---------- 12 · Earn ---------- */
.earn { overflow: hidden; padding: clamp(120px, 14vw, 200px) 0 clamp(90px, 10vw, 150px); }
.earn-glow { position: absolute; inset: 8% 0 auto 38%; height: 75%; pointer-events: none; background: radial-gradient(closest-side, rgba(60, 196, 182, .2), transparent); }
[dir='rtl'] .earn-glow { inset: 8% 38% auto 0; }
.amber { color: var(--amber); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.pills li { padding: 9px 16px; border: 1px solid var(--night-line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: 15px; font-weight: 600; }
.earn-visual { position: relative; padding-bottom: 12%; perspective: 1400px; }
.result-card { width: 74%; margin-inline-start: auto; overflow: hidden; border-radius: 26px; box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .07); }
.earn-phone { position: absolute; z-index: 2; width: 36%; inset-inline-start: 2%; bottom: 0; }

/* ---------- 13 · Final call ---------- */
.final { overflow: hidden; padding: clamp(110px, 15vw, 210px) 0 clamp(100px, 12vw, 160px); text-align: center; }
.final::before { content: ''; position: absolute; inset: auto 0 -30% 0; height: 90%; pointer-events: none; background: radial-gradient(50% 60% at 50% 70%, rgba(60, 196, 182, .2), transparent 70%); }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final-bars { display: flex; align-items: flex-end; gap: 12px; height: 110px; direction: ltr; }
.final-bars span { width: 30px; border-radius: 9px; background: var(--teal-2); }
.final-bars span:nth-child(1) { height: 40%; opacity: .55; }
.final-bars span:nth-child(2) { height: 70%; opacity: .8; }
.final-bars span:nth-child(3) { height: 100%; background: var(--amber); }
.final-title { margin: 0; font-size: clamp(64px, 13vw, 210px); line-height: .9; letter-spacing: -.055em; }
html[lang='ar'] .final-title { line-height: 1.25; }
.final-url { margin: 0; color: var(--teal-2); font-size: 14px; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .logo { width: 36px; height: 36px; }
.foot-brand b { display: block; color: var(--night-ink); font-size: 17px; }
.foot-brand small { font-size: 13px; }
.foot-notes p { margin: 0; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--night-ink-2); text-underline-offset: 3px; }
.credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--night-line); }
.credit-by { margin: 0; color: var(--night-ink-2); font-size: 16px; }
.credit-by b { color: var(--night-ink); font-size: 18px; }
.credit-links { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--night-line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--night-ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.credit-link:hover { background: rgba(255, 255, 255, .09); border-color: var(--night-muted); transform: translateY(-2px); }
.credit-link svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .split, .try-grid, .plan .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .how-grid { grid-template-columns: 1fr; gap: 22px; }
  .how-device { order: -1; }
  .how .phone-lg { width: min(250px, calc((100svh - 350px) / 2.2)); }
  .how-bars { display: none; }
  .how-titles { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
  .how-title .mono { display: none; }
  .how-title b { font-size: clamp(28px, 7.4vw, 48px); }
  .how-paras p { font-size: 17px; }
  .how-copy .kicker { display: none; }
  .num-grid { grid-template-columns: 1fr; }
  .num { min-height: 170px; }
  .plan-visual, .earn-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .proof-call { display: none; }
  .chip-src { top: 12%; }
}
@media (max-width: 560px) {
  .drag-hint { order: 3; }
  :root { --nav-h: 64px; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { width: 100%; max-width: 360px; }
  .hero-ctas .btn .long, .final .btn .long { display: inline; }
  .hero-phone { width: 34%; inset-inline-end: -2%; bottom: -12%; }
  .float-chip { padding: 7px 11px; font-size: 12px; gap: 6px; }
  .float-chip svg { width: 14px; height: 14px; }
  .chip-streak { inset-inline-start: 2%; top: -9%; }
  .chip-ok { inset-inline-end: 24%; bottom: -6%; }
  .browser-bar { height: 30px; }
  .browser-url { display: none; }
  .final-bars { height: 80px; }
  .final-bars span { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .q-why, .q-feedback { animation: none; }
  .btn, .q-opt { transition: none; }
}
