/* SmartCaption website — cinema-console visual system.
   Dark, warm-paper typography, low-saturation cyan and amber.
   No external fonts, images, or frameworks. */

:root {
  --ink: #08090a;
  --ink-2: #0d0f11;
  --ink-3: #121519;
  --paper: #f3ede1;
  --paper-soft: #e7dfd1;
  --muted: rgba(243, 237, 225, 0.62);
  --dim: rgba(243, 237, 225, 0.34);
  --faint: rgba(243, 237, 225, 0.12);
  --line: rgba(243, 237, 225, 0.105);
  --line-strong: rgba(243, 237, 225, 0.19);
  --cyan: #8bb9b1;
  --cyan-bright: #a7d0c8;
  --cyan-soft: rgba(139, 185, 177, 0.13);
  --amber: #c9a46b;
  --amber-soft: rgba(201, 164, 107, 0.13);
  --success: #8fbea4;
  --danger: #d88e87;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --content: 1140px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-stage: 0 40px 120px rgba(0, 0, 0, 0.58);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.025;
}

::selection {
  background: rgba(139, 185, 177, 0.32);
  color: var(--paper);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

em {
  font-style: normal;
  color: var(--cyan);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.76), rgba(8, 9, 10, 0));
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 10, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1240px, calc(100% - 2.5rem));
  height: 78px;
  margin: 0 auto;
}

.scroll-progress {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: 1px;
  appearance: none;
  border: 0;
  background: transparent;
}

.scroll-progress::-webkit-progress-bar {
  background: transparent;
}

.scroll-progress::-webkit-progress-value {
  background: var(--cyan);
  transition: width 100ms linear;
}

.scroll-progress::-moz-progress-bar {
  background: var(--cyan);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

.brand-mark {
  color: var(--paper);
  flex: none;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-sub {
  margin-top: 0.28rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.19em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.42rem;
  height: 1px;
  background: var(--cyan);
  transition: right 220ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--paper);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  right: 0;
}

.nav-tail {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.nav-version {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
}

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

.menu-line {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--paper);
}

.mobile-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: grid;
  gap: 0.15rem;
  width: min(300px, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 15, 17, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.mobile-panel a:not(.button) {
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.mobile-panel a:not(.button):hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.mobile-panel .button {
  margin-top: 0.45rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 180ms ease,
    border-color 180ms ease, color 180ms ease, box-shadow 220ms ease;
}

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

.button--small {
  min-height: 38px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.button--paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(243, 237, 225, 0.07);
}

.button--paper:hover {
  background: #fff9ee;
  box-shadow: 0 14px 36px rgba(243, 237, 225, 0.12);
}

.button--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.015);
  color: var(--paper);
}

.button--outline:hover {
  border-color: rgba(139, 185, 177, 0.5);
  background: rgba(139, 185, 177, 0.06);
}

.button--hero {
  min-height: 66px;
  padding: 0.8rem 1.2rem 0.8rem 0.85rem;
  border-radius: 16px;
  font-weight: 500;
}

.button--hero-secondary {
  min-height: 58px;
  border-radius: 14px;
}

.button__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(8, 9, 10, 0.08);
  flex: none;
}

.button--outline .button__icon {
  background: rgba(243, 237, 225, 0.06);
}

.button__copy {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.button__copy strong {
  font-size: 1rem;
  font-weight: 600;
}

.button__copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.button--paper .button__copy small {
  color: rgba(8, 9, 10, 0.55);
}

.button__arrow {
  margin-left: auto;
  padding-left: 1.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.button--paper .button__arrow {
  color: rgba(8, 9, 10, 0.52);
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-index {
  color: var(--amber);
  letter-spacing: 0.08em;
}

.eyebrow-index::after {
  content: "/";
  margin-left: 0.65rem;
  color: var(--faint);
}

.eyebrow--hero {
  justify-content: center;
  margin-bottom: 1.55rem;
  color: var(--muted);
  letter-spacing: 0.13em;
}

.eyebrow--center {
  justify-content: center;
}

.soft {
  color: var(--muted);
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.section-shell {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
}

.section-head h2,
.download-head h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.3vw, 4.6rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.58fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}

.section-lede {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--cyan);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 185, 177, 0.28);
}

.text-link:hover {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(8.5rem, 15vw, 12rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 48% at 50% 0%, rgba(38, 53, 56, 0.28), transparent 72%),
    radial-gradient(36% 30% at 75% 20%, rgba(201, 164, 107, 0.06), transparent 70%),
    linear-gradient(180deg, #08090a 0%, #08090a 74%, #0b0c0e 100%);
  pointer-events: none;
}

.hero-sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-sky__glow--one {
  top: 8%;
  left: 14%;
  width: 24rem;
  height: 24rem;
  background: rgba(54, 84, 86, 0.35);
}

.hero-sky__glow--two {
  top: 28%;
  right: 8%;
  width: 18rem;
  height: 18rem;
  background: rgba(201, 164, 107, 0.09);
}

.hero-sky__grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.04;
  mix-blend-mode: screen;
}

.hero-sky__rule {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(243, 237, 225, 0.12), transparent);
  opacity: 0.35;
}

