/* forvalab: studio site, light edition (2026-10-02).
   Look: Apple (warm white space, exact type, product first) + Bugatti (dramatic dark intro, deep ink panels,
   wide letterspaced capitals). Brand: warm white + deep ink; the logo's cyan is a small signal, never a wash.
   Colour roles are variables; .dark panels (#work, .calc) switch them, so every component works in both. */

:root {
  color-scheme: light;
  --bg: oklch(98.6% 0.003 85);          /* warm white canvas */
  --bg-2: oklch(99.6% 0.002 85);        /* raised surfaces */
  --bg-3: oklch(95.6% 0.004 85);        /* pearl: chips, wells, quiet fills */
  --line: oklch(91% 0.004 85);          /* hairline */
  --line-2: oklch(84% 0.005 85);
  --tx: oklch(19% 0.012 265);           /* ink */
  --tx-2: oklch(34% 0.01 265);
  --tx-3: oklch(52% 0.01 265);
  --cyan: oklch(84% 0.14 205);          /* the logo's cyan: fills and signals */
  --accent: oklch(52% 0.11 218);        /* cyan deep enough to read as text on white */
  --logo: oklch(68% 0.13 212);
  --cyan-glow: oklch(84% 0.14 205 / 0.35);
  --btn-bg: var(--tx);
  --btn-tx: var(--bg);
  --shadow: 0 30px 60px -30px oklch(25% 0.02 265 / 0.28), 0 2px 6px oklch(25% 0.02 265 / 0.06);
  --f-sans: "Sora", system-ui, -apple-system, sans-serif;
  --f-wide: "Michroma", "Sora", system-ui, sans-serif;   /* Bugatti style capitals, used small and sparingly */
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: clamp(18px, 5vw, 64px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Deep ink panels (Bugatti moments): same components, dark roles */
.dark {
  color-scheme: dark;
  --bg: oklch(15% 0.01 265);
  --bg-2: oklch(19% 0.01 265);
  --bg-3: oklch(24% 0.012 265);
  --line: oklch(29% 0.012 265);
  --line-2: oklch(38% 0.012 265);
  --tx: oklch(97% 0.004 85);
  --tx-2: oklch(84% 0.006 85);
  --tx-3: oklch(66% 0.008 265);
  --accent: var(--cyan);
  --btn-bg: var(--cyan);
  --btn-tx: oklch(16% 0.02 230);
  --shadow: 0 30px 60px -30px oklch(5% 0 0 / 0.7);
  background: var(--bg);
  color: var(--tx-2);
}
[lang="ar"] { --f-sans: "Noto Sans Arabic", "Sora", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--tx-2); font: 400 1.0625rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[lang="ar"] body { line-height: 1.85; }
html.booting { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--tx); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--tx); color: var(--bg); }
.mono { font-family: var(--f-sans); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; } /* light edition: no code font as costume */
[lang="ar"] .mono { font-family: var(--f-sans); }
/* Bugatti style label: wide capitals, small, letterspaced; Arabic falls back to the sans without caps */
.kicker { color: var(--tx-3); font: 400 0.75rem/1.5 var(--f-wide); letter-spacing: 0.22em; text-transform: uppercase; }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline-end: 12px; background: var(--accent); vertical-align: 0.3em; }
[lang="ar"] .kicker { font: 600 0.875rem/1.5 var(--f-sans); letter-spacing: 0; text-transform: none; }
.skip { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--tx); color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 1rem/1 var(--f-sans); text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.3s, background-color 0.25s; }
.btn:active { transform: scale(0.97); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn.wide { width: 100%; }
.btn-cyan { background: var(--btn-bg); color: var(--btn-tx); box-shadow: 0 1px 2px oklch(20% 0.02 265 / 0.12); }
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px oklch(20% 0.02 265 / 0.35); }
.btn-glass { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-glass:hover { box-shadow: inset 0 0 0 1px var(--tx); }
.wa { width: 20px; height: 20px; }

/* ---------- Intro boot sequence ---------- */
.boot { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: oklch(11% 0.008 265); transition: opacity 1.3s 0.55s var(--ease); }
.boot.out { opacity: 0; pointer-events: none; } /* opacity only: a blur over the 3D canvas was the laggy part of the exit */
.boot::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, oklch(84% 0.14 205 / 0.04) 0 1px, transparent 1px 4px); pointer-events: none; }
.boot-center { display: grid; justify-items: center; gap: 22px; }
.boot-logo { width: 150px; height: auto; overflow: visible; }
.boot-logo .s { stroke: var(--cyan); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s var(--ease) forwards; }
.boot-logo .s { animation-duration: 1.2s; }
.boot-logo .s1 { animation-delay: 0.3s; }
.boot-logo .s2 { animation-delay: 1s; animation-duration: 0.6s; }
.boot-logo .s3 { animation-delay: 1.7s; animation-duration: 1s; }
.boot-logo .s4 { animation-delay: 2.5s; animation-duration: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.boot-logo path { vector-effect: non-scaling-stroke; }
.boot-code { fill: var(--tx); font: 600 15px var(--f-mono); }
.boot-log { min-height: 88px; font: 400 0.8125rem/1.7 var(--f-mono); color: var(--tx-3); text-align: center; }
.boot-log p { animation: fade 0.3s ease-out both; }
.boot-log .ok { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.boot-bar { width: 180px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.boot-bar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform: scaleX(0); transform-origin: left; animation: fill 2.6s var(--ease) forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--gutter); transition: background-color 0.3s, box-shadow 0.3s; }
.nav.solid { background: oklch(98.6% 0.003 85 / 0.94); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--tx); text-decoration: none; }
.brand-mark { width: 34px; height: auto; overflow: visible; }
.brand-mark path { stroke: var(--logo); stroke-width: 10; transition: stroke 0.3s; }
.brand:hover .brand-mark path:last-child { animation: nudge 0.5s var(--ease); }
@keyframes nudge { 50% { transform: translate(3px, -3px); } }
.brand-name { font: 700 1.15rem/1 var(--f-sans); letter-spacing: -0.03em; }
.brand-name b { color: var(--logo); font-weight: 700; }
.links { display: none; }
.links a { color: var(--tx-3); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.links a:hover, .links a.on { color: var(--tx); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--tx-2); font-size: 0.875rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.lang [lang="ar"] { font-family: "Noto Sans Arabic", sans-serif; }
.lang [lang="en"] { font-family: "Sora", sans-serif; }
.menu-btn { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--tx); transition: transform 0.3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.links.open { position: fixed; top: 64px; inset-inline: 12px; display: grid; gap: 4px; padding: 12px; border-radius: 20px; background: var(--bg-2); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); animation: fade 0.25s ease-out; }
.links.open a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 1.0625rem; }
.links.open a:hover { background: var(--bg-3); }
@media (max-width: 520px) { .nav-actions .btn.sm { display: none; } }
@media (min-width: 980px) {
  .links, .links.open { position: static; display: flex; gap: 28px; padding: 0; background: none; box-shadow: none; animation: none; }
  .links.open a { min-height: auto; padding: 0; font-size: 0.9375rem; }
  .menu-btn { display: none; }
}

