:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --panel: #11141b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #9097a6;
  --dim: #5d6372;
  --accent: #ffd15c;
  --accent-ink: #1a1403;
  --safe: #6fe3a5;
  --warn: #ff8f6b;
  --cloud: #7db4ff;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  --ease-move: cubic-bezier(0.45, 0, 0.18, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Hiragino Sans', 'PingFang SC', 'Noto Sans CJK SC',
    'Yu Gothic', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
}

.tick {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.3em;
  color: var(--safe);
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img,
.footer-brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 24px);
  font-size: 15px;
  color: var(--muted);
}

.nav-links > a:not(.btn) {
  transition: color 0.2s;
}

.nav-links > a:not(.btn):hover,
.nav-links > a[aria-current='page'] {
  color: var(--text);
}

.lang {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.lang a {
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.lang a[aria-current='true'] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), background 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--text);
  color: #0a0b0e;
  box-shadow: 0 0 0 0 rgba(255, 209, 92, 0);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px -10px rgba(255, 209, 92, 0.55);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

.btn-small {
  padding: 8px 15px;
  font-size: 14px;
  background: var(--text);
  color: #0a0b0e;
}

.btn-wide {
  width: 100%;
}

/* Type */

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1,
h2 {
  font-weight: 720;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(ja) h1,
:lang(ja) h2 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .lede {
  word-break: auto-phrase;
}

.lede {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 38em;
  text-wrap: pretty;
}

.note {
  color: var(--dim);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Entrances */

.js .rise,
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + var(--base, 0ms));
}

.js.is-ready .rise,
.js .rv.is-in {
  opacity: 1;
  transform: none;
}

.rise {
  --base: 250ms;
}

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.mask-in {
  display: block;
}

.js .mask-in {
  transform: translateY(108%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 60ms);
}

.js.is-ready .mask-in {
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 96px);
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(48% 46% at 50% 30%, rgba(255, 209, 92, 0.16), transparent 70%),
    radial-gradient(40% 40% at 72% 46%, rgba(125, 180, 255, 0.1), transparent 70%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
}

.hero > :not(.hero-glow) {
  position: relative;
}

.hero-title {
  font-size: clamp(40px, 7.2vw, 96px);
  max-width: 15em;
}

.hero-title .mask:last-child .mask-in {
  color: transparent;
  background: linear-gradient(100deg, #fff 10%, var(--accent) 60%, #ff9d5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* The subtitle race */

.stage,
.app-window {
  position: relative;
  width: min(100%, 940px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 26, 34, 0.92), rgba(12, 14, 19, 0.96));
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  text-align: left;
  overflow: hidden;
}

.stage {
  margin-top: clamp(20px, 3vw, 44px);
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.lights {
  display: inline-flex;
  gap: 6px;
}

.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.stage-title {
  flex: 1;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: 600 11px/1.6 var(--mono);
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}

.live-pill b {
  font-weight: 600;
}

.live-pill em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5b4f;
  animation: blink 1.4s ease-in-out infinite;
}

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

.lane {
  position: relative;
  padding: 16px 20px 18px;
  min-height: 132px;
}

.lane-src {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.lane-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lane-head {
  border-right: 1px solid var(--line);
}

.lane-live {
  background: linear-gradient(180deg, rgba(255, 209, 92, 0.07), transparent 70%);
}

.lane-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lane-live .lane-label {
  color: var(--accent);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.wave i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--muted);
  animation: wave 0.9s ease-in-out infinite;
  transform-origin: center;
}

.wave i:nth-child(2) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3) {
  animation-delay: -0.55s;
}
.wave i:nth-child(4) {
  animation-delay: -0.15s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.lane-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 3.2em;
}