.hero-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero-copy {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy > * {
  animation: riseIn 800ms var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 60ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 180ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 240ms;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(3.15rem, 9.2vw, 7.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-title__soft,
.hero-title__strong {
  display: block;
}

.hero-title__soft {
  color: var(--muted);
}

.hero-title__strong {
  color: var(--paper);
}

.hero-lede {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-actions .button--hero {
  min-width: min(100%, 330px);
}

.hero-footnote {
  margin: 1.35rem 0 0;
  color: var(--dim);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.dot-separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.55rem 0.15rem;
  border-radius: 50%;
  background: var(--faint);
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(139, 185, 177, 0.4);
  animation: livePulse 2.4s infinite;
  flex: none;
}

.live-dot--small {
  width: 5px;
  height: 5px;
}

/* ---------- Hero screen ---------- */

.hero-stage {
  margin-top: clamp(3rem, 7vw, 5.4rem);
}

.stage-outer {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
  animation: stageIn 1100ms 180ms var(--ease-out) both;
}

.stage-glow {
  position: absolute;
  inset: 10% 8% -8%;
  z-index: -1;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(139, 185, 177, 0.16), transparent);
  filter: blur(60px);
}

.caption-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 56px;
  padding: 0 1.1rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.9);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  white-space: nowrap;
}

.stage-timecode {
  margin-left: 0.4rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.stage-signal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  color: var(--dim);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 15px;
}

.waveform i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--cyan);
  opacity: 0.65;
  animation: waveform 1.6s ease-in-out infinite;
}

.waveform i:nth-child(3n) {
  animation-delay: -0.45s;
}

.waveform i:nth-child(3n + 1) {
  animation-delay: -0.9s;
}

.stage-signal-label {
  color: var(--dim);
  font-size: 0.56rem;
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.language-button {
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.language-button:hover {
  color: var(--paper);
}

.language-button.is-active {
  background: rgba(243, 237, 225, 0.11);
  color: var(--paper);
}

.stage-icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.stage-icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.icon-play {
  display: none;
}

.stage-icon-button[aria-pressed="true"] .icon-pause {
  display: none;
}

.stage-icon-button[aria-pressed="true"] .icon-play {
  display: block;
}

.stage-scene {
  position: relative;
  height: clamp(320px, 45vw, 440px);
  overflow: hidden;
  background:
    radial-gradient(58% 74% at 22% 42%, rgba(201, 164, 107, 0.19), transparent 64%),
    radial-gradient(56% 70% at 78% 32%, rgba(78, 128, 130, 0.25), transparent 66%),
    linear-gradient(180deg, #0a0c0e 0%, #14191c 42%, #08090a 100%);
}

.scene-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.65;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.scene-orb--one {
  top: 16%;
  left: 10%;
  width: 34%;
  height: 52%;
  background: rgba(201, 164, 107, 0.2);
}

.scene-orb--two {
  top: 6%;
  right: 13%;
  width: 28%;
  height: 46%;
  background: rgba(67, 119, 122, 0.26);
  animation-delay: -7s;
}

.scene-horizon {
  position: absolute;
  top: 53%;
  left: -5%;
  width: 110%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 237, 225, 0.22), transparent);
  box-shadow: 0 0 60px 12px rgba(243, 237, 225, 0.05);
}

.scene-grid {
  position: absolute;
  inset: 53% -20% -40%;
  background-image:
    linear-gradient(rgba(243, 237, 225, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 237, 225, 0.055) 1px, transparent 1px);
  background-size: 64px 32px;
  transform: perspective(340px) rotateX(64deg);
  transform-origin: top;
  mask-image: linear-gradient(180deg, transparent, #000 50%, #000);
  opacity: 0.5;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 40%, rgba(8, 9, 10, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.2), transparent 35%, rgba(8, 9, 10, 0.75));
}

.scene-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.075;
  mix-blend-mode: screen;
}

.scene-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.4;
}

.scene-marker--tl {
  top: 1.5rem;
  left: 1.5rem;
  border-top: 1px solid var(--paper);
  border-left: 1px solid var(--paper);
}

