/* ==========================================================================
   Capto — marketing site
   Reads the same scale as the desktop app: surfaces, hairline + sheen,
   accent blue, spring motion. Legacy aliases keep the demo engine painting.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --font: "Inter", -apple-system, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --bg: #08080b;
  --bg-1: #0e0e12;
  --bg-2: #15151b;
  --bg-3: #1a1a21;
  --bg-sunken: #050507;

  --ink: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.44);
  --ghost: rgba(255, 255, 255, 0.26);

  --line: rgba(255, 255, 255, 0.1);
  --line-subtle: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.17);
  --fill: rgba(255, 255, 255, 0.055);
  --fill-2: rgba(255, 255, 255, 0.095);
  --fill-3: rgba(255, 255, 255, 0.14);

  --a1: #0a84ff;
  --a2: #bf5af0;
  --a3: #64d2ff;
  --live: #30d158;
  --danger: #ff453a;
  --warm: #ffd426;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --accent-glow: rgba(10, 132, 255, 0.35);

  --sheen: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
  --hair: inset 0 0 0 0.5px var(--line);
  --hair-strong: inset 0 0 0 0.5px var(--line-strong);
  --hair-top: inset 0 0.8px 0 rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.34);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 20px 56px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.34), 0 36px 90px rgba(0, 0, 0, 0.6);
  --glow-a: 0 10px 40px -12px var(--accent-glow);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.42, 1);
  --spring-soft: cubic-bezier(0.22, 1.18, 0.36, 1);

  --page: 1180px;
  --gut: 24px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --nav-h: 52px;
}

/* 2. Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(80% 50% at 50% -8%, rgba(10, 132, 255, 0.16), transparent 58%),
    radial-gradient(50% 40% at 100% 0%, rgba(191, 90, 240, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

::selection {
  background: #fff;
  color: #000;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: top 200ms var(--ease);
}
.skip:focus {
  top: 16px;
}

.wrap {
  width: min(var(--page), calc(100% - (var(--gut) * 2)));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(780px, calc(100% - (var(--gut) * 2)));
  margin-inline: auto;
}

/* 3. Ambient layers ----------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.aurora span:nth-child(1) {
  top: -22vh;
  left: 50%;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  margin-left: -28vw;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.38), transparent 64%);
  animation: drift-a 28s var(--ease-in-out) infinite;
}
.aurora span:nth-child(2) {
  top: 42vh;
  left: -16vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(191, 90, 240, 0.22), transparent 64%);
  animation: drift-b 34s var(--ease-in-out) infinite;
}
.aurora span:nth-child(3) {
  bottom: -18vh;
  right: -12vw;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.16), transparent 64%);
  animation: drift-c 30s var(--ease-in-out) infinite;
}
@keyframes drift-a {
  50% { transform: translate3d(5vw, 7vh, 0) scale(1.12); }
}
@keyframes drift-b {
  50% { transform: translate3d(8vw, -7vh, 0) scale(1.16); }
}
@keyframes drift-c {
  50% { transform: translate3d(-8vw, -5vh, 0) scale(1.1); }
}

.halo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 22%),
    rgba(255, 255, 255, 0.045),
    transparent 68%
  );
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1.2px 1.2px at 44% 22%, rgba(255, 255, 255, 0.38), transparent),
    radial-gradient(1px 1px at 63% 48%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 86% 72%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 52% 88%, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 88%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% 40%, transparent 48%, rgba(0, 0, 0, 0.45) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

.mesh {
  position: absolute;
  inset: 0 0 auto;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 0%, transparent 74%);
  opacity: 0.55;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  height: 1.5px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--a1), var(--a3));
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none;
}

/* 4. Navigation — a floating island ------------------------------------ */
.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding: 0 var(--gut);
  pointer-events: none;
  transition: transform 420ms var(--ease);
}
.nav {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(var(--page), 100%);
  height: var(--nav-h);
  padding: 0 6px 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: var(--hair-strong), var(--sheen), 0 12px 40px rgba(0, 0, 0, 0.48);
  transition:
    height 380ms var(--ease),
    background 280ms ease,
    box-shadow 280ms ease,
    max-width 420ms var(--ease);
}
.nav-shell.is-stuck .nav {
  height: 46px;
  max-width: 920px;
  background: rgba(8, 8, 11, 0.88);
  box-shadow: var(--hair-strong), var(--sheen), 0 16px 44px rgba(0, 0, 0, 0.6);
}
.nav-shell.is-hidden {
  transform: translateY(-160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 4px;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  transition: transform 480ms var(--spring);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}
.brand-word {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.nav-ver {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-ink {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--fill-2);
  transform: translate3d(var(--x, 0), -50%, 0);
  width: var(--w, 0);
  opacity: 0;
  transition: transform 380ms var(--ease), width 380ms var(--ease), opacity 180ms ease;
  pointer-events: none;
}
.nav-links.is-lit .nav-ink {
  opacity: 1;
}
.nav-link {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 520;
  transition: color 180ms ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}
.nav-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-left: 6px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000 !important;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow: hidden;
  transition: transform 240ms var(--spring), box-shadow 240ms ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}
.nav-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 280ms var(--ease);
}
.nav-cta:hover svg {
  transform: translateY(2px);
}
.nav-toggle {
  display: none;
}

