:root {
  --carbon: #0d0b0a;
  --carbon-2: #110e0d;
  --graphite: #15110f;
  --graphite-2: #1b1513;
  --paper: #f4eee8;
  --paper-2: #ece2da;
  --white: #f4eee8;
  --ash: #ddd2c8;
  --iron: #756b63;
  --muted: #a89c92;
  --bg: var(--carbon);
  --bg-alt: var(--carbon-2);
  --panel: var(--graphite);
  --panel-strong: var(--graphite-2);
  --panel-muted: rgba(244, 238, 232, 0.045);
  --text: var(--white);
  --text-soft: rgba(244, 238, 232, 0.72);
  --text-muted: rgba(244, 238, 232, 0.52);
  --clay-deep: #67382f;
  --clay: #88483b;
  --ember: #a65f4c;
  --green: #73c79b;
  --amber: #d79a4b;
  --red: #b94441;
  --blue: #70879b;
  --accent: var(--clay);
  --accent-strong: var(--ember);
  --accent-dim: rgba(138, 70, 55, 0.18);
  --accent-glow: 0 0 34px rgba(166, 95, 76, 0.22);
  --cta-top: #9f5a49;
  --cta-bottom: #74392f;
  --accent-secondary: var(--blue);
  --accent-secondary-dim: rgba(112, 135, 155, 0.16);
  --glow-green: 0 0 24px rgba(115, 199, 155, 0.28);
  --glow-amber: 0 0 24px rgba(215, 154, 75, 0.28);
  --glow-red: 0 0 28px rgba(185, 68, 65, 0.32);
  --border-dark: rgba(244, 238, 232, 0.13);
  --border-light: rgba(13, 11, 10, 0.12);
  --shadow: 0 34px 100px rgba(13, 11, 10, 0.22), 0 18px 58px rgba(111, 56, 45, 0.1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: Söhne, "Neue Haas Grotesk Display", "ABC Diatype", Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Berkeley Mono", "Suisse Mono", "IBM Plex Mono", "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -16%, rgba(179, 90, 69, 0.08), transparent 34vw),
    var(--paper);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.036;
  background-image: repeating-linear-gradient(0deg, rgba(45, 27, 22, 0.68) 0, rgba(45, 27, 22, 0.68) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}

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

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

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 790;
  line-height: 1.02;
}

p {
  margin: 0;
}

.section-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 0%, rgba(138, 70, 55, 0.1), transparent 38vw),
    radial-gradient(circle at 12% 90%, rgba(111, 56, 45, 0.08), transparent 42vw),
    linear-gradient(180deg, var(--carbon) 0%, #100d0c 52%, var(--carbon-2) 100%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(244, 238, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 90, 69, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.2));
  animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
    opacity: 0.92;
  }
  50% {
    opacity: 0.68;
  }
  to {
    background-position: 64px 64px, 64px 64px;
    opacity: 0.92;
  }
}

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: 58px;
  padding: 0 10px 0 14px;
  color: var(--white);
  background: rgba(13, 11, 10, 0.82);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(13, 11, 10, 0.28), 0 0 0 1px rgba(138, 70, 55, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 760;
}

.brand-logo {
  display: block;
  width: clamp(132px, 12vw, 172px);
  height: auto;
}

.site-footer .brand-logo {
  width: 156px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(244, 238, 232, 0.68);
  font-size: 13px;
}

.nav-links a,
.nav-cta,
.button {
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), opacity 160ms var(--ease);
}