.scene-marker--br {
  right: 1.5rem;
  bottom: 1.5rem;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
}

.scene-caption-mark {
  position: absolute;
  top: 1.55rem;
  right: 2rem;
  color: rgba(243, 237, 225, 0.3);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.stage-caption {
  position: absolute;
  left: 50%;
  bottom: 3.15rem;
  width: min(82%, 760px);
  transform: translateX(-50%);
  text-align: center;
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.stage-caption.is-switching {
  opacity: 0.1;
  filter: blur(2px);
  transform: translate(-50%, 5px);
}

.stage-caption-top {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-caption-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.caption-pulse {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.stage-caption-route {
  color: var(--amber);
}

.stage-source {
  margin-bottom: 0.42rem;
  color: rgba(243, 237, 225, 0.52);
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  line-height: 1.5;
}

.stage-translation {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.15rem, 2.9vw, 2.15rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.65);
}

.stage-hint {
  position: absolute;
  inset: auto 2rem 0.8rem;
  display: flex;
  justify-content: space-between;
  color: rgba(243, 237, 225, 0.25);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-hint-key {
  color: rgba(139, 185, 177, 0.5);
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100% - 2.5rem));
  margin: clamp(3.4rem, 7vw, 5.5rem) auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-rail__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.15rem clamp(0.8rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
}

.hero-rail__item:last-child {
  border-right: 0;
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  flex: none;
}

.hero-rail__item strong,
.hero-rail__item small {
  display: block;
}

.hero-rail__item strong {
  color: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-rail__item small {
  margin-top: 0.15rem;
  color: var(--dim);
  font-size: 0.67rem;
  line-height: 1.45;
}

/* ---------- Process ---------- */

.process {
  border-top: 1px solid var(--line);
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 12%,
    var(--line-strong) 88%,
    transparent
  );
}

.pipeline::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px 3px rgba(139, 185, 177, 0.45);
  animation: pipelineTravel 7s linear infinite;
}

.pipeline-step {
  position: relative;
  padding: 0 clamp(0.2rem, 1.3vw, 1rem) 0 0;
}

.pipeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 62px;
  height: 62px;
  margin-bottom: 1.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cyan);
}

