/* =====================================================================
   We Link Technology — design system + page styles
   Dark theme only. Tokens → base → components → sections → motion.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0e18;
  --bg-2: #0f1524;
  --bg-3: #151c2e;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --electric: #1e90ff;
  --green: #22c55e;
  --lime: #86efac;
  --alert: #ff5c5c;
  --amber: #f5b942;

  --text: #f2f5fa;
  --text-dim: #9aa4b8;
  --text-faint: #6b7489; /* decorative / large text only (4.3:1 on --bg-0) */

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --grad-accent: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #22c55e 100%);
  --grad-v: linear-gradient(180deg, #22d3ee 0%, #3b82f6 50%, #22c55e 100%);
  --grad-hair: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45) 25%, rgba(59, 130, 246, .45) 50%, rgba(34, 197, 94, .4) 75%, transparent);
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 20px 60px -20px rgba(34, 211, 238, .35);

  --glass-bg: rgba(255, 255, 255, .03);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1280px;
  --section-y: clamp(88px, 11vw, 160px);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  /* Clip horizontal overflow at the viewport itself (on <html>, not <body>): with the
     rule on <body> Chromium sizes fixed elements to the window incl. the classic scrollbar. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg-0);
  scrollbar-color: #243049 var(--bg-0);
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Fixed dot-grid + film-grain texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise), radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.3px);
  background-size: 180px 180px, 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  opacity: .55;
}

main, .footer { position: relative; z-index: 1; }
main:focus { outline: none; }

img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
p { overflow-wrap: break-word; }

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- 3. Utilities & typography ---------- */
/* Shared SVG gradient defs: rendered (so url(#…) works) but takes no space */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg-0);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--grad-accent);
}
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--grad-accent);
}
.eyebrow--alert { color: var(--alert); }
.eyebrow--alert::before { background: linear-gradient(90deg, transparent, var(--alert)); }

.h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-dim);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, 88%);
  height: 1px;
  transform: translateX(-50%);
  background: var(--grad-hair);
  opacity: .55;
}

.section-head {
  max-width: 800px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- 4. Components ---------- */
.icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--grad { stroke: url(#wl-grad-icon); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}

/* Buttons */
.btn {
  --tx: 0px;
  --ty: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 15px/1 var(--font-body);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--tx), var(--ty));
  transition: transform .45s var(--ease-out), box-shadow .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease, background-position .6s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; }
.btn .icon--arrow { transition: transform .35s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }

.btn--primary {
  color: #05070d;
  background: var(--grad-accent);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--glow), 0 14px 44px -12px rgba(59, 130, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .07);
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Pills, chips, tags, badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  font: 500 12px/1.35 var(--font-mono);
  letter-spacing: .05em;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pill__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2.2s ease-out infinite;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .02em;
  color: var(--text-dim);
  white-space: nowrap;
}

.tag {
  margin: 0;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 211, 238, .25);
  background: rgba(34, 211, 238, .05);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.badge--live {
  color: var(--amber);
  border-color: rgba(245, 185, 66, .35);
  background: rgba(245, 185, 66, .07);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-amber 2s ease-out infinite;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--cyan); }
.link-arrow:hover { color: var(--cyan); border-bottom-color: rgba(34, 211, 238, .45); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.icon-btn:hover { border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .08); }
.icon-btn:focus-visible { border-radius: 50%; }

