:root {
  color-scheme: light;
  --page-bg: hsl(222 32% 97%);
  --hero-bg: hsl(214 38% 98%);
  --surface: hsl(0 0% 100%);
  --surface-raised: hsl(220 29% 99%);
  --surface-muted: hsl(45 92% 94%);
  --text-strong: hsl(224 42% 9%);
  --text: hsl(224 26% 18%);
  --text-muted: hsl(224 11% 42%);
  --text-soft: hsl(224 10% 55%);
  --primary: hsl(329 82% 44%);
  --secondary: hsl(43 96% 50%);
  --cyan: hsl(187 84% 40%);
  --success: hsl(145 72% 35%);
  --warning: hsl(38 94% 48%);
  --terminal-hot: hsl(18 87% 50%);
  --border: hsl(223 17% 84%);
  --nav-bg: hsl(0 0% 100% / 0.82);
  --nav-scrolled-bg: hsl(0 0% 100% / 0.94);
  --nav-border: hsl(223 17% 84% / 0.78);
  --nav-scrolled-border: hsl(329 82% 44% / 0.24);
  --nav-link: hsl(224 12% 34%);
  --hero-grid-line: hsl(224 22% 18% / 0.06);
  --hero-grid-line-strong: hsl(224 22% 18% / 0.04);
  --beam-a-color: hsl(43 96% 58% / 0.42);
  --beam-b-color: hsl(329 82% 58% / 0.22);
  --beam-c-color: hsl(145 72% 42% / 0.18);
  --soft-border: hsl(223 17% 84% / 0.8);
  --faint-border: hsl(223 17% 84% / 0.58);
  --strong-border: hsl(224 12% 48% / 0.25);
  --glass-bg: hsl(0 0% 100% / 0.78);
  --glass-bg-strong: hsl(0 0% 100% / 0.9);
  --control-bg: hsl(224 30% 93% / 0.82);
  --control-bg-hover: hsl(224 26% 88% / 0.95);
  --theme-thumb-bg: hsl(0 0% 100%);
  --theme-active-text: hsl(224 42% 9%);
  --route-glyph-fill: hsl(0 0% 100% / 0.86);
  --route-glyph-stroke: hsl(224 16% 40% / 0.22);
  --route-glyph-path: hsl(224 16% 34% / 0.6);
  --metric-divider: hsl(223 17% 84% / 0.76);
  --terminal-bg: hsl(224 36% 8% / 0.96);
  --terminal-border: hsl(224 18% 18% / 0.18);
  --terminal-top-border: hsl(0 0% 100% / 0.08);
  --terminal-muted: hsl(220 14% 58%);
  --code-panel-bg: hsl(224 34% 9% / 0.95);
  --code-panel-border: hsl(224 18% 18% / 0.18);
  --code-text: hsl(154 85% 62%);
  --chip-bg: hsl(224 30% 92% / 0.86);
  --bar-track: hsl(223 20% 85% / 0.9);
  --cta-bg: hsl(329 84% 36%);
  --cta-bg-hover: hsl(329 84% 31%);
  --cta-text: hsl(0 0% 100%);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --container: 1280px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --step--1: clamp(0.78rem, 0.74rem + 0.16vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.91rem + 0.22vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.5vw, 1.48rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.35vw, 2.4rem);
  --step-3: clamp(2.15rem, 1.45rem + 3vw, 4.2rem);
  --step-4: clamp(3.7rem, 2rem + 7vw, 8.25rem);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 30px;
  --space-6: 44px;
  --space-7: 72px;
  --space-8: 112px;
  --glow-primary: 0 16px 44px hsl(329 82% 44% / 0.22);
  --shadow-card: 0 24px 80px hsl(224 42% 9% / 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: hsl(336 22% 7%);
  --hero-bg: hsl(336 24% 5%);
  --surface: hsl(336 19% 12%);
  --surface-raised: hsl(334 18% 15%);
  --surface-muted: hsl(42 18% 21%);
  --text-strong: hsl(0 0% 100%);
  --text: hsl(209 20% 95%);
  --text-muted: hsl(220 13% 74%);
  --text-soft: hsl(209 20% 78%);
  --primary: hsl(329 88% 46%);
  --secondary: hsl(47 98% 65%);
  --cyan: hsl(47 98% 62%);
  --success: hsl(138 78% 50%);
  --warning: hsl(42 96% 60%);
  --terminal-hot: hsl(18 94% 62%);
  --border: hsl(338 18% 24%);
  --nav-bg: hsl(0 0% 0% / 0.7);
  --nav-scrolled-bg: hsl(336 28% 5% / 0.9);
  --nav-border: hsl(0 0% 100% / 0.07);
  --nav-scrolled-border: hsl(47 98% 65% / 0.28);
  --nav-link: hsl(209 20% 82%);
  --hero-grid-line: hsl(0 0% 100% / 0.025);
  --hero-grid-line-strong: hsl(0 0% 100% / 0.02);
  --beam-a-color: hsl(47 98% 58% / 0.64);
  --beam-b-color: hsl(329 88% 52% / 0.78);
  --beam-c-color: hsl(138 78% 45% / 0.4);
  --soft-border: hsl(0 0% 100% / 0.1);
  --faint-border: hsl(0 0% 100% / 0.08);
  --strong-border: hsl(0 0% 100% / 0.14);
  --glass-bg: hsl(334 18% 20% / 0.78);
  --glass-bg-strong: hsl(336 19% 12% / 0.84);
  --control-bg: hsl(0 0% 100% / 0.08);
  --control-bg-hover: hsl(0 0% 100% / 0.14);
  --theme-thumb-bg: hsl(0 0% 100% / 0.16);
  --theme-active-text: hsl(0 0% 100%);
  --route-glyph-fill: hsl(334 18% 10% / 0.82);
  --route-glyph-stroke: hsl(0 0% 100% / 0.2);
  --route-glyph-path: hsl(0 0% 100% / 0.62);
  --metric-divider: hsl(0 0% 100% / 0.1);
  --terminal-bg: hsl(0 0% 3% / 0.88);
  --terminal-border: hsl(0 0% 100% / 0.12);
  --terminal-top-border: hsl(0 0% 100% / 0.08);
  --terminal-muted: hsl(209 20% 52%);
  --code-panel-bg: hsl(0 0% 2% / 0.76);
  --code-panel-border: hsl(0 0% 100% / 0.08);
  --code-text: hsl(156 100% 63%);
  --chip-bg: hsl(0 0% 100% / 0.06);
  --bar-track: hsl(0 0% 100% / 0.08);
  --cta-bg: hsl(329 86% 42%);
  --cta-bg-hover: hsl(329 86% 48%);
  --cta-text: hsl(0 0% 100%);
  --glow-primary: 0 0 44px hsl(329 88% 46% / 0.34);
  --shadow-card: 0 24px 90px hsl(0 0% 0% / 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background 180ms ease, color 180ms ease;
}

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

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-height);
  padding: 0 32px;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--nav-scrolled-border);
  background: var(--nav-scrolled-bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 28%, var(--text-strong) 28% 46%, transparent 46% 100%),
    linear-gradient(0deg, var(--secondary), var(--primary));
  transform: skewX(-12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--nav-link);
  font-size: 14px;
}

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