.pipeline-index {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.pipeline-icon {
  display: grid;
  place-items: center;
}

.pipeline-step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pipeline-step p {
  max-width: 25ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.process-foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(2.8rem, 6vw, 4.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.process-foot__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.process-foot__meta {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

/* ---------- Bento ---------- */

.capabilities {
  border-top: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(1.35rem, 2.7vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(19, 23, 26, 0.88), rgba(11, 13, 15, 0.94));
  overflow: hidden;
  transition: border-color 320ms ease, transform 400ms var(--ease-out);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, rgba(139, 185, 177, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.bento-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--audio {
  grid-column: span 7;
  min-height: 365px;
}

.bento-card--overlay {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 400px;
}

.bento-card--models,
.bento-card--privacy,
.bento-card--tray {
  grid-column: span 4;
}

.bento-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.bento-kicker {
  color: var(--cyan);
}

.bento-card h3 {
  max-width: 13ch;
  margin: 2.2rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.bento-card > p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.bento-small {
  margin-top: 0.9rem !important;
  color: var(--dim) !important;
  font-size: 0.72rem !important;
}

.audio-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100px;
  margin: 2.15rem -0.2rem -0.4rem;
  padding: 0.8rem 0.2rem 0;
  border-top: 1px solid var(--line);
}

.audio-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.audio-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  width: min(58%, 280px);
  height: 58px;
}

.audio-bars i {
  width: 3px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan-bright), rgba(139, 185, 177, 0.16));
  opacity: 0.65;
  transform-origin: center;
  animation: audioBars 1.45s ease-in-out infinite alternate;
}

.audio-bars i:nth-child(4n + 1) {
  height: 22px;
  animation-delay: -0.3s;
}

.audio-bars i:nth-child(4n + 2) {
  height: 48px;
  animation-delay: -0.9s;
}

.audio-bars i:nth-child(4n + 3) {
  height: 30px;
  animation-delay: -0.5s;
}

.audio-bars i:nth-child(4n) {
  height: 40px;
  animation-delay: -0.1s;
}

.audio-label,
.audio-status {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.audio-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--cyan);
}

.overlay-demo {
  position: relative;
  flex: 1;
  min-height: 210px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(80% 90% at 30% 20%, rgba(201, 164, 107, 0.17), transparent 62%),
    linear-gradient(155deg, #11171a, #08090a 70%);
  overflow: hidden;
}

.overlay-demo__frame {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 237, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 237, 225, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(80% 80% at 40% 40%, #000, transparent);
}

.overlay-demo__line {
  position: absolute;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 237, 225, 0.18), transparent);
}

.overlay-demo__line--one {
  top: 28%;
  width: 42%;
}

.overlay-demo__line--two {
  top: 42%;
  width: 58%;
  opacity: 0.55;
}

.overlay-demo__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(243, 237, 225, 0.15);
  border-radius: 8px;
  background: rgba(8, 9, 10, 0.78);
  color: var(--paper);
  font-size: 0.88rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.overlay-demo__caption small {
  display: block;
  margin-top: 0.18rem;
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 400;
}

.overlay-demo__cursor {
  position: absolute;
  left: 58%;
  top: 48%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: cursorRoam 9s ease-in-out infinite;
}

.overlay-demo__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(139, 185, 177, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.engine-switch {
  display: inline-flex;
  align-self: flex-start;
  margin: 1.25rem 0 1rem;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.engine-switch button {
  padding: 0.33rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 0.73rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.engine-switch button.is-active {
  background: rgba(243, 237, 225, 0.1);
  color: var(--paper);
}

.engine-copy {
  display: grid;
  gap: 0.3rem;
  min-height: 4.4rem;
}

.engine-copy strong {
  color: var(--paper-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.engine-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.privacy-number {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.5rem 0 1.1rem;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(3.3rem, 6vw, 5.3rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.privacy-number span {
  color: var(--dim);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.tray-demo {
  margin-top: auto;
  padding-top: 1.7rem;
}

.tray-demo__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.67rem;
}

.tray-logo {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.44rem;
}

.tray-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cyan);
}

.tray-demo__menu {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(8, 9, 10, 0.65);
}

.tray-demo__menu span {
  padding: 0.33rem 0.45rem;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.64rem;
}

.tray-demo__active {
  background: var(--cyan-soft);
  color: var(--cyan-bright) !important;
}

.tray-demo__muted {
  color: var(--dim) !important;
}

/* ---------- Measure ---------- */

.measure {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 40% at 15% 20%, rgba(139, 185, 177, 0.055), transparent 70%),
    transparent;
}

.measure-board {
  padding: clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 22, 25, 0.92), rgba(9, 11, 13, 0.92));
}

.measure-group + .measure-group {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.measure-group__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  color: var(--paper-soft);
  font-size: 0.83rem;
}

.measure-unit {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.measure-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem 0;
}

.measure-device strong,
.measure-device span {
  display: block;
}

.measure-device strong {
  color: var(--paper-soft);
  font-size: 0.83rem;
  font-weight: 500;
}

.measure-device span {
  margin-top: 0.08rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.measure-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(243, 237, 225, 0.07);
  overflow: hidden;
}

.measure-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 85.7%;
  width: 1px;
  background: rgba(243, 237, 225, 0.22);
}

.measure-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), rgba(139, 185, 177, 0.42));
  transform-origin: left;
}

.measure-group--second .measure-fill {
  background: linear-gradient(90deg, var(--amber), rgba(201, 164, 107, 0.4));
}

.measure-fill--r9-first {
  width: 50.6%;
}

.measure-fill--x14-first {
  width: 77.7%;
}

.measure-fill--r9-final {
  width: 23.1%;
}

.measure-fill--x14-final {
  width: 52.6%;
}

.measure-board.is-inview .measure-fill {
  animation: barGrow 900ms var(--ease-out) both;
}

.measure-value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-align: right;
}

.measure-value span {
  margin-left: 0.15rem;
  color: var(--dim);
  font-size: 0.65rem;
}

.measure-target {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-align: right;
}

.measure-note {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: var(--dim);
  font-size: 0.73rem;
  line-height: 1.8;
}

/* ---------- Downloads ---------- */

.downloads {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 35% at 84% 18%, rgba(201, 164, 107, 0.06), transparent 70%),
    transparent;
}

.download-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.2rem);
}

.download-head__meta {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.5;
  text-align: right;
}

.release-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 1.2rem;
  align-items: stretch;
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.4rem, 3.2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(19, 23, 26, 0.96), rgba(10, 12, 14, 0.96));
}

.download-card--primary {
  border-color: rgba(243, 237, 225, 0.15);
  background: var(--paper);
  color: var(--ink);
}