/* Cursor spotlight + border glow (pointer vars set by main.js) */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::before,
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
[data-spotlight]::before {
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .09), transparent 45%);
}
[data-spotlight]::after {
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .6), rgba(59, 130, 246, .2) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) {
  [data-spotlight]:hover::before,
  [data-spotlight]:hover::after { opacity: 1; }
  [data-tilt].is-tilting {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  }
}

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg-0);
  animation: pl-lift .34s cubic-bezier(.76, 0, .24, 1) .76s both;
}
.preloader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad-hair);
}
html:not(.js) .preloader { display: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__mark { width: 76px; height: 76px; animation: pl-mark .6s var(--ease-out) .04s both; }
.preloader__bar {
  display: block;
  width: 132px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--line);
}
.preloader__bar > span {
  display: block;
  height: 100%;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: pl-bar .72s var(--ease-in-out) forwards;
}
@keyframes pl-mark { from { opacity: 0; transform: scale(.88); } }
@keyframes pl-bar { to { transform: scaleX(1); } }
@keyframes pl-lift { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- 6. Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--grad-accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 7. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
}
/* Glass lives on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(5, 7, 13, .64);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity .35s ease;
}
.nav.is-scrolled::before,
.nav.nav--open::before { opacity: 1; }
.nav__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
}
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font: 700 16px/1.1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__sub {
  margin-top: 4px;
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav__links {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
}
.nav__link {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: var(--text); }
.nav__indicator {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: var(--w, 0px);
  border-radius: 2px;
  background: var(--grad-accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
  transform: translateX(var(--x, 0px));
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s ease;
}
.nav__indicator.is-visible { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
}
.lang-switch button {
  min-width: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-dim);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { color: #05070d; background: var(--text); }
.lang-switch button:focus-visible { border-radius: var(--radius-pill); outline-offset: 2px; }
.lang-switch__sep { width: 1px; height: 14px; margin: 0 2px; background: var(--line-strong); }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}
.menu-btn__lines { position: relative; display: block; width: 18px; height: 10px; }
.menu-btn__lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-btn__lines span:first-child { top: 0; }
.menu-btn__lines span:last-child { top: 8.5px; }
.nav--open .menu-btn__lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.nav--open .menu-btn__lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(59, 130, 246, .14), transparent 70%),
    rgba(5, 7, 13, .97);
  opacity: 0;
  transition: opacity .3s ease;
}
.menu.is-open { opacity: 1; }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links li { border-bottom: 1px solid var(--line); }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  color: var(--text);
  text-decoration: none;
  font: 500 clamp(26px, 7vw, 36px)/1.1 var(--font-display);
  letter-spacing: -0.01em;
  opacity: 0;
  translate: 0 12px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), color .2s ease;
}
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: .2s; }
.menu__links a:hover { color: var(--cyan); }
.menu__num { font: 500 12px/1 var(--font-mono); color: var(--cyan); letter-spacing: .1em; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.menu__contact { width: 100%; margin: 0; font-size: 14px; color: var(--text-dim); }
.menu__contact a { color: var(--text-dim); text-decoration: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 72px)) 0 clamp(40px, 6vh, 64px);
  background:
    radial-gradient(70% 55% at 76% 30%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(50% 45% at 12% 82%, rgba(34, 211, 238, .10), transparent 70%),
    var(--bg-0);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(85% 70% at 22% 45%, rgba(5, 7, 13, .78) 0%, rgba(5, 7, 13, .38) 48%, transparent 78%),
    linear-gradient(180deg, rgba(5, 7, 13, .6) 0%, transparent 16%, transparent 72%, var(--bg-0) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
/* WebGL unavailable: gradient + grain */
.hero--fallback {
  background:
    var(--noise),
    radial-gradient(60% 55% at 78% 28%, rgba(59, 130, 246, .28), transparent 70%),
    radial-gradient(45% 45% at 62% 70%, rgba(34, 197, 94, .12), transparent 70%),
    radial-gradient(50% 45% at 10% 85%, rgba(34, 211, 238, .16), transparent 70%),
    var(--bg-0);
  background-size: 180px 180px, auto, auto, auto, auto;
}
.hero--fallback #hero-canvas { display: none; }

.hero__inner { position: relative; }
.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero__copy { min-width: 0; max-width: 780px; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title .grad { padding-right: .04em; }

/* Word-by-word reveal (spans injected by main.js) */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .05em .16em;
  margin: 0 -.05em -.16em;
}
.hero__title .w__i {
  display: inline-block;
  transition:
    translate 1.05s var(--ease-out) calc(var(--wi, 0) * 60ms + 80ms),
    opacity .7s ease calc(var(--wi, 0) * 60ms + 80ms);
}
.hero__title .grad.is-split { background: none; }
.hero__title .grad .w__i {
  background: var(--grad-accent);
  background-size: var(--gs, 100%) 100%;
  background-position: var(--gp, 0%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html.intro-prep .hero__title .w__i { translate: 0 110%; opacity: 0; transition: none; }

.intro-item {
  transition:
    opacity .9s var(--ease-out) calc(var(--i, 0) * 110ms + 420ms),
    translate .9s var(--ease-out) calc(var(--i, 0) * 110ms + 420ms);
}
html.intro-prep .intro-item { opacity: 0; translate: 0 18px; transition: none; }

.hero__sub {
  max-width: 37rem;
  margin: 28px 0 0;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-dim);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__sim {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  transition: opacity 1s var(--ease-out) .55s, translate 1.15s var(--ease-out) .55s;
}
html.intro-prep .hero__sim { opacity: 0; translate: 64px 0; transition: none; }
.hero__sim::before {
  content: "";
  position: absolute;
  inset: 10% -8% -4%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .22), rgba(59, 130, 246, .12) 55%, transparent);
  filter: blur(26px);
}
#call-sim { position: relative; min-height: 420px; --wl-sim-max: 100%; }
.hero__sim.is-mounted #call-sim { min-height: 0; }
.hero__simcap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 4px 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.hero__simcap-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hero--no-sim .hero__sim { display: none; }

.hero__metrics { margin-top: clamp(44px, 7vh, 80px); }
.hero__metrics-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__metrics-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 16px;
}
.metric__value {
  display: flex;
  align-items: baseline;
  margin: 0;
  font: 500 clamp(1.8rem, 3.2vw, 2.75rem)/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.metric__prefix { color: var(--text-dim); font-size: .7em; letter-spacing: -0.02em; margin-right: 2px; }
.metric__unit { margin-left: 5px; font-size: .52em; letter-spacing: 0; color: var(--cyan); }
.metric__label {
  flex: 1;
  margin: 10px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}

/* Mini before/after bars under metrics */
.mbar {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.mbar__before,
.mbar__after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  transform-origin: left;
}
.mbar__before { width: calc(var(--before, 1) * 100%); background: rgba(255, 255, 255, .15); }
.mbar__after {
  width: calc(var(--after, 1) * 100%);
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, .5);
  transition: transform 1.5s var(--ease-out) .1s;
}
html.js .metric:not(.is-counted) .mbar__after { transform: scaleX(0); }
.mbar--seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  overflow: visible;
  background: none;
}
.mbar--seg > span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.mbar--seg > .is-on {
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, .5);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .1s;
}
html.js .metric:not(.is-counted) .mbar--seg > .is-on { transform: scaleX(0); }