.nav-links a:hover,
.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-cta {
  justify-self: end;
  padding: 10px 14px;
  color: var(--white);
  background: linear-gradient(180deg, var(--cta-top), var(--accent) 48%, var(--cta-bottom));
  border: 1px solid rgba(244, 238, 232, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(244, 238, 232, 0.16), 0 12px 32px rgba(111, 56, 45, 0.2);
  font-size: 13px;
  font-weight: 780;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 790;
  white-space: nowrap;
}

.button-light {
  color: var(--white);
  background: linear-gradient(180deg, var(--cta-top), var(--accent) 48%, var(--cta-bottom));
  border-color: rgba(244, 238, 232, 0.13);
  box-shadow: inset 0 1px 0 rgba(244, 238, 232, 0.16), var(--accent-glow);
}

.button-dark {
  color: var(--white);
  background: linear-gradient(180deg, #17110f, var(--carbon));
  border-color: rgba(111, 56, 45, 0.32);
}

.button-ghost-dark {
  color: var(--white);
  background: rgba(244, 238, 232, 0.045);
  border-color: var(--border-dark);
}

.eyebrow,
.panel-label,
.table-head,
.panel-topline,
.risk-panel-head,
.trace-header,
.audit-output span,
.install-ledger span,
.founder-ledger span,
.exposed-metrics span,
.leakage-row span,
.leakage-row em,
.agent-grid span,
.event-list span,
.rail-step span,
.rail-step small {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.section-dark .eyebrow {
  color: #c87960;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 94svh;
  padding: 112px 0 68px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -14% -10% auto;
  z-index: -3;
  height: 78%;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 28%, rgba(179, 90, 69, 0.13), transparent 34%),
    radial-gradient(circle at 48% 42%, rgba(111, 56, 45, 0.09), transparent 42%),
    radial-gradient(circle at 18% 12%, rgba(112, 135, 155, 0.055), transparent 28%);
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 32%;
  background: linear-gradient(to bottom, rgba(13, 11, 10, 0), var(--carbon));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.84fr);
  gap: 58px;
  align-items: center;
  min-height: calc(94svh - 180px);
}

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

h1 {
  max-width: 930px;
  font-size: 76px;
}

.hero-subhead {
  max-width: 760px;
  margin-top: 24px;
  color: rgba(244, 238, 232, 0.72);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-line {
  margin-top: 18px;
  color: rgba(244, 238, 232, 0.52);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 1400px;
}

.control-object {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: min(100%, 520px);
  height: 600px;
  margin-left: auto;
  transform-style: preserve-3d;
  transform: rotateX(calc(-8deg + var(--tilt-y))) rotateY(calc(-14deg + var(--tilt-x))) translateZ(0);
  transition: transform 500ms var(--ease);
  animation: objectDrift 14s var(--ease) infinite;
}

.control-object::before {
  content: "";
  position: absolute;
  inset: 18px -4px 6px 18px;
  z-index: -1;
  border: 1px solid rgba(244, 238, 232, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(rgba(244, 238, 232, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 90, 69, 0.035) 1px, transparent 1px),
    rgba(27, 21, 19, 0.36);
  background-size: 42px 42px;
  box-shadow:
    inset 0 0 0 1px rgba(244, 238, 232, 0.035),
    inset 24px 0 90px rgba(138, 70, 55, 0.06),
    0 44px 110px rgba(13, 11, 10, 0.4),
    0 18px 120px rgba(111, 56, 45, 0.16);
  transform: translateZ(-42px);
}

.control-object::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 8px;
  bottom: 24px;
  width: 1px;
  z-index: 3;
  background: linear-gradient(to bottom, transparent, rgba(179, 90, 69, 0.28), rgba(244, 238, 232, 0.13), transparent);
  transform: translateZ(132px);
  opacity: 0.5;
}

@keyframes objectDrift {
  0%, 100% {
    transform: rotateX(calc(-8deg + var(--tilt-y))) rotateY(calc(-14deg + var(--tilt-x))) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateX(calc(-7.2deg + var(--tilt-y))) rotateY(calc(-12.5deg + var(--tilt-x))) translate3d(0, -7px, 0);
  }
}

.object-glow {
  position: absolute;
  inset: 70px 10px 40px;
  background:
    radial-gradient(circle at 58% 38%, rgba(179, 90, 69, 0.24), transparent 52%),
    radial-gradient(circle at 28% 70%, rgba(111, 56, 45, 0.18), transparent 48%),
    radial-gradient(circle at 62% 76%, rgba(115, 199, 155, 0.08), transparent 42%);
  filter: blur(24px);
  transform: translateZ(-80px);
  animation: ambientShift 12s var(--ease) infinite;
}

.signal-sweep {
  position: absolute;
  inset: 26px -18px 38px;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  border-radius: 10px;
  transform: translateZ(150px);
}

.signal-sweep::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(244, 238, 232, 0.08), rgba(179, 90, 69, 0.13), transparent);
  transform: skewX(-14deg);
  animation: signalSweep 8.5s linear infinite;
}

