/* Two themes that follow the browser: a bright room and a dark one, lit by the product posters' three
   colours (ice, periwinkle, lilac). Every colour that differs between them is a token here. */
:root {
  --bg: #f6f7fe;
  --panel: #ffffff;
  --ink: #161b3d;
  --muted: #555c84;
  --faint: #666d93;
  --ice: #4aa8f5;
  --accent: #6f7cf2;
  --lilac: #a78bfa;
  --accent-text: #4650cc;
  --line: rgb(88 102 210 / 18%);
  --line-strong: rgb(88 102 210 / 52%);
  --wash: rgb(255 255 255 / 72%);
  --wash-strong: rgb(88 102 210 / 11%);
  --nav-bg: rgb(246 247 254 / 78%);
  --glass: linear-gradient(150deg, rgb(255 255 255 / 90%), rgb(238 241 255 / 70%) 55%, rgb(238 232 255 / 90%));
  --primary: linear-gradient(110deg, #5360e0, #7a5edb);
  --shine-1: #2f7fe0;
  --shine-2: #7c4fe8;
  --sphere: radial-gradient(36% 26% at 33% 19%, rgb(255 255 255 / 96%), transparent), radial-gradient(54% 30% at 62% 97%, rgb(255 255 255 / 88%), transparent), radial-gradient(circle at 50% 44%, rgb(228 233 255 / 70%) 24%, rgb(172 184 255 / 76%) 62%, rgb(122 136 246 / 92%) 100%);
  --sphere-shadow: 0 34px 80px -18px rgb(88 102 210 / 55%), inset 0 0 36px rgb(255 255 255 / 70%);
  --eye: #20264f;
  --eye-glow: transparent;
  --orbit-back: rgb(88 102 210 / 28%);
  --ring-mid: #6f7cf2;
  --halo: rgb(111 124 242 / 13%);
  --chip-ink: #3d4470;
  --chip-lit: #525ed8;
  --reply: linear-gradient(110deg, #525ed8, #7b5fd6);
  --reply-line: transparent;
  --pick-line: #6f7cf2;
  --pick-bg: #ffffff;
  --meter-hot: linear-gradient(160deg, #ee5c86, #c92f64);
  --meter-calm: linear-gradient(160deg, #525ed8, #2f7fe0);
  --hot-bg: #fff1f5;
  --hot-line: rgb(224 68 108 / 60%);
  --hot-glow: rgb(240 96 138 / 70%);
  --calm-bg: #ffffff;
  --calm-line: rgb(96 112 232 / 60%);
  --calm-glow: rgb(111 124 242 / 70%);
  --card-bg: linear-gradient(155deg, rgb(255 255 255 / 95%), rgb(241 244 255 / 94%) 60%, rgb(239 232 255 / 95%));
  --card-line: rgb(111 124 242 / 30%);
  --card-shadow: rgb(66 78 170 / 42%);
  --frame-bg: linear-gradient(135deg, #eff2fd, #e8ecfd);
  --frame-shadow: rgb(88 102 210 / 48%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05060f;
    --panel: #0a0d1c;
    --ink: #f5f6ff;
    --muted: #8d95bd;
    --faint: #7c83aa;
    --ice: #8accff;
    --accent: #7f8cff;
    --lilac: #bda6ff;
    --accent-text: #8accff;
    --line: rgb(170 184 255 / 14%);
    --line-strong: rgb(170 184 255 / 45%);
    --wash: rgb(170 184 255 / 6%);
    --wash-strong: rgb(176 190 255 / 15%);
    --nav-bg: rgb(5 6 15 / 72%);
    --glass: linear-gradient(150deg, rgb(206 216 255 / 14%), rgb(140 150 255 / 5%) 55%, rgb(190 160 255 / 11%));
    --primary: linear-gradient(110deg, #6f7cf6, #9a85f2);
    --shine-1: #8accff;
    --shine-2: #bda6ff;
    --sphere: radial-gradient(36% 26% at 33% 19%, rgb(255 255 255 / 82%), transparent), radial-gradient(54% 30% at 62% 97%, rgb(190 208 255 / 62%), transparent), radial-gradient(circle at 50% 44%, rgb(48 58 140 / 70%) 24%, rgb(96 112 236 / 70%) 64%, rgb(172 160 255 / 92%) 100%);
    --sphere-shadow: 0 0 90px 4px rgb(110 120 255 / 38%), inset 0 0 36px rgb(190 200 255 / 40%);
    --eye: #ffffff;
    --eye-glow: #cfd8ff;
    --orbit-back: rgb(170 184 255 / 35%);
    --ring-mid: #ffffff;
    --halo: rgb(93 106 224 / 20%);
    --chip-ink: #b9c0e4;
    --chip-lit: #343d92;
    --reply: linear-gradient(110deg, #2c347c, #46357a);
    --reply-line: rgb(170 184 255 / 30%);
    --pick-line: #8accff;
    --pick-bg: rgb(138 204 255 / 11%);
    --meter-hot: linear-gradient(160deg, #ffb3c1, #ff7d9c);
    --meter-calm: linear-gradient(160deg, #ffffff, #8accff);
    --hot-bg: #1b1230;
    --hot-line: rgb(255 160 180 / 65%);
    --hot-glow: #ff7d9c;
    --calm-bg: #101a3a;
    --calm-line: rgb(138 204 255 / 60%);
    --calm-glow: #8accff;
    --card-bg: linear-gradient(155deg, rgb(52 60 124 / 92%), rgb(22 25 58 / 94%) 60%, rgb(52 38 96 / 92%));
    --card-line: rgb(190 200 255 / 28%);
    --card-shadow: #000000;
    --frame-bg: linear-gradient(135deg, #0a0d1c, #10152c);
    --frame-shadow: rgb(110 120 255 / 65%);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus {
  top: 12px;
}

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 300ms,
    border-color 300ms;
}
.nav[data-scrolled] {
  border-color: var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.nav nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}
.nav nav a {
  transition: color 160ms;
}
.nav nav a:hover,
.nav nav a[aria-current] {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  font-size: 15px;
  transition:
    transform 240ms var(--ease),
    border-color 240ms,
    box-shadow 240ms;
}
.btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.btn-primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 36px -12px var(--accent);
}
.btn-primary:hover {
  box-shadow: 0 16px 44px -10px var(--accent);
}
.btn-small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 72px;
  isolation: isolate;
  text-align: center;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, rgb(0 0 0 / 60%), transparent);
}
.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.planet {
  position: relative;
  width: clamp(220px, 36vh, 360px);
  aspect-ratio: 1;
  margin-bottom: clamp(0px, 1.5vh, 20px);
  animation: float 7s ease-in-out infinite;
}
.sphere {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: var(--sphere);
  box-shadow: var(--sphere-shadow);
}
.eyes {
  position: absolute;
  top: 36%;
  left: 52%;
  display: flex;
  width: 28%;
  height: 22%;
  justify-content: space-between;
  translate: var(--eye-x, 0) var(--eye-y, 0);
  transition: translate 300ms var(--ease);
}
.eyes i {
  width: 27%;
  border-radius: 99px;
  background: var(--eye);
  box-shadow: 0 0 18px var(--eye-glow);
  animation: blink 5.5s infinite;
}
.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  rotate: -13deg;
}
.orbit path {
  stroke-linecap: round;
}
.orbit-back path {
  stroke: var(--orbit-back);
  stroke-width: 2;
}
.orbit-front path {
  stroke: url(#ring);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px var(--ice));
}
#ring stop {
  stop-color: var(--lilac);
}
#ring stop:nth-child(2) {
  stop-color: var(--ring-mid);
}
#ring stop:last-child {
  stop-color: var(--ice);
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 72px);
  font-weight: 700;
}
.hero h1 span {
  display: block;
}
.shine {
  background: linear-gradient(100deg, var(--ink) 20%, var(--shine-1) 38%, var(--shine-2) 52%, var(--ink) 70%) 0 0 / 250% 100%;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.hero > h1,
.hero > .lead,
.hero > .actions {
  animation: rise 900ms var(--ease) backwards;
}
.hero > .lead {
  animation-delay: 120ms;
}
.hero > .actions {
  animation-delay: 220ms;
}
.scroll-hint {
  position: absolute;
  bottom: 20px;
  width: 22px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.scroll-hint i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 9px;
  background: var(--muted);
  animation: drop 1.8s ease-in-out infinite;
}

/* ─── Sections ────────────────────────────────────────────────────────── */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(88px, 12vh, 152px) 20px 0;
  scroll-margin-top: 0;
}
.heading {
  margin-bottom: 48px;
  text-align: center;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
}
h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 680;
}
.heading > p:last-child:not(.eyebrow),
.attention-copy .stage-titles p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}
.fine {
  margin-top: 22px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}
.js .reveal {
  opacity: 0;
  translate: 0 36px;
  transition:
    opacity 800ms ease-out,
    translate 900ms var(--ease);
}
.js .reveal.in {
  opacity: 1;
  translate: none;
}
.tick {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--lilac));
  place-items: center;
}
.tick::after {
  width: 5px;
  height: 10px;
  margin-top: -3px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  rotate: 45deg;
}