/* ---------- 9. Trust bar / marquee ---------- */
.section--trust { padding-block: clamp(48px, 7vw, 88px); }
.marquee {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(16px, 3.5vw, 44px);
  margin: 0;
  padding: 10px clamp(16px, 3.5vw, 44px) 10px 0;
  list-style: none;
}
.marquee.is-animated .marquee__track {
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}
.marquee.is-animated:hover .marquee__track { animation-play-state: paused; }
.marquee:not(.is-animated) { -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-animated) .marquee__track { width: 100%; justify-content: center; }
.marquee:not(.is-animated) .marquee__group {
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  padding-inline: var(--gutter);
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 22px;
  border-radius: 14px;
  transition: background-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.logo img {
  display: block;
  width: auto;
  max-width: none;
  height: var(--h, 28px);
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: filter .45s var(--ease-out), opacity .45s ease;
}
/* KONE is white type on blue blocks: knock the type out instead of flattening it */
.logo--kone img { filter: grayscale(1) invert(1) brightness(1.8); }
.logo:hover {
  background: rgba(242, 245, 250, .95);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .35);
}
.logo:hover img { filter: none; opacity: 1; }

.trust__caption {
  margin: 26px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
}

/* ---------- 10. Problem ---------- */
.pains {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pain {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: clamp(24px, 3vw, 32px);
}
.pain__num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font: 700 clamp(3.2rem, 6vw, 4.8rem)/.9 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pain__unit {
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pain--alert .pain__num { color: var(--alert); text-shadow: 0 0 44px rgba(255, 92, 92, .35); }
.pain__text {
  max-width: 30ch;
  margin: auto 0 0;
  padding-top: 28px;
  font-size: 16px;
  color: var(--text-dim);
}
.pain__icon {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pain--alert .pain__icon { stroke: var(--alert); }
.pain--alert::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 92, 92, .10), transparent 45%); }

.compare {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
}
.compare__title {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label value" "track track";
  align-items: center;
  gap: 8px 16px;
}
.compare__label { grid-area: label; font-size: 14px; color: var(--text-dim); }
.compare__value { grid-area: value; font-size: 14px; text-align: right; }
.compare__track {
  grid-area: track;
  position: relative;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}
.compare__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  transform-origin: left;
  transition: transform 1.8s var(--ease-out) .2s;
}
.compare__row--trad .compare__bar { width: 100%; background: linear-gradient(90deg, rgba(255, 92, 92, .3), var(--alert)); }
.compare__row--trad .compare__value { color: var(--alert); }
.compare__row--wl .compare__bar {
  width: 2.5%;
  min-width: 10px;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, .8);
  transition-duration: .6s;
  transition-delay: .45s;
}
.compare__row--wl .compare__value { color: var(--cyan); }
html.js [data-compare]:not(.is-playing) .compare__bar { transform: scaleX(0); }

.market {
  display: grid;
  gap: 12px 44px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}
.market__num {
  margin: 0;
  font: 700 clamp(4rem, 11vw, 9rem)/.85 var(--font-display);
  letter-spacing: -0.05em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  padding-bottom: .06em;
}
.market__text {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-dim);
}
.market__note {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--text-dim);
}

/* ---------- 11. Platform ---------- */
.caps { display: grid; gap: 16px; }
.cap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
}
.cap__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.cap__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 211, 238, .06);
  border: 1px solid rgba(34, 211, 238, .18);
}
.cap__icon .icon { width: 26px; height: 26px; }
.cap__index {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cap__title {
  margin: 0;
  font: 500 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--font-display);
  letter-spacing: -0.015em;
}
.cap__body { margin: 0; color: var(--text-dim); }
.cap .chips { margin-top: auto; padding-top: 10px; }

