/* Ophira marketing site.
   Dark ink ground, one warm gold, the product's own colour in the screenshots.
   Logical properties throughout, so Arabic and Kurdish mirror the layout. */

:root {
  --ink: #06080f;
  --ink-2: #0a0f1a;
  --ink-3: #101726;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef0f7;
  --muted: #a0a9bd;
  --faint: #6f7a90;
  --gold: #f0c26a;
  --gold-2: #ffe3a6;
  --gold-3: #c98a22;
  --teal: #37d6be;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dir: 1;
  --nav-h: 68px;
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --serif: 'Instrument Serif', 'Readex Pro', Georgia, serif;
  color-scheme: dark;
}
html[dir='rtl'] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir='rtl'] .ic-flip, html[dir='rtl'] .btn .ic:last-child { transform: scaleX(-1); }

/* ── Reveal on scroll (only when JS is on) ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Type ── */
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
html[dir='rtl'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
html[dir='rtl'] .eyebrow::before { background: linear-gradient(270deg, var(--gold), transparent); }
.eyebrow.sm { font-size: 12px; margin-bottom: 10px; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.2vw, 96px); line-height: 1.02; letter-spacing: -0.02em; }
.display.sm { font-size: clamp(36px, 5vw, 64px); }
.display em, .h2 em, h3 em { font-style: italic; background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: 0.06em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.015em; }
html[lang='ar'] .display, html[lang='ar'] .h2 { font-family: var(--font); font-weight: 600; letter-spacing: 0; line-height: 1.2; }
html[lang='ar'] .display { font-size: clamp(40px, 6.2vw, 82px); }
html[lang='ar'] .display em, html[lang='ar'] .h2 em, html[lang='ar'] h3 em { font-style: normal; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 56ch; margin-top: 26px; line-height: 1.7; }
.sub { color: var(--muted); font-size: 17px; max-width: 58ch; }
.fine { font-size: 13px; color: var(--faint); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s; white-space: nowrap; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, #e3a63f); color: #1a1205; box-shadow: 0 10px 40px -10px rgba(240, 194, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(240, 194, 106, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 13px; transition: background 0.2s; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 0.06em; margin-inline-end: 6px; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 8, 15, 0.72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; display: block; }
.links { display: flex; gap: 6px; margin-inline-start: 16px; }
.links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: color 0.2s, background 0.2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.lang button { background: none; border: 0; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; }
.lang button[aria-pressed='true'] { background: var(--gold); color: #1a1205; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: absolute; inset: var(--nav-h) 0 auto 0; background: rgba(6, 8, 15, 0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 14px 24px 26px; display: grid; gap: 4px; }
.drawer a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.drawer .btn { margin-top: 14px; }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 56px) 0 90px; display: flex; align-items: center; overflow: clip; isolation: isolate; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: 0.9; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 560px; height: 560px; background: radial-gradient(circle, rgba(240, 194, 106, 0.55), transparent 65%); inset-block-start: -140px; inset-inline-start: -120px; }
.orb-b { width: 640px; height: 640px; background: radial-gradient(circle, rgba(55, 214, 190, 0.38), transparent 65%); inset-block-end: -220px; inset-inline-end: -140px; animation-duration: 24s; }
.orb-c { width: 520px; height: 520px; background: radial-gradient(circle, rgba(240, 194, 106, 0.3), transparent 65%); inset-block-start: -180px; inset-inline-end: 8%; }
@keyframes drift { to { transform: translate3d(calc(var(--dir) * 50px), 40px, 0) scale(1.1); } }
.grid-lines { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%); opacity: 0.55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-copy .fine { margin-top: 26px; }
.scroll-cue { position: absolute; inset-block-end: 26px; inset-inline-start: 50%; width: 24px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; inset-inline-start: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* The hero's product stage */
.stage { position: relative; aspect-ratio: 1.12; width: 100%; perspective: 1400px; }
.stage .glow { position: absolute; inset: 8% 4% 4% 8%; background: radial-gradient(closest-side, rgba(55, 214, 190, 0.28), transparent 70%); filter: blur(30px); }
.layer { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * var(--depth, 0) * -22px), calc(var(--py, 0) * var(--depth, 0) * -16px), 0); transition: transform 0.25s ease-out; will-change: transform; }
.layer[data-depth] { --depth: 1; }
.hero-browser { position: absolute; inset-inline-start: 0; top: 6%; width: 88%; transform: rotateY(calc(var(--dir) * -9deg)) rotateX(3deg); transform-origin: center; animation: bob 9s ease-in-out infinite; }
.phone.hero-phone { position: absolute; inset-inline-end: 1%; bottom: 0; width: 25%; animation: bob 7s ease-in-out infinite -2s; }
.hero-result { position: absolute; inset-inline-start: -3%; bottom: 3%; width: 36%; animation: bob 8s ease-in-out infinite -4s; }
.hero-toast { position: absolute; inset-inline-end: 0; top: 0; width: min(290px, 44%); animation: bob 6.5s ease-in-out infinite -1s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Device frames */
.browser { background: #0d1320; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 80px -20px rgba(55, 214, 190, 0.18); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 36px; background: #0a0f19; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3347; }
.browser .bar i:nth-child(1) { background: #ff6b6b; opacity: 0.8; } .browser .bar i:nth-child(2) { background: #f5c04a; opacity: 0.8; } .browser .bar i:nth-child(3) { background: #3ccf8e; opacity: 0.8; }
.browser .url { margin-inline: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--faint); background: rgba(255, 255, 255, 0.05); padding: 4px 18px; border-radius: 999px; direction: ltr; }
.browser .url .ic { width: 11px; height: 11px; }
.browser img { width: 100%; }
.phone { position: relative; border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #1d2536, #0a0e17); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.phone img { border-radius: 28px; width: 100%; }
.phone .notch { position: absolute; top: 12px; inset-inline-start: 50%; width: 28%; height: 14px; background: #05070c; border-radius: 10px; transform: translateX(-50%); z-index: 2; }
.float-card { border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04); background: #11182a; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 18px; background: rgba(20, 28, 46, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8); font-size: 13px; line-height: 1.4; }
.toast-ic { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #1a1205; display: grid; place-items: center; flex: none; }
.toast-tx { display: grid; gap: 1px; min-width: 0; }
.toast-tx b { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 12.5px; }
.toast-tx small { color: var(--faint); font-weight: 400; }
.toast-tx em { font-style: normal; color: var(--muted); }

/* ── Facts + marquee ── */
.facts { position: relative; padding: 70px 0 0; border-block-start: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact { display: grid; gap: 6px; padding-inline-start: 22px; border-inline-start: 1px solid var(--line-2); }
.fact .num { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6vw, 84px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 15px; max-width: 24ch; }
.marquee { margin-top: 70px; padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; gap: 32px; align-items: center; animation: marquee 48s linear infinite; font-family: var(--serif); font-size: 30px; color: var(--muted); }
html[lang='ar'] .marquee .track, html[lang='ku'] .marquee .track { font-family: var(--font); font-size: 22px; }
.marquee .track i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
html[dir='rtl'] .marquee .track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir='rtl'] .marquee .track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── Sections ── */
.sec { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; margin-bottom: 64px; }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head .sub { margin-bottom: 8px; }
.sec-head > :nth-child(2):last-child { grid-column: 1 / -1; }
.card { position: relative; border-radius: var(--radius); padding: 30px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 194, 106, 0.13), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(240, 194, 106, 0.35); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; font-weight: 600; margin: 18px 0 10px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15.5px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(240, 194, 106, 0.22), rgba(240, 194, 106, 0.04)); border: 1px solid rgba(240, 194, 106, 0.3); color: var(--gold); flex: none; }
.ico .ic { width: 22px; height: 22px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why { padding: 36px 32px 38px; }
.why h3 { font-size: 24px; font-family: var(--serif); font-weight: 400; }
html[lang='ar'] .why h3, html[lang='ku'] .why h3 { font-family: var(--font); font-weight: 600; font-size: 21px; }

/* ── Tour ── */
.tour { background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(55, 214, 190, 0.07), transparent 70%); }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 15px; white-space: nowrap; transition: all 0.3s var(--ease); }
.tabs button:hover { color: var(--text); border-color: var(--line-2); }
.tabs button[aria-selected='true'] { color: #1a1205; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; box-shadow: 0 10px 34px -10px rgba(240, 194, 106, 0.6); }
.tab-progress { height: 2px; background: var(--line); margin: 20px 0 46px; border-radius: 2px; overflow: hidden; }
.tab-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
html[dir='rtl'] .tab-progress span { transform-origin: right; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 56px; align-items: center; }
.tour-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 26px; }
html[lang='ar'] .tour-copy h3, html[lang='ku'] .tour-copy h3 { font-family: var(--font); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); }
.tour-copy ul { display: grid; gap: 16px; }
.tour-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; color: var(--muted); font-size: 16px; opacity: 0; transform: translateY(14px); animation: liIn 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 60ms); }
.tour-copy li .ic { color: var(--gold); margin-top: 5px; width: 18px; height: 18px; }
@keyframes liIn { to { opacity: 1; transform: none; } }
.tour-stage { position: relative; }
.tour-stage .browser { transform: perspective(1600px) rotateY(calc(var(--dir) * -4deg)) rotateX(1.5deg); }
.shots { position: relative; aspect-ratio: 1440 / 900; background: #0a0f19; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); }
.shots img.on { opacity: 1; transform: none; }
.tour-float > * { position: absolute; opacity: 0; transform: translateY(24px) scale(0.96); transition: opacity 0.7s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s; pointer-events: none; }
.tour-float .phone.small { width: 24%; inset-inline-end: -3%; bottom: -9%; }
.tour-float .float-card[data-float='2'] { width: 36%; inset-inline-start: -4%; bottom: -9%; }
.tour-float .float-card[data-float='4'] { width: 30%; inset-inline-start: -4%; bottom: -12%; max-height: 40%; object-fit: cover; object-position: top; }
.tour-float .toast { width: min(300px, 48%); inset-inline-end: -2%; bottom: -8%; }
.tour-float .phone[data-float='3'] { width: 22%; }
.tour-stage[data-tab='1'] [data-float='1'], .tour-stage[data-tab='2'] [data-float='2'], .tour-stage[data-tab='3'] [data-float='3'], .tour-stage[data-tab='4'] [data-float='4'], .tour-stage[data-tab='5'] [data-float='5'] { opacity: 1; transform: none; }

/* ── Demos ── */
.demos { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025) 20%, rgba(255, 255, 255, 0.025) 80%, transparent); }
.demo { position: relative; border-radius: 28px; padding: clamp(24px, 3.4vw, 44px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)); border: 1px solid var(--line-2); margin-bottom: 26px; overflow: hidden; }
.demo::before { content: ''; position: absolute; inset-inline: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.6; }
.demo h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin-bottom: 10px; }
html[lang='ar'] .demo h3, html[lang='ku'] .demo h3 { font-family: var(--font); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); }
.demo-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; }
.demo-row .demo { margin-bottom: 0; }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.mode { display: grid; gap: 8px; font-size: 13px; color: var(--muted); max-width: 360px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); gap: 2px; }
.seg button { background: none; border: 0; padding: 9px 13px; border-radius: 10px; font-size: 13.5px; color: var(--muted); transition: all 0.25s; }
.seg button[aria-pressed='true'] { background: rgba(240, 194, 106, 0.18); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(240, 194, 106, 0.4); }