/* ---------- Hero with 3D phones ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-glow { display: none; } /* no colour gradients (user rule) */
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
/* Phones: the 3D stage sits under the words. Desktop: it fills the hero and the words take the left column. */
.hero { display: flex; flex-direction: column; }
.gl { order: 2; position: relative; z-index: 0; display: block; width: 100%; height: 58svh; min-height: 400px; margin-top: -24px; cursor: grab; touch-action: pan-y; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; max-width: var(--maxw); margin-inline: auto; padding: 96px var(--gutter) 0; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-title { font-size: clamp(3.4rem, 15vw, 8.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; color: var(--tx); }
[lang="ar"] .hero-title { font-size: clamp(3rem, 13vw, 6.6rem); letter-spacing: 0; line-height: 1.2; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { --k: 0; display: inline-block; transition: transform 0.35s var(--ease), color 0.3s, text-shadow 0.3s; color: color-mix(in oklab, var(--tx), var(--accent) calc(var(--k) * 100%)); }
.booted .hero-title .ch { animation: rise-ch 1.1s var(--ease-expo) both; }
.booted .hero-title .ch { animation-delay: calc(0.035s * var(--n, 0)); }
.from-boot .hero-title .ch { animation-delay: calc(0.9s + var(--n, 0) * 0.035s); }
.from-boot .hero-copy > :not(.hero-title) { animation: rise-ch 1.1s 1.5s var(--ease-expo) both; }
.from-boot .gl { animation: fade 1.6s 1.1s ease-out both; }
@keyframes rise-ch { from { opacity: 0; transform: translateY(0.4em); } }
.lead { max-width: 36ch; color: var(--tx-2); font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { color: var(--tx-3); font-size: 0.8125rem; }
.hero-fallback { order: 2; position: relative; margin: 30px 0 40px; display: flex; justify-content: center; gap: 2%; perspective: 1200px; }
.hero-fallback img { width: 18%; max-width: 180px; border-radius: 18px; box-shadow: var(--shadow); transform: rotateY(calc((var(--i) - 2) * -14deg)) translateY(calc(max(var(--i) - 2, 2 - var(--i)) * 14px)); }
@media (min-width: 900px) {
  .gl { position: absolute; inset: 0; height: 100%; margin: 0; }
  .hero-copy { width: 100%; padding-top: 20vh; }
  .hero-copy > * { max-width: 42%; }
  .hero-title { max-width: 7ch; font-size: clamp(3.6rem, 6.2vw, 6.2rem); }
  [lang="ar"] .hero-title { max-width: 9ch; }
}

/* ---------- Sections ---------- */
.sec { max-width: var(--maxw); margin-inline: auto; padding: clamp(80px, 14vw, 150px) var(--gutter) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 56px); }
.sec-head h2, .calc h2, .pf-head h2 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.sec-lead { max-width: 46ch; color: var(--tx-3); font-size: 1.125rem; }

/* ---------- Showroom ---------- */
.showroom { display: grid; gap: 28px; }
.demo-tabs { display: flex; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab { flex: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 14px 6px 6px; border: 0; border-radius: 16px; background: var(--bg-2); color: var(--tx-2); text-align: start; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background-color 0.25s; }
.demo-tab img { width: 34px; height: 44px; object-fit: cover; object-position: top; border-radius: 8px; }
.demo-tab b { display: block; color: var(--tx); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.demo-tab small { display: block; color: var(--tx-3); font-size: 0.75rem; white-space: nowrap; }
.demo-tab[aria-selected="true"] { background: var(--bg-3); box-shadow: inset 0 0 0 1.5px var(--tx); }
.device-wrap { display: grid; place-items: center; perspective: 1400px; }
.device {
  --c: var(--cyan);
  --w: min(78vw, 330px);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 844 / 390);
  padding: 10px;
  border-radius: 46px;
  background: oklch(21% 0.01 265);
  box-shadow: inset 0 0 0 1.5px oklch(42% 0.01 265), 0 50px 90px -40px oklch(5% 0 0 / 0.75), 0 0 110px -40px var(--c);
  transition: box-shadow 0.5s;
}
/* The demo runs at real phone size (390 x 844) and is scaled to fit the frame (scale set in app.js). */
.device-screen { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 36px; background: oklch(11% 0.008 265); }
/* Status bar keeps the notch off the demo's own header, like a real phone. */
.device-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 2px 22px 0 26px; color: oklch(96% 0.01 252); font: 600 0.75rem var(--f-sans); }
.device-status svg { fill: currentColor; }
.device-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg-2); }
.device iframe { display: block; width: 390px; height: 844px; border: 0; transform: scale(var(--s, 0.8)); transform-origin: top left; }
.device iframe[hidden], .device-poster[hidden] { display: none; }
/* Desktop: the demo's picture shows instantly on switch; the live demo fades in over it once loaded */
.device-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; pointer-events: none; transition: opacity 0.35s ease-out; }
.device-shot.on { opacity: 1; transition: none; }
.device-poster { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.device-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-poster::after { content: ""; position: absolute; inset: 45% 0 0; background: oklch(8% 0 0 / 0.55); } /* flat scrim so the button reads on any screenshot */
.dp-pill { position: absolute; z-index: 1; bottom: 22px; left: 50%; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: oklch(98.6% 0.003 85); color: oklch(19% 0.012 265); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 10px 30px -10px oklch(5% 0 0 / 0.5); }
.dp-pill i { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[dir="rtl"] .dp-pill i { transform: scaleX(-1); }
.device-poster:active .dp-pill { transform: translateX(-50%) scale(0.96); }
.device-poster:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 0 0 36px 36px; }
/* Full-screen live demo on phones */
.viewer { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--tx); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer::backdrop { background: oklch(15% 0.01 265 / 0.6); }
.viewer-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: env(safe-area-inset-top) 12px 0; box-shadow: 0 1px 0 var(--line); }
.viewer-bar b { flex: 1; min-width: 0; overflow: hidden; font-size: 1rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.viewer-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-3); color: var(--tx); cursor: pointer; }
.viewer-live { display: inline-flex; align-items: center; gap: 8px; padding-inline-end: 6px; color: var(--accent); font-size: 0.75rem; }
.viewer-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: oklch(98% 0.005 252); }
html:has(.viewer[open]) { overflow: hidden; }
/* Looping animations rest while off screen */
.is-off, .is-off * { animation-play-state: paused !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .device iframe { transform-origin: top right; }
.device-notch { position: absolute; top: 14px; left: 50%; z-index: 2; width: 64px; height: 18px; border-radius: 99px; background: oklch(9% 0.008 265); transform: translateX(-50%); pointer-events: none; }
.demo-info { display: grid; gap: 12px; justify-items: start; }
.di-niche { color: var(--accent); font: 400 0.75rem/1.5 var(--f-wide); letter-spacing: 0.2em; text-transform: uppercase; }
[lang="ar"] .di-niche { font: 600 0.875rem var(--f-sans); letter-spacing: 0; text-transform: none; }
.demo-info h3 { font-size: clamp(2rem, 7vw, 3rem); }
.di-list { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.di-list li { display: flex; gap: 10px; align-items: baseline; color: var(--tx-2); }
.di-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--accent); }
.di-try { color: var(--tx-3); font-size: 0.8125rem; }
@media (min-width: 980px) {
  .showroom { grid-template-columns: 250px auto 1fr; align-items: center; gap: 48px; }
  .demo-tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .device { --w: 360px; }
}