.cap__art { flex: none; width: 132px; height: 56px; }
.cap__art--wave { display: flex; align-items: center; justify-content: space-between; }
.cap__art--wave i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: .85;
  transform: scaleY(.25);
  animation: eq 1.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.19s);
}
.cap__art--wave i:nth-child(3n) { animation-duration: 1.05s; }
.cap__art--wave i:nth-child(4n + 1) { animation-duration: 1.75s; }
.cap__art--docs { display: grid; align-content: center; gap: 7px; }
.cap__art--docs i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.cap__art--docs i:nth-child(1) { width: 90%; }
.cap__art--docs i:nth-child(2) { width: 68%; }
.cap__art--docs i:nth-child(4) { width: 82%; }
.cap__art--docs i:nth-child(5) { width: 54%; }
.cap__art--docs .is-hit {
  width: 100%;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(34, 211, 238, .5);
}
.cap__art .cap__grid { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.cap__art .cap__line {
  fill: none;
  stroke: url(#wl-grad);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cap__art .cap__dot { fill: var(--green); filter: drop-shadow(0 0 4px rgba(34, 197, 94, .9)); }
.cap__art .cap__box { fill: rgba(34, 211, 238, .06); stroke: rgba(34, 211, 238, .5); stroke-width: 1; stroke-dasharray: 4 4; }
.cap__art .cap__corners { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.cap__art .cap__scan { stroke: var(--green); stroke-width: 1.5; opacity: .85; animation: scan-y 3.2s ease-in-out infinite alternate; }

/* ---------- 12. Inside one emergency call (story + latency) ---------- */
.story { position: relative; }
.story__inner { display: grid; gap: 44px; }
.story__col { position: relative; min-width: 0; padding-left: 32px; }
.story__rail {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--line-strong);
}
.story__rail-fill {
  position: absolute;
  inset: 0;
  background: var(--grad-v);
  transform: scaleY(var(--story-progress, 0));
  transform-origin: top;
  transition: transform .25s linear;
}
html:not(.js) .story__rail-fill { transform: none; }
.story__steps { margin: 0; padding: 0; list-style: none; }
.story__step { position: relative; padding: 14px 0; }
.story__step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-0);
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.story__step.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .15), 0 0 18px rgba(34, 211, 238, .7);
}
.story__step[data-step="4"].is-active::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .15), 0 0 18px rgba(34, 197, 94, .7);
}
.story__h { margin: 0; font-size: inherit; font-weight: inherit; }
.story__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  padding: 4px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.story__num { font-size: 12px; letter-spacing: .1em; color: var(--text-dim); transition: color .3s ease; }
.story__title {
  font: 500 clamp(1.25rem, 1.9vw, 1.65rem)/1.2 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: color .3s ease;
}
.story__head:hover .story__title { color: var(--text); }
.story__step.is-active .story__num { color: var(--cyan); }
.story__step.is-active .story__title { color: var(--text); }
.story__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .55s var(--ease-out), opacity .45s var(--ease-out);
}
.story__body > div { min-height: 0; overflow: hidden; }
.story__body p { max-width: 50ch; margin: 10px 0 0; padding-left: 44px; color: var(--text-dim); }
.story__step.is-active .story__body p { color: #c3cad8; }
.story--pinned .story__step:not(.is-active) .story__body { grid-template-rows: 0fr; opacity: 0; }

.story__visual { position: relative; min-width: 0; }
.frame {
  position: relative;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 21, 36, .88), rgba(10, 14, 24, .88));
  box-shadow: 0 50px 120px -50px rgba(34, 211, 238, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--grad-hair);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--line);
}
.frame__led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert);
  animation: pulse-red 2s ease-out infinite;
}
.frame__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}
.frame__step { font-size: 11px; letter-spacing: .1em; color: var(--cyan); }
#arch-root { position: relative; min-height: 380px; }
.story.is-arch-mounted #arch-root { min-height: 0; }
.story--no-diagram .story__visual { display: none; }

/* Latency comparison */
.latency { margin-top: clamp(56px, 8vw, 104px); padding: clamp(20px, 3.5vw, 40px); border-radius: 22px; }
.latency__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.latency__title {
  margin: 12px 0 0;
  font: 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.latency__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .08);
  font-size: 14px;
  color: var(--lime);
}
.latency__badge-num { font-size: 26px; font-weight: 500; line-height: 1; color: var(--text); }
.latency__chart { display: grid; gap: 30px; }
.lat-row { display: grid; gap: 12px; }
.lat-row__label strong { display: block; font-size: 15px; font-weight: 600; }
.lat-row__label span { display: block; font-size: 13px; color: var(--text-dim); }
.lat-track {
  position: relative;
  height: 64px;
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px calc(100% / 7)),
    rgba(255, 255, 255, .02);
}
.lat-row--streaming .lat-track { margin-bottom: 22px; }
.seg {
  position: absolute;
  left: calc(var(--s) / 7 * 100%);
  width: calc((var(--e) - var(--s)) / 7 * 100%);
  height: 10px;
  border-radius: 5px;
  transform-origin: left center;
  transition: transform .75s var(--ease-out) calc(var(--s) * 180ms + 150ms);
}
.seg--listen { top: 11px; background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, .4); }
.seg--think { top: 27px; background: var(--blue); box-shadow: 0 0 12px rgba(59, 130, 246, .4); }
.seg--speak { top: 43px; background: var(--green); box-shadow: 0 0 12px rgba(34, 197, 94, .45); }
.seg--play { top: 43px; background: repeating-linear-gradient(135deg, rgba(34, 197, 94, .6) 0 5px, rgba(34, 197, 94, .2) 5px 10px); }
.seg--ghost { box-shadow: none; background: repeating-linear-gradient(135deg, rgba(59, 130, 246, .7) 0 5px, rgba(59, 130, 246, .22) 5px 10px); }
html.js [data-latency]:not(.is-playing) .seg { transform: scaleX(0); }