.nav-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  width: 118px;
  height: 36px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--control-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--strong-border);
  background: var(--control-bg-hover);
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: inherit;
}

.theme-toggle-track span:not(.theme-toggle-thumb) {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.theme-label-light {
  color: var(--theme-active-text);
}

html[data-theme="dark"] .theme-label-light {
  color: var(--text-muted);
}

html[data-theme="dark"] .theme-label-dark {
  color: var(--theme-active-text);
}

.theme-toggle-thumb {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 999px;
  background: var(--theme-thumb-bg);
  box-shadow: 0 8px 20px hsl(224 42% 9% / 0.16);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), background 160ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(100%);
}

.nav-cta {
  justify-self: end;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 650;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.nav-cta:hover {
  background: var(--cta-bg-hover);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
}

.beam,
.grid-noise {
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.beam-a {
  left: -18%;
  top: 48%;
  width: 72%;
  height: 24%;
  background: radial-gradient(ellipse at center, var(--beam-a-color), transparent 66%);
  filter: blur(18px);
  transform: rotate(-4deg);
  will-change: transform;
}

.beam-b {
  right: -18%;
  top: 42%;
  width: 74%;
  height: 30%;
  background: radial-gradient(ellipse at center, var(--beam-b-color), transparent 68%);
  filter: blur(20px);
  transform: rotate(3deg);
  will-change: transform;
}

.beam-c {
  left: 32%;
  top: 50%;
  width: 36%;
  height: 26%;
  background: radial-gradient(ellipse at center, var(--beam-c-color), transparent 68%);
  filter: blur(20px);
  transform: rotate(-1deg);
}

.grid-noise {
  inset: 0;
  background:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line-strong) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 24%, black 72%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 48px, var(--container));
  min-height: calc(100svh - var(--nav-height));
  margin-inline: auto;
  padding: 40px 0 48px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

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

h1,
h2 {
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(3.7rem, 1.8rem + 6.2vw, 7.2rem);
  line-height: 0.9;
}

.hero-line {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(2rem, 1.35rem + 2.75vw, 3.6rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  max-width: 1050px;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 18px;
}

.truth-banner {
  display: grid;
  width: min(100%, 760px);
  gap: 4px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  text-align: left;
}

.truth-banner span {
  color: var(--text-strong);
  font-weight: 750;
}

.truth-banner small {
  color: var(--text-muted);
  font-size: 12px;
}

.route-visual {
  width: min(100%, 680px);
  margin: 0 0 18px;
  overflow: visible;
}

.route-glyph rect,
.route-glyph circle {
  fill: var(--route-glyph-fill);
  stroke: var(--route-glyph-stroke);
}

.route-glyph path {
  fill: none;
  stroke: var(--route-glyph-path);
  stroke-linecap: round;
  stroke-width: 4;
}

.route-glyph text {
  fill: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  text-anchor: middle;
}

.route-glyph.out rect {
  fill: hsl(47 98% 58% / 0.12);
  stroke: hsl(47 98% 58% / 0.45);
}

.route-glyph.out-b rect {
  fill: hsl(138 78% 45% / 0.12);
  stroke: hsl(138 78% 45% / 0.45);
}

.route-glyph.out-c rect {
  fill: hsl(329 88% 58% / 0.12);
  stroke: hsl(329 88% 58% / 0.46);
}

.route-line {
  fill: none;
  stroke: url("#route-gradient");
  stroke-dasharray: 16 16;
  stroke-linecap: round;
  stroke-width: 3;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: min(100%, 640px);
  padding: 12px 14px;
  border: 1px solid var(--strong-border);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.18);
  color: var(--text-strong);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.command-pill:hover,
.command-pill:focus-within {
  border-color: hsl(138 78% 50% / 0.5);
  box-shadow: var(--glow-primary), inset 0 1px 0 hsl(0 0% 100% / 0.08);
  transform: translateY(-1px);
}

.command-kind {
  padding-right: 14px;
  border-right: 1px solid var(--faint-border);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13px;
}

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

.command-pill code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.command-pill code span,
.success {
  color: var(--success);
}

.copy-button {
  min-width: 52px;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--control-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.copy-button:hover {
  background: var(--control-bg-hover);
}

.copy-button.is-copied {
  background: hsl(138 78% 50% / 0.18);
  color: var(--success);
  transform: scale(0.96);
}

.metric-strip {
  display: grid;
  width: min(100%, 650px);
  margin-top: 22px;
  padding: 16px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
    linear-gradient(90deg, hsl(329 88% 58% / 0.48), hsl(138 78% 50% / 0.38), hsl(47 98% 62% / 0.44)) border-box;
  border: 1px solid transparent;
}

.metric-strip div {
  padding: 0 18px;
  border-left: 1px solid var(--metric-divider);
}

.metric-strip div:first-child {
  border-left: 0;
}

.metric-strip strong {
  display: block;
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.1;
}

.metric-strip span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.terminal-stage {
  width: min(100%, 760px);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-lg);
  background: var(--terminal-bg);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-bottom: 1px solid var(--terminal-top-border);
  color: hsl(209 20% 48%);
  font-family: var(--mono);
  font-size: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.red { background: hsl(4 92% 64%); }
.yellow { background: hsl(42 92% 59%); }
.green { background: hsl(136 59% 49%); }

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: hsl(209 20% 86%);
  font-size: 13px;
  line-height: 1.8;
}

.terminal-line {
  display: block;
  min-height: 1.8em;
}

.terminal-line.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  border-right: 2px solid var(--success);
  transform: translateY(0.18em);
}

.prompt {
  color: var(--success);
}

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

.hot {
  color: var(--terminal-hot);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 7px;
  padding: 2px 7px;
  border: 1px solid hsl(42 92% 59% / 0.34);
  border-radius: 999px;
  background: hsl(42 92% 59% / 0.1);
  color: hsl(42 92% 70%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.live {
  border-color: hsl(145 80% 50% / 0.35);
  background: hsl(145 80% 50% / 0.1);
  color: hsl(145 80% 70%);
}

.wave-preview {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed hsl(42 92% 59% / 0.28);
  color: hsl(42 92% 76%);
}

.section {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: var(--space-8) 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section h2 {
  margin-bottom: 14px;
  font-size: var(--step-3);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 17px;
}

.status-section {
  border-bottom: 1px solid var(--faint-border);
}

.status-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}

.status-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
}

.status-panel h3 {
  margin: 10px 0 8px;
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.15;
}

.status-panel p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.status-list strong {
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.status-list.compact {
  max-height: 236px;
  overflow: auto;
  padding-right: 4px;
}

.status-list.compact li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--faint-border);
}

.wave-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
}

