:root {
  --black: #050505;
  --black-soft: #0b0b0c;
  --paper: #f2f0e9;
  --paper-bright: #faf9f5;
  --blue: #3055fc;
  --blue-deep: #1c3fe0;
  --white: #f7f7f4;
  --gray: #989899;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(5, 5, 5, 0.17);
  --panel: #ffffff;
  --ink: #182225;
  --muted: #647174;
  --line: #d9e1e3;
  --accent: #3055fc;
  --accent-soft: #e9edff;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --page: min(1400px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--blue);
  color: white;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--paper);
  color: var(--black);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 76px;
  left: 0;
  padding: 0 32px;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 240ms ease, transform 240ms ease;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.95);
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 600;
  gap: 11px;
  letter-spacing: -0.03em;
  justify-self: start;
}

.logo-crop {
  background: #000;
  display: block;
  height: 31px;
  overflow: hidden;
  position: relative;
  width: 31px;
}

.logo-crop img {
  height: 58px;
  left: -14px;
  max-width: none;
  position: absolute;
  top: -14px;
  width: 58px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 36px;
}

.site-nav a,
.header-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: #aaa;
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  background: var(--blue);
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  gap: 26px;
  justify-self: end;
  padding: 11px 14px;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--white);
  color: var(--black);
}

.menu-toggle {
  background: none;
  border: 0;
  display: none;
}

.hero {
  align-items: end;
  background:
    radial-gradient(circle at 75% 54%, rgba(48, 85, 252, 0.14), transparent 24%),
    var(--black);
  display: grid;
  grid-template-columns: minmax(470px, 0.78fr) minmax(540px, 1.22fr);
  min-height: 940px;
  overflow: hidden;
  padding: 154px max(32px, calc((100vw - 1400px) / 2)) 86px;
  position: relative;
}

.hero-grid,
.cta-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent 2%, black 34%, black 72%, transparent);
  pointer-events: none;
  position: absolute;
}

.hero-orbit {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  height: 660px;
  pointer-events: none;
  position: absolute;
  right: -250px;
  top: 120px;
  width: 660px;
}

.orbit-two {
  height: 980px;
  right: -410px;
  top: -20px;
  width: 980px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 45px;
  position: relative;
  z-index: 2;
}

.kicker {
  align-items: center;
  color: #a6a6a6;
  display: flex;
  font-family: var(--mono);
  font-size: 10px;
  gap: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--blue);
}

.kicker.dark {
  color: #686866;
}