/* ─── Memory ──────────────────────────────────────────────────────────── */
.memory {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.machine {
  position: relative;
  width: 100%;
  height: 480px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: radial-gradient(ellipse 55% 60% at 50% 48%, var(--halo), transparent), var(--panel);
}
/* A light that keeps walking the border: this computer, always on. */
.machine::before {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--sweep), transparent 0 72%, var(--ice) 85%, var(--lilac) 92%, transparent);
  content: "";
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
  animation: sweep 6s linear infinite;
}
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.machine-tag {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg);
  font-size: 13px;
  translate: -50% -50%;
  white-space: nowrap;
}
.machine-tag svg {
  width: 16px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.6;
}
.threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}
.threads path {
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke 400ms;
}
.threads path.flow {
  stroke: var(--ice);
  stroke-dasharray: 0.14 1;
  stroke-linecap: round;
  stroke-width: 2.5;
  opacity: 0;
}
.threads path.flow.lit {
  opacity: 1;
  animation: flow 1.3s linear infinite;
}
.core {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 128px;
  height: 128px;
  translate: -50% -50%;
}
.core img {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.core i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 32px;
  animation: ripple 3.2s ease-out infinite;
}
.core i:last-child {
  animation-delay: 1.6s;
}
.chips li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--glass), var(--panel);
  color: var(--chip-ink);
  font-size: 14px;
  translate: -50% -50%;
  white-space: nowrap;
  transition:
    background-color 400ms,
    border-color 400ms,
    color 400ms,
    box-shadow 400ms,
    scale 400ms var(--ease);
}
.chips li.lit {
  border-color: var(--accent);
  background: var(--chip-lit);
  box-shadow: 0 0 28px -4px var(--accent);
  color: #fff;
  scale: 1.08;
}
.reply {
  position: absolute;
  bottom: 34px;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 10px;
  padding: 11px 22px 11px 13px;
  border: 1px solid var(--reply-line);
  border-radius: 99px;
  background: var(--reply);
  color: #fff;
  font-size: 15px;
  translate: -50% 0;
}
.reply.swap {
  animation: swap 700ms var(--ease);
}
.beam {
  position: relative;
  width: 2px;
  height: 48px;
  overflow: hidden;
  background: var(--line);
}
.beam i {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--ice), transparent);
  animation: beam 1.4s linear infinite reverse;
}
.models {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.models button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 18px 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 14px;
  transition: 300ms var(--ease);
}
.models button[aria-pressed="true"] {
  border-color: var(--pick-line);
  background: var(--pick-bg);
  box-shadow: 0 0 30px -8px var(--pick-line);
  color: var(--ink);
}
.models img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
}
.models img.mono {
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-block: 1px solid var(--line);
}
.facts li {
  display: grid;
  padding: 26px 12px;
  text-align: center;
}
.facts li + li {
  border-left: 1px solid var(--line);
}
.facts b {
  font-size: 19px;
}
.facts span {
  color: var(--muted);
  font-size: 14px;
}