.wave-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
}

.wave-table th,
.wave-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--faint-border);
  text-align: left;
  vertical-align: top;
}

.wave-table th {
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.wave-table td {
  color: var(--text-muted);
  font-size: 13px;
}

.wave-table tr:last-child td {
  border-bottom: 0;
}

.flow-grid,
.ab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.segments {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: var(--control-bg);
}

.segment {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.segment.is-active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 8px 22px hsl(224 42% 9% / 0.08);
}

.flow-copy h3 {
  margin: 28px 0 12px;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.1;
}

.flow-copy p,
.checks {
  color: var(--text-muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 24px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--success);
  border-radius: 999px;
}

.setup-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card);
}

.install-segments {
  width: max-content;
}

.install-mode {
  display: grid;
  gap: 18px;
}

.install-mode[hidden] {
  display: none;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}

.step p:last-child {
  margin-bottom: 0;
}

.step > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: hsl(47 98% 62% / 0.16);
  color: hsl(47 98% 76%);
  font-weight: 750;
}

.step h3 {
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 16px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

.code-row,
.run-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--code-panel-bg);
  border: 1px solid var(--code-panel-border);
}

.code-row code,
.run-command code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--code-text);
  font-size: 12px;
}

.ghost-command {
  border-color: hsl(42 92% 59% / 0.22);
  background: hsl(42 40% 8% / 0.58);
}