@keyframes ambientShift {
  0%, 100% {
    opacity: 0.72;
    transform: translateZ(-80px) translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.96;
    transform: translateZ(-80px) translate3d(18px, -10px, 0);
  }
}

@keyframes signalSweep {
  0%, 34% {
    transform: translateX(0) skewX(-14deg);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  58%, 100% {
    transform: translateX(620%) skewX(-14deg);
    opacity: 0;
  }
}

.control-panel {
  position: absolute;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(244, 238, 232, 0.065), rgba(179, 90, 69, 0.035) 42%, rgba(244, 238, 232, 0.012)),
    rgba(21, 17, 15, 0.93);
  border: 1px solid rgba(244, 238, 232, 0.14);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(244, 238, 232, 0.07),
    inset 0 -1px 0 rgba(138, 70, 55, 0.1),
    0 36px 90px rgba(13, 11, 10, 0.44),
    0 14px 70px rgba(111, 56, 45, 0.12);
  backdrop-filter: blur(14px);
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.scanline::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -42px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(244, 238, 232, 0.055), rgba(179, 90, 69, 0.09), transparent);
  animation: scanlineMove 7.5s linear infinite;
}

@keyframes scanlineMove {
  0%, 20% {
    transform: translateY(0);
    opacity: 0;
  }
  32% {
    opacity: 1;
  }
  58%, 100% {
    transform: translateY(360px);
    opacity: 0;
  }
}

.panel-main {
  inset: 34px 0 auto 20px;
  min-height: 245px;
  padding: 22px;
  transform: translateZ(56px);
}

.panel-queue {
  top: 286px;
  right: 16px;
  width: 72%;
  min-height: 168px;
  padding: 18px;
  transform: translateZ(118px);
}

.panel-agent {
  left: 0;
  bottom: 24px;
  width: 88%;
  min-height: 196px;
  padding: 18px;
  transform: translateZ(92px);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 238, 232, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.panel-topline span,
.trace-header span,
.live-label,
.artifact-note,
.model-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot,
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: livePulse 2.8s var(--ease) infinite;
}

.live-dot-amber,
.status-amber .status-dot {
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.live-dot-red,
.status-red .status-dot {
  background: var(--red);
  box-shadow: var(--glow-red);
}

@keyframes livePulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 32px;
}

.hero-metric-row span,
.hero-metric-row small,
.panel-agent p {
  color: rgba(244, 238, 232, 0.58);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-metric-row strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 62px;
  line-height: 0.92;
  text-shadow: var(--glow-red);
}

.mini-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.mini-status-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  background: rgba(244, 238, 232, 0.045);
  color: rgba(244, 238, 232, 0.68);
  font-family: var(--mono);
  font-size: 11px;
}

.status-red {
  color: #e1746d !important;
}

.status-amber {
  color: var(--amber) !important;
}

.status-green {
  color: var(--green) !important;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
}

.mini-row span,
.mini-row b,
.mini-row em {
  min-width: 0;
}

.mini-row b,
.mini-row em {
  font-style: normal;
  font-weight: 780;
}

.mini-row.critical b,
.mini-row.critical em {
  color: #e1746d;
}

.mini-row.warning b,
.mini-row.warning em {
  color: var(--amber);
}

.mini-row.ok b,
.mini-row.ok em {
  color: var(--green);
}

.micro-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--border-dark);
}

.micro-rail span {
  padding: 10px 7px;
  background: rgba(244, 238, 232, 0.042);
  color: rgba(244, 238, 232, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

.execution-flow span {
  min-height: 38px;
  display: grid;
  align-items: center;
}

.micro-rail .is-live {
  color: var(--green);
  background: rgba(115, 199, 155, 0.12);
  box-shadow: inset 0 0 0 1px rgba(115, 199, 155, 0.2);
}

.micro-rail span.is-active {
  color: var(--white);
  background: rgba(138, 70, 55, 0.22);
  box-shadow: inset 0 0 0 1px rgba(179, 90, 69, 0.32), var(--accent-glow);
}

.panel-agent p {
  margin-top: 12px;
}

.agent-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-dark);
}

.agent-action-list li {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 9px;
  color: rgba(244, 238, 232, 0.58);
  background: rgba(244, 238, 232, 0.034);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.agent-action-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--accent-strong);
  border-radius: 50%;
  box-shadow: var(--accent-glow);
}