/* ─── Attention ───────────────────────────────────────────────────────── */
.attention {
  position: relative;
  height: 340vh;
  margin-top: clamp(88px, 12vh, 152px);
}
.attention-pin {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  max-width: 1280px;
  grid-template-columns: minmax(260px, 4fr) 7fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 72px 28px 24px;
}
.attention-copy .fine {
  text-align: left;
}
.stage-titles {
  display: grid;
}
.stage-titles > div {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 400ms,
    translate 600ms var(--ease),
    visibility 400ms;
}
.attention[data-stage="0"] [data-for="0"],
.attention[data-stage="1"] [data-for="1"],
.attention[data-stage="2"] [data-for="2"] {
  visibility: visible;
  opacity: 1;
  translate: none;
}
.meter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 36px;
}
.meter strong {
  min-width: 1.4em;
  background: var(--meter-hot);
  background-clip: text;
  color: transparent;
  font-size: clamp(56px, 7vw, 96px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}
.attention:not([data-stage="0"]) .meter strong {
  background-image: var(--meter-calm);
}
.meter span {
  color: var(--muted);
}
.stage-dots {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.stage-dots button {
  position: relative;
  width: 84px;
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.stage-dots button::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}
.stage-dots button[aria-current="true"] {
  color: var(--ink);
}
.stage-dots button[aria-current="true"]::before {
  background: linear-gradient(90deg, var(--ice), var(--lilac));
}
.radar {
  position: relative;
  width: 100%;
  height: min(100%, 720px);
}
.radar-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.you {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 84px;
  height: 84px;
  border: 1px solid var(--hot-line);
  border-radius: 50%;
  background: var(--hot-bg);
  box-shadow: 0 0 50px -6px var(--hot-glow);
  font-size: 24px;
  font-weight: 650;
  place-items: center;
  translate: -50% -50%;
  transition: 600ms var(--ease);
}
.attention[data-stage="0"] .you {
  animation: shake 420ms linear infinite;
}
.attention:not([data-stage="0"]) .you {
  border-color: var(--calm-line);
  background: var(--calm-bg);
  box-shadow: 0 0 60px -8px var(--calm-glow);
}
.attention[data-stage="2"] .you {
  opacity: 0;
  scale: 0.4;
}
.card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(330px, 88%);
  visibility: hidden;
  padding: 26px;
  border: 1px solid var(--card-line);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow:
    0 40px 90px -30px var(--card-shadow),
    0 0 70px -20px var(--accent);
  backdrop-filter: blur(16px);
  opacity: 0;
  scale: 0.6;
  text-align: center;
  translate: -50% -50%;
  transition:
    opacity 400ms,
    scale 700ms var(--ease),
    visibility 400ms;
}
.attention[data-stage="2"] .card {
  visibility: visible;
  opacity: 1;
  scale: 1;
  transition-delay: 450ms;
}
.card > div {
  display: grid;
  grid-area: 1 / 1;
  justify-items: center;
  align-content: center;
  gap: 12px;
  transition:
    opacity 300ms,
    visibility 300ms;
}
.card h3 {
  margin-bottom: 4px;
  font-size: 21px;
}
.choice {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 99px;
  background: var(--wash-strong);
  transition: scale 200ms var(--ease);
}
.choice:hover {
  scale: 1.04;
}
.choice-main {
  background: var(--primary);
  color: #fff;
  animation: glow 2s ease-in-out infinite;
}
.choice em {
  padding: 0 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 22%);
  font-size: 11px;
  font-style: normal;
}
.card-done .tick {
  width: 52px;
  height: 52px;
  scale: 0.4;
  transition: scale 600ms var(--ease);
}
.card-done .tick::after {
  width: 11px;
  height: 22px;
  margin-top: -5px;
  border-width: 0 3px 3px 0;
}
.card-done p {
  color: var(--chip-ink);
  font-size: 14px;
}
.again {
  margin-top: 4px;
  color: var(--accent-text);
  font-size: 13px;
}
.card-done,
.card.decided .card-ask {
  visibility: hidden;
  opacity: 0;
}
.card.decided .card-done {
  visibility: visible;
  opacity: 1;
}
.card.decided .card-done .tick {
  scale: 1;
}