.invoke-section {
  border-top: 1px solid var(--faint-border);
}

.how-to-section {
  border-top: 1px solid var(--faint-border);
  background: linear-gradient(180deg, transparent, hsl(43 96% 50% / 0.035));
}

.how-to-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.how-to-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--strong-border);
}

.how-to-steps li:last-child {
  border-bottom: 1px solid var(--strong-border);
}

.how-to-number {
  color: var(--primary);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.08em;
}

.how-to-steps h3,
.how-to-note h3 {
  margin: -4px 0 7px;
  color: var(--text-strong);
  font-size: 23px;
  line-height: 1.12;
}

.how-to-steps p,
.how-to-note p {
  margin: 0;
  color: var(--text-muted);
}

.how-to-note {
  padding: 28px;
  border-left: 3px solid var(--secondary);
  background: var(--surface-muted);
}

.how-to-note h3 { margin-top: 12px; }

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 750;
}

.text-link:hover { color: var(--primary); }

.invoke-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 54px;
  align-items: start;
}

.invoke-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.invoke-rule {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--strong-border);
}

.invoke-rule h3,
.threshold-panel h3 {
  margin: 10px 0 8px;
  color: var(--text-strong);
  font-size: 23px;
  line-height: 1.12;
}

.invoke-rule p,
.threshold-panel p {
  color: var(--text-muted);
}