.hero h1 {
  font-size: clamp(48px, 5.25vw, 82px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 38px 0 42px;
}

.hero h1 em,
.final-cta h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-intro {
  color: #a7a7aa;
  font-size: 16px;
  line-height: 1.75;
  max-width: 510px;
}

.hero-actions,
.final-actions {
  align-items: center;
  display: flex;
  gap: 30px;
  margin-top: 42px;
}

.button {
  align-items: center;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  gap: 54px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  min-width: 190px;
  padding: 16px 18px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: #4768ff;
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.button-light:hover {
  background: var(--black);
  color: white;
}

.text-link {
  align-items: center;
  border-bottom: 1px solid #555;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  gap: 30px;
  letter-spacing: 0.06em;
  padding: 0 0 7px;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

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

.hero-product {
  align-self: center;
  min-width: 0;
  padding-left: clamp(24px, 5vw, 92px);
  position: relative;
  z-index: 2;
}

.product-frame {
  background: #080809;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  max-width: 760px;
  transform: perspective(1500px) rotateY(-2deg) rotateX(1deg);
}

.frame-top,
.frame-command,
.trace-meta {
  align-items: center;
  display: grid;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.frame-top {
  border-bottom: 1px solid var(--line-dark);
  color: #777;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 16px;
}

.frame-top > span:nth-child(2) {
  justify-self: center;
}

.frame-top > span:last-child {
  justify-self: end;
}

.frame-product,
.live {
  align-items: center;
  display: flex;
  gap: 8px;
}

.frame-product {
  color: #d6d6d6;
}

.frame-product i,
.live i {
  background: var(--blue);
  display: inline-block;
  height: 5px;
  width: 5px;
}

.live {
  color: #aeb9ff;
}

.live i {
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(48, 85, 252, 0.13);
}

.trace-canvas {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  min-height: 440px;
}

.trace-meta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #6e6e70;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 13px 18px;
}

.trace-meta span:nth-child(2) {
  justify-self: center;
}

.trace-meta span:last-child {
  justify-self: end;
}

.trace-graph {
  min-height: 392px;
  position: relative;
}

.trace-graph svg {
  height: 100%;
  inset: 20px 0 0;
  overflow: visible;
  position: absolute;
  width: 100%;
}

.path {
  fill: none;
  stroke-width: 1.5;
}

.path-muted,
.path-branch {
  stroke: #353538;
}

.path-active {
  stroke: var(--blue);
  stroke-dasharray: 8 6;
  animation: dash 12s linear infinite;
}

.node {
  fill: #080809;
  stroke: #727275;
  stroke-width: 2;
}

.node-alert {
  fill: var(--blue);
  filter: drop-shadow(0 0 12px rgba(48, 85, 252, 0.8));
  stroke: white;
}

@keyframes dash {
  to { stroke-dashoffset: -120; }
}

.node-label {
  color: #777;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  position: absolute;
}

.label-http { left: 4.7%; top: 20%; }
.label-auth { left: 21%; top: 20%; }
.label-cache { left: 29%; top: 35%; }
.label-db { left: 61%; top: 50%; }

.divergence-card {
  background: #0e0e10;
  border: 1px solid rgba(48, 85, 252, 0.65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 8px;
  left: 55%;
  padding: 16px;
  position: absolute;
  top: 15%;
  width: min(240px, 38%);
}

.divergence-card span,
.divergence-card small {
  color: #76767b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.divergence-card strong {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.frame-command {
  border-top: 1px solid var(--line-dark);
  color: #777;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 15px 16px;
}

.frame-command > span {
  color: var(--blue);
}

.frame-command code {
  color: #c7c7ca;
}

.copy-command {
  background: transparent;
  border: 0;
  color: #68686b;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 4px;
}

.copy-command:hover {
  color: white;
}

.hero-index {
  bottom: 28px;
  color: #414144;
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  justify-content: space-between;
  left: max(32px, calc((100vw - 1400px) / 2));
  letter-spacing: 0.1em;
  position: absolute;
  right: max(32px, calc((100vw - 1400px) / 2));
}

.principles {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  color: var(--black);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 max(32px, calc((100vw - 1400px) / 2));
}

.principle {
  border-left: 1px solid var(--line-light);
  display: grid;
  min-height: 150px;
  padding: 26px 28px;
}

.principle:last-child {
  border-right: 1px solid var(--line-light);
}

.principle span,
.principle small {
  color: #777773;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle strong {
  align-self: end;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-pad {
  padding: 140px max(32px, calc((100vw - 1400px) / 2));
}

.manifesto {
  background: var(--paper);
  color: var(--black);
}

.section-label {
  align-items: center;
  display: grid;
  font-family: var(--mono);
  font-size: 8px;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  letter-spacing: 0.1em;
}

.section-label i {
  background: var(--line-light);
  display: block;
  height: 1px;
}

.manifesto-copy {
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  margin-top: 95px;
}

.statement {
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.02;
  max-width: 930px;
}

.statement em {
  color: var(--blue);
  font-style: normal;
}

.manifesto-detail {
  align-self: end;
  border-left: 1px solid var(--line-light);
  color: #5d5d59;
  display: grid;
  font-size: 14px;
  gap: 24px;
  line-height: 1.75;
  padding-left: 28px;
}

.guided-demo {
  background:
    radial-gradient(circle at 76% 52%, rgba(48, 85, 252, 0.12), transparent 28%),
    var(--black);
}

.demo-heading {
  align-items: end;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 0.52fr;
}

.demo-heading h2 {
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin-top: 30px;
}

.demo-heading > p {
  color: #88888b;
  font-size: 14px;
  line-height: 1.8;
  max-width: 490px;
}

.demo-shell {
  background: #09090a;
  border: 1px solid rgba(255, 255, 255, 0.19);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.48);
  margin-top: 88px;
  min-height: 730px;
}

.demo-disclaimer {
  color: #77777b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  text-transform: uppercase;
}

.verification-results .demo-disclaimer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  padding: 12px 0;
}

.demo-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: #747477;
  display: grid;
  font-family: var(--mono);
  font-size: 8px;
  grid-template-columns: 1fr 1fr 1fr;
  letter-spacing: 0.09em;
  min-height: 48px;
  padding: 0 18px;
}

.demo-brand,
.demo-status {
  align-items: center;
  display: flex;
  gap: 9px;
}

.demo-brand {
  color: #d1d1d3;
}

.demo-brand i {
  background: var(--blue);
  height: 6px;
  width: 6px;
}

.demo-session {
  justify-self: center;
}

.demo-status {
  color: #a9b5ff;
  justify-self: end;
}

.demo-status i {
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(48, 85, 252, 0.13);
  height: 5px;
  width: 5px;
}

.demo-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 616px;
}

.demo-nav {
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 18px;
}

.demo-nav > p,
.panel-inspector > p {
  color: #66666a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  margin: 0 8px 18px;
}

.demo-step {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #66666a;
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: 24px 1fr;
  min-height: 78px;
  padding: 10px 8px;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
  width: 100%;
}

.demo-step:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-step > span:first-child {
  font-family: var(--mono);
  font-size: 8px;
}

.demo-step > span:last-child {
  display: grid;
  gap: 4px;
}

.demo-step strong {
  font-size: 12px;
  font-weight: 500;
}

.demo-step small {
  color: #5c5c60;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.demo-step:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #ddd;
}

.demo-step.is-active {
  background: rgba(48, 85, 252, 0.1);
  color: white;
}

.demo-step.is-active > span:first-child,
.demo-step.is-active small {
  color: #8498ff;
}

.demo-nav-note {
  border-left: 1px solid var(--blue);
  margin: auto 8px 4px;
  padding-left: 12px;
}

.demo-nav-note span {
  color: #646468;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.demo-nav-note p {
  color: #97979a;
  font-size: 9px;
  line-height: 1.55;
  margin-top: 8px;
}

.demo-stage {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.demo-panel {
  animation: panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  grid-template-rows: auto 1fr;
  inset: 0;
  min-height: 616px;
  position: absolute;
  width: 100%;
}

.demo-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-copy {
  border-bottom: 1px solid var(--line-dark);
  grid-column: 1;
  padding: 34px 38px 30px;
}

.panel-index {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.panel-copy h3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-top: 14px;
}

.panel-copy > p:last-child {
  color: #7d7d81;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 13px;
  max-width: 570px;
}

.panel-inspector {
  border-left: 1px solid var(--line-dark);
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 34px 20px;
}

.panel-inspector > p {
  margin-left: 0;
}

.panel-inspector dl {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.panel-inspector dl div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
}

.panel-inspector dt,
.panel-inspector dd {
  font-family: var(--mono);
  font-size: 8px;
  margin: 0;
}

.panel-inspector dt {
  color: #68686c;
}

.panel-inspector dd {
  color: #c0c0c3;
}

.inspector-log {
  display: grid;
  gap: 12px 9px;
  grid-template-columns: auto 1fr auto;
  margin-top: 34px;
}

.inspector-log span,
.inspector-log code,
.inspector-log small {
  font-family: var(--mono);
  font-size: 7px;
}

.inspector-log span,
.inspector-log small {
  color: #5f5f63;
}

.inspector-log code {
  color: #96969a;
}

.inspector-log .alert {
  color: #8ba0ff;
}

.incident-map {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  grid-column: 1;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.incident-map svg {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.incident-map path {
  fill: none;
  stroke: #39393c;
  stroke-width: 1.5;
}

.incident-map .signal-path {
  stroke: var(--blue);
  stroke-dasharray: 8 7;
  animation: dash 12s linear infinite;
}

.incident-node {
  display: grid;
  font-family: var(--mono);
  gap: 4px;
  position: absolute;
  top: 36%;
  z-index: 2;
}

.incident-node i {
  background: #09090a;
  border: 1px solid #6e6e72;
  border-radius: 50%;
  height: 14px;
  margin-bottom: 7px;
  width: 14px;
}

.incident-node span {
  color: #b5b5b8;
  font-size: 8px;
}

.incident-node small {
  color: #59595d;
  font-size: 7px;
}

.incident-node.is-fault i {
  background: var(--blue);
  border-color: white;
  box-shadow: 0 0 0 9px rgba(48, 85, 252, 0.12), 0 0 24px rgba(48, 85, 252, 0.6);
}

.node-client { left: 8%; }
.node-api { left: 26%; }
.node-cache { left: 46%; }
.node-queue { left: 65%; }
.node-database { left: 84%; }

.incident-event {
  background: #101012;
  border: 1px solid rgba(48, 85, 252, 0.65);
  display: grid;
  gap: 7px;
  left: 47%;
  padding: 14px;
  position: absolute;
  top: 63%;
  width: 230px;
}

.incident-event span,
.incident-event small {
  color: #6e6e72;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.incident-event strong {
  font-size: 10px;
  font-weight: 500;
}

.replay-comparison,
.divergence-view,
.verification-view {
  grid-column: 1;
  min-height: 400px;
}

.replay-comparison {
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr 74px 1fr;
  padding: 42px;
}

.replay-column {
  border: 1px solid var(--line-dark);
  padding: 18px;
}

.comparison-head {
  display: flex;
  font-family: var(--mono);
  justify-content: space-between;
  margin-bottom: 25px;
}

.comparison-head span {
  color: #cacacd;
  font-size: 8px;
}

.comparison-head small {
  color: #5f5f63;
  font-size: 7px;
}

.event-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr 45px;
  margin-top: 19px;
}

.event-row span,
.event-row small {
  color: #646468;
  font-family: var(--mono);
  font-size: 7px;
}

.event-row i {
  background: linear-gradient(90deg, var(--blue) var(--length), #2e2e32 var(--length));
  display: block;
  height: 2px;
}

.replay-lock {
  display: grid;
  font-family: var(--mono);
  gap: 5px;
  justify-items: center;
}

.replay-lock::before,
.replay-lock::after {
  background: #37373a;
  content: "";
  height: 70px;
  width: 1px;
}

.replay-lock span {
  color: #aebaff;
  font-size: 12px;
}

.replay-lock small {
  color: #5f5f63;
  font-size: 6px;
}

.replay-command {
  border-left: 1px solid var(--blue);
  display: grid;
  gap: 9px;
  margin-top: 35px;
  padding-left: 12px;
}

.replay-command span,
.replay-command code {
  font-family: var(--mono);
  font-size: 7px;
}

.replay-command span {
  color: #5f5f63;
}

.replay-command code {
  color: #a8a8ac;
  overflow-wrap: anywhere;
}

.divergence-view {
  display: grid;
  padding: 46px 38px;
}

.diff-axis,
.diff-row {
  align-items: center;
  display: grid;
  font-family: var(--mono);
  grid-template-columns: 45px 1fr 40px 1fr 110px;
}

.diff-axis {
  color: #626266;
  font-size: 7px;
  grid-template-columns: 45px 1fr 40px 1fr 110px;
  letter-spacing: 0.07em;
  padding: 0 14px 13px;
}

.diff-axis span:first-child {
  grid-column: 2;
}

.diff-axis span:last-child {
  grid-column: 4;
}

.diff-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #929296;
  font-size: 8px;
  min-height: 65px;
  padding: 0 14px;
}

.diff-row > span {
  color: #55555a;
}

.diff-row > i {
  background: #39393c;
  height: 1px;
  margin: 0 10px;
}

.diff-row > small {
  color: #5f5f63;
  font-size: 6px;
  justify-self: end;
}

.diff-row.is-divergent {
  background: rgba(48, 85, 252, 0.1);
  border-color: rgba(48, 85, 252, 0.6);
  color: white;
}

.diff-row.is-divergent > i {
  background: var(--blue);
}

.diff-row.is-divergent > small {
  color: #9cadff;
}

.diff-row.is-muted {
  opacity: 0.5;
}

.cause-score {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 4px;
  padding: 14px 0 22px;
}

.cause-score strong {
  color: #aebaff;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 400;
}

.cause-score span,
.cause-copy small {
  color: #616165;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.cause-copy {
  margin-top: 28px;
}

.cause-copy p {
  color: #929296;
  font-size: 10px;
  line-height: 1.65;
  margin-top: 10px;
}

.verification-view {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: 0.7fr 1.3fr;
  padding: 38px;
}

.verification-ring {
  aspect-ratio: 1;
  margin: auto;
  max-width: 180px;
  position: relative;
}

.verification-ring svg {
  height: 100%;
  transform: rotate(-90deg);
  width: 100%;
}

.verification-ring circle {
  fill: none;
  stroke: #29292c;
  stroke-width: 3;
}

.verification-ring .ring-progress {
  stroke: var(--blue);
  stroke-dasharray: 465;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 7px rgba(48, 85, 252, 0.65));
}

.verification-ring > div {
  display: grid;
  inset: 0;
  place-content: center;
  position: absolute;
  text-align: center;
}

.verification-ring strong {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
}

.verification-ring span {
  color: #66666a;
  font-family: var(--mono);
  font-size: 6px;
  margin-top: 5px;
}

.verification-results {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-results div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  font-family: var(--mono);
  font-size: 8px;
  gap: 12px;
  grid-template-columns: 7px 1fr auto;
  min-height: 57px;
}

.verification-results i {
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(48, 85, 252, 0.12);
  height: 5px;
  width: 5px;
}

.verification-results span {
  color: #a4a4a7;
}

.verification-results small {
  color: #8296fa;
  font-size: 7px;
}

.evidence-seal {
  border: 1px solid rgba(48, 85, 252, 0.6);
  display: grid;
  gap: 9px;
  margin-top: 24px;
  padding: 22px;
}

.evidence-seal span,
.evidence-seal strong,
.evidence-hash small,
.evidence-hash code {
  font-family: var(--mono);
}

.evidence-seal span {
  color: #8da0ff;
  font-size: 8px;
}

.evidence-seal strong {
  font-size: 19px;
  font-weight: 400;
}

.evidence-hash {
  display: grid;
  gap: 8px;
  margin-top: 25px;
}

.evidence-hash small {
  color: #5f5f63;
  font-size: 7px;
}

.evidence-hash code {
  color: #9a9a9e;
  font-size: 8px;
}

.demo-controls {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto auto;
  min-height: 66px;
  padding: 0 16px 0 236px;
}

.demo-progress {
  background: #2b2b2e;
  height: 1px;
  overflow: hidden;
  width: 100%;
}

.demo-progress i {
  background: var(--blue);
  display: block;
  height: 1px;
  transition: width 320ms ease;
  width: var(--demo-progress);
}

.demo-count {
  color: #55555a;
  font-family: var(--mono);
  font-size: 8px;
}

.demo-count strong {
  color: #aebaff;
  font-weight: 400;
}

.demo-buttons {
  display: flex;
}

.demo-buttons button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #b6b6b9;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  min-width: 105px;
  padding: 11px 14px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.demo-buttons button + button {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  margin-left: 8px;
}

.demo-buttons button:hover:not(:disabled) {
  background: white;
  border-color: white;
  color: var(--black);
}

.demo-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.system-map {
  background: var(--paper-bright);
  color: var(--black);
}

.section-head {
  align-items: end;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 0.52fr;
}

.section-head h2,
.workflow-intro h2,
.evidence-copy h2 {
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin-top: 30px;
}

.section-head > p {
  color: #62625f;
  font-size: 14px;
  line-height: 1.8;
  max-width: 490px;
}

.layer-map {
  border: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 130px 1fr 220px;
  min-height: 570px;
  margin-top: 90px;
}

.map-rail {
  border-right: 1px solid var(--line-light);
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.map-rail span {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  color: #73736f;
  display: flex;
  font-family: var(--mono);
  font-size: 8px;
  justify-content: center;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.map-rail span:last-child {
  border-bottom: 0;
}

.map-stage {
  background:
    linear-gradient(rgba(5, 5, 5, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  overflow: hidden;
  position: relative;
}

.map-line {
  background: #aaa9a3;
  height: 1px;
  position: absolute;
  transform-origin: left center;
}

.line-a { left: 10%; top: 24%; width: 72%; }
.line-b { left: 25%; top: 24%; transform: rotate(28deg); width: 53%; }
.line-c { left: 51%; top: 54%; transform: rotate(-25deg); width: 34%; }

.map-node {
  display: grid;
  font-family: var(--mono);
  gap: 3px;
  position: absolute;
  z-index: 2;
}

.map-node i {
  background: var(--paper-bright);
  border: 1px solid #6d6d68;
  border-radius: 50%;
  height: 13px;
  margin-bottom: 5px;
  width: 13px;
}

.map-node span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.map-node small {
  color: #888883;
  font-size: 7px;
}

.map-node.active i {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 8px rgba(48, 85, 252, 0.13);
}

.n1 { left: 9%; top: 21%; }
.n2 { left: 31%; top: 21%; }
.n3 { left: 51%; top: 51%; }
.n4 { left: 70%; top: 21%; }
.n5 { left: 80%; top: 51%; }
.n6 { left: 70%; top: 76%; }

.map-annotation {
  background: var(--blue);
  color: white;
  display: grid;
  font-family: var(--mono);
  gap: 5px;
  grid-template-columns: auto 1fr;
  left: 54%;
  padding: 12px;
  position: absolute;
  top: 64%;
  width: 215px;
}

.map-annotation span {
  font-size: 8px;
}

.map-annotation p {
  font-size: 8px;
  line-height: 1.5;
}

.map-stats {
  border-left: 1px solid var(--line-light);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.map-stats div {
  border-bottom: 1px solid var(--line-light);
  display: grid;
  padding: 28px;
}

.map-stats div:last-child {
  border-bottom: 0;
}

.map-stats small {
  color: #777773;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.map-stats strong {
  align-self: end;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.workflow {
  background: var(--black);
}

.workflow-intro {
  margin-bottom: 90px;
}

.workflow-steps {
  border-bottom: 1px solid var(--line-dark);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.workflow-step {
  border-right: 1px solid var(--line-dark);
  min-height: 590px;
  padding: 27px 32px 38px;
}

.workflow-step:last-child {
  border-right: 0;
}

.step-number {
  color: #717174;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.step-visual {
  align-items: center;
  display: flex;
  height: 270px;
  justify-content: center;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
}

.capture-visual i {
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(48, 85, 252, 0.7);
  height: 13px;
  width: 13px;
}

.pulse-ring {
  border: 1px solid rgba(48, 85, 252, 0.55);
  border-radius: 50%;
  height: 110px;
  position: absolute;
  width: 110px;
}

.pulse-ring.second {
  border-color: rgba(255, 255, 255, 0.13);
  height: 210px;
  width: 210px;
}

.replay-visual {
  color: #aaa;
  font-family: var(--mono);
  font-size: 12px;
  gap: 25px;
}

.replay-visual div {
  background:
    repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px);
  height: 1px;
  position: relative;
  width: 55%;
}

.replay-visual div::after {
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--blue);
  border-top: 4px solid transparent;
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
}

.resolve-visual .resolve-line {
  background: #37373a;
  height: 1px;
  width: 65%;
}

.resolve-visual i {
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(48, 85, 252, 0.14);
  height: 12px;
  left: 46%;
  position: absolute;
  width: 12px;
}

.resolve-visual span {
  border: 1px solid #49494b;
  color: var(--blue);
  display: grid;
  font-family: var(--mono);
  height: 42px;
  place-items: center;
  position: absolute;
  right: 13%;
  width: 42px;
}

.workflow-step h3 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.3;
  max-width: 310px;
}

.workflow-step p {
  color: #858588;
  font-size: 12px;
  line-height: 1.75;
  margin-top: 20px;
  max-width: 330px;
}

.evidence {
  background: var(--paper);
  color: var(--black);
}

.evidence-layout {
  align-items: center;
  display: grid;
  gap: 10%;
  grid-template-columns: 0.8fr 1.2fr;
}

.evidence-copy > p:not(.kicker) {
  color: #5c5c58;
  font-size: 14px;
  line-height: 1.8;
  margin: 34px 0;
  max-width: 440px;
}

.dark-link {
  border-color: #999;
}

.evidence-document {
  background: #fbfaf6;
  border: 1px solid #c9c7bf;
  box-shadow: 24px 24px 0 #dfddd5;
  padding: 34px;
}

.document-head {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  padding-bottom: 26px;
}

.document-mark {
  background: var(--blue);
  color: white;
  display: grid;
  font-family: var(--mono);
  height: 38px;
  place-items: center;
  width: 38px;
}

.document-head > div:nth-child(2),
.document-title,
.document-grid > div,
.signature > div:last-child {
  display: grid;
  gap: 5px;
}

.document-head strong,
.document-head small,
.verified,
.document-title small,
.document-grid small,
.signature small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.document-head small,
.document-title small,
.document-grid small,
.signature small {
  color: #7a7974;
}

.verified {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 7px 9px;
}

.document-title {
  padding: 38px 0;
}

.document-title strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.document-grid {
  border: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.document-grid > div {
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  padding: 18px;
}

.document-grid > div:nth-child(2n) {
  border-right: 0;
}

.document-grid > div:nth-child(n + 3) {
  border-bottom: 0;
}

.document-grid code,
.signature code {
  font-family: var(--mono);
  font-size: 11px;
}

.signature {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  margin-top: 32px;
}

.signature-lines {
  align-items: end;
  display: flex;
  gap: 4px;
  height: 40px;
}

.signature-lines i {
  background: var(--blue);
  display: block;
  height: 15%;
  width: 2px;
}

.signature-lines i:nth-child(2) { height: 70%; }
.signature-lines i:nth-child(3) { height: 38%; }
.signature-lines i:nth-child(4) { height: 100%; }
.signature-lines i:nth-child(5) { height: 54%; }
.signature-lines i:nth-child(6) { height: 84%; }
.signature-lines i:nth-child(7) { height: 30%; }
.signature-lines i:nth-child(8) { height: 62%; }

.company {
  background: var(--paper-bright);
  border-top: 1px solid var(--line-light);
  color: var(--black);
}

.company-grid {
  display: grid;
  gap: 7%;
  grid-template-columns: 0.36fr 0.85fr 0.79fr;
}

.company-index {
  display: grid;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.company-index small {
  align-self: end;
  color: #777773;
  font-size: 8px;
}

.company-copy h2 {
  font-size: clamp(36px, 4vw, 59px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.company-copy p {
  color: #62625f;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 38px;
  max-width: 500px;
}

.product-ledger {
  align-self: end;
  border-top: 1px solid var(--line-light);
}

.ledger-row {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  color: #8a8a85;
  display: grid;
  font-family: var(--mono);
  font-size: 8px;
  gap: 12px;
  grid-template-columns: 30px 1fr auto 8px;
  min-height: 70px;
}

.ledger-row strong {
  font-size: 10px;
  font-weight: 400;
}

.ledger-row i {
  background: #aaa9a3;
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.ledger-row.current {
  color: var(--black);
}

.ledger-row.current i {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(48, 85, 252, 0.12);
}

.final-cta {
  align-items: center;
  background: var(--blue);
  display: flex;
  min-height: 700px;
  overflow: hidden;
  padding: 120px max(32px, calc((100vw - 1400px) / 2));
  position: relative;
}

.final-cta .cta-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  mask-image: none;
}

.final-copy {
  position: relative;
  z-index: 2;
}

.final-cta .kicker,
.final-cta .kicker span {
  color: rgba(255, 255, 255, 0.65);
}

.final-cta h2 {
  font-size: clamp(51px, 7.1vw, 102px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.98;
  margin-top: 40px;
}

.final-cta h2 em {
  color: var(--black);
}

.final-cta .text-link {
  border-color: rgba(255, 255, 255, 0.55);
}

.site-footer {
  background: var(--black);
  display: grid;
  gap: 100px;
  grid-template-columns: 1fr 1fr;
  padding: 90px max(32px, calc((100vw - 1400px) / 2)) 28px;
}

.footer-brand p {
  color: #777;
  font-size: 12px;
  margin-top: 24px;
}

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

.footer-links div {
  display: grid;
  gap: 12px;
}

.footer-links small,
.footer-base {
  color: #5f5f62;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: #b4b4b5;
  font-size: 12px;
}

.footer-links a:hover {
  color: white;
}

.footer-base {
  border-top: 1px solid var(--line-dark);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 110ms; }
.reveal[data-delay="2"] { transition-delay: 220ms; }

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

/* Generated documentation keeps a restrained companion layout. */
.docs-page {
  background: var(--paper-bright);
  color: var(--black);
}

.docs-page .workflow {
  background: transparent;
  color: inherit;
}

.docs-shell-header {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 32px;
}

.docs-brand {
  font-size: 18px;
  font-weight: 600;
}

.docs-shell-header nav a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 80px 32px 120px;
}

.docs-hero {
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 50px;
  padding-bottom: 60px;
}

.docs-hero > p:first-child {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 400;
  letter-spacing: -0.06em;
  margin: 22px 0;
}

.docs-hero p:last-child {
  color: #666;
  max-width: 660px;
}

.docs-article {
  max-width: 820px;
}

.docs-article h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 24px 0 50px;
}

.docs-article h2 {
  border-top: 1px solid var(--line-light);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 60px 0 22px;
  padding-top: 24px;
}

.docs-article h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 36px 0 14px;
}

.docs-article p,
.docs-article li {
  color: #4f4f4c;
  line-height: 1.8;
}

.docs-article a {
  border-bottom: 1px solid var(--blue);
}

.docs-article pre {
  background: var(--black-soft);
  color: #dededb;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  margin: 24px 0;
  overflow-x: auto;
  padding: 20px;
}

.docs-article code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.docs-meta {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.docs-group {
  border-top: 1px solid var(--black);
  padding: 24px 0;
}

.docs-group h2 {
  font-size: 22px;
  font-weight: 500;
}

.docs-group ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.docs-group li {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
}

.docs-group li span {
  color: #777;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 180px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    padding: 70px 0 50px;
  }

  .product-frame {
    margin-left: auto;
    max-width: 820px;
    width: 90%;
  }

  .manifesto-copy,
  .section-head,
  .evidence-layout,
  .demo-heading {
    gap: 60px;
    grid-template-columns: 1fr 0.65fr;
  }

  .company-grid {
    gap: 50px;
    grid-template-columns: 1fr 2fr;
  }

  .product-ledger {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100vw - 40px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 68px;
    padding: 0 20px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    cursor: pointer;
    display: grid;
    gap: 6px;
    padding: 10px 0 10px 10px;
  }

  .menu-toggle > span:not(.sr-only) {
    background: white;
    display: block;
    height: 1px;
    transition: transform 180ms ease;
    width: 23px;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    align-items: flex-start;
    background: var(--black);
    display: none;
    flex-direction: column;
    gap: 0;
    inset: 68px 0 0;
    padding: 48px 20px;
    position: fixed;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--sans);
    font-size: 32px;
    letter-spacing: -0.04em;
    padding: 22px 0;
    text-transform: none;
    width: 100%;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 140px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 68px);
    margin-top: 30px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-product {
    padding: 80px 0 30px;
  }

  .product-frame {
    margin: 0;
    transform: none;
    width: 100%;
  }

  .trace-canvas {
    min-height: 330px;
  }

  .trace-graph {
    min-height: 282px;
  }

  .divergence-card {
    left: 49%;
    top: 12%;
    width: 47%;
  }

  .hero-index {
    display: none;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .principle:nth-child(2) {
    border-right: 1px solid var(--line-light);
  }

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

  .section-pad {
    padding: 95px 20px;
  }

  .manifesto-copy,
  .section-head,
  .evidence-layout,
  .company-grid,
  .demo-heading {
    grid-template-columns: 1fr;
  }

  .demo-heading {
    gap: 34px;
  }

  .demo-shell {
    margin-top: 62px;
    min-height: 0;
  }

  .demo-body {
    grid-template-columns: 1fr;
    min-height: 820px;
  }

  .demo-nav {
    border-bottom: 1px solid var(--line-dark);
    border-right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
  }

  .demo-nav > p,
  .demo-nav-note {
    display: none;
  }

  .demo-step {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 0;
    gap: 8px;
    grid-template-columns: auto 1fr;
    min-height: 74px;
    padding: 10px 12px;
  }

  .demo-step:last-of-type {
    border-bottom: 0;
    border-right: 0;
  }

  .demo-stage {
    min-height: 746px;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 390px auto;
    min-height: 746px;
  }

  .panel-copy {
    grid-column: 1;
    padding: 28px;
  }

  .panel-inspector {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    display: grid;
    gap: 24px;
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 0.5fr 1fr;
    padding: 22px 28px;
  }

  .panel-inspector > p {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .panel-inspector dl {
    align-self: start;
  }

  .inspector-log,
  .replay-command,
  .cause-copy,
  .evidence-hash {
    margin-top: 0;
  }

  .incident-map,
  .replay-comparison,
  .divergence-view,
  .verification-view {
    grid-column: 1;
    grid-row: 2;
    min-height: 390px;
  }

  .demo-controls {
    grid-template-columns: 1fr auto auto;
    padding: 14px 16px;
  }

  .manifesto-copy {
    gap: 50px;
    margin-top: 60px;
  }

  .statement {
    font-size: clamp(40px, 12vw, 64px);
  }

  .manifesto-detail {
    max-width: 520px;
  }

  .layer-map {
    grid-template-columns: 70px 1fr;
    min-height: 600px;
  }

  .map-stats {
    border-left: 0;
    border-top: 1px solid var(--line-light);
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 100px;
  }

  .map-stats div {
    border-bottom: 0;
    border-right: 1px solid var(--line-light);
    padding: 16px;
  }

  .map-stats strong {
    font-size: 16px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    border-bottom: 1px solid var(--line-dark);
    border-right: 0;
    min-height: 520px;
  }

  .evidence-document {
    margin: 10px 14px 20px 0;
    padding: 22px;
  }

  .company-index {
    min-height: 80px;
  }

  .company-index small {
    align-self: start;
    margin-top: 8px;
  }

  .product-ledger {
    grid-column: auto;
  }

  .final-cta {
    min-height: 620px;
    padding: 90px 20px;
  }

  .final-cta h2 {
    font-size: clamp(46px, 12vw, 74px);
  }

  .final-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    gap: 70px;
    grid-template-columns: 1fr;
    padding: 70px 20px 24px;
  }

  .footer-base {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .principle {
    min-height: 125px;
    padding: 20px 16px;
  }

  .principle strong {
    font-size: 17px;
  }

  .principle small {
    line-height: 1.4;
  }

  .frame-top span:nth-child(2),
  .trace-meta span:nth-child(2) {
    display: none;
  }

  .frame-top,
  .trace-meta {
    grid-template-columns: 1fr 1fr;
  }

  .divergence-card {
    left: 42%;
    width: 55%;
  }

  .demo-topbar {
    grid-template-columns: 1fr auto;
  }

  .demo-session {
    display: none;
  }

  .demo-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .demo-step {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 5px;
    text-align: center;
  }

  .demo-step small {
    display: none;
  }

  .demo-step > span:last-child {
    gap: 0;
  }

  .demo-body {
    min-height: 850px;
  }

  .demo-stage,
  .demo-panel {
    min-height: 776px;
  }

  .demo-panel {
    grid-template-rows: auto 350px auto;
  }

  .panel-copy {
    padding: 24px 20px;
  }

  .panel-copy h3 {
    font-size: 27px;
  }

  .panel-inspector {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .panel-inspector > p {
    display: none;
  }

  .incident-map,
  .replay-comparison,
  .divergence-view,
  .verification-view {
    min-height: 350px;
  }

  .incident-event {
    left: 37%;
    width: 205px;
  }

  .incident-node span,
  .incident-node small {
    font-size: 6px;
  }

  .node-client { left: 4%; }
  .node-api { left: 22%; }
  .node-cache { left: 43%; }
  .node-queue { left: 65%; }
  .node-database { left: 84%; }

  .replay-comparison {
    gap: 7px;
    grid-template-columns: 1fr 34px 1fr;
    padding: 20px 10px;
  }

  .replay-column {
    padding: 11px;
  }

  .event-row {
    grid-template-columns: 20px 1fr;
  }

  .event-row small {
    display: none;
  }

  .replay-lock::before,
  .replay-lock::after {
    height: 50px;
  }

  .replay-lock span {
    font-size: 8px;
  }

  .divergence-view {
    padding: 25px 12px;
  }

  .diff-axis,
  .diff-row {
    grid-template-columns: 34px 1fr 20px 1fr;
  }

  .diff-row > small {
    display: none;
  }

  .verification-view {
    gap: 15px;
    grid-template-columns: 0.7fr 1.3fr;
    padding: 18px 12px;
  }

  .verification-ring strong {
    font-size: 18px;
  }

  .verification-results div {
    font-size: 7px;
    gap: 8px;
  }

  .demo-controls {
    gap: 12px;
    grid-template-columns: 1fr auto;
    min-height: 116px;
  }

  .demo-progress {
    grid-column: 1 / -1;
  }

  .demo-buttons button {
    min-width: 82px;
    padding: 10px;
  }

  .layer-map {
    grid-template-columns: 44px 1fr;
  }

  .map-annotation {
    left: 45%;
    width: 170px;
  }

  .map-stats small {
    font-size: 6px;
  }

  .map-stats strong {
    font-size: 12px;
  }

  .document-head {
    grid-template-columns: auto 1fr;
  }

  .verified {
    display: none;
  }

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

  .document-grid > div,
  .document-grid > div:nth-child(2n),
  .document-grid > div:nth-child(n + 3) {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
  }

  .document-grid > div:last-child {
    border-bottom: 0;
  }

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

  .footer-links {
    gap: 40px;
  }

  .docs-shell-header,
  .docs-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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