.agent-action-list li:nth-child(4)::before {
  background: var(--green);
  box-shadow: var(--glow-green);
}

.system-heartbeat {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: rgba(244, 238, 232, 0.58);
  font-family: var(--mono);
  font-size: 11px;
}

.system-heartbeat span {
  width: 34px;
  height: 12px;
  border-bottom: 1px solid rgba(115, 199, 155, 0.44);
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(115, 199, 155, 0.9) 15% 17%, transparent 17% 34%, rgba(115, 199, 155, 0.9) 34% 36%, transparent 36% 100%);
  animation: heartbeat 2.8s linear infinite;
}

@keyframes heartbeat {
  0%, 100% {
    opacity: 0.48;
  }
  45%, 52% {
    opacity: 1;
  }
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2,
.copy-block h2 {
  max-width: 840px;
  font-size: 54px;
}

.section-heading p,
.copy-block p {
  max-width: 720px;
  margin-top: 22px;
  color: var(--iron);
  font-size: 18px;
}

.section-dark .section-heading p,
.section-dark .copy-block p {
  color: rgba(244, 238, 232, 0.68);
}

.command-section,
.rail-section,
.audit-section,
.agents-section {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
}

.command-section::before,
.rail-section::before,
.audit-section::before,
.leakage-section::before,
.agents-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background:
    linear-gradient(rgba(244, 238, 232, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 90, 69, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.command-demo {
  position: relative;
  overflow: hidden;
  color: var(--carbon);
  background:
    radial-gradient(circle at 78% 0%, rgba(179, 90, 69, 0.1), transparent 34%),
    linear-gradient(180deg, #f6efe8, var(--paper-2));
  border: 1px solid rgba(111, 56, 45, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 44px 120px rgba(13, 11, 10, 0.32), 0 18px 80px rgba(111, 56, 45, 0.12);
}

.command-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.13) 44%, rgba(179, 90, 69, 0.08) 48%, transparent 54% 100%);
  opacity: 0;
  animation: commandSweep 10s linear infinite;
}

@keyframes commandSweep {
  0%, 52% {
    transform: translateX(-80%);
    opacity: 0;
  }
  58% {
    opacity: 0.35;
  }
  72%, 100% {
    transform: translateX(80%);
    opacity: 0;
  }
}

.command-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  color: var(--iron);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--mono);
  font-size: 12px;
}

.command-topbar b {
  color: var(--carbon);
}

.risk-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(111, 56, 45, 0.14);
  border-bottom: 1px solid var(--border-light);
}

.risk-strip div {
  position: relative;
  min-height: 132px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    #f7efe8;
}

.risk-strip span,
.risk-strip small {
  display: block;
  color: var(--iron);
  font-family: var(--mono);
  font-size: 11px;
}

.risk-strip strong {
  display: block;
  margin: 18px 0 7px;
  color: var(--carbon);
  font-size: 40px;
  line-height: 1;
}

.count-up {
  font-variant-numeric: tabular-nums;
}

.count-up.is-counted {
  filter: drop-shadow(0 0 12px rgba(179, 90, 69, 0.1));
}

.risk-strip div:first-child strong,
.risk-strip div:nth-child(2) strong,
.risk-strip div:nth-child(4) strong {
  color: var(--red);
}

.risk-strip div:first-child::after,
.risk-strip div:nth-child(2)::after,
.risk-strip div:nth-child(4)::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 1px;
  background: var(--red);
  box-shadow: var(--glow-red);
  opacity: 0.72;
}

.risk-strip .live-dot {
  width: 6px;
  height: 6px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  padding: 16px;
}

.command-table {
  overflow: hidden;
  background: #f7efe8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 0.78fr 0.52fr 1.3fr 0.95fr 0.65fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(13, 11, 10, 0.08);
  font-size: 13px;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.table-row:not(.table-head):hover {
  background: #fbf3ed;
  box-shadow: inset 2px 0 0 rgba(138, 70, 55, 0.42);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  min-height: 42px;
  color: var(--iron);
  background: #eee4dc;
  font-size: 11px;
}

.table-row b,
.table-row strong {
  font-weight: 780;
}

.table-row.critical b,
.table-row.critical strong {
  color: var(--red);
}

.table-row.warning b,
.table-row.warning strong {
  color: var(--amber);
}

.table-row.controlled b,
.table-row.controlled strong {
  color: #277f59;
}

.sla-breach {
  color: var(--red);
  font-weight: 780;
}

.sla-breach::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: var(--glow-red);
  animation: livePulse 2.6s var(--ease) infinite;
}