.invoke-rule code,
.demo-callouts code {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.threshold-panel {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  padding: 22px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
}

.threshold-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.threshold-table th,
.threshold-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--faint-border);
  text-align: left;
  vertical-align: top;
}

.threshold-table th {
  width: 92px;
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.threshold-table td {
  color: var(--text-muted);
  font-size: 14px;
}

.demo-section {
  border-top: 1px solid var(--faint-border);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  align-items: start;
}

.demo-proof,
.dense-gallery {
  min-width: 0;
}

.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.demo-kpis div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
}

.demo-kpis span,
.demo-kpis small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.demo-kpis strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2.4vw, 2.55rem);
  line-height: 1;
}

.demo-chart,
.dense-gallery figure {
  margin: 0;
}

.demo-chart {
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.demo-chart img,
.dense-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-callouts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.demo-callouts p {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--faint-border);
  color: var(--text-muted);
}

.demo-callouts p:last-child {
  border-bottom: 0;
}

.demo-callouts strong {
  color: var(--text-strong);
}

.dense-gallery {
  display: grid;
  gap: 18px;
}

.dense-gallery figure {
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dense-gallery figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--faint-border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}

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

.ab-section {
  border-top: 1px solid var(--faint-border);
  border-bottom: 1px solid var(--faint-border);
}

.ab-summary {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}

.big-number {
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.9;
}

.ab-summary p {
  color: var(--text-muted);
}

.fine-print {
  font-size: 13px;
}

.ab-bars {
  display: grid;
  gap: 18px;
}

.ab-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--faint-border);
}

.ab-row h3 {
  margin-bottom: 5px;
  color: var(--text-strong);
  font-size: 18px;
}

.ab-row p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.bar-pair {
  display: grid;
  gap: 8px;
}

.bar-line {
  display: grid;
  grid-template-columns: 88px 1fr 82px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bar-track);
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--bar-width);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform-origin: left center;
  transform: scaleX(0.08);
}

.bar-fill.docpipe {
  background: linear-gradient(90deg, var(--success), var(--secondary));
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 12px;
}

.row-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--chip-bg);
}

.route-lanes,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.route-lanes article,
.profile-grid article {
  border-top: 1px solid var(--strong-border);
  padding-top: 22px;
}

.lane-kicker {
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.route-lanes h3,
.profile-grid h3 {
  margin: 10px 0 8px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.15;
}

.route-lanes p,
.profile-grid p {
  color: var(--text-muted);
  font-size: 15px;
}

.profile-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-grid article.warn {
  border-color: hsl(42 92% 59% / 0.65);
}

.route-lanes article,
.profile-grid article {
  transition: border-color 150ms ease, transform 150ms ease;
}

.route-lanes article:hover,
.profile-grid article:hover {
  border-color: hsl(47 98% 62% / 0.46);
  transform: translateY(-2px);
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.download-copy {
  max-width: 720px;
}

.download-copy h2 {
  margin-bottom: 12px;
}

.download-copy p:not(.eyebrow) {
  color: var(--text-muted);
}

.uninstall-note {
  max-width: 640px;
  font-size: var(--step--1);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-command {
  max-width: 440px;
}

.frugal-prompt {
  margin-top: 18px;
}

.share-corner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
}

.share-corner-button {
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-strong);
  background: var(--glass-bg-strong);
  box-shadow: 0 10px 30px hsl(260 40% 10% / 0.18);
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.share-corner-button:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
}

.share-dialog {
  position: fixed;
  left: 18px;
  bottom: 74px;
  margin: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--page-bg);
  box-shadow: 0 24px 80px hsl(260 40% 10% / 0.35);
  opacity: 0;
  transform: translateY(calc(100% + 32px));
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0, 0, 1), display 280ms allow-discrete;
}