.lat-marker {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: calc(var(--at) / 7 * 100%);
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, .4);
  transition: opacity .5s ease 1.4s;
}
.lat-marker--first { border-left: 2px solid var(--text); }
.lat-marker--win { border-left-color: var(--green); }
.lat-marker__label {
  position: absolute;
  bottom: 100%;
  left: 0;
  padding-bottom: 5px;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
  color: var(--text-dim);
}
.lat-marker__label b { font-weight: 500; color: var(--text); }
.lat-marker--win .lat-marker__label b { color: var(--green); }
.lat-row--blocking .lat-marker__label { transform: translateX(-100%); }
.lat-marker--minor .lat-marker__label { top: 100%; bottom: auto; padding: 5px 0 0; transform: translateX(-4px); }
html.js [data-latency]:not(.is-playing) .lat-marker { opacity: 0; }

.lat-axis { position: relative; height: 16px; margin-top: -24px; }
.lat-axis span {
  position: absolute;
  left: calc(var(--at) / 7 * 100%);
  transform: translateX(-50%);
  font: 500 11px/1 var(--font-mono);
  color: var(--text-dim);
}
.lat-axis span:first-child { transform: none; }
.lat-axis span:last-child { transform: translateX(-100%); }
.lat-axis__caption {
  margin: -18px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  color: var(--text-dim);
}
.lat-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lat-swatch { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.lat-swatch--listen { background: var(--cyan); }
.lat-swatch--think { background: var(--blue); }
.lat-swatch--speak { background: var(--green); }
.lat-swatch--play { background: repeating-linear-gradient(135deg, rgba(34, 197, 94, .7) 0 3px, rgba(34, 197, 94, .25) 3px 6px); }
.latency__note { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); }

/* ---------- 13. Proof ---------- */
.cases { display: grid; gap: 16px; }
.case {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
}
.case__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.case__index { font-size: 12px; color: var(--text-dim); }
.case__title {
  margin: 4px 0 0;
  font: 500 clamp(1.35rem, 2.1vw, 1.7rem)/1.2 var(--font-display);
  letter-spacing: -0.015em;
}
.case__problem { margin: 0; color: var(--text-dim); }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 4px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}
.case__metrics li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px 16px;
  background: #0b1019;
}
.case__metrics--single { grid-template-columns: 1fr; }
.case__num {
  width: fit-content;
  max-width: 100%;
  font: 500 clamp(1.45rem, 2.3vw, 1.9rem)/1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.case__num--text { font-family: var(--font-display); letter-spacing: -0.02em; }
.case__lbl { font-size: 13px; line-height: 1.4; color: var(--text-dim); }
.case__checks { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.case__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 15px;
  line-height: 1.45;
}
.case__checks .icon { margin-top: 1px; color: var(--green); }
.case > .chips { margin-top: auto; padding-top: 4px; }

.drivewe { display: grid; gap: 28px; }
.drivewe__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.drivewe__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.drivewe__tagline { margin: -8px 0 0; font: 500 14px/1.4 var(--font-mono); letter-spacing: .02em; color: var(--amber); }
.drivewe .chips { margin-top: 4px; }
.drivewe .link-arrow { align-self: flex-start; }
.drivewe__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 78% 55%, rgba(245, 185, 66, .12), transparent 70%),
    rgba(255, 255, 255, .02);
}
.drivewe__svg { display: block; width: 100%; height: 100%; }
.dw-grid { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.dw-car { fill: none; stroke: rgba(242, 245, 250, .7); stroke-width: 1.5; stroke-linejoin: round; }
.dw-wheel { fill: #0a0e18; stroke: rgba(242, 245, 250, .7); stroke-width: 1.5; }
.dw-box { fill: rgba(245, 185, 66, .08); stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 4 4; }
.dw-corners { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; }
.dw-scan { stroke: var(--cyan); stroke-width: 1.5; opacity: .8; animation: dw-scan 3.6s ease-in-out infinite alternate; }

.disclosure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--text-dim);
}
.disclosure .icon { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- 14. Why we win ---------- */
.rule { margin: 0 0 clamp(44px, 6vw, 72px); }
.rule__bar { display: flex; gap: 4px; height: 16px; }
.rule__seg { border-radius: 8px; transform-origin: left; transition: transform 1.3s var(--ease-out); }
.rule__seg--model { flex: 0 0 calc(30% - 2px); background: var(--grad-accent); box-shadow: 0 0 26px rgba(34, 211, 238, .35); }
.rule__seg--rest {
  flex: 1;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 6px, rgba(255, 255, 255, .05) 6px 12px);
  transition-delay: .3s;
}
html.js [data-rule]:not(.is-playing) .rule__seg { transform: scaleX(0); }
.rule__legend {
  display: grid;
  grid-template-columns: calc(30% - 2px) minmax(0, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.rule__item { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-right: 16px; font-size: 15px; color: var(--text-dim); }
.rule__item--rest { padding-left: 12px; }
.rule__pct { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.rule__item--model .rule__pct {
  width: fit-content;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rule__caption { margin-top: 22px; font-size: 15px; color: var(--text-dim); }

.whys { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.why { padding: 26px 24px 28px; }
.why__icon { width: 28px; height: 28px; }
.why__title { margin: 18px 0 8px; font: 500 1.15rem/1.3 var(--font-display); letter-spacing: -0.005em; }
.why__body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-dim); }

/* ---------- 15. Traction & roadmap ---------- */
.roadmap { display: grid; gap: 8px; }
.timeline { position: relative; padding-left: 44px; }
.timeline__track {
  position: absolute;
  top: 12px;
  bottom: 40px;
  left: 9px;
  width: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--line-strong);
}
.timeline__fill { position: absolute; inset: 0; background: var(--grad-v); transform-origin: top; }
html.js .timeline__fill { transform: scaleY(0); }
.timeline__list { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline__item { position: relative; padding: 0 0 44px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  top: 2px;
  left: -44px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-0);
  transition: border-color .45s ease, box-shadow .45s ease;
}
.timeline__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color .45s ease;
}
.timeline__item.is-reached .timeline__dot {
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, .12), 0 0 22px rgba(34, 211, 238, .5);
}
.timeline__item.is-reached .timeline__dot::after { background: var(--cyan); }
.timeline__item.is-reached .timeline__dot::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: ring 1.5s var(--ease-out) 1 forwards;
}
.timeline__item--next .timeline__dot { border-style: dashed; }
.timeline__item--next.is-reached .timeline__dot { border-color: var(--green); box-shadow: 0 0 0 6px rgba(34, 197, 94, .12), 0 0 22px rgba(34, 197, 94, .5); }
.timeline__item--next.is-reached .timeline__dot::after { background: var(--green); animation: breathe 2.4s ease-in-out infinite; }
.timeline__item--next.is-reached .timeline__dot::before { border-color: var(--green); }
.timeline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 10px; }
.timeline__date { font-size: 14px; letter-spacing: .06em; color: var(--cyan); }
.timeline__item--next .timeline__date { color: var(--green); }
.timeline__title { margin: 0; font: 500 clamp(1.2rem, 1.8vw, 1.45rem)/1.25 var(--font-display); letter-spacing: -0.01em; }
.timeline__body { margin: 6px 0 0; color: var(--text-dim); }
.timeline__quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }

/* ---------- 16. Team ---------- */
.founders { display: grid; gap: 20px; }
.founder {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
}
.founder__body { min-width: 0; }
.founder__name { margin: 0; font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--font-display); letter-spacing: -0.015em; }
.founder__role { margin: 8px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.founder__bio { margin: 16px 0 0; font-size: 16px; color: var(--text-dim); }
.founder__proof {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.founder__proof-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.founder__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.founder__stats li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.35; color: var(--text-dim); }
.founder__stat { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.founder__awards { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-dim); }
.founder__awards-label { margin-right: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.chips--schools { margin-top: 18px; }
.founder__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }

/* Hex portrait — photo if present, otherwise an intentional initials mark */
.portrait { position: relative; flex: none; width: 136px; height: 136px; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .28), transparent);
  filter: blur(14px);
}
.portrait__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portrait__plate { fill: url(#wl-plate); }
.portrait__inner { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.portrait__traces { fill: none; stroke: rgba(34, 211, 238, .38); stroke-width: 1.2; stroke-linecap: round; transition: opacity .5s ease; }
.portrait__traces circle { fill: #0b1120; stroke: rgba(34, 211, 238, .65); }
.portrait__stroke { fill: none; stroke: url(#wl-grad); stroke-width: 2.5; }
.portrait__sweep {
  fill: none;
  stroke: #eafcff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: .07 .93;
  stroke-dashoffset: 0;
  opacity: .9;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, .95));
  animation: sweep 7s linear infinite;
}
.founder:nth-child(2) .portrait__sweep { animation-delay: -3.5s; }
.portrait__initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 700 38px/1 var(--font-display);
  letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity .5s ease;
}
.portrait__img {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 82%;
  height: 82%;
  object-fit: cover;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  opacity: 0;
  transition: opacity .6s ease;
}
.portrait.is-loaded .portrait__img { opacity: 1; }
.portrait.is-loaded .portrait__initials,
.portrait.is-loaded .portrait__traces { opacity: 0; }
.portrait--fallback .portrait__img { display: none; }

.team__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-dim);
}
.team__foot p { margin: 0; }
.team__foot strong { font-weight: 600; color: var(--text); }

/* ---------- 17. Testimonials ---------- */
.section--quotes { text-align: center; }
.quotes { max-width: 980px; margin: 36px auto 0; }
.quotes__stage { display: grid; }
.quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  translate: 32px 0;
  transition: opacity .6s var(--ease-out), translate .8s var(--ease-out), visibility 0s linear .8s;
}
.quote.is-out-left { translate: -32px 0; }
.quote.is-active {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .75s var(--ease-out) .12s, translate .9s var(--ease-out) .12s, visibility 0s;
}
.quote.no-transition { transition: none; }
.quote__text { margin: 0; }
.quote__text::before {
  content: "\201C";
  display: block;
  height: .42em;
  margin-bottom: .18em;
  font: 700 clamp(4rem, 8vw, 6rem)/.8 var(--font-display);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.quote__text p {
  margin: 0;
  font: 500 clamp(1.3rem, 2.6vw, 2.05rem)/1.4 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote__by { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.quote__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad-accent) border-box;
  font-size: 13px;
  color: var(--text);
}
.quote__name { display: block; font-size: 15px; font-weight: 600; }
.quote__org { display: block; font-size: 13px; color: var(--text-dim); }
.quotes__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.quotes__dots { display: flex; gap: 2px; padding: 0 4px; }
.quotes__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.quotes__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.quotes__dot:hover::before { background: var(--text-dim); }
.quotes__dot[aria-current="true"]::before {
  background: var(--cyan);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
.icon-btn--toggle .icon--play { display: none; }
.quotes.is-paused .icon-btn--toggle .icon--pause { display: none; }
.quotes.is-paused .icon-btn--toggle .icon--play { display: block; }
.quotes__progress {
  width: 168px;
  height: 2px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.quotes__progress > span {
  display: block;
  height: 100%;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.quotes.is-running .quotes__progress > span { animation: qprogress var(--q-dur, 7s) linear forwards; }
.quotes.is-hold .quotes__progress > span { animation-play-state: paused; }

/* ---------- 18. Investors ---------- */
.investor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(59, 130, 246, .17), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(34, 197, 94, .10), transparent 60%),
    linear-gradient(180deg, rgba(15, 21, 36, .92), rgba(10, 14, 24, .92));
  box-shadow: 0 60px 140px -60px rgba(59, 130, 246, .35);
}
.investor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .65), rgba(59, 130, 246, .2) 40%, rgba(255, 255, 255, .06) 60%, rgba(34, 197, 94, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.investor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 70%);
}
.investor__title { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.investor__grid { display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 60px); }
.investor__h { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.numlist { display: grid; margin: 0; padding: 0; list-style: none; }
.numlist li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.numlist__n { padding-top: 4px; font-size: 12px; color: var(--text-dim); }
.numlist p { margin: 0; font-size: 16px; line-height: 1.55; }
.investor__glance {
  align-self: start;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, .55);
}
.glance { display: grid; margin: 0; }
.glance div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.glance div:first-child { border-top: 0; padding-top: 4px; }
.glance dt { font-size: 14px; color: var(--text-dim); }
.glance dd { margin: 0; font-size: 14px; text-align: right; color: var(--text); }
.glance dd.mono { font-size: 17px; }
.investor__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 5vw, 52px); }

