/* ============================================================
   VinScan — landing page styles
   Dark theme · VinRobotics red #E4002B · Space Grotesk + Inter
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --bg-3: #16161c;
  --ink: #f4f4f6;
  --muted: #9a9aa3;
  --faint: #55555e;
  --red: #e4002b;
  --red-soft: rgba(228, 0, 43, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--red); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }

/* ---------- split text ---------- */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split .word > .word-inner { display: inline-block; will-change: transform; }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              opacity 0.25s, background 0.25s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================================================
   ACCESS GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(228, 0, 43, 0.10), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    var(--bg);
  background-size: 100% 100%, 28px 28px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate__inner { text-align: center; width: min(440px, 100%); }
.gate__logo { width: 52px; margin: 0 auto 22px; }
.gate__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(228, 0, 43, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
  background: var(--red-soft);
}
.gate__title {
  font-size: clamp(26px, 6vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.gate__sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.gate__digits {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 12px);
}
.gate__digit {
  width: clamp(42px, 12vw, 56px);
  aspect-ratio: 4 / 5;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 5.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  caret-color: var(--red);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}
.gate__digit:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft), 0 0 22px rgba(228, 0, 43, 0.25);
}
.gate__digit:disabled { opacity: 0.4; }
.gate__digit.is-error { border-color: var(--red); background: var(--red-soft); }
.gate__digit.is-ok {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 24px rgba(228, 0, 43, 0.5);
  transform: translateY(-3px);
}
.gate__digits.is-shake { animation: gateshake 0.45s var(--ease-out); }
@keyframes gateshake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-9px); }
  36% { transform: translateX(8px); }
  54% { transform: translateX(-6px); }
  72% { transform: translateX(4px); }
  90% { transform: translateX(-2px); }
}
.gate__msg {
  min-height: 22px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.25s;
}
.gate__msg.is-show { opacity: 1; }
.gate__msg.is-good { color: #6fe39b; }
.gate__note {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { width: min(340px, 78vw); text-align: center; }
.preloader__logo {
  width: 56px;
  margin: 0 auto 28px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.96); } }
.preloader__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.preloader__pct { color: var(--ink); font-variant-numeric: tabular-nums; }
.preloader__bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad-x);
  transition: transform 0.45s var(--ease-out), background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.25); }