/* 5. Type --------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.is-bare {
  padding: 0;
  background: none;
  box-shadow: none;
  letter-spacing: 0.1em;
}
.eyebrow .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--live);
  opacity: 0.45;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.55); opacity: 0.7; }
  70%, 100% { transform: scale(1.85); opacity: 0; }
}

h1,
h2,
h3,
h4,
.display {
  font-weight: 640;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
}
.display {
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.058em;
}
.display-sm {
  font-size: clamp(36px, 5.6vw, 58px);
}
h2 {
  font-size: clamp(28px, 4vw, 46px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.032em;
  line-height: 1.2;
}

.lede {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.58;
  text-wrap: pretty;
}

.gradient-text {
  background: linear-gradient(105deg, #fff 6%, #8ec2ff 38%, #d4b8ff 66%, #8ce8f7 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}

.split-line {
  display: block;
}
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(1.2deg);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}
.split-in .split-word {
  animation: word-up 780ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 48ms);
}
@keyframes word-up {
  from {
    opacity: 0;
    transform: translateY(0.4em) rotate(1.2deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* 6. Buttons & chips ---------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-copy .actions,
.section-head .actions,
.cta-band .actions,
.dl-hero .actions,
.page-404 .actions {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 280ms var(--spring-soft),
    box-shadow 240ms ease,
    background 180ms ease,
    color 180ms ease;
}
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0;
  transition: transform 680ms var(--ease), opacity 180ms ease;
}
.btn:hover::after {
  transform: translateX(130%) skewX(-18deg);
  opacity: 0.55;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.22);
}

.btn-accent {
  background: linear-gradient(135deg, var(--a1), #3d6dff);
  color: #fff;
  box-shadow: var(--glow-a);
}
.btn-accent:hover {
  box-shadow: 0 16px 40px -10px rgba(10, 132, 255, 0.7);
}

.btn-ghost {
  background: var(--fill);
  color: var(--ink);
  box-shadow: var(--hair), var(--sheen);
}
.btn-ghost:hover {
  background: var(--fill-2);
  box-shadow: var(--hair-strong), var(--sheen);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn.is-soon,
.btn.is-soon:hover,
.btn.is-soon:active {
  transform: none;
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}
.btn.is-soon::after {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}
.tag-accent {
  background: var(--accent-soft);
  color: #9dc9ff;
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.3);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1c1c22, #101014);
  box-shadow: var(--hair), var(--sheen), 0 1px 0 rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease, transform 150ms var(--ease);
}
.kbd.is-lit {
  background: linear-gradient(180deg, #3a9bff, #0a84ff);
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.55), 0 0 18px rgba(10, 132, 255, 0.4);
}

/* 7. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 56px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 36px;
}
.hero-copy .lede {
  text-align: center;
  margin-inline: auto;
}

.island-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.island-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 18, 0.88);
  box-shadow:
    var(--hair-strong),
    var(--sheen),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 8px rgba(255, 255, 255, 0.02);
  animation: island-settle 900ms var(--ease-out) both;
}
.island-hero-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.16), 0 0 12px var(--live);
}
.island-hero-word {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.03em;
}
.island-hero-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.island-hero-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.island-hero-tools span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}
.island-hero-tools span svg {
  width: 15px;
  height: 15px;
}
.island-hero-tools span.is-on {
  background: var(--fill-3);
  color: #fff;
}
@keyframes island-settle {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--faint);
  font-size: 12.5px;
}
.hero-proof svg {
  width: 13px;
  height: 13px;
  color: var(--live);
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  padding: 1px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 0%;
  will-change: transform;
}
.hero-frame::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -40px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.42), transparent);
  filter: blur(22px);
  z-index: -1;
  opacity: 0.85;
}
.hero-frame-inner {
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
  background: #050507;
}

.hero-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: linear-gradient(180deg, #141418, #0c0c10);
  border-bottom: 1px solid var(--line-subtle);
  font-size: 12px;
  color: var(--muted);
}
.hero-chrome-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}
.hero-chrome-left img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.hero-lights {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}
.hero-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a30;
}
.hero-lights i:nth-child(1) { background: #ff5f57; }
.hero-lights i:nth-child(2) { background: #febc2e; }
.hero-lights i:nth-child(3) { background: #28c840; }
.hero-scene {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  font-variant-numeric: tabular-nums;
}
.hero-scene i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.hero-scene.is-rec i {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: rec-blink 1s step-end infinite;
}
.hero-scene [data-scene-label] {
  min-width: 92px;
  text-align: left;
  color: var(--ink);
  font-weight: 550;
}
.hero-keys {
  display: flex;
  gap: 5px;
  flex: none;
}

.hero-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-subtle);
  background: linear-gradient(180deg, #0c0c10, #050507);
}
.dock-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--ink);
  transition: background 180ms ease, transform 240ms var(--spring);
}
.dock-play:hover {
  background: var(--fill-2);
  transform: scale(1.06);
}
.dock-play svg {
  width: 13px;
  height: 13px;
}
.demo-pills {
  display: flex;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  scroll-snap-type: x proximity;
}
.demo-pills::-webkit-scrollbar {
  display: none;
}
.demo-pills button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  scroll-snap-align: center;
  overflow: hidden;
  transition: color 180ms ease, background 180ms ease, transform 240ms var(--spring);
}
.demo-pills button svg {
  width: 13px;
  height: 13px;
}
.demo-pills button:hover {
  color: var(--ink);
  background: var(--fill-2);
  transform: translateY(-1px);
}
.demo-pills button.is-on {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
}
.demo-pills button .pill-fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--t, 0));
  background: rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* 8. Sections, cards, mosaic ------------------------------------------- */