.owner-chip {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  color: #23583f;
  background: rgba(115, 199, 155, 0.14);
  border: 1px solid rgba(115, 199, 155, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.owner-chip.muted {
  color: #95352e;
  background: rgba(185, 68, 65, 0.12);
  border-color: rgba(185, 68, 65, 0.24);
}

.brief-panel,
.trace-card {
  padding: 20px;
  background: #f7efe8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.panel-label {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.brief-panel h3 {
  margin-top: 24px;
  font-size: 25px;
}

.event-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-light);
}

.event-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  color: var(--iron);
  opacity: 0.52;
  transform: translateX(-4px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease), background 360ms var(--ease);
}

.event-list li.is-active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(115, 199, 155, 0.06);
}

.event-list span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.event-list b {
  color: var(--carbon);
  font-size: 13px;
}

.artifact-note {
  margin-top: 22px;
  padding: 12px;
  color: #2f8b63;
  background: rgba(115, 199, 155, 0.11);
  border: 1px solid rgba(115, 199, 155, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.whatsapp-section,
.install-section,
.founder-section,
.form-section,
.faq-section {
  padding: 118px 0;
}

.split-layout,
.audit-layout,
.form-layout,
.exposed-layout,
.agents-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.82fr);
  gap: 72px;
  align-items: center;
}

.agents-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
  align-items: start;
}

.copy-block .button {
  margin-top: 30px;
}

.trace-card {
  background:
    radial-gradient(circle at 94% 12%, rgba(179, 90, 69, 0.12), transparent 30%),
    linear-gradient(180deg, var(--graphite), var(--carbon));
  color: var(--white);
  border-color: var(--border-dark);
  box-shadow: var(--shadow);
}

.trace-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 66px;
  border-top: 1px solid var(--border-dark);
  opacity: 0.42;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), background 420ms var(--ease);
}

.trace-item.is-active {
  opacity: 1;
  transform: translateY(0);
  background: rgba(244, 238, 232, 0.028);
}

.trace-item span {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.trace-item b,
.trace-item small {
  display: block;
}

.trace-item small {
  color: rgba(244, 238, 232, 0.58);
  font-family: var(--mono);
  font-size: 11px;
}

.trace-item.risk b {
  color: #e1746d;
}

.trace-item.warn b {
  color: var(--amber);
}

.trace-item.ok b {
  color: var(--green);
}

.exposed-section {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(179, 90, 69, 0.12), transparent 34%),
    linear-gradient(180deg, #0b0908, var(--carbon) 60%, #100d0c);
}

.exposed-section::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 18%;
  width: 38vw;
  height: 38vw;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(185, 68, 65, 0.12), transparent 56%),
    radial-gradient(circle at 70% 40%, rgba(179, 90, 69, 0.12), transparent 48%);
  filter: blur(14px);
}

.exposed-number h2 {
  color: var(--red);
  font-size: 128px;
  line-height: 0.9;
  text-shadow: var(--glow-red);
}

.model-label {
  margin: 0 0 16px;
  color: rgba(244, 238, 232, 0.52);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.exposed-number p:last-child {
  max-width: 420px;
  margin-top: 20px;
  color: rgba(244, 238, 232, 0.68);
  font-size: 20px;
}

.exposed-metrics,
.audit-output {
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.exposed-metrics div,
.audit-output div,
.install-ledger div,
.founder-ledger div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-dark);
}

.exposed-metrics div:last-child,
.audit-output div:last-child,
.install-ledger div:last-child,
.founder-ledger div:last-child {
  border-bottom: 0;
}

.exposed-metrics span,
.audit-output span,
.install-ledger span,
.founder-ledger span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.exposed-metrics b,
.audit-output b {
  font-size: 17px;
}

.leakage-section {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(138, 70, 55, 0.12), transparent 36%),
    linear-gradient(180deg, var(--carbon), #100d0c 58%, var(--carbon-2));
}

.leakage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: start;
}