/* ---------- 19. Contact ---------- */
.contact { display: grid; gap: 48px; }
.contact__info, .contact__form { min-width: 0; }
.contact__list { display: grid; margin: 36px 0 0; padding: 0; list-style: none; }
.contact__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--cyan);
}
.contact__text { min-width: 0; }
.contact__label { margin: 0 0 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.contact__value { margin: 0; font-size: 16px; color: var(--text); text-decoration: none; }
a.contact__value:hover { color: var(--cyan); }
.contact__value--email { overflow-wrap: anywhere; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--text-dim);
  font: 500 12px/1 var(--font-mono);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { color: var(--text); border-color: rgba(34, 211, 238, .5); }
.copy-btn:focus-visible { border-radius: var(--radius-pill); }
.copy-btn__done, .copy-btn__check { display: none; }
.copy-btn.is-copied { color: var(--green); border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); }
.copy-btn.is-copied .copy-btn__idle, .copy-btn.is-copied .copy-btn__icon { display: none; }
.copy-btn.is-copied .copy-btn__done { display: inline; }
.copy-btn.is-copied .copy-btn__check { display: block; }

.contact__form { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 36px); }
.form__title { margin: 0; font: 500 1.35rem/1.2 var(--font-display); }
.form__note { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.form__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--cyan); }
.form__grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.field__opt { margin-left: 4px; font: 400 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 13, .6);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #7d869b; opacity: 1; }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  background: rgba(5, 7, 13, .85);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .25);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--alert); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { flex: 1 1 220px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); overflow-wrap: anywhere; }

/* ---------- 20. Footer ---------- */
.footer {
  padding: clamp(56px, 8vw, 88px) 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 24, 0), rgba(10, 14, 24, .75));
}
.footer__grid { display: grid; gap: 36px; }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font: 700 17px/1.2 var(--font-display);
  text-decoration: none;
  border-radius: 8px;
}
.footer__logo img { width: 40px; height: 40px; }
.footer__tagline { max-width: 38ch; margin: 16px 0 0; color: var(--text-dim); }
.footer__loc { margin: 12px 0 0; font-size: 12px; letter-spacing: .03em; color: var(--text-dim); }
.footer__h { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: var(--text); font-size: 15px; text-decoration: none; opacity: .88; transition: color .2s ease, opacity .2s ease; }
.footer__col a:hover { color: var(--cyan); opacity: 1; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}
.footer__bottom p { margin: 0; }