.cap {
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 560;
  line-height: 1.4;
  transform-origin: left center;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.lane-src .cap {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 450;
  color: var(--muted);
}

.cap.is-old {
  opacity: 0.34;
  transform: scale(0.94);
  filter: blur(0.6px);
}

.cap.is-gone {
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
}

.cap.is-chunk {
  animation: chunk 0.5s var(--ease-out) both;
}

@keyframes chunk {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.cap.is-pending {
  color: var(--dim);
  font-size: 14px;
  font-weight: 450;
  font-style: italic;
}

.w {
  opacity: 0;
  animation: word 0.14s ease-out forwards;
}

@keyframes word {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

.lane-live .w.is-new {
  color: var(--accent);
  transition: color 0.6s ease-out;
}

.lag {
  position: absolute;
  top: 13px;
  right: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lag-ok {
  color: var(--safe);
  border-color: rgba(111, 227, 165, 0.35);
}

.lag.is-late {
  color: var(--warn);
  border-color: rgba(255, 143, 107, 0.45);
}

.lag.is-bump {
  animation: bump 0.4s var(--ease-spring);
}

.lag.is-max {
  background: var(--warn);
  border-color: var(--warn);
  color: #240a02;
  animation: punch 0.6s steps(1, end);
}

@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}

@keyframes punch {
  0% {
    transform: scale(1);
    filter: brightness(0.92);
  }
  33% {
    transform: scale(1.3);
    filter: brightness(0.92);
  }
  66% {
    transform: scale(1.55);
    filter: none;
  }
  100% {
    transform: scale(1.25);
  }
}

.lag.is-max {
  transform: scale(1.25);
  transform-origin: right center;
}

.stage.is-reset .lane-lines,
.stage.is-reset .lag {
  opacity: 0;
  transition: opacity 0.5s;
}

/* Scenes */

.scene {
  padding: clamp(72px, 11vw, 160px) clamp(16px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.scene h2,
.closing h2,
.plain-hero h1 {
  font-size: clamp(30px, 4.4vw, 56px);
}

.scene-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.called {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.scene-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.called h2 {
  font-size: clamp(26px, 3.2vw, 42px);
}

.points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.points li,
.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.scene-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.app-window {
  width: 100%;
  min-height: 430px;
  transition: transform 0.73s var(--ease-move), box-shadow 0.5s;
}

.app-window.is-frozen {
  transform: scale(1.025);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 143, 107, 0.35);
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.is-flash .flash {
  animation: flash 0.1s linear;
}

@keyframes flash {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0;
  }
}

.app-window.is-frozen .live-pill {
  background: var(--warn);
  color: #240a02;
}

.app-window.is-frozen .live-pill i {
  background: #240a02;
  animation: none;
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 8px;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  transform-origin: left center;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out), background 0.4s;
  animation: chunk 0.45s var(--ease-out) both;
}

.row-dst {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 580;
  line-height: 1.4;
}

.row-src {
  color: var(--dim);
  font-size: 14px;
}

.row.is-old {
  opacity: 0.4;
  transform: scale(0.96);
  filter: blur(0.5px);
}

.row.is-lit {
  opacity: 1;
  transform: none;
  filter: none;
  background: rgba(255, 209, 92, 0.09);
}

.row.is-lit .row-dst {
  background: linear-gradient(transparent 62%, rgba(255, 209, 92, 0.34) 62%) no-repeat left / 0% 100%;
  animation: sweep 0.3s ease-out 0.05s forwards;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
}

@keyframes sweep {
  to {
    background-size: 100% 100%;
  }
}

.name {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.name svg {
  position: absolute;
  left: -10%;
  top: -22%;
  width: 120%;
  height: 144%;
  overflow: visible;
  pointer-events: none;
}

.name ellipse {
  fill: none;
  stroke: var(--warn);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.name.is-circled ellipse {
  animation: draw 0.33s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.reread,
.answer {
  margin: 6px 22px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.reread {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 92, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.answer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(111, 227, 165, 0.35);
  background: rgba(111, 227, 165, 0.08);
  font-size: 16px;
  font-weight: 520;
}

.who {
  color: var(--safe);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.reread.is-in,
.answer.is-in {
  opacity: 1;
  transform: none;
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 500 13px var(--font);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.replay:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* Privacy boundary */

.boundary {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-2);
}

.segmented {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented button {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 14px var(--font);
  cursor: pointer;
  transition: color 0.25s;
  white-space: nowrap;
}

.segmented button[aria-pressed='true'] {
  color: #0a0b0e;
}

.segmented small {
  font-size: 11px;
  font-weight: 650;
  opacity: 0.75;
}

.segmented .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.45s var(--ease-spring), background 0.3s;
}

.segmented.is-second .thumb {
  transform: translateX(100%);
}

.boundary[data-mode='cloud'] .segmented .thumb {
  background: var(--cloud);
}

.flow {
  position: relative;
  width: 100%;
  max-width: 820px;
  padding-top: 92px;
}

.cloud-node {
  position: absolute;
  top: 0;
  left: 37.5%;
  width: max(34%, 168px);
  height: 80px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s, background 0.4s, opacity 0.5s, filter 0.5s;
  opacity: 0.7;
}

[data-mode='cloud'] .cloud-node {
  color: var(--cloud);
  border-color: var(--cloud);
  border-style: solid;
  background: rgba(125, 180, 255, 0.08);
  opacity: 1;
  filter: none;
}

.device {
  position: relative;
  padding: 44px clamp(12px, 2.5vw, 28px) 30px;
  border: 1.5px solid rgba(111, 227, 165, 0.5);
  border-radius: 22px;
  background: rgba(111, 227, 165, 0.035);
  transition: border-color 0.4s, background 0.4s;
}

.device.is-pulse {
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 rgba(111, 227, 165, 0.5);
  }
  to {
    box-shadow: 0 0 0 16px rgba(111, 227, 165, 0);
  }
}

[data-mode='cloud'] .device {
  border-color: rgba(125, 180, 255, 0.5);
  background: rgba(125, 180, 255, 0.03);
}

.device-label {
  position: absolute;
  top: 12px;
  left: 18px;
  color: var(--safe);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  transition: color 0.4s;
}

[data-mode='cloud'] .device-label {
  color: var(--cloud);
}

.nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 3vw, 40px);
}

.node {
  position: relative;
  z-index: 1;
  padding: 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  text-align: center;
  transition: transform 0.6s var(--ease-move), border-color 0.4s, color 0.4s, background 0.4s;
}

[data-mode='cloud'] .node[data-node='recognition'] {
  transform: translateY(-106px);
  border-color: var(--cloud);
  color: var(--cloud);
  background: #101724;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.flow-lines path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
}

.flow-lines circle {
  fill: var(--safe);
}

[data-mode='cloud'] .flow-lines circle.is-out {
  fill: var(--cloud);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(111, 227, 165, 0.1);
  color: var(--safe);
  font-size: 15px;
  font-weight: 560;
  text-align: center;
  transition: background 0.4s, color 0.4s;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

[data-mode='cloud'] .status {
  background: rgba(125, 180, 255, 0.12);
  color: var(--cloud);
}

.status.is-swap {
  animation: chunk 0.45s var(--ease-out);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
}

.fact h3,
.step-list h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.fact p,
.step-list p {
  color: var(--muted);
  font-size: 15px;
}

.more {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.more a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}

.more a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Steps */

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  counter-reset: step;
}

.step-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.step-n {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font: 600 13px var(--mono);
}

.step-n::before {
  content: '0';
}

/* Closing */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(80px, 12vw, 170px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: radial-gradient(50% 70% at 50% 100%, rgba(255, 209, 92, 0.13), transparent 70%);
  border-top: 1px solid var(--line);
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  color: var(--text);
  font-weight: 620;
}

.footer-brand p {
  grid-column: 1 / -1;
  color: var(--dim);
  font-weight: 400;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer nav a:hover {
  color: var(--text);
}

/* Pricing and plain pages */

.plain-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 48px);
  text-align: center;
}

.plain-hero h1 {
  max-width: 18em;
}

.thanks {
  min-height: 62vh;
  justify-content: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 40px);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-2);
}

.plan-pro {
  border-color: rgba(255, 209, 92, 0.45);
  background: linear-gradient(180deg, rgba(255, 209, 92, 0.09), var(--bg-2) 46%);
  box-shadow: 0 40px 100px -50px rgba(255, 209, 92, 0.45);
}

.plan h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.plan-tag {
  color: var(--muted);
  font-size: 15px;
}

.price {
  display: grid;
  min-height: 62px;
  align-items: end;
  color: var(--muted);
  font-size: 15px;
}

.price > span {
  grid-area: 1 / 1;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.price b {
  color: var(--text);
  font-size: 46px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

[data-plan='annual'] span[data-price='monthly'],
[data-plan='monthly'] span[data-price='annual'] {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

[data-plan='annual'] a[data-price='monthly'],
[data-plan='monthly'] a[data-price='annual'] {
  display: none;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
  font-size: 15px;
}

.plan-note {
  margin-top: auto;
  padding-top: 8px;
  color: var(--dim);
  font-size: 13px;
}

.faq {
  max-width: 778px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 40px);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 620;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.3s var(--ease-spring);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.prose {
  max-width: 778px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(64px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.prose h2 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.prose li {
  padding-left: 18px;
  position: relative;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
}

/* Small screens */

@media (max-width: 860px) {
  .called {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: minmax(0, 420px);
  }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav-links > a:not(.btn) {
    display: none;
  }
  .lane-pair {
    grid-template-columns: 1fr;
  }
  .lane-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .lane {
    min-height: 112px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .app-window {
    min-height: 400px;
  }
  .segmented button {
    padding: 8px 12px;
    font-size: 13px;
  }
  .brand {
    white-space: nowrap;
  }
  .nodes {
    gap: 6px;
  }
  .node {
    padding: 10px 2px;
    font-size: 11px;
  }
  .device {
    padding-inline: 8px;
  }
  .status {
    border-radius: 16px;
  }
}

@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;
    transition-delay: 0ms !important;
  }
}

/* Halftone art: dots that gather into each stage of "sound becomes subtitles" */

.art {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 40px) 0;
}

.art-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
}

.art-steps {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 48px);
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
}

.art-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.5s var(--ease-out);
}

.art-steps span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 600 11px var(--mono);
}

.art-steps li.is-on {
  color: var(--accent);
}

/* Network comparison */

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

.net {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
}

.net header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}

.net h3 {
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.net header p {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 13px;
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.bars i {
  width: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.bars i:nth-child(1) {
  height: 30%;
}
.bars i:nth-child(2) {
  height: 53%;
}
.bars i:nth-child(3) {
  height: 76%;
}
.bars i:nth-child(4) {
  height: 100%;
}

.bars[data-bars='3'] i,
.bars[data-bars='2'] i:nth-child(-n + 2) {
  background: var(--text);
}

.bars[data-bars='2'] i:nth-child(2) {
  animation: blink 1.1s steps(2, end) infinite;
}

.bars[data-bars='1'] i {
  background: rgba(255, 143, 107, 0.4);
}

.track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.track-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.track strong {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--warn);
  grid-row: 1;
  grid-column: 2;
}

.track-local strong {
  color: var(--safe);
}

.rail {
  position: relative;
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fill {
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 143, 107, 0.5), var(--warn));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-move) 0.25s;
}

.track-local .fill {
  background: var(--safe);
}

.net.is-in .fill {
  transform: none;
}

.pip {
  position: absolute;
  top: 2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}

.net.is-in .pip {
  animation: pip var(--t, 1.2s) linear infinite;
  animation-delay: 1.3s;
}

@keyframes pip {
  0% {
    left: 0;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}

.track.is-down .rail {
  background: repeating-linear-gradient(-45deg, rgba(255, 143, 107, 0.22) 0 6px, transparent 6px 12px);
}

.track.is-down .fill {
  display: none;
}

.net.is-in .track.is-down .pip {
  animation: stuck 2.4s ease-in-out infinite;
  animation-delay: 1.3s;
  background: var(--warn);
}

@keyframes stuck {
  0% {
    left: 0;
    opacity: 1;
  }
  25%,
  70% {
    left: 18%;
    opacity: 1;
  }
  35%,
  55% {
    left: 15%;
  }
  45% {
    left: 18%;
  }
  100% {
    left: 18%;
    opacity: 0;
  }
}

.fine {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.fine b {
  color: var(--muted);
  font-weight: 600;
}

/* Sign-in */

.login {
  min-height: 70vh;
}

.chip {
  padding: 5px 14px;
  border: 1px solid rgba(255, 209, 92, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 380px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  text-align: left;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.login-card label[hidden],
.login-card [hidden] {
  display: none;
}

.login-card input {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: 16px var(--font);
  transition: border-color 0.2s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-card input[name='code'] {
  font: 600 22px var(--mono);
  letter-spacing: 0.3em;
  text-align: center;
}

.login-card button.btn {
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}

.login-card button[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.form-note {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 13px;
}

.form-note.is-error {
  color: var(--warn);
}

.link {
  align-self: center;
  border: 0;
  background: none;
  color: var(--muted);
  font: 13px var(--font);
  cursor: pointer;
  text-decoration: underline;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 860px) {
  .nets {
    grid-template-columns: 1fr;
  }
  .art-canvas {
    aspect-ratio: 4 / 3;
  }
}