.leakage-section .section-heading {
  position: sticky;
  top: 118px;
  margin-bottom: 0;
}

.leakage-section .section-heading p {
  color: rgba(244, 238, 232, 0.65);
}

.leakage-ledger {
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(244, 238, 232, 0.035), rgba(179, 90, 69, 0.025)),
    rgba(21, 17, 15, 0.76);
}

.leakage-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: start;
  min-height: 126px;
  padding: 22px;
  border-bottom: 1px solid var(--border-dark);
}

.leakage-row:last-child {
  border-bottom: 0;
}

.leakage-row span,
.leakage-row em {
  color: var(--accent-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.leakage-row strong {
  display: block;
  font-size: 19px;
  line-height: 1.18;
}

.leakage-row p {
  grid-column: 2 / 4;
  margin-top: 8px;
  color: rgba(244, 238, 232, 0.62);
  font-size: 14px;
}

.leakage-row em {
  justify-self: end;
  color: var(--red);
}

.install-ledger {
  overflow: hidden;
  background: #f7efe8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.install-ledger div {
  grid-template-columns: 60px 250px minmax(0, 1fr);
  min-height: 92px;
  border-bottom-color: var(--border-light);
}

.install-ledger b {
  font-size: 20px;
}

.install-ledger p {
  color: var(--iron);
  font-size: 15px;
}

.agents-section {
  background:
    radial-gradient(circle at 8% 16%, rgba(179, 90, 69, 0.12), transparent 32%),
    linear-gradient(180deg, var(--carbon), #100d0c 62%, var(--carbon-2));
}

.agent-network {
  display: grid;
  gap: 10px;
  max-width: 600px;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: rgba(244, 238, 232, 0.034);
}

.agent-network div {
  display: grid;
  gap: 6px;
}

.agent-network span {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-network b {
  color: rgba(244, 238, 232, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.agent-network i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--border-dark);
}

.agent-network i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: telemetryLine 4.8s linear infinite;
}

@keyframes telemetryLine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(244, 238, 232, 0.035), rgba(179, 90, 69, 0.024)),
    rgba(21, 17, 15, 0.72);
}

.agent-grid article {
  position: relative;
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.agent-grid article:hover {
  background: rgba(244, 238, 232, 0.055);
  box-shadow: inset 2px 0 0 rgba(179, 90, 69, 0.4);
  transform: translateY(-1px);
}

.agent-grid article:nth-child(2n) {
  border-right: 0;
}

.agent-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.agent-grid span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.agent-grid h3 {
  margin-top: 38px;
  font-size: 24px;
}

.agent-grid small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(244, 238, 232, 0.56);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-grid p {
  margin-top: 14px;
  color: rgba(244, 238, 232, 0.62);
  font-size: 14px;
}

.rail-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(138, 70, 55, 0.13), transparent 34%),
    linear-gradient(180deg, var(--carbon), #100d0c 64%, var(--carbon-2));
}

.dual-rail {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.rail-connector {
  position: absolute;
  top: 21px;
  left: 18px;
  right: 18px;
  z-index: 1;
  height: 1px;
  background: rgba(244, 238, 232, 0.11);
  overflow: hidden;
}

.rail-connector::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  box-shadow: var(--accent-glow);
  transform: translateX(-120%);
}

.dual-rail.is-running .rail-connector::after {
  animation: railConnector 8.5s linear infinite;
}

@keyframes railConnector {
  to {
    transform: translateX(680%);
  }
}

.rail-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
}

.rail-step {
  position: relative;
  z-index: 2;
  min-height: 158px;
  padding: 18px;
  border-right: 1px solid var(--border-dark);
  background: rgba(244, 238, 232, 0.035);
  opacity: 0.62;
  transition: opacity 360ms var(--ease), background 360ms var(--ease), box-shadow 360ms var(--ease);
}

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

.rail-step::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -7px;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  transition: background 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
}