section {
  position: relative;
  padding: clamp(68px, 8.5vw, 120px) 0;
}
.section-head {
  max-width: 700px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
.section-head .lede {
  margin-inline: auto;
}
.section-head.is-left {
  margin-inline: 0;
  text-align: left;
}
.section-head.is-left .lede {
  margin-inline: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split.reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}
.split.reverse .split-copy {
  order: 2;
}
.split-copy h2 {
  margin-top: 4px;
}

.feature-list {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14.5px;
  transition: background 180ms ease, color 180ms ease;
}
.feature-list li:hover {
  background: var(--fill);
  color: var(--ink);
}
.feature-list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  color: var(--a1);
}
.feature-list b {
  color: var(--ink);
  font-weight: 600;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--hair), var(--sheen), var(--shadow);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--cx, 50%) var(--cy, 0%),
    rgba(255, 255, 255, 0.08),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--cx, 50%) var(--cy, 0%),
    rgba(255, 255, 255, 0.4),
    transparent 58%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hair-strong), var(--sheen), var(--shadow-lg);
}
.card:hover::before,
.card:hover::after {
  opacity: 1;
}
.card-body {
  position: relative;
  z-index: 1;
  padding: 26px;
}
.card .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: var(--hair);
  color: var(--ink);
}
.card-icon svg {
  width: 20px;
  height: 20px;
}
.card-icon.is-blue {
  background: linear-gradient(150deg, rgba(10, 132, 255, 0.4), rgba(10, 132, 255, 0.08));
  color: #bcdcff;
}
.card-icon.is-violet {
  background: linear-gradient(150deg, rgba(191, 90, 240, 0.4), rgba(191, 90, 240, 0.08));
  color: #e4c4ff;
}
.card-icon.is-cyan {
  background: linear-gradient(150deg, rgba(100, 210, 255, 0.36), rgba(100, 210, 255, 0.06));
  color: #c4f0ff;
}
.card-icon.is-red {
  background: linear-gradient(150deg, rgba(255, 69, 58, 0.38), rgba(255, 69, 58, 0.06));
  color: #ffc4bf;
}
.card-icon.is-green {
  background: linear-gradient(150deg, rgba(48, 209, 88, 0.34), rgba(48, 209, 88, 0.06));
  color: #bdf3cb;
}
.card-icon.is-warm {
  background: linear-gradient(150deg, rgba(255, 212, 38, 0.34), rgba(255, 212, 38, 0.06));
  color: #ffe8a3;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.bento > * {
  grid-column: span 2;
}
.bento .b-wide {
  grid-column: span 4;
}
.bento .b-full {
  grid-column: span 6;
}
.bento .b-half {
  grid-column: span 3;
}