/* ---------- Found on Google + AI ---------- */
.found { display: grid; gap: 32px; }
.found-head { display: grid; gap: 14px; }
.found-head h2 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.found-demo { display: grid; gap: 14px; }
.fs-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; padding: 5px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.fs-opt { position: relative; z-index: 1; min-height: 46px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--tx-3); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: color 0.3s; }
.fs-opt[aria-selected="true"] { color: var(--btn-tx); }
.fs-switch[data-pos="1"] .cs-thumb { transform: translateX(100%); }
[dir="rtl"] .fs-switch[data-pos="1"] .cs-thumb { transform: translateX(-100%); }
.found-stage { position: relative; min-height: 470px; overflow: hidden; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.fs { position: absolute; inset: 0; padding: clamp(18px, 4vw, 28px); opacity: 0; transform: translateY(10px); transition: opacity 0.45s, transform 0.6s var(--ease-expo); pointer-events: none; }
.found-stage[data-mode="search"] .fs-search, .found-stage[data-mode="ai"] .fs-ai { opacity: 1; transform: none; }
.fs-bar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx); font-size: 0.9375rem; }
.fs-bar svg { flex: none; fill: none; stroke: var(--tx-3); stroke-width: 2; stroke-linecap: round; }
.fs-caret { width: 1.5px; height: 1.1em; margin-inline-start: -8px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.fs-results { --step: 90px; position: relative; height: calc(4 * var(--step)); margin-top: 16px; }
.fs-row { position: absolute; inset-inline: 0; top: 0; display: flex; align-items: center; gap: 12px; height: calc(var(--step) - 10px); padding: 0 14px; border-radius: 16px; transform: translateY(calc(var(--pos) * var(--step))); transition: transform 0.9s var(--ease-expo), background-color 0.4s, box-shadow 0.4s; }
.fs-fav { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); }
.fs-sk { display: grid; flex: 1; gap: 8px; }
.fs-sk b { display: block; width: var(--w); height: 9px; border-radius: 99px; background: var(--bg-3); }
.fs-sk b + b { height: 7px; opacity: 0.6; }
.fs-row.you > span { display: grid; flex: 1; min-width: 0; gap: 2px; }
.fs-row.you small { color: var(--tx-3); font-size: 0.75rem; }
.fs-row.you b { overflow: hidden; color: var(--accent); font-size: 0.9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fs-row.you .fs-fav { background: var(--accent); }
.fs-chips { display: flex; gap: 6px; margin-top: 3px; overflow: hidden; }
@media (max-width: 520px) { .fs-chips em:nth-child(3) { display: none; } .fs-results { --step: 98px; } .found-stage { min-height: 500px; } }
.fs-chips em { padding: 1px 8px; border-radius: 99px; background: var(--bg-3); color: var(--tx-2); font-size: 0.75rem; font-style: normal; white-space: nowrap; }
.fs-row.lit { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--tx), var(--shadow); }
.fs-ai { display: grid; align-content: start; gap: 16px; }
.fs-ask { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--bg-3); color: var(--tx); }
[dir="rtl"] .fs-ask { border-radius: 20px 20px 20px 6px; }
.fs-answer { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; max-width: 95%; }
.fs-spark { grid-row: span 2; fill: var(--accent); }
.fs-answer p { min-height: 4.8em; margin: 0; color: var(--tx); font-size: 1.0625rem; line-height: 1.6; }
.fs-src { justify-self: start; padding: 4px 10px; border-radius: 99px; background: var(--bg-3); color: var(--accent); font-size: 0.75rem; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease-expo); }
.found-stage.answered .fs-src { opacity: 1; transform: none; }
.found-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.found-list li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.found-list li::before { content: ""; grid-row: span 2; width: 12px; height: 7px; margin-top: 0.45em; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.found-list b { color: var(--tx); font-weight: 600; }
.found-list span { color: var(--tx-3); }
.found-note { max-width: 62ch; color: var(--tx-3); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .found { grid-template-columns: 1fr 1.1fr; column-gap: 64px; row-gap: 40px; align-items: start; }
  .found-head { grid-column: 1; }
  .found-demo { grid-column: 2; grid-row: 1 / span 2; }
  .found-list { grid-column: 1; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .found-note { grid-column: 1 / -1; }
  .found-stage { min-height: 480px; }
}

/* ---------- Hosting plans (inside the care panel) ---------- */
.plans { display: grid; gap: 16px; grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-tab { display: grid; gap: 2px; min-height: 64px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--bg); color: var(--tx-2); text-align: start; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background-color 0.25s; }
.plan-tab b { color: var(--tx); font-size: 1rem; font-weight: 600; }
.plan-tab small { color: var(--tx-3); font-size: 0.75rem; line-height: 1.3; }
.plan-tab[aria-selected="true"] { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--tx), var(--shadow); }
.plan-tab[data-plan="growth"] small { color: var(--accent); }
.plan-body { display: grid; gap: 8px; animation: fade 0.35s ease-out; }
.plan-plus { color: var(--tx-3); font-size: 0.875rem; }
.plan-body ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-body li { display: flex; gap: 10px; align-items: baseline; color: var(--tx-2); }
.plan-body li::before { content: ""; flex: none; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.plan-foot { display: grid; gap: 12px; justify-items: start; }
.plan-foot p { color: var(--tx-3); font-size: 0.9375rem; }
@media (max-width: 420px) { .plan-tab { padding: 10px; } .plan-tab small { font-size: 0.75rem; } }

/* ---------- Savings calculator ---------- */
.calc { display: grid; gap: 28px; padding: clamp(24px, 5vw, 56px); border-radius: 32px; box-shadow: var(--shadow); }
.calc-copy { display: grid; gap: 14px; }
.sliders { display: grid; gap: 22px; margin-top: 10px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: var(--tx-2); font-weight: 500; }
.slider output { color: var(--tx); font: 600 1.15rem var(--f-mono); }
input[type="range"] { --p: 50%; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
[dir="rtl"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(270deg, var(--accent) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--tx); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent); -webkit-appearance: none; appearance: none; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--tx); }
.calc-out { display: grid; gap: 6px; align-content: center; padding: 24px; border-radius: 24px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.co-label { color: var(--tx-3); font-size: 0.8125rem; }
.co-big { color: var(--accent); font-size: clamp(2.6rem, 11vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.co-mid { margin-bottom: 12px; color: var(--tx); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.03em; }
.co-cta { justify-self: start; margin-top: 8px; }
.co-note { margin-top: 8px; color: var(--tx-3); font-size: 0.8125rem; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; } }

/* ---------- 3D intro ---------- */
.boot-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The flat logo is the lead-in; when the 3D engine is ready it dissolves into the 3D particles */
.boot-center { position: relative; z-index: 2; }
.boot.has-3d .boot-logo { opacity: 0; transform: scale(1.08); transition: opacity 0.9s ease-out, transform 0.9s ease-out; }
.boot.has-3d::before { z-index: 1; }

/* ---------- What we build: capability index + live stage ---------- */
.build .kicker { margin-bottom: 18px; }
.build-grid { display: grid; gap: 28px; }
.build-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.build-row { display: grid; gap: 8px; width: 100%; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: start; cursor: pointer; }
.br-word { color: var(--line-2); font: 600 clamp(3rem, 14vw, 6.6rem)/0.95 var(--f-sans); letter-spacing: -0.05em; transition: color 0.35s, transform 0.5s var(--ease); }
[lang="ar"] .br-word { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.br-desc { display: grid; grid-template-rows: 0fr; max-width: 46ch; color: var(--tx-3); opacity: 0; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s; }
.br-desc > span { min-height: 0; overflow: hidden; }
.build-row:hover .br-word { color: var(--tx-3); }
.build-row[aria-pressed="true"] .br-word { color: var(--tx); transform: translateX(8px); }
[dir="rtl"] .build-row[aria-pressed="true"] .br-word { transform: translateX(-8px); }
.build-row[aria-pressed="true"] .br-word::after { content: ""; display: inline-block; width: 0.16em; height: 0.16em; margin-inline-start: 0.12em; border-radius: 50%; background: var(--accent); vertical-align: 0.08em; }
.build-row[aria-pressed="true"] .br-desc { grid-template-rows: 1fr; opacity: 1; }
.build-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.bs { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.96); transition: opacity 0.45s, transform 0.6s var(--ease-expo); pointer-events: none; }
.build-stage[data-show="web"] .bs-web, .build-stage[data-show="app"] .bs-app, .build-stage[data-show="soft"] .bs-soft { opacity: 1; transform: none; }
/* websites: a browser window cycling through the demos */
.bs-browser { width: 78%; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; background: var(--bg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.bs-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: var(--bg-3); }
.bs-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.bs-bar b { flex: 1; height: 10px; margin-inline-start: 10px; border-radius: 99px; background: var(--bg-2); }
.bs-shots { position: relative; height: calc(100% - 26px); }
.bs-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: shots 12.5s infinite; animation-delay: calc(var(--i) * 2.5s); }
@keyframes shots { 0%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
/* apps: a phone with notifications sliding in */
.bs-phone { position: relative; width: 44%; max-height: 92%; aspect-ratio: 9 / 18; overflow: hidden; padding: 30px 10px 10px; border-radius: 30px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow); }
.bs-toasts { display: grid; gap: 8px; }
.toast-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px oklch(25% 0.02 265 / 0.25); animation: toast-in 0.55s var(--ease-expo) both; }
.toast-card b { color: var(--accent); font-size: 0.75rem; }
.toast-card span { color: var(--tx); font-size: 0.8125rem; line-height: 1.35; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
/* software: a dashboard that counts up */
.bs-dash { display: grid; gap: 16px; width: 82%; padding: 18px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.bs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bs-kpis p { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.bs-kpis small { color: var(--tx-3); font-size: 0.75rem; }
.bs-kpis b { color: var(--tx); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.bs-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 120px; }
.bs-bars span { display: grid; grid-template-rows: 1fr auto; gap: 4px; height: 100%; }
.bs-bars i { align-self: end; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--tx); transform: scaleY(0.05); transform-origin: bottom; }
.bs-bars.grow i { animation: grow 0.9s var(--ease-expo) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.bs-bars small { color: var(--tx-3); font-size: 0.75rem; text-align: center; }
@media (min-width: 980px) { .build-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; } }

/* ---------- Priced per project: hosting & care switch ---------- */
.care { display: grid; gap: 40px; }
.care-head { display: grid; gap: 16px; justify-items: start; }
.care-head h2 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.care-choice { display: grid; gap: 16px; }
.care-ask { color: var(--tx-2); font-weight: 500; }
.care-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cs-opt { position: relative; z-index: 1; min-height: 50px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--tx-3); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: color 0.3s; }
.cs-opt[aria-selected="true"] { color: var(--btn-tx); }
.cs-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--btn-bg); transition: transform 0.5s var(--ease-expo); }
.care-switch[data-pos="1"] .cs-thumb { transform: translateX(100%); }
[dir="rtl"] .cs-thumb { left: auto; right: 5px; }
[dir="rtl"] .care-switch[data-pos="1"] .cs-thumb { transform: translateX(-100%); }
.care-panel { display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); animation: fade 0.4s ease-out; }
.cp-visual svg { width: 100%; max-width: 220px; height: auto; fill: none; stroke: var(--tx); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-visual .k { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw-k 1.2s 0.2s var(--ease) forwards; }
@keyframes draw-k { to { stroke-dashoffset: 0; } }
.cp-visual .led { fill: var(--accent); stroke: none; animation: blink 1.6s ease-in-out infinite; }
.cp-visual .l2 { animation-delay: 0.8s; }
@keyframes blink { 50% { opacity: 0.25; } }
.cp-visual .pulse { stroke-dasharray: 160; stroke-dashoffset: 160; animation: pulse-line 2.4s linear infinite; }
@keyframes pulse-line { to { stroke-dashoffset: -160; } }
.cp-copy { display: grid; gap: 10px; }
.cp-copy h3 { font-size: 1.8rem; }
.cp-copy ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.cp-copy li { display: flex; gap: 10px; align-items: baseline; color: var(--tx-2); }
.cp-copy li::before { content: ""; flex: none; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
@media (min-width: 900px) { .care { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } .care-panel { grid-template-columns: 200px 1fr; } }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 36px; margin: 0; padding: 0; padding-inline-start: 50px; list-style: none; }
.tl-line { position: absolute; top: 18px; bottom: 18px; inset-inline-start: 17px; width: 2px; background: var(--line); }
.tl-line i { display: block; height: 100%; background: var(--tx); transform: scaleY(0); transform-origin: top; }
.tl-step { position: relative; display: grid; }
.tl-dot { position: absolute; top: 0; inset-inline-start: -50px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); color: var(--tx-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.tl-step.lit .tl-dot { background: var(--tx); color: var(--bg); box-shadow: none; }
.tl-step h3 { color: var(--tx-3); font-size: clamp(1.5rem, 5.5vw, 2.4rem); transition: color 0.4s; }
.tl-step.lit h3 { color: var(--tx); }
.tl-step p { max-width: 50ch; margin-top: 6px; color: var(--tx-3); }

/* ---------- Free preview form ---------- */
.preview-form { display: grid; gap: 18px; max-width: 640px; margin-inline: auto; padding: clamp(24px, 5vw, 48px); border-radius: 32px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.pf-head { display: grid; gap: 10px; margin-bottom: 8px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field label { color: var(--tx-2); font-size: 0.9375rem; font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; text-overflow: ellipsis; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--bg); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.2s; }
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-3) 50%), linear-gradient(135deg, var(--tx-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 20px 50%, 25px 50%; }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tx); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px oklch(55% 0.19 25); }
::placeholder { color: var(--tx-3); opacity: 1; }
.form-error { min-height: 1.2em; color: oklch(52% 0.18 25); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; color: var(--tx); font-weight: 600; font-size: 1.0625rem; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--tx); font: 300 1.5rem var(--f-sans); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--tx-3); }