/* ─── Posters ─────────────────────────────────────────────────────────── */
.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--frame-bg);
  box-shadow: 0 50px 120px -60px var(--frame-shadow);
}
.frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.frame-goal {
  height: 540px;
}
.frame-product {
  height: clamp(520px, 82svh, 760px);
}

/* ─── Start ───────────────────────────────────────────────────────────── */
.start {
  padding-bottom: 110px;
}
.terminal {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.terminal-bar button {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
}
.terminal-bar button[aria-pressed="true"] {
  background: var(--wash-strong);
  color: var(--ink);
}
.terminal-bar .copy {
  color: var(--accent-text);
}
.terminal pre {
  min-height: 108px;
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.terminal code {
  font: inherit;
}
.prompt {
  color: var(--lilac);
  user-select: none;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--ice);
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
  margin-top: 34px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.steps b {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 13px;
  place-items: center;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

/* ─── Narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav nav {
    display: none;
  }
  .machine {
    height: 540px;
  }
  .core,
  .core img {
    width: 100px;
    height: 100px;
  }
  .chips li {
    padding: 6px 12px;
    font-size: 12px;
  }
  .reply {
    bottom: 20px;
    font-size: 13px;
  }
  .attention-pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    padding: 70px 20px 12px;
    text-align: center;
  }
  .attention-pin .eyebrow {
    margin-bottom: 8px;
  }
  .attention-copy h2 br {
    display: none;
  }
  .attention-copy .stage-titles p {
    margin-top: 6px;
    font-size: 14px;
  }
  .meter {
    justify-content: center;
    margin-top: 10px;
  }
  .meter strong {
    font-size: 48px;
  }
  .stage-dots {
    justify-content: center;
    margin-top: 8px;
  }
  .attention-copy .fine {
    margin-top: 6px;
    text-align: center;
  }
  .frame-goal {
    height: 660px;
  }
  .frame-product {
    height: 600px;
  }
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts li {
    padding: 16px;
  }
  .facts li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .section {
    padding-inline: 14px;
  }
}

/* ─── Motion ──────────────────────────────────────────────────────────── */
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes blink {
  0%,
  93%,
  100% {
    scale: 1;
  }
  96% {
    scale: 1 0.12;
  }
}
@keyframes shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}
@keyframes drop {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    translate: 0 12px;
  }
}
@keyframes sweep {
  to {
    --sweep: 360deg;
  }
}
@keyframes flow {
  from {
    stroke-dashoffset: 0.14;
  }
  to {
    stroke-dashoffset: -1;
  }
}
@keyframes ripple {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 0;
    scale: 1.9;
  }
}
@keyframes swap {
  from {
    opacity: 0;
    scale: 0.9;
  }
}
@keyframes beam {
  from {
    translate: 0 -100%;
  }
  to {
    translate: 0 100%;
  }
}
@keyframes shake {
  25% {
    margin-left: -3px;
  }
  75% {
    margin-left: 3px;
  }
}
@keyframes glow {
  50% {
    box-shadow: 0 0 30px -4px var(--accent);
  }
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal {
    translate: none;
  }
  .threads path.flow.lit {
    opacity: 0;
  }
}