.viz {
  position: relative;
  height: 118px;
  margin: -4px -4px 18px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 18% 0%, #1c1c24, #0a0a0e);
  box-shadow: var(--hair);
}
.viz-providers {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}
.viz-providers span {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--fill-2);
  box-shadow: var(--hair);
  font-size: 12px;
  color: var(--muted);
  animation: float-in 560ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
}
.viz-buckets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 16px;
}
.viz-buckets span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 11px;
  background: var(--fill);
  box-shadow: var(--hair);
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.viz-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  padding: 20px 16px;
}
.viz-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--a1), rgba(10, 132, 255, 0.14));
  transform-origin: 50% 100%;
  height: var(--h, 40%);
  animation: bar-rise 860ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 65ms);
}
@keyframes bar-rise {
  from { transform: scaleY(0.05); opacity: 0; }
}
.viz-retention {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
}
.viz-retention span {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--fill);
  box-shadow: var(--hair);
  font-size: 12px;
  color: var(--muted);
}
.viz-retention span.is-on {
  background: #fff;
  color: #000;
  font-weight: 600;
}
.viz-url {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 18px;
}
.viz-url code {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  background: #000;
  box-shadow: var(--hair);
  color: #8ce8f7;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mode-tile {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--hair), var(--sheen);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}
.mode-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--hair-strong), var(--sheen), var(--shadow);
}
.mode-tile .mode-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--a3);
  font-family: var(--font-mono);
  font-size: 11px;
}
.mode-tile h3 {
  font-size: 17px;
}
.mode-tile p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

/* 9. Marquee, stats, steps, FAQ, CTA ----------------------------------- */
.marquee {
  position: relative;
  padding: 20px 0;
  border-block: 1px solid var(--line-subtle);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 180ms ease;
}
.marquee-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a1);
  opacity: 0.7;
}
.marquee-item:hover {
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--hair), var(--sheen);
  transition: transform 360ms var(--ease);
}
.stat:hover {
  transform: translateY(-3px);
}
.stat::before {
  content: "";
  position: absolute;
  inset: auto -30% -70% -30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 360ms ease;
}
.stat:hover::before {
  opacity: 1;
}
.stat b {
  position: relative;
  display: block;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, #fff, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  position: relative;
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--fill);
  box-shadow: var(--hair);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--a3);
  letter-spacing: 0.12em;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.sticky-rail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.sticky-viz {
  position: sticky;
  top: 100px;
}
.chapter {
  padding: clamp(48px, 12vh, 130px) 0;
}
.chapter:first-child {
  padding-top: 0;
}