/* Back to top */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(15, 21, 36, .82);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity .3s ease, translate .35s var(--ease-out), visibility 0s linear .35s, border-color .2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .3s ease, translate .35s var(--ease-out), visibility 0s, border-color .2s ease;
}
.to-top:hover { border-color: rgba(34, 211, 238, .55); }
.to-top:focus-visible { border-radius: 50%; }
html:not(.js) .to-top { opacity: 1; visibility: visible; translate: 0 0; }

/* ---------- 21. Reveal system ---------- */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .9s var(--ease-out) var(--rd, 0ms),
    translate .9s var(--ease-out) var(--rd, 0ms),
    transform .5s var(--ease-out),
    border-color .3s ease;
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
html.no-anim [data-reveal] { opacity: 1 !important; translate: none !important; }
html.no-anim .mbar__after,
html.no-anim .mbar--seg > .is-on,
html.no-anim .compare__bar,
html.no-anim .seg,
html.no-anim .rule__seg,
html.no-anim .timeline__fill { transform: none !important; }
html.no-anim .lat-marker { opacity: 1 !important; }
html.no-anim .intro-item,
html.no-anim .hero__sim,
html.no-anim .hero__title .w__i { opacity: 1 !important; translate: none !important; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- 22. Keyframes ---------- */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); }
  100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, .6); }
  100% { box-shadow: 0 0 0 8px rgba(245, 185, 66, 0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 92, .6); }
  100% { box-shadow: 0 0 0 8px rgba(255, 92, 92, 0); }
}
@keyframes eq {
  0% { transform: scaleY(.15); }
  50% { transform: scaleY(.75); }
  100% { transform: scaleY(.35); }
}
@keyframes scan-y {
  from { transform: translateY(-14px); }
  to { transform: translateY(14px); }
}
@keyframes dw-scan {
  from { transform: translateY(0); }
  to { transform: translateY(140px); }
}
@keyframes ring {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(2.4); opacity: 0; }
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes sweep { to { stroke-dashoffset: -1; } }
@keyframes qprogress { to { transform: scaleX(1); } }

/* ---------- 23. Chinese typography ---------- */
:lang(zh) body { letter-spacing: .01em; }
:lang(zh) .hero__title { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.14; letter-spacing: 0; }
:lang(zh) .h2 { line-height: 1.2; letter-spacing: 0; }
:lang(zh) .lead,
:lang(zh) .hero__sub { line-height: 1.8; }
:lang(zh) .eyebrow,
:lang(zh) .cap__index,
:lang(zh) .tag,
:lang(zh) .badge,
:lang(zh) .brand__sub,
:lang(zh) .investor__h,
:lang(zh) .founder__role,
:lang(zh) .hero__metrics-label { letter-spacing: .1em; }
:lang(zh) .quote__text p { line-height: 1.6; letter-spacing: 0; }
:lang(zh) .story__title,
:lang(zh) .cap__title,
:lang(zh) .case__title { letter-spacing: 0; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 479.98px) {
  .nav__lang { display: none; }
  .brand__name { font-size: 15px; }
  .pill { border-radius: 16px; }
  .metric { padding: 16px 14px 14px; }
  .logo { height: 60px; padding: 0 14px; }
  .logo img { height: calc(var(--h, 28px) * .82); }
  .founder__stats { gap: 8px; }
  .contact__row { grid-template-columns: 40px minmax(0, 1fr); }
  .contact__icon { width: 40px; height: 40px; }
  .copy-btn { grid-column: 2; justify-self: start; }
}

@media (min-width: 560px) {
  .founder { grid-template-columns: 136px minmax(0, 1fr); gap: 28px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  .nav__cta { display: inline-flex; }
  .whys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__row {
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    grid-template-areas: "label track value";
  }
}

@media (min-width: 768px) {
  .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lat-row { grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 24px; }
  .lat-row__label { padding-top: 22px; }
  .lat-axis, .lat-axis__caption { margin-left: 224px; }
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .drivewe { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
  .market { grid-template-columns: auto minmax(0, 1fr); }
  .investor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investor__glance { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .menu-btn, .menu { display: none !important; }
  .hero__grid { grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr); }
  .hero--no-sim .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .story__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
  .story--no-diagram .story__inner { grid-template-columns: minmax(0, 1fr); }
  .story--pinned .story__inner { min-height: 100vh; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 24px; }
  .whys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .roadmap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 104px); align-items: start; }
  .roadmap__head { position: sticky; top: calc(var(--nav-h) + 48px); margin-bottom: 0; }
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
}

@media (max-width: 1023.98px) {
  .hero__sim { justify-self: center; max-width: 560px; }
  .hero__simcap { justify-content: center; }
}

@media (min-width: 1200px) {
  .investor__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 44px; }
  .investor__glance { grid-column: auto; }
}

@media (min-width: 1600px) {
  body { font-size: 18px; }
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .preloader { display: none !important; }
  html.js [data-reveal] { opacity: 1; translate: none; }
  .marquee__track { animation: none !important; }
  .cap__art--wave i { transform: scaleY(.45); }
  .portrait__sweep { display: none; }
  [data-tilt].is-tilting { transform: none; }
}