/* Exam demo */
.exam-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pane { background: rgba(5, 8, 14, 0.55); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-height: 100%; }
.pane-t { display: flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
html[dir='rtl'] .pane-t { letter-spacing: 0; text-transform: none; font-size: 14px; }
.exam-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #080c14; border: 1px solid rgba(55, 214, 190, 0.2); font-size: 13.5px; }
.timer { display: inline-flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums; color: var(--teal); direction: ltr; }
.exam-nav { display: flex; gap: 8px; margin: 16px 0 6px; }
.exam-nav button { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 14px; position: relative; transition: all 0.2s; }
.exam-nav button.on { background: var(--teal); color: #05241f; border-color: transparent; font-weight: 600; }
.exam-nav button.done:not(.on)::after { content: ''; position: absolute; inset-inline-end: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.exam-meta { font-size: 12.5px; color: var(--faint); margin: 8px 0 14px; }
.q-t { font-size: 17px; font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.q-hint { font-size: 12.5px; color: var(--faint); margin-bottom: 12px; }
.opts { display: grid; gap: 9px; margin-top: 12px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: start; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025); font-size: 14.5px; transition: all 0.2s; width: 100%; }
.opt:hover { border-color: rgba(55, 214, 190, 0.5); }
.opt .bx { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; flex: none; display: grid; place-items: center; transition: all 0.2s; }
.opt.multi .bx { border-radius: 6px; }
.opt.on { border-color: var(--teal); background: rgba(55, 214, 190, 0.1); }
.opt.on .bx { border-color: var(--teal); background: var(--teal); }
.opt.on .bx::after { content: ''; width: 6px; height: 10px; border: solid #05241f; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.exam textarea, .teacher textarea { width: 100%; min-height: 110px; resize: vertical; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 14.5px; margin-top: 8px; }
.exam textarea:focus { outline: none; border-color: var(--teal); }
.exam-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.exam-foot .note { font-size: 12.5px; color: var(--faint); flex-basis: 100%; }
.btn-tl { background: var(--teal); color: #05241f; border-color: transparent; }
.btn-tl:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(55, 214, 190, 0.6); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn-line:disabled, .btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.exam-state { text-align: center; padding: 34px 18px; border-radius: 16px; background: rgba(55, 214, 190, 0.07); border: 1px solid rgba(55, 214, 190, 0.25); }
.exam-state h5 { font-size: 20px; margin: 12px 0 8px; font-weight: 600; }
.exam-state p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-inline: auto; }
.exam-state .ic { width: 38px; height: 38px; color: var(--teal); }
.exam-state .again { margin-top: 18px; }
.teacher { display: grid; gap: 14px; font-size: 14.5px; }
.t-empty { padding: 36px 18px; text-align: center; color: var(--faint); border: 1px dashed var(--line-2); border-radius: 14px; }
.t-ans { padding: 14px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.t-l { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; display: block; }
.range { display: grid; gap: 8px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range input[type='range'] { flex: 1; accent-color: var(--gold); }
.range b { min-width: 74px; text-align: end; font-variant-numeric: tabular-nums; direction: ltr; font-size: 15px; }
.t-actions { display: grid; gap: 10px; }
.t-hint { font-size: 12.5px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(60, 207, 142, 0.12); color: #6be3ae; border: 1px solid rgba(60, 207, 142, 0.3); }
.result-pop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(55, 214, 190, 0.2), rgba(6, 8, 15, 0.9)); backdrop-filter: blur(6px); animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; } }
.rp-card { width: min(380px, calc(100% - 40px)); text-align: center; padding: 30px 28px; border-radius: 24px; background: #0e1524; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.rp-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(55, 214, 190, 0.12); border: 1px solid rgba(55, 214, 190, 0.35); display: inline-grid; place-items: center; color: var(--teal); }
.rp-ic .ic { width: 26px; height: 26px; }
.rp-card h4 { font-size: 22px; margin: 14px 0 4px; font-weight: 600; }
.rp-name { color: var(--muted); font-size: 14px; }
.fraction { display: inline-flex; flex-direction: column; align-items: center; margin: 22px 0 8px; font-variant-numeric: tabular-nums; }
.fr-top, .fr-bot { font-family: var(--serif); font-size: 64px; line-height: 1; }
.fr-top { color: var(--gold-2); }
.fr-bot { color: var(--muted); }
.fr-line { width: 100%; min-width: 96px; height: 3px; border-radius: 3px; background: var(--text); opacity: 0.7; margin: 10px 0; }
.rp-pct { color: var(--muted); font-size: 16px; margin-bottom: 20px; }

/* Brand demo */
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.controls .ctl:first-child { grid-column: 1 / -1; }
.controls .contrast { grid-column: 1 / -1; }
.ctl { display: grid; gap: 9px; }
.ctl-l { font-size: 12.5px; color: var(--faint); letter-spacing: 0.06em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: 0 0 0 1px var(--line-2); transition: transform 0.2s var(--ease); }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed='true'] { border-color: var(--text); box-shadow: 0 0 0 2px var(--c); transform: scale(1.05); }
.custom { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.custom input { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.contrast { font-size: 12.5px; color: var(--faint); }
.contrast b { color: var(--text); font-variant-numeric: tabular-nums; }
.mock { --m-accent: #2ac3a8; --m-on: #04241e; --m-bg: #0b0f18; --m-s: #121826; --m-t: #eef0f7; --m-m: #98a2b6; --m-l: rgba(255, 255, 255, 0.09); background: var(--m-bg); color: var(--m-t); border-radius: 18px; border: 1px solid var(--m-l); overflow: hidden; font-size: 13.5px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9); transition: background 0.4s, color 0.4s; }
.mock[data-look='light'] { --m-bg: #f4f6fb; --m-s: #ffffff; --m-t: #10162a; --m-m: #5a647c; --m-l: rgba(10, 20, 50, 0.1); }
.mock[dir='rtl'] { font-family: var(--font); }
.m-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--m-s); border-bottom: 1px solid var(--m-l); transition: background 0.4s; }
.m-logo { width: 28px; height: 28px; border-radius: 9px; background: var(--m-accent); color: var(--m-on); display: grid; place-items: center; transition: background 0.4s; }
.m-logo .ic { width: 16px; height: 16px; }
.m-top b { white-space: nowrap; }
.m-top nav { display: flex; gap: 14px; margin-inline-start: auto; color: var(--m-m); font-size: 12.5px; white-space: nowrap; }
.m-top nav .on { color: var(--m-accent); font-weight: 600; }
.m-body { padding: 18px 16px 20px; display: grid; gap: 14px; }
.m-hello { font-size: 17px; font-weight: 600; }
.m-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--m-s); border: 1px solid var(--m-l); transition: background 0.4s; }
.m-card > div:last-child { display: grid; gap: 4px; }
.m-card small { color: var(--m-m); }
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rg-bg { fill: none; stroke: var(--m-l); stroke-width: 3.4; } .rg-fg { fill: none; stroke: var(--m-accent); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 58 100; transition: stroke 0.4s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.m-btn { margin-top: 6px; justify-self: start; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--m-accent); color: var(--m-on); font-weight: 600; font-size: 12.5px; transition: background 0.4s, color 0.4s; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-row .pill { background: color-mix(in srgb, var(--m-accent) 16%, transparent); color: var(--m-accent); border-color: color-mix(in srgb, var(--m-accent) 40%, transparent); }
.m-rank { display: grid; text-align: end; line-height: 1.2; } .m-rank small { color: var(--m-m); font-size: 11.5px; } .m-rank b { font-size: 22px; color: var(--m-accent); }
.m-next { color: var(--m-m); font-size: 12.5px; padding-top: 12px; border-top: 1px dashed var(--m-l); }

/* Leaderboard demo */
.board-head { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; }
.board { position: relative; height: calc(var(--rows, 7) * 60px); }
.board li { position: absolute; inset-inline: 0; top: 0; height: 52px; display: grid; grid-template-columns: 28px 40px 1fr auto auto; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: transform 0.9s var(--ease), background 0.5s, border-color 0.5s; }
.board li.you { background: rgba(240, 194, 106, 0.1); border-color: rgba(240, 194, 106, 0.4); }
.board li.hit { background: rgba(55, 214, 190, 0.14); border-color: rgba(55, 214, 190, 0.5); }
.b-rank { color: var(--faint); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.b-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--av, #2b3550); color: #fff; font-size: 14px; }
.b-name { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-name small { color: var(--gold); margin-inline-start: 8px; font-size: 11px; }
.b-ev { font-size: 11.5px; color: var(--teal); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; white-space: nowrap; }
.board li.hit .b-ev { opacity: 1; transform: none; }
.b-pts { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 54px; text-align: end; }
.b-pts small { color: var(--faint); font-weight: 400; margin-inline-start: 3px; }

/* ── Phones ── */
.phones { background: radial-gradient(ellipse 60% 40% at 50% 60%, rgba(240, 194, 106, 0.07), transparent 70%); padding-bottom: clamp(70px, 9vw, 120px); }
.phone-track { display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; padding: 24px max(24px, calc((100vw - 1200px) / 2)) 70px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.phone-track::-webkit-scrollbar { display: none; }
.phone-track.drag { cursor: grabbing; scroll-snap-type: none; }
.phone-slide { flex: none; width: clamp(210px, 22vw, 290px); scroll-snap-align: center; transition: transform 0.6s var(--ease); }
.phone-slide:nth-child(even) { transform: translateY(46px); }
.phone-slide .phone { transition: transform 0.6s var(--ease); }
.phone-slide:hover .phone { transform: translateY(-10px) rotate(calc(var(--dir) * -1.5deg)); }
.phone-slide img { user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* ── Teachers ── */
.teach-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.teach-shots { position: relative; min-height: 640px; }
.teach-shots figure { position: absolute; width: 76%; transition: transform 0.5s var(--ease); }
.teach-shots .a { inset-inline-start: 0; top: 18px; }
.teach-shots .b { inset-inline-end: 0; top: 190px; width: 70%; z-index: 2; }
.lab { position: absolute; z-index: 3; top: -13px; inset-inline-start: 18px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; box-shadow: 0 8px 24px -8px rgba(240, 194, 106, 0.6); }
.teach-shots .browser { transform-style: preserve-3d; }
.teach-shots .tilt { transform: perspective(1400px) rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); transition: transform 0.4s var(--ease); }
.teach-shots .browser img { max-height: 470px; object-fit: cover; object-position: top; }
.teach-shots .browser { overflow: visible; }
.teach-shots .browser .bar { border-radius: 16px 16px 0 0; }
.teach-shots .browser img { border-radius: 0 0 16px 16px; }
.teach-list { display: grid; gap: 28px; }
.teach-list li { display: flex; gap: 18px; align-items: flex-start; }
.teach-list h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.teach-list p { color: var(--muted); font-size: 15.5px; }

/* ── Trust ── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t { padding: 26px 24px 28px; }
.t h3 { font-size: 17px; margin-top: 16px; }
.t p { font-size: 14.5px; }

/* ── Roles ── */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role { padding: 34px 32px; }
.role h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 22px; }
html[lang='ar'] .role h3, html[lang='ku'] .role h3 { font-family: var(--font); font-weight: 600; font-size: 22px; }
.role ul { display: grid; gap: 14px; }
.role li { position: relative; padding-inline-start: 28px; color: var(--muted); font-size: 15.5px; }
.role li::before { content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 14px; height: 8px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0.9); }
html[dir='rtl'] .role li::before { transform: rotate(-45deg) scale(0.9); }

/* ── How ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; inset-inline: 7%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.4; }
.steps li { position: relative; }
.steps .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: var(--gold); background: var(--ink); border: 1px solid rgba(240, 194, 106, 0.5); box-shadow: 0 0 40px -6px rgba(240, 194, 106, 0.4); margin-bottom: 20px; position: relative; z-index: 1; }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; max-width: 28ch; }

/* ── FAQ ── */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 24px 4px; font-size: 18px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: color 0.2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat; transition: transform 0.4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details[open] summary { color: var(--gold-2); }
.acc p { padding: 0 4px 26px; color: var(--muted); max-width: 66ch; animation: liIn 0.5s var(--ease); }

/* ── CTA ── */
.cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: clip; isolation: isolate; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(240, 194, 106, 0.05), transparent 60%); }
.cta .orb-c { z-index: -1; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.or { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 15px; }
.or a { color: var(--gold-2); border-bottom: 1px solid rgba(240, 194, 106, 0.4); direction: ltr; }
.form { display: grid; gap: 14px; padding: 28px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240, 194, 106, 0.12); }
.form .btn { justify-self: start; margin-top: 4px; }

/* ── Footer ── */
.foot { padding: 64px 0 36px; border-top: 1px solid var(--line); background: #04060b; }
.foot-in { display: grid; gap: 14px; }
.foot p { color: var(--muted); max-width: 52ch; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .links { display: none; }
  .burger { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-bottom: 70px; min-height: 0; }
  .stage { max-width: 760px; margin-inline: auto; }
  .tour-grid, .teach-grid, .cta-grid { grid-template-columns: 1fr; }
  .tour-stage { order: -1; }
  .sec-head { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-row, .exam-grid, .brand-grid { grid-template-columns: 1fr; }
  .teach-shots { min-height: 560px; }
}
@media (max-width: 760px) {
  .wrap, .narrow { width: min(100% - 32px, 1200px); }
  .hide-sm { display: none; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .why-grid, .role-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 18px; }
  .steps::before { display: none; }
  .hero-toast { display: none; }
  .hero-result { width: 44%; }
  .hero-phone { width: 30%; }
  .teach-shots { min-height: 0; display: grid; gap: 18px; }
  .teach-shots figure { position: relative; width: 100%; inset: auto !important; }
  .tour-float .phone.small, .tour-float .float-card, .tour-float .toast { scale: 0.85; }
  .tab-progress { margin-bottom: 30px; }
  .tour-copy h3 { margin-bottom: 18px; }
  .demo { border-radius: 22px; }
  .board li { grid-template-columns: 22px 34px 1fr auto; }
  .board .b-ev { display: none; }
  .phone-slide:nth-child(even) { transform: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav-tools { gap: 8px; }
  .lang button { padding: 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
}

@media (max-width: 760px) { .controls { grid-template-columns: 1fr; } .swatches { gap: 7px; } .swatches button { width: 30px; height: 30px; } .seg button { padding: 9px 11px; } }