.share-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

.share-dialog::backdrop { background: transparent; }
.share-dialog h2 { margin: 8px 0 18px; color: var(--text-strong); }
.share-kicker { margin: 0; color: var(--secondary); font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.share-close { position: absolute; top: 10px; right: 14px; border: 0; color: var(--text-muted); background: transparent; font-size: 28px; cursor: pointer; }
.share-qr { display: block; width: min(260px, 100%); height: auto; margin: 0 auto; background: white; image-rendering: pixelated; }
.share-url { overflow-wrap: anywhere; color: var(--text-muted); font: 12px/1.45 var(--mono); text-align: center; }
.share-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-actions button { font: inherit; cursor: pointer; }
.share-status { margin: 10px 0 0; color: var(--success); font-size: 12px; text-align: center; }
.share-note { margin: 18px 0 0; color: var(--text-muted); font-size: 12px; text-align: center; }

.download-mirror-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, hsl(187 84% 40% / 0.14), transparent 28rem),
    linear-gradient(180deg, var(--page-bg), var(--surface-raised));
}

.download-mirror-shell {
  margin: 0 auto;
  max-width: 1040px;
  padding: 48px 20px 72px;
}

.mirror-back-link {
  color: var(--text-muted);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 64px;
  text-decoration: none;
}

.mirror-hero {
  max-width: 760px;
  padding-bottom: 36px;
}

.mirror-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.96;
  margin: 0 0 18px;
}

.mirror-hero p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.mirror-downloads,
.mirror-next-steps,
.mirror-integrity {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.mirror-downloads h2,
.mirror-next-steps h2,
.mirror-integrity h2 {
  font-size: 1.1rem;
  margin: 0 0 18px;
}

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

.mirror-download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
}

.mirror-download-card span {
  font-size: 1.05rem;
  font-weight: 900;
}