/* ---------- Footer with interactive wordmark ---------- */
.footer { max-width: var(--maxw); margin: clamp(90px, 15vw, 160px) auto 0; padding: 0 var(--gutter) 36px; }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.wordmark text { fill: var(--tx); font: 700 200px/1 "Sora", sans-serif; letter-spacing: -12px; }
.footer-row { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-tag { max-width: 44ch; color: var(--tx-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--tx); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.credit { color: var(--tx-3); font-size: 0.8125rem; }
@media (min-width: 900px) { .footer-row { grid-template-columns: minmax(260px, 1.3fr) auto auto auto; align-items: center; column-gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .svc-icon .draw { stroke-dashoffset: 0; } .svc-icon .pop { opacity: 1; transform: none; } .svc-icon .bar { transform: none; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); background: oklch(98.6% 0.003 85 / 0.94); box-shadow: 0 1px 0 var(--line); }
.legal-page main { max-width: 72ch; margin: 0 auto; padding: clamp(48px, 9vw, 96px) var(--gutter) 80px; }
#legal h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
#legal h2 { margin: 36px 0 8px; font-size: 1.25rem; }
#legal p { color: var(--tx-2); line-height: 1.7; }
#legal a, .legal-foot a { color: var(--accent); text-underline-offset: 3px; }
.legal-meta { margin-top: 12px; color: var(--tx-3); font-size: 0.875rem; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.875rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--tx-3); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Light edition: Bugatti dark band behind the live showroom ---------- */
#work.dark { box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); padding-bottom: clamp(80px, 12vw, 140px); margin-top: clamp(40px, 8vw, 90px); }
#work.dark h2 { color: var(--tx); }
.dark .demo-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--cyan); }
.calc.dark { background: var(--bg); }
.calc.dark .calc-out { background: var(--bg-2); }

/* Hero label: one line, quieter */
.hero-copy > .kicker { max-width: none; letter-spacing: 0.16em; }
@media (max-width: 520px) { .hero-copy > .kicker { letter-spacing: 0.1em; } }
[lang="ar"] .hero-copy > .kicker { letter-spacing: 0; }
.slider output { font-family: var(--f-sans); font-variant-numeric: tabular-nums; }
.co-label { font: 400 0.75rem/1.5 var(--f-wide); letter-spacing: 0.18em; text-transform: uppercase; }
[lang="ar"] .co-label { font: 600 0.875rem var(--f-sans); letter-spacing: 0; text-transform: none; }

/* Handles and emails always read left to right, also inside Arabic */
#igLink, #mailLink { direction: ltr; unicode-bidi: isolate; }