.download-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.release-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.08);
  color: rgba(8, 9, 10, 0.7);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.release-label--quiet {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.file-kind {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.download-card--primary .file-kind {
  color: rgba(8, 9, 10, 0.38);
}

.download-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.download-card__desc {
  max-width: 48ch;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.download-card--primary .download-card__desc {
  color: rgba(8, 9, 10, 0.62);
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.download-specs span {
  padding: 0.23rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.download-card--primary .download-specs {
  color: rgba(8, 9, 10, 0.48);
}

.download-card--primary .download-specs span {
  border-color: rgba(8, 9, 10, 0.14);
}

.download-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 70px;
  margin-bottom: 1.3rem;
  padding: 0.75rem 1rem 0.75rem 0.8rem;
  border: 1px solid rgba(8, 9, 10, 0.18);
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  background: #17191c;
}

.download-button--quiet {
  border-color: var(--line-strong);
  background: rgba(243, 237, 225, 0.06);
}

.download-button--quiet:hover {
  background: rgba(243, 237, 225, 0.1);
}

.download-button__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(243, 237, 225, 0.12);
  flex: none;
}

.download-button--quiet .download-button__icon {
  background: rgba(243, 237, 225, 0.08);
}

.download-button__icon svg {
  color: var(--cyan-bright);
}

.download-button span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.download-button strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.download-button small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.download-button__arrow {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.install-steps {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.install-steps li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
  counter-increment: steps;
}

.install-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.download-card--primary .install-steps li {
  color: rgba(8, 9, 10, 0.62);
}

.download-card--primary .install-steps li::before {
  color: rgba(8, 9, 10, 0.38);
}

.disclosure {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.download-card--primary .disclosure {
  border-top-color: rgba(8, 9, 10, 0.14);
}

.disclosure summary {
  padding: 1rem 0 0.4rem;
  color: var(--dim);
  font-size: 0.74rem;
  cursor: pointer;
  list-style: none;
}

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

.disclosure summary::after {
  content: "+";
  float: right;
  color: var(--dim);
  font-family: var(--font-mono);
}

.disclosure[open] summary::after {
  content: "−";
}

.download-card--primary .disclosure summary {
  color: rgba(8, 9, 10, 0.52);
}

.download-card--primary .disclosure summary::after {
  color: rgba(8, 9, 10, 0.4);
}

.disclosure__body {
  padding: 0.35rem 0 0.1rem;
}

.mono-label {
  margin-bottom: 0.55rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  word-break: break-all;
}

.download-card--primary .mono-label {
  color: rgba(8, 9, 10, 0.42);
}

.hash-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.hash-row code {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.55;
  word-break: break-all;
}

.download-card--primary .hash-row code {
  border-color: rgba(8, 9, 10, 0.14);
  background: rgba(8, 9, 10, 0.05);
  color: rgba(8, 9, 10, 0.6);
}

.copy-button {
  flex: none;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.download-card--primary .copy-button {
  border-color: rgba(8, 9, 10, 0.16);
  color: rgba(8, 9, 10, 0.55);
}

.disclosure__hint,
.disclosure__note {
  margin: 0.65rem 0 0;
  color: var(--dim);
  font-size: 0.65rem;
  line-height: 1.65;
}

.disclosure__hint code {
  color: var(--muted);
  font-size: 0.62rem;
  word-break: break-all;
}

.download-card--primary .disclosure__hint code {
  color: rgba(8, 9, 10, 0.55);
}

.download-card--primary .disclosure__hint,
.download-card--primary .disclosure__note {
  color: rgba(8, 9, 10, 0.42);
}

.download-footnote {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.download-footnote__icon {
  color: var(--amber);
  flex: none;
}

.download-footnote p {
  margin: 0;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.7;
}

.download-footnote strong {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Privacy statement ---------- */

.privacy-statement {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(55% 80% at 20% 50%, rgba(139, 185, 177, 0.07), transparent 70%),
    linear-gradient(180deg, #08090a, #0b0d0f 60%, #08090a);
}

.privacy-statement__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.privacy-statement__copy h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.06em;
}

.privacy-statement__copy p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.local-diagram {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(139, 185, 177, 0.08), transparent 72%),
    rgba(255, 255, 255, 0.012);
}

.local-diagram__halo {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(139, 185, 177, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(139, 185, 177, 0.05);
}

.local-diagram__node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 150px;
  padding: 1rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(8, 9, 10, 0.82);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.local-diagram__node--audio {
  top: 16%;
  left: 5%;
}

.local-diagram__node--screen {
  right: 5%;
  bottom: 16%;
}

.local-diagram__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
}

.local-diagram__node strong {
  color: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 500;
}

.local-diagram__node small {
  color: var(--dim);
  font-size: 0.62rem;
}

.local-diagram__line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 185, 177, 0.48), transparent);
}

.local-diagram__line--left {
  top: 36%;
  left: 30%;
  width: 24%;
}

.local-diagram__line--right {
  right: 30%;
  bottom: 36%;
  width: 24%;
}

.local-diagram__no-cloud {
  position: absolute;
  top: 48%;
  left: 50%;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  transform: translate(-50%, -50%);
}

.local-diagram__no-cloud::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: translate(-50%, -50%) rotate(-29deg);
}

.local-diagram__lock {
  position: absolute;
  right: 18%;
  top: 13%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
}

.local-diagram__halo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(139, 185, 177, 0.08), 0 0 24px rgba(139, 185, 177, 0.4);
  transform: translate(-50%, -50%);
}

/* ---------- Feedback invite ---------- */

.feedback-invite {
  padding-top: 0;
}

.feedback-invite__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.8rem, 5vw, 4.2rem);
  border: 1px solid rgba(139, 185, 177, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 100% at 10% 0%, rgba(139, 185, 177, 0.1), transparent 65%),
    linear-gradient(145deg, #101518, #0a0b0c);
  overflow: hidden;
}

.feedback-invite__mark {
  position: absolute;
  top: -1.4rem;
  right: 4rem;
  color: rgba(243, 237, 225, 0.045);
  font-family: Georgia, serif;
  font-size: 14rem;
  line-height: 1;
  pointer-events: none;
}

.feedback-invite__copy {
  position: relative;
  z-index: 1;
}

.feedback-invite__copy h2 {
  max-width: 720px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 5.3vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.feedback-invite__copy p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.feedback-invite .button {
  position: relative;
  z-index: 1;
  flex: none;
}

/* ---------- FAQ ---------- */

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

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--paper-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: transform 240ms var(--ease-out), color 180ms ease;
}

.faq-item[open] summary {
  color: var(--paper);
}

.faq-item[open] summary::after {
  color: var(--cyan);
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 68ch;
  margin: -0.25rem 0 0;
  padding-bottom: 1.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.85;
}

.faq-item a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 185, 177, 0.28);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.9fr;
  gap: 2rem;
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
}