.faq {
  display: grid;
  gap: 8px;
}
.faq details {
  border-radius: 16px;
  background: var(--fill);
  box-shadow: var(--hair);
  overflow: hidden;
  transition: background 220ms ease;
}
.faq details[open] {
  background: var(--bg-2);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  flex: none;
  border-right: 1.6px solid var(--faint);
  border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 280ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq .faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
  animation: faq-open 320ms var(--ease) both;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
}

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 88px) 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 50% -10%, rgba(10, 132, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #15151b, #0a0a0e);
  box-shadow: var(--hair-strong), var(--sheen), var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -70%;
  width: 90%;
  height: 120%;
  translate: -50% 0;
  background: conic-gradient(
    from 0deg,
    rgba(10, 132, 255, 0.2),
    rgba(191, 90, 240, 0.14),
    rgba(100, 210, 255, 0.14),
    rgba(10, 132, 255, 0.2)
  );
  filter: blur(72px);
  animation: spin 24s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  to { rotate: 360deg; }
}
.cta-band > * {
  position: relative;
}
.cta-band .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  animation: bob 5.4s var(--ease-in-out) infinite;
}
@keyframes bob {
  50% { transform: translateY(-7px); }
}
.cta-band .lede {
  margin-inline: auto;
}

/* 10. Tables, keyboard, prose, download -------------------------------- */
.shortcut-table {
  width: 100%;
  border-collapse: collapse;
}
.shortcut-table th {
  text-align: left;
  color: var(--faint);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px 12px;
}
.shortcut-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line-subtle);
  font-size: 14px;
  transition: background 160ms ease;
}
.shortcut-table tbody tr.is-hot td,
.shortcut-table tbody tr:hover td {
  background: var(--fill);
}
.shortcut-table td:first-child {
  color: var(--ink);
}
.kbd-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.keyboard {
  display: grid;
  gap: 6px;
  padding: 20px;
}
.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.key {
  min-width: 40px;
  height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1c1c22, #101014);
  box-shadow: var(--hair), var(--sheen), 0 2px 0 rgba(0, 0, 0, 0.65);
  color: var(--faint);
  font-size: 12px;
  font-weight: 550;
  display: grid;
  place-items: center;
  transition: background 140ms ease, color 140ms ease, transform 140ms var(--ease),
    box-shadow 140ms ease;
}
.key.wide {
  min-width: 70px;
}
.key.is-lit {
  background: linear-gradient(180deg, #3a9bff, #0a84ff);
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.65), 0 0 24px rgba(10, 132, 255, 0.5);
}

.req-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  list-style: none;
}
.req-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: var(--hair);
  color: var(--muted);
  font-size: 13.5px;
}
.req-list b {
  color: var(--ink);
  font-weight: 600;
}

.artifact {
  position: relative;
  width: min(420px, 100%);
  margin: 8px auto 0;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a1a21, #101014);
  box-shadow: var(--hair-strong), var(--sheen), var(--shadow);
  text-align: left;
}
.artifact-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}
.artifact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(160deg, #2a95ff, #0a84ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.35);
}
.artifact-icon svg {
  width: 20px;
  height: 20px;
}
.artifact-top strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.artifact-top em {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-style: normal;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.artifact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.artifact-meta span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.artifact-meta b {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 560;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 0 40px;
}
.prose h1 {
  margin-bottom: 16px;
}
.prose h2 {
  margin: 38px 0 12px;
  font-size: 26px;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  padding-left: 1.2rem;
  margin: 12px 0;
  display: grid;
  gap: 6px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fill-2);
  color: #cfe4ff;
}