.rail-step span {
  display: block;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.rail-step b {
  display: block;
  margin-top: 48px;
  font-size: 17px;
  line-height: 1.18;
}

.rail-step small {
  display: block;
  margin-top: 10px;
  color: rgba(244, 238, 232, 0.48);
  font-size: 10px;
}

.dual-rail.is-running .rail-step {
  animation: railPulse 8.5s infinite;
}

.dual-rail.is-running .rail-step.is-active {
  opacity: 1;
  background: rgba(244, 238, 232, 0.055);
}

.rail-step.state-green.is-active::before {
  background: var(--green);
  border-color: rgba(115, 199, 155, 0.5);
  box-shadow: var(--glow-green);
}

.rail-step.state-amber.is-active::before {
  background: var(--amber);
  border-color: rgba(215, 154, 75, 0.5);
  box-shadow: var(--glow-amber);
}

.rail-step.state-red.is-active::before {
  background: var(--red);
  border-color: rgba(185, 68, 65, 0.5);
  box-shadow: var(--glow-red);
}

.dual-rail.is-running .rail-step:nth-child(2) { animation-delay: 0.8s; }
.dual-rail.is-running .rail-step:nth-child(3) { animation-delay: 1.6s; }
.dual-rail.is-running .rail-step:nth-child(4) { animation-delay: 2.4s; }
.dual-rail.is-running .rail-step:nth-child(5) { animation-delay: 3.2s; }
.dual-rail.is-running .rail-step:nth-child(6) { animation-delay: 4s; }
.dual-rail.is-running .rail-step:nth-child(7) { animation-delay: 4.8s; }

@keyframes railPulse {
  0%, 14%, 100% {
    opacity: 0.62;
    background: rgba(244, 238, 232, 0.035);
  }
  7% {
    opacity: 1;
    background: rgba(138, 70, 55, 0.16);
  }
}

.founder-section {
  background: var(--paper);
}

.founder-ledger {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.founder-ledger div {
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom-color: var(--border-light);
}

.founder-ledger b {
  font-size: 19px;
}

.form-section {
  background: var(--paper);
}

.form-intake-aside {
  display: grid;
  gap: 28px;
}

.audit-preview {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(179, 90, 69, 0.12), transparent 34%),
    linear-gradient(180deg, var(--graphite), var(--carbon));
  color: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.audit-preview .panel-topline {
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
}

.audit-preview div:not(.panel-topline) {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-dark);
}

.audit-preview div:last-child {
  border-bottom: 0;
}

.audit-preview div:not(.panel-topline) span {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.audit-preview div:not(.panel-topline) b {
  color: rgba(244, 238, 232, 0.78);
  font-size: 14px;
}

.audit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: #f7efe8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.audit-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 720;
}

.audit-form input,
.audit-form select,
.audit-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  color: var(--carbon);
  background: #fbf3ed;
  border: 1px solid rgba(13, 11, 10, 0.16);
  border-radius: var(--radius-sm);
  outline: none;
}

.audit-form textarea {
  resize: vertical;
}

.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
  border-color: rgba(136, 72, 59, 0.72);
  box-shadow: 0 0 0 3px rgba(166, 95, 76, 0.14);
}

.audit-form input::placeholder,
.audit-form textarea::placeholder {
  color: rgba(117, 107, 99, 0.78);
}

.audit-form .wide,
.audit-form .button,
.form-note {
  grid-column: 1 / -1;
}

.audit-form .button {
  margin-top: 6px;
  width: 100%;
  color: var(--white);
  background: linear-gradient(180deg, var(--cta-top), var(--accent) 48%, var(--cta-bottom));
  border-color: rgba(244, 238, 232, 0.13);
  box-shadow: inset 0 1px 0 rgba(244, 238, 232, 0.16), var(--accent-glow);
}

.form-note {
  color: var(--iron);
  font-size: 12px;
}

.faq-section {
  background: #f7efe8;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.faq-list details {
  border-bottom: 1px solid var(--border-light);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  padding: 20px;
  font-weight: 780;
}

.faq-list p {
  max-width: 820px;
  padding: 0 20px 20px;
  color: var(--iron);
}