.mirror-download-card code {
  color: var(--text-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.mirror-integrity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.mirror-next-steps p {
  color: var(--text-muted);
  max-width: 760px;
}

.mirror-command-stack {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.mirror-integrity pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

.mirror-integrity code {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 750;
}

.primary-link {
  background: var(--cta-bg);
  color: var(--cta-text);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.primary-link:hover {
  background: var(--cta-bg-hover);
  box-shadow: var(--glow-primary);
}

.secondary-link {
  border: 1px solid var(--strong-border);
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-top: 1px solid var(--faint-border);
  color: var(--text-muted);
  font-size: 13px;
}

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

@keyframes drift-a {
  from { opacity: 0.62; }
  to { opacity: 0.9; }
}

@keyframes drift-b {
  from { opacity: 0.66; }
  to { opacity: 0.94; }
}

@keyframes grow-bar {
  from { transform: scaleX(0.08); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms ease, transform 420ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready .hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .route-line {
    animation: route-flow 2.6s linear infinite;
  }

  .route-glyph.out {
    animation: route-pulse 2.8s ease-in-out infinite;
  }

  .route-glyph.out-b {
    animation-delay: 180ms;
  }

  .route-glyph.out-c {
    animation-delay: 360ms;
  }

  .ab-bars.is-visible .bar-fill {
    animation: grow-bar 900ms cubic-bezier(0.2, 0, 0, 1) both;
  }
}

@keyframes route-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -64; }
}

@keyframes route-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .flow-grid,
  .ab-grid,
  .download-section,
  .status-layout,
  .invoke-layout,
  .demo-layout,
  .how-to-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .route-visual {
    max-width: 680px;
  }

  .ab-summary {
    position: static;
  }

  .threshold-panel {
    position: static;
  }

  .route-lanes,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-nav {
    height: 56px;
    padding: 0 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .section {
    width: min(100% - 32px, var(--container));
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .command-pill {
    width: 100%;
    gap: 10px;
  }

  .command-kind {
    display: none;
  }

  .metric-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-strip strong {
    font-size: 18px;
  }

  .metric-strip div {
    padding: 0 8px;
  }

  .truth-banner {
    text-align: center;
  }

  pre {
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .terminal-stage {
    margin-top: 28px;
  }

  .route-visual {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .route-lanes,
  .profile-grid,
  .invoke-rules,
  .demo-kpis,
  .dense-sheets {
    grid-template-columns: 1fr;
  }

  .status-panel {
    padding: 16px;
  }

  .bar-line {
    grid-template-columns: 72px 1fr 64px;
  }

  .threshold-table th,
  .threshold-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .threshold-table th {
    border-bottom: 0;
  }

  .threshold-table td {
    padding-top: 0;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 16px;
  }

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

  .share-dialog {
    left: 16px;
    bottom: 70px;
    width: calc(100vw - 32px);
  }
}

@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;
  }

  .bar-fill {
    transform: scaleX(1);
  }
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 20px;
}

.hero-copy strong {
  color: var(--text-strong);
}

.why-note {
  padding: 14px 16px;
  border-left: 3px solid var(--secondary);
  background: var(--surface-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
}

.why-note strong {
  color: var(--text-strong);
}

/* Savings calculator */
.calculator-section {
  border-top: 1px solid var(--faint-border);
}

.calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: 32px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card);
}

.calc-controls {
  display: grid;
  gap: 28px;
  align-content: start;
}

.calc-field {
  display: grid;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-strong);
  font-weight: 650;
  font-size: 15px;
}

.calc-label-row output {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 750;
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 12px;
}

.calc-panel input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.calc-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.calc-panel input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.calc-panel input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid var(--cta-text);
  border-radius: 999px;
  background: var(--cta-bg);
  box-shadow: 0 4px 14px hsl(224 42% 9% / 0.3);
}

.calc-panel input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--cta-text);
  border-radius: 999px;
  background: var(--cta-bg);
  box-shadow: 0 4px 14px hsl(224 42% 9% / 0.3);
}

.calc-panel input[type="range"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 999px;
}

.calc-results {
  display: grid;
  gap: 20px;
  align-content: start;
}

.calc-bars {
  display: grid;
  gap: 10px;
}

.calc-bars .bar-line {
  grid-template-columns: 72px 1fr 96px;
}

.calc-bars .bar-line span:last-child {
  text-align: right;
  font-family: var(--mono);
  color: var(--text-strong);
}

.calc-bars .bar-fill {
  transform: none;
  transition: width 220ms ease;
  width: var(--bar-width, 8%);
}

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

.calc-kpis div {
  padding: 14px 16px;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.calc-kpis span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.calc-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--text-strong);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.calc-verdict {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(138 78% 45% / 0.35);
  background: hsl(138 78% 45% / 0.1);
  color: var(--text-strong);
  font-weight: 650;
}

.calc-verdict.is-warning {
  border-color: hsl(42 92% 55% / 0.45);
  background: hsl(42 92% 55% / 0.12);
}

.how-to-note .threshold-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

@media (max-width: 980px) {
  .calc-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .calc-panel {
    padding: 20px;
  }

  .calc-kpis {
    grid-template-columns: 1fr;
  }

  .calc-bars .bar-line {
    grid-template-columns: 64px 1fr 84px;
  }

  .hero-ctas {
    width: 100%;
  }

  .hero-ctas .primary-link,
  .hero-ctas .secondary-link {
    flex: 1;
    justify-content: center;
  }
}