.page-404 {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.page-404-frame {
  width: min(280px, 70vw);
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 12px rgba(10, 132, 255, 0.06);
  position: relative;
}
.page-404-frame::before,
.page-404-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  background: var(--a1);
}
.page-404-frame::before {
  top: -6px;
  left: -6px;
}
.page-404-frame::after {
  bottom: -6px;
  right: -6px;
}

.dl-hero {
  padding-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-hero .brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin-bottom: 22px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85);
  animation: bob 5.4s var(--ease-in-out) infinite;
}
.dl-hero .lede {
  text-align: center;
}

/* 11. Footer ----------------------------------------------------------- */
.footer {
  position: relative;
  padding: 56px 0 36px;
  margin-top: 32px;
  border-top: 1px solid var(--line-subtle);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}
.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
}
.footer-brand strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}
.footer-brand p {
  margin-top: 5px;
  color: var(--faint);
  font-size: 13.5px;
  max-width: 24rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-cols h4 {
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 160ms ease, transform 220ms var(--ease);
}
.footer-cols a:hover {
  color: var(--ink);
  transform: translateX(3px);
}
.footer-cols .soon {
  display: block;
  width: fit-content;
  color: var(--ghost);
  font-size: 14px;
  padding: 5px 0;
}
.footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  color: var(--faint);
  font-size: 12.5px;
}

/* 12. Motion utilities ------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="left"] {
  transform: translateX(-24px);
}
[data-reveal="right"] {
  transform: translateX(24px);
}
[data-reveal="zoom"] {
  transform: scale(0.96);
}
[data-reveal="blur"] {
  filter: blur(8px);
  transform: translateY(12px);
}
[data-reveal="blur"].is-in {
  filter: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 660ms var(--ease), transform 660ms var(--ease);
}
[data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 70ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 140ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 210ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 280ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 350ms; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: 420ms; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: 490ms; }

@keyframes rec-blink {
  50% { opacity: 0.25; }
}

/* 13. Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento .b-wide { grid-column: span 6; }
  .bento .b-half { grid-column: span 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root {
    --gut: 18px;
    --radius: 18px;
    --radius-lg: 22px;
  }
  .split,
  .split.reverse,
  .sticky-rail,
  .grid-2,
  .grid-3,
  .steps,
  .footer-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.reverse .split-copy { order: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *,
  .bento .b-wide,
  .bento .b-half,
  .bento .b-full {
    grid-column: span 2;
  }
  .sticky-viz { position: static; }
  .chapter { padding: 28px 0; }
  .hero-keys { display: none; }
  .hero-scene [data-scene-label] { min-width: 0; }
  .hero-lights { display: none; }
  .island-hero-tools { display: none; }
  .island-hero-sep { display: none; }
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .nav-ver { display: none; }
  .nav-links { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: var(--radius-pill);
    background: var(--fill);
    box-shadow: var(--hair);
  }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(8, 8, 11, 0.96);
    backdrop-filter: blur(22px);
    box-shadow: var(--hair-strong), var(--shadow);
    animation: menu-in 300ms var(--ease) both;
  }
  .nav.is-open .nav-ink { display: none; }
  .nav.is-open .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }
  .nav.is-open .nav-cta {
    margin: 4px 0 0;
    height: 44px;
    justify-content: center;
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }
  }
}

@media (max-width: 560px) {
  .stats,
  .grid-2,
  .mode-mosaic {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { width: 100%; }
  .hero-copy .actions,
  .cta-band .actions {
    width: 100%;
  }
  .marquee-track { gap: 24px; }
  .artifact-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .split-word {
    opacity: 1;
    transform: none;
  }
  .grain,
  .aurora span,
  .halo,
  .island-hero-pill,
  .cta-band .brand-mark,
  .dl-hero .brand-mark {
    animation: none;
  }
  .hero-frame { transform: none; }
}