.lang-toggle__opt { color: var(--faint); transition: color 0.25s; }
.lang-toggle__opt.is-on { color: var(--ink); }
.lang-toggle__divider { color: var(--faint); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.mobile-menu a:hover { color: var(--red); padding-left: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: #ff1a45;
  box-shadow: 0 8px 32px rgba(228, 0, 43, 0.4);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.btn__icon { flex: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* no-WebGL fallback */
.hero.no-webgl .hero__canvas { display: none; }
.hero.no-webgl::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(228, 0, 43, 0.16), transparent 65%),
    radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1.5px);
  background-size: 100% 100%, 26px 26px;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.65) 0%, transparent 22%, transparent 62%, var(--bg) 100%),
    radial-gradient(ellipse 54% 46% at 50% 52%, rgba(10, 10, 12, 0.72), transparent 72%),
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 55%, rgba(10,10,12,0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) var(--pad-x) 96px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-height: 600px) { .hero__footer { display: none; } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.hero__title {
  font-size: clamp(64px, 14vw, 192px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 18px;
  color: #fff;
}
/* gradient must live on the transformed span itself —
   background-clip:text on an ancestor breaks once descendants
   get composited transform layers */
.hero__title .word-inner,
.cta__title .word-inner {
  background: linear-gradient(180deg, #ffffff 55%, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 500;
  color: var(--red);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.hero__sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}
.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--pad-x) 30px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--font-display);
}
.hero__scroll-cue { display: flex; align-items: center; gap: 14px; }
.hero__scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--red));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: scrollcue 2s var(--ease-out) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero__meta { display: flex; gap: 10px; }
.hero__meta-sep { color: var(--red); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee__track {
  display: flex;
  width: max-content;
  /* movement driven by GSAP (velocity-reactive); CSS wraps it under reduced motion */
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marquee__group i {
  font-style: normal;
  color: var(--red);
  font-size: 0.5em;
}
.marquee__outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
@media (max-width: 560px) {
  .marquee__group { font-size: clamp(20px, 6.5vw, 28px); gap: 22px; padding-right: 22px; }
}

/* reduced motion: the ticker can't scroll, so wrap it to fit the screen
   instead of freezing with words clipped at the edges */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; }
  .marquee__group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    padding: 0 var(--pad-x);
    white-space: normal;
    text-align: center;
    font-size: clamp(20px, 3.6vw, 44px);
  }
  .marquee__group > i:last-child,
  .marquee__group--clone { display: none; }
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  padding: clamp(90px, 12vw, 160px) var(--pad-x) clamp(40px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.section-head__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.section-head__eyebrow::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.section-head__title {
  font-size: clamp(34px, 5.6vw, 72px);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { position: relative; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 110px) var(--pad-x);
}
.feature--flip .feature__text { order: 2; }
.feature--flip .feature__visual { order: 1; }
.feature__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 16px;
}
.feature__num::after {
  content: "";
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--red);
  margin-left: 14px;
  vertical-align: 4px;
  opacity: 0.5;
}
.feature__title {
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.feature__desc { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.feature__visual { perspective: 1100px; }
.feature__visual .visual { will-change: transform; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.feature__tags li {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.feature__tags li:hover { border-color: var(--red); color: var(--ink); }

/* visual frame */
.visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- 01 capture: phone with scanline --- */
.visual--capture { display: grid; place-items: center; }
.visual-phone {
  width: 36%;
  aspect-ratio: 9 / 19;
  border-radius: 9% / 4.5%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #0d0d11;
  position: relative;
  padding: 5%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.visual-phone__notch {
  position: absolute;
  top: 3.5%; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 3.2%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.visual-phone__screen {
  position: absolute;
  inset: 9% 7%;
  border-radius: 10px;
  background: #121218;
  overflow: hidden;
}
.visual-phone__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(228, 0, 43, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 0, 43, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 80%);
}
.visual-phone__scanline {
  position: absolute;
  left: 0; right: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(228, 0, 43, 0.32));
  border-bottom: 2px solid var(--red);
  box-shadow: 0 6px 24px rgba(228, 0, 43, 0.5);
  animation: scansweep 3.2s var(--ease-out) infinite;
}
@keyframes scansweep {
  0% { top: -36%; opacity: 0; }
  12% { opacity: 1; }
  85% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.visual-phone__rec,
.visual-phone__depth {
  position: absolute;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.visual-phone__rec {
  top: 7%; left: 8%;
  display: flex;
  align-items: center;
  gap: 5px;
}
.visual-phone__rec i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.2s ease-in-out infinite;
}
.visual-phone__depth { bottom: 7%; right: 8%; color: var(--muted); }

/* --- 02 point cloud: dot fields --- */
.visual--cloud { display: grid; place-items: center; }
.visual-dots {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 25%, transparent 72%);
  animation: drift 14s ease-in-out infinite alternate;
}
.visual-dots--2 {
  background-image: radial-gradient(rgba(228, 0, 43, 0.8) 1.2px, transparent 1.9px);
  background-size: 34px 34px;
  background-position: 11px 11px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate(-2%, -1.5%) scale(1); }
  to { transform: translate(2%, 1.5%) scale(1.06); }
}
.visual-cloud-ring {
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 0, 43, 0.5);
  border-radius: 50%;
  position: relative;
  animation: ringspin 9s linear infinite;
}
.visual-cloud-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}
@keyframes ringspin { to { transform: rotate(360deg); } }

/* --- HUD chips shared by visuals --- */
.visual-chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.visual-chip--red {
  color: #fff;
  border-color: rgba(228, 0, 43, 0.6);
  background: rgba(228, 0, 43, 0.2);
}

/* --- 03 splat: point cloud → photoreal splat reveal --- */
.visual--splat {
  /* one shared "scene" painted by both layers: warm lamp, red sofa,
     blue window light, purple floor bounce */
  --splat-scene:
    radial-gradient(ellipse 14% 13% at 27% 27%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(ellipse 32% 36% at 28% 31%, rgba(255, 196, 120, 0.9), transparent 70%),
    radial-gradient(ellipse 46% 26% at 41% 75%, rgba(228, 0, 43, 0.72), transparent 70%),
    radial-gradient(ellipse 30% 48% at 80% 42%, rgba(91, 108, 255, 0.78), transparent 72%),
    radial-gradient(ellipse 60% 22% at 56% 90%, rgba(130, 80, 170, 0.5), transparent 75%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(36, 38, 52, 0.85), #101014 100%);
}
.splat-layer { position: absolute; inset: 0; }
.splat-layer--points {
  background: var(--splat-scene);
  -webkit-mask-image: radial-gradient(circle, #000 1.1px, transparent 1.7px);
  mask-image: radial-gradient(circle, #000 1.1px, transparent 1.7px);
  -webkit-mask-size: 8px 8px;
  mask-size: 8px 8px;
  filter: brightness(1.25);
}
.splat-layer--render {
  background: var(--splat-scene);
  filter: blur(12px) saturate(1.3) brightness(1.15);
  clip-path: inset(0 0 0 46%); /* scrubbed by GSAP on scroll */
}
.splat-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 46%;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 18px var(--red), 0 0 44px rgba(228, 0, 43, 0.5);
  z-index: 2;
}
.splat-chip-tr { top: 14px; right: 14px; }
.splat-chip-bl { bottom: 14px; left: 14px; }
.splat-chip-br { bottom: 14px; right: 14px; }

/* --- 04 physics: falling blocks --- */
.visual--physics { display: block; }
.phys-floor {
  position: absolute;
  left: 12%; right: 12%; bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.phys-floor::after {
  content: "";
  position: absolute;
  inset: 0 0 -26px 0;
  background-image:
    linear-gradient(rgba(228, 0, 43, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 0, 43, 0.2) 1px, transparent 1px);
  background-size: 18px 13px;
  transform: perspective(160px) rotateX(58deg);
  transform-origin: top;
  opacity: 0.6;
}
.phys-traj {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.phys-traj path {
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: 0.85;
  animation: dashflow 1.4s linear infinite;
}
.phys-traj circle { fill: var(--red); }
@keyframes dashflow { to { stroke-dashoffset: -48; } }

.phys-cube {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 2;
}
/* collision-mesh grid inside each cube */
.phys-cube::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 8px);
}
.phys-cube--a   { width: 13%; bottom: 19%; left: 37%; }
.phys-cube--b   { width: 13%; bottom: 19%; left: 51%; }
.phys-cube--top { width: 12%; bottom: 36.5%; left: 44.5%; }
.phys-cube--fall {
  width: 11%;
  top: 22%;
  left: 68%;
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(228, 0, 43, 0.32), rgba(228, 0, 43, 0.05));
  box-shadow: 0 0 26px rgba(228, 0, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: rotate(18deg); /* fall path scrubbed by GSAP on scroll */
}
.phys-cube--fall::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(228, 0, 43, 0.25) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(228, 0, 43, 0.25) 0 1px, transparent 1px 8px);
}
/* predicted landing zone above the stack */
.phys-impact {
  position: absolute;
  bottom: 47%;
  left: 44%;
  width: 13%;
  aspect-ratio: 2.6;
  border: 1px solid rgba(228, 0, 43, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(228, 0, 43, 0.35);
  animation: impactpulse 2.6s ease-in-out infinite;
}
@keyframes impactpulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.4; }
}
.phys-chip-tl { top: 14px; left: 14px; }
.phys-chip-tr { top: 14px; right: 14px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(90px, 12vw, 150px);
}
.how__line {
  position: absolute;
  top: 26px;
  left: calc(var(--pad-x) + 26px);
  right: calc(var(--pad-x) + 26px);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.how__line-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.how-step { position: relative; padding-top: 76px; }
.how-step__badge {
  position: absolute;
  top: 0; left: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  z-index: 1;
}
.how-step h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.how-step p { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* ============================================================
   SPECS + REQS
   ============================================================ */
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
}
.spec {
  padding: clamp(32px, 4vw, 56px) clamp(18px, 2.5vw, 36px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.35s;
}
.spec:first-child { border-left: 1px solid var(--line); }
.spec:hover { background: var(--bg-2); }
.spec__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.spec__num { font-variant-numeric: tabular-nums; }
.spec__unit { font-size: 0.42em; color: var(--red); font-weight: 600; }
.spec__unit--pre { align-self: flex-start; margin-top: 0.18em; }
.spec__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

.reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) var(--pad-x);
}
.reqs__head h3 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 14px; letter-spacing: -0.01em; }
.reqs__head p { color: var(--muted); max-width: 44ch; }
.reqs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reqs__list li {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.reqs__list li:hover { border-color: var(--red); color: var(--ink); background: var(--red-soft); }
.reqs__list li::before { content: "✓ "; color: var(--red); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(110px, 16vw, 220px) var(--pad-x);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(228, 0, 43, 0.18), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 100% 100%, 30px 30px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%);
}
.cta__title {
  position: relative;
  font-size: clamp(44px, 9vw, 128px);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: #fff;
}
.cta__sub { position: relative; color: var(--muted); margin-bottom: 44px; font-size: clamp(15px, 1.5vw, 18px); }
.appstore-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 16px;
  background: #fff;
  color: #0a0a0c;
  transition: box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.appstore-badge:hover { box-shadow: 0 12px 48px rgba(255, 255, 255, 0.25); }
.appstore-badge__text { text-align: left; line-height: 1.15; font-family: var(--font-display); }
.appstore-badge__text small { display: block; font-size: 11px; font-weight: 500; opacity: 0.65; }
.appstore-badge__text strong { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(36px, 6vw, 100px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 90px) var(--pad-x);
}
.footer__brand img { height: 24px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.25s, padding-left 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--ink); padding-left: 6px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px var(--pad-x) 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 1px solid var(--line); }
  .spec:nth-child(odd) { border-left: 1px solid var(--line); }
  .spec:first-child { border-left: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__text { order: 1; }
  .feature--flip .feature__visual { order: 2; }
  .how__steps { grid-template-columns: 1fr; }
  .how__line {
    top: 0; bottom: 0;
    left: calc(var(--pad-x) + 26px);
    right: auto;
    width: 1px; height: auto;
  }
  .how__line-fill { width: 100%; height: 0%; }
  .reqs { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .specs__grid { grid-template-columns: 1fr; }
  .spec { border-left: 1px solid var(--line); }
  .reqs__list { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__meta { display: none; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
/* note: full-motion is a deliberate design choice for this showcase page;
   the only reduced-motion concession is the non-scrolling marquee
   (see the marquee section above) */