.brand--footer {
  margin-bottom: 1.25rem;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.footer-label {
  margin-bottom: 0.5rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  justify-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-admin {
  opacity: 0.42;
}

.footer-version {
  margin-bottom: 0.25rem;
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.footer-note {
  margin: 0 0 0.25rem;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.6;
}

.footer-copy {
  margin: 1.1rem 0 0;
  color: var(--dim);
  font-size: 0.64rem;
}

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: grid;
  gap: 0.5rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(13, 15, 17, 0.96);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  font-size: 0.8rem;
  animation: toastIn 260ms var(--ease-out) both;
}

.toast--success {
  border-color: rgba(143, 190, 164, 0.45);
}

.toast--error {
  border-color: rgba(216, 142, 135, 0.45);
}

.toast.is-leaving {
  animation: toastOut 220ms ease both;
}

/* ---------- Feedback page ---------- */

.page-feedback {
  background:
    radial-gradient(45% 35% at 80% 8%, rgba(139, 185, 177, 0.06), transparent 70%),
    var(--ink);
}

.feedback-hero {
  padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.feedback-hero__inner {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2.5rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.back-link:hover {
  color: var(--paper);
}

.feedback-hero h1 {
  max-width: 900px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.feedback-hero p:not(.eyebrow) {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.feedback-aside {
  position: sticky;
  top: 112px;
}

.aside-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.aside-card + .aside-card {
  margin-top: 0.85rem;
}

.aside-card h2 {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.aside-card p {
  margin-bottom: 0;
  color: var(--dim);
  font-size: 0.75rem;
  line-height: 1.75;
}

.aside-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.aside-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.aside-signoff {
  margin-top: 1.2rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.feedback-form-card {
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(19, 23, 26, 0.94), rgba(10, 12, 14, 0.96));
}

.form-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.form-intro h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.form-intro span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.77rem;
}

.form-label__optional {
  margin-left: 0.4rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-options label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.category-options label:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.category-options input:checked + label {
  border-color: rgba(139, 185, 177, 0.44);
  background: var(--cyan-soft);
  color: var(--cyan-bright);
}

.category-options input:focus-visible + label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 10, 0.55);
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.65;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dim);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(139, 185, 177, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 185, 177, 0.09);
}

.form-textarea {
  min-height: 190px;
  resize: vertical;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: rgba(216, 142, 135, 0.6);
}

.form-hint {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  color: var(--dim);
  font-size: 0.66rem;
  line-height: 1.5;
}

.char-counter {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.7rem;
}

.form-optional-fields {
  margin: 0 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}

.form-optional-fields > summary {
  padding: 0.8rem 0.9rem;
  color: var(--dim);
  font-size: 0.73rem;
  cursor: pointer;
  list-style: none;
}

.form-optional-fields > summary::-webkit-details-marker {
  display: none;
}

.form-optional-fields > summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
}

.form-optional-fields[open] > summary::after {
  content: "−";
}

.form-optional-fields__inner {
  display: grid;
  gap: 1rem;
  padding: 0 0.9rem 0.9rem;
}

.form-privacy {
  margin: 0 0 1.1rem;
  color: var(--dim);
  font-size: 0.67rem;
  line-height: 1.65;
}

.form-privacy a {
  color: var(--muted);
}

.form-status {
  display: none;
  margin-bottom: 1.1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  border-color: rgba(216, 142, 135, 0.35);
  background: rgba(216, 142, 135, 0.08);
  color: #e6a49d;
}

.form-status--success {
  border-color: rgba(143, 190, 164, 0.35);
  background: rgba(143, 190, 164, 0.08);
  color: var(--success);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 160ms ease, opacity 160ms ease;
}

.form-submit:hover {
  background: #fff9ee;
  transform: translateY(-1px);
}

.form-submit[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-submit__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(8, 9, 10, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.form-submit[aria-busy="true"] .form-submit__spinner {
  display: block;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

[hidden] {
  display: none !important;
}

.copy-fallback {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.char-counter.is-near-limit {
  color: var(--amber);
}

.feedback-success {
  display: none;
  padding: clamp(1.6rem, 5vw, 3.5rem) 1rem;
  text-align: center;
}

.feedback-success.is-visible {
  display: block;
}

.feedback-success__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.3rem;
  border: 1px solid rgba(143, 190, 164, 0.45);
  border-radius: 50%;
  color: var(--success);
  font-size: 1.35rem;
  animation: successPop 620ms var(--ease-out) both;
}

.feedback-success h2 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.feedback-success p {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.feedback-success a {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--cyan);
  font-size: 0.8rem;
  text-decoration: none;
}

.thanks-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 0 3rem;
  text-align: center;
}

.thanks-panel h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.thanks-panel p {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.thanks-panel .button {
  margin-top: 2rem;
}

/* ---------- Document pages ---------- */

.page-doc {
  padding: clamp(8rem, 14vw, 11rem) 0 6rem;
}

.doc-shell {
  width: min(780px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.doc-eyebrow {
  margin-bottom: 1.3rem;
}

.doc-shell h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.doc-lede {
  max-width: 58ch;
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.doc-section {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.85;
}

.doc-section ul {
  padding-left: 1.2rem;
}

.doc-section a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 185, 177, 0.28);
}

.doc-note {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.7;
}

/* ---------- Error page ---------- */

.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 9rem 0 5rem;
}

.error-panel {
  width: min(560px, calc(100% - 2.5rem));
  text-align: center;
}

.error-code {
  margin-bottom: 1rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.error-panel h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.error-panel p {
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reveal ---------- */

.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms var(--ease-out), transform 780ms var(--ease-out);
}

.reveal-init[data-delay="1"] {
  transition-delay: 70ms;
}

.reveal-init[data-delay="2"] {
  transition-delay: 140ms;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Motion ---------- */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 185, 177, 0.32);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(139, 185, 177, 0);
  }
}

@keyframes waveform {
  0%,
  100% {
    transform: scaleY(0.25);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.8;
  }
}

@keyframes orbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 5%, 0) scale(1.08);
  }
}

@keyframes pipelineTravel {
  0% {
    left: 8%;
    opacity: 0;
  }
  8%,
  88% {
    opacity: 1;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}

@keyframes audioBars {
  from {
    transform: scaleY(0.42);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes cursorRoam {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-22px, 13px);
  }
  50% {
    transform: translate(-50px, -10px);
  }
  75% {
    transform: translate(-12px, -20px);
  }
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-shell {
    gap: 1.2rem;
  }

  .primary-nav {
    gap: 1rem;
  }

  .nav-version {
    display: none;
  }

  .bento-card--audio {
    grid-column: span 12;
  }

  .bento-card--overlay {
    grid-column: span 6;
    grid-row: auto;
    min-height: 390px;
  }

  .bento-card--models,
  .bento-card--privacy,
  .bento-card--tray {
    grid-column: span 6;
  }

  .bento-card--models {
    min-height: 275px;
  }

  .bento-card--privacy,
  .bento-card--tray {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .primary-nav,
  .nav-tail {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .section-head--split,
  .privacy-statement__inner,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .section-lede {
    margin-top: -0.5rem;
  }

  .hero-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-rail__item:nth-child(2) {
    border-right: 0;
  }

  .hero-rail__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .pipeline::before,
  .pipeline::after {
    display: none;
  }

  .pipeline-step {
    padding-right: 1rem;
  }

  .measure-row {
    grid-template-columns: 140px minmax(0, 1fr) 62px;
    gap: 0.8rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-head {
    display: grid;
    gap: 1.5rem;
  }

  .download-head__meta {
    justify-items: start;
    text-align: left;
  }

  .feedback-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    grid-row: 2;
  }

  .feedback-form-card {
    grid-row: 1;
  }

  .aside-card + .aside-card {
    margin-top: 0;
  }

  .aside-signoff {
    grid-column: 1 / -1;
  }

  .feedback-invite__panel {
    grid-template-columns: 1fr;
  }

  .feedback-invite .button {
    justify-self: start;
  }

  .footer-shell {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-shell {
    width: calc(100% - 1.5rem);
    height: 68px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 7.2rem;
  }

  .hero-inner,
  .section-shell,
  .footer-shell,
  .feedback-hero__inner,
  .feedback-layout {
    width: calc(100% - 1.75rem);
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    letter-spacing: -0.06em;
  }

  .hero-lede {
    font-size: 0.93rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-footnote {
    line-height: 1.8;
  }

  .stage-bar {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
  }

  .stage-status {
    font-size: 0.57rem;
  }

  .stage-signal {
    display: none;
  }

  .stage-controls {
    margin-left: auto;
  }

  .stage-timecode {
    display: none;
  }

  .stage-scene {
    height: 350px;
  }

  .stage-caption {
    bottom: 3rem;
    width: 88%;
  }

  .stage-source {
    font-size: 0.68rem;
  }

  .stage-translation {
    font-size: clamp(1.1rem, 5.8vw, 1.55rem);
  }

  .stage-hint {
    inset-inline: 1rem;
    font-size: 0.47rem;
  }

  .stage-hint-key {
    display: none;
  }

  .hero-rail {
    grid-template-columns: 1fr;
    margin-top: 2.8rem;
  }

  .hero-rail__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-rail__item:last-child {
    border-bottom: 0;
  }

  .hero-rail__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .pipeline-step {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 1rem;
    padding: 0;
  }

  .pipeline-node {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .pipeline-step h3 {
    align-self: end;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .pipeline-step p {
    max-width: none;
    margin: 0;
  }

  .process-foot {
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.6;
  }

  .process-foot__meta {
    width: 100%;
    margin-left: 0;
    padding-left: 0.95rem;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--audio,
  .bento-card--overlay,
  .bento-card--models,
  .bento-card--privacy,
  .bento-card--tray {
    grid-column: auto;
    min-height: 0;
    padding: 1.35rem;
  }

  .bento-card h3 {
    margin-top: 1.8rem;
  }

  .audio-visual {
    margin-top: 1.8rem;
  }

  .overlay-demo {
    min-height: 190px;
  }

  .measure-board {
    padding: 1rem;
  }

  .measure-row {
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding: 0.7rem 0;
  }

  .measure-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .measure-value {
    grid-column: 2;
    grid-row: 1;
  }

  .measure-unit {
    font-size: 0.52rem;
  }

  .measure-target {
    text-align: left;
  }

  .download-card {
    padding: 1.35rem;
  }

  .download-button {
    min-height: 64px;
  }

  .download-footnote {
    align-items: flex-start;
  }

  .privacy-statement__copy h2 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .local-diagram {
    min-height: 310px;
    border-radius: 24px;
  }

  .local-diagram__node {
    width: 132px;
    padding: 0.8rem 0.6rem;
  }

  .local-diagram__node--audio {
    left: 4%;
  }

  .local-diagram__node--screen {
    right: 4%;
  }

  .local-diagram__no-cloud::before {
    width: 160px;
  }

  .feedback-invite__panel {
    padding: 1.5rem;
  }

  .feedback-invite__mark {
    right: 1rem;
    font-size: 9rem;
  }

  .feedback-invite__copy h2 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .faq-item summary {
    padding: 1.15rem 0;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .footer-brand {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .footer-tagline {
    margin-bottom: 0.2rem;
  }

  .footer-meta {
    padding-top: 1.2rem;
  }

  .feedback-hero {
    padding-top: 7rem;
  }

  .feedback-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4.2rem);
  }

  .feedback-aside {
    grid-template-columns: 1fr;
  }

  .feedback-form-card {
    padding: 1.2rem;
  }

  .form-intro {
    display: grid;
    gap: 0.35rem;
  }

  .form-textarea {
    min-height: 170px;
  }

  .doc-shell {
    width: calc(100% - 1.75rem);
  }

  .doc-shell h1 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .toast-region {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-init {
    opacity: 1;
    transform: none;
  }
}