.site-footer {
  padding: 36px 0;
  color: var(--iron);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand {
  color: var(--carbon);
}

.site-footer p,
.site-footer a:last-child {
  font-size: 14px;
}

.mobile-sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(180deg, var(--cta-top), var(--accent) 48%, var(--cta-bottom));
  border: 1px solid rgba(244, 238, 232, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(13, 11, 10, 0.34), var(--accent-glow);
  font-size: 14px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

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

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .hero-layout,
  .split-layout,
  .audit-layout,
  .form-layout,
  .exposed-layout,
  .leakage-layout,
  .command-grid,
  .agents-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .control-object {
    margin: 0 auto;
  }

  .leakage-section .section-heading {
    position: static;
    margin-bottom: 34px;
  }

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

  .table-row {
    grid-template-columns: 1fr 0.8fr 0.8fr;
    gap: 8px 14px;
    min-height: auto;
    padding: 14px 16px;
  }

  .table-head {
    display: none;
  }

  .rail-track {
    grid-template-columns: 1fr;
  }

  .rail-connector {
    top: 18px;
    right: auto;
    bottom: 18px;
    left: 23px;
    width: 1px;
    height: auto;
  }

  .rail-connector::after {
    width: 1px;
    height: 70px;
    background: linear-gradient(180deg, transparent, var(--amber), transparent);
  }

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

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

  .rail-step::before {
    right: auto;
    left: 18px;
    top: auto;
    bottom: -7px;
  }

  .rail-step b {
    margin-top: 30px;
  }

  .install-ledger div {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    padding: 20px;
  }

  .install-ledger p {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    padding-bottom: 72px;
  }

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

  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
  }

  .brand-logo {
    width: 126px;
  }

  .nav-cta {
    padding: 9px 11px;
  }

  .hero,
  .command-section,
  .whatsapp-section,
  .exposed-section,
  .leakage-section,
  .install-section,
  .rail-section,
  .founder-section,
  .audit-section,
  .form-section,
  .faq-section,
  .agents-section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-layout {
    gap: 38px;
    min-height: auto;
  }

  h1 {
    font-size: 43px;
  }

  .section-heading h2,
  .copy-block h2 {
    font-size: 35px;
  }

  .hero-subhead,
  .section-heading p,
  .copy-block p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    perspective: none;
  }

  .control-object {
    width: 100%;
    height: auto;
    transform: none !important;
    animation: none;
  }

  .object-glow {
    display: none;
  }

  .signal-sweep {
    display: none;
  }

  .control-object::before,
  .control-object::after {
    display: none;
  }

  .control-panel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    margin-top: 10px;
    transform: none;
  }

  .panel-main,
  .panel-queue,
  .panel-agent {
    padding: 18px;
  }

  .hero-metric-row {
    grid-template-columns: 1fr;
  }

  .hero-metric-row strong {
    font-size: 48px;
  }

  .mini-status-grid,
  .micro-rail {
    grid-template-columns: 1fr;
  }

  .agent-action-list {
    grid-template-columns: 1fr;
  }

  .mini-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 0;
  }

  .risk-strip {
    grid-template-columns: 1fr;
  }

  .risk-strip div {
    min-height: 102px;
  }

  .command-demo {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .command-grid {
    padding: 10px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    font-size: 13px;
  }

  .table-row > * {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(13, 11, 10, 0.07);
  }

  .table-row > *::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--iron);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .table-row > *:last-child {
    border-bottom: 0;
  }

  .owner-chip {
    border-radius: 0;
    background: transparent;
    border-width: 0 0 1px;
  }

  .brief-panel,
  .trace-card {
    padding: 18px;
  }

  .exposed-number h2 {
    font-size: 72px;
  }

  .exposed-number p:last-child {
    font-size: 17px;
  }

  .exposed-metrics div,
  .audit-output div,
  .founder-ledger div {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 66px;
    padding: 0 14px;
  }

  .leakage-row {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }

  .leakage-row p {
    grid-column: 1;
  }

  .leakage-row em {
    justify-self: start;
  }

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

  .agent-grid article,
  .agent-grid article:nth-child(2n),
  .agent-grid article:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .agent-grid article:last-child {
    border-bottom: 0;
  }

  .agent-grid h3 {
    margin-top: 26px;
  }

  .agent-network {
    margin-top: 24px;
  }

  .audit-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .audit-form .wide,
  .audit-form .button,
  .form-note {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-sticky-cta {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .mobile-sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

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

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

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

  .control-object {
    transform: none !important;
    animation: none;
  }

  .signal-sweep,
  .scanline,
  .rail-connector,
  .object-glow {
    display: none;
  }

  .trace-item,
  .event-list li,
  .rail-step {
    opacity: 1;
    transform: none;
  }

  .control-object::before,
  .control-object::after {
    display: none;
  }
}
