@import "tailwindcss";

:root {
  --ink: #07100f;
  --ink-deep: #030807;
  --panel: #0d1917;
  --panel-raised: #12211e;
  --paper: #f2efe6;
  --paper-soft: #ced2c7;
  --muted: #82918a;
  --line: rgba(220, 235, 226, 0.13);
  --line-strong: rgba(220, 235, 226, 0.25);
  --mint: #82edbd;
  --acid: #d5ff70;
  --coral: #ff795e;
  --coral-hot: #ff9b83;
  --danger: #ff6c7d;
  --max: 1220px;
  --pad: clamp(1.15rem, 4vw, 4.75rem);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  min-width: 280px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  color-scheme: dark;
  background: var(--ink);
}

body {
  --display: "Arial Narrow", "Aptos Display", "Segoe UI Variable Display",
    "Helvetica Neue", sans-serif;
  --body: "Segoe UI Variable Text", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  min-width: 280px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 121, 94, 0.065), transparent 27rem),
    radial-gradient(circle at 8% 28%, rgba(130, 237, 189, 0.035), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.93' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

::selection {
  background: var(--coral);
  color: var(--ink-deep);
}

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

button {
  color: inherit;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  transform: translateY(-180%);
  border: 1px solid var(--acid);
  background: var(--ink-deep);
  color: var(--acid);
  font: 750 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

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

.shell {
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0.82rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
}

.brand > span:last-child {
  display: grid;
  gap: 0.09rem;
}

.brand strong {
  font: 800 0.91rem/1 var(--display);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font: 600 0.62rem/1.2 var(--mono);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 121, 94, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 121, 94, 0.16), transparent 60%),
    var(--panel);
}

.brand-mark i {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
}

.brand-mark b {
  color: var(--paper);
  font: 800 0.67rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.site-header nav {
  justify-self: center;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}

.site-header nav a {
  position: relative;
  padding: 0.6rem 0;
  color: var(--paper-soft);
  font: 650 0.69rem/1 var(--mono);
  letter-spacing: 0.055em;
}

.site-header nav a::after {
  position: absolute;
  bottom: 0.24rem;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.76rem 0.95rem;
  border: 1px solid rgba(255, 121, 94, 0.48);
  background: rgba(255, 121, 94, 0.07);
  color: var(--coral-hot);
  font: 750 0.68rem/1 var(--mono);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.header-cta:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink-deep);
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.9fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding-top: 8rem;
}

.hero > * {
  min-width: 0;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 5.8rem 0 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(220, 235, 226, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 235, 226, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent 0, black 20%, black 72%, transparent);
}

.hero-copy {
  z-index: 2;
  padding-block: 3.5rem 5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font: 700 0.68rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow span {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(213, 255, 112, 0.38);
  background: rgba(213, 255, 112, 0.06);
  color: var(--acid);
  font-size: 0.61rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font: 790 clamp(4rem, 7.4vw, 7.5rem) / 0.83 var(--display);
  letter-spacing: -0.066em;
  text-transform: uppercase;
}

h1 em,
.cta-inner h2 em {
  display: block;
  color: var(--coral);
  font-style: normal;
}

.hero-lede {
  max-width: 660px;
  margin: 2.1rem 0 0;
  color: var(--paper-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.21rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.95rem 1.15rem;
  border: 1px solid transparent;
  font: 750 0.71rem/1 var(--mono);
  letter-spacing: 0.035em;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.button-primary {
  background: var(--coral);
  color: var(--ink-deep);
}

.button-primary:hover {
  background: var(--coral-hot);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(220, 235, 226, 0.025);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--paper-soft);
  background: rgba(220, 235, 226, 0.07);
}

.hero-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font: 600 0.67rem/1.5 var(--mono);
}

.authority-orbit {
  position: relative;
  min-height: 550px;
  align-self: center;
  isolation: isolate;
}

.orbit-grid {
  position: absolute;
  z-index: -2;
  inset: 5%;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(220, 235, 226, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 235, 226, 0.045) 1px, transparent 1px),
    rgba(5, 12, 11, 0.66);
  background-size: 28px 28px;
}

.orbit-ring {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 70%;
  aspect-ratio: 1;
}

.ring-two {
  width: 45%;
  aspect-ratio: 1;
  border-color: rgba(255, 121, 94, 0.28);
  border-style: dashed;
  animation: orbit-spin 28s linear infinite;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 174px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 0.34rem;
  text-align: center;
  border: 1px solid rgba(255, 121, 94, 0.65);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 121, 94, 0.16), transparent 68%),
    var(--ink-deep);
  box-shadow:
    0 0 0 13px rgba(255, 121, 94, 0.025),
    0 0 70px rgba(255, 121, 94, 0.09);
  transform: translate(-50%, -50%);
}

.orbit-core span,
.orbit-core small {
  color: var(--muted);
  font: 650 0.57rem/1.3 var(--mono);
  letter-spacing: 0.09em;
}

.orbit-core strong {
  color: var(--coral);
  font: 820 2.45rem/1 var(--display);
  letter-spacing: 0.04em;
}

.orbit-node {
  position: absolute;
  min-width: 150px;
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: rgba(13, 25, 23, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.orbit-node span {
  color: var(--coral);
  font: 700 0.56rem/1 var(--mono);
}

.orbit-node b {
  font: 720 0.75rem/1.2 var(--mono);
}

.orbit-node small {
  color: var(--muted);
  font: 550 0.61rem/1.25 var(--mono);
}

.node-mandate {
  top: 7%;
  left: 4%;
}

.node-proposal {
  top: 21%;
  right: -2%;
}

.node-recorder {
  right: 5%;
  bottom: 6%;
}

.node-mandate::after,
.node-proposal::after,
.node-recorder::after {
  position: absolute;
  width: 56px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--coral), transparent);
}

.node-mandate::after {
  right: -49px;
  bottom: -14px;
  transform: rotate(31deg);
}

.node-proposal::after {
  left: -50px;
  bottom: -14px;
  transform: rotate(150deg);
}

.node-recorder::after {
  top: -17px;
  left: -43px;
  transform: rotate(34deg);
}

.hero-strip {
  grid-column: 1 / -1;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1rem 1.2rem;
  border-block: 1px solid var(--line);
  font-family: var(--mono);
}

.hero-strip > span {
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-strip > strong {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--acid);
  font-size: 0.69rem;
  letter-spacing: 0.045em;
}

.hero-strip > strong i,
.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(213, 255, 112, 0.72);
}

.hero-strip ul {
  justify-self: end;
  display: flex;
  gap: clamp(1rem, 3vw, 2.7rem);
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--paper-soft);
  font-size: 0.63rem;
}

.proof-section,
.surface-section,
.boundary-section {
  padding-block: clamp(6rem, 9vw, 9rem);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(2.4rem, 5vw, 4.3rem);
}

.section-heading h2 {
  margin: 0;
  font: 780 clamp(2.7rem, 5vw, 5.2rem) / 0.95 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section-heading > p:not(.kicker),
.split-heading > p {
  max-width: 610px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.split-heading > p {
  margin: 0;
}

.replay-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(4, 10, 9, 0.76);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.replay-head,
.replay-foot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.replay-head > div {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.replay-head p,
.replay-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.replay-head button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(255, 121, 94, 0.44);
  background: rgba(255, 121, 94, 0.08);
  color: var(--coral-hot);
  cursor: pointer;
  font: 700 0.63rem/1 var(--mono);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.replay-head button:hover:not(:disabled) {
  background: var(--coral);
  color: var(--ink-deep);
}

.replay-head button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.replay-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.timeline {
  min-height: 355px;
  display: grid;
  align-content: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background-image:
    linear-gradient(rgba(220, 235, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 235, 226, 0.035) 1px, transparent 1px);
  background-size: 25px 25px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 32px 50px minmax(170px, 1fr) 76px;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.24;
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease);
}

.timeline-row:first-child {
  border-top: 1px solid var(--line);
}

.timeline-row.visible {
  opacity: 1;
}

.timeline-row.active {
  transform: translateX(5px);
}

.timeline-index {
  color: var(--muted);
  font: 600 0.59rem/1 var(--mono);
}

.timeline-row > b {
  color: var(--paper-soft);
  font: 700 0.63rem/1 var(--mono);
}

.timeline-row code {
  overflow: hidden;
  color: var(--paper);
  font: 600 0.69rem/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row > small {
  grid-column: 3 / -1;
  color: var(--muted);
  font: 550 0.59rem/1 var(--mono);
}

.decision-pill {
  justify-self: end;
  min-width: 70px;
  padding: 0.4rem 0.45rem;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 750 0.56rem/1 var(--mono);
}

.decision-pill.allow {
  border-color: rgba(130, 237, 189, 0.35);
  color: var(--mint);
}

.decision-pill.deny {
  border-color: rgba(255, 121, 94, 0.52);
  background: rgba(255, 121, 94, 0.07);
  color: var(--coral);
}

.run-state {
  padding: 1.3rem;
  border-left: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
}

.state-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.state-head b {
  color: var(--acid);
  font-size: 0.57rem;
}

.state-meter {
  height: 3px;
  margin: 1rem 0 1.6rem;
  overflow: hidden;
  background: rgba(220, 235, 226, 0.08);
}

.state-meter i {
  height: 100%;
  display: block;
  background: var(--coral);
  transition: width 0.45s var(--ease);
}

.run-state dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.run-state dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.run-state dt {
  color: var(--muted);
  font-size: 0.59rem;
}

.run-state dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.run-state dd.safe,
.safe {
  color: var(--mint) !important;
}

.run-state > p {
  margin: 1.4rem 0 0;
  color: var(--paper-soft);
  font-size: 0.61rem;
  line-height: 1.65;
}

.replay-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.replay-foot a {
  color: var(--paper-soft);
}

.replay-foot a:hover {
  color: var(--coral);
}

.evidence-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.evidence-row > div {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
}

.evidence-row > div:last-child {
  border-right: 0;
}

.evidence-row span,
.evidence-row small {
  color: var(--muted);
  font: 600 0.56rem/1.35 var(--mono);
  letter-spacing: 0.06em;
}

.evidence-row strong {
  font: 780 2.7rem/1 var(--display);
}

.evidence-row .danger {
  color: var(--danger);
}

.mechanism-section,
.test-section,
.cta-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 121, 94, 0.025), transparent 35%),
    var(--ink-deep);
}

.mechanism-section .shell,
.test-section .shell {
  padding-block: clamp(6rem, 9vw, 9rem);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.flow-grid li {
  position: relative;
  min-height: 280px;
  display: grid;
  align-content: start;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.flow-grid li:last-child {
  border-right: 0;
}

.flow-number {
  color: var(--coral);
  font: 700 0.58rem/1 var(--mono);
}

.flow-grid p {
  margin: 2.6rem 0 0.6rem;
  color: var(--muted);
  font: 700 0.57rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-grid h3 {
  max-width: 180px;
  margin: 0;
  font: 720 1.18rem/1.18 var(--display);
  letter-spacing: -0.02em;
}

.flow-line {
  position: relative;
  height: 1px;
  margin: 2rem 0 1.1rem;
  background: var(--line);
}

.flow-line i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 121, 94, 0.5);
}

.flow-grid small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.policy-sample {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.code-card {
  border-right: 1px solid var(--line);
  background: #07100f;
}

.code-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 0.59rem/1 var(--mono);
}

.code-head b {
  color: var(--acid);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
}

.code-card pre {
  min-height: 380px;
  display: grid;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin: 0;
  overflow-x: auto;
  color: var(--paper-soft);
  font: 600 clamp(0.68rem, 1.3vw, 0.82rem) / 1.72 var(--mono);
}

.decision-stack {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(1.3rem, 3vw, 2.4rem);
}

.stack-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font: 700 0.57rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.decision-stack > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(220, 235, 226, 0.018);
}

.decision-stack span,
.decision-stack small {
  color: var(--muted);
  font: 600 0.56rem/1.25 var(--mono);
}

.decision-stack strong {
  overflow: hidden;
  font: 700 0.71rem/1.3 var(--mono);
  text-overflow: ellipsis;
}

.decision-stack > i {
  color: var(--muted);
  font-style: normal;
  text-align: center;
}

.decision-stack .denied {
  border-color: rgba(255, 121, 94, 0.48);
  background: rgba(255, 121, 94, 0.07);
}

.decision-stack .denied strong {
  color: var(--coral);
  font: 800 2.2rem/1 var(--display);
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}

.surface-grid article {
  min-height: 250px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease);
}

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

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

.surface-grid article:hover {
  background: rgba(255, 121, 94, 0.035);
  transform: translateY(-3px);
}

.surface-grid p {
  margin: 0 0 3rem;
  color: var(--acid);
  font: 650 0.57rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-grid h3 {
  margin: 0 0 0.75rem;
  font: 740 1.6rem/1 var(--display);
  text-transform: uppercase;
}

.surface-grid span {
  max-width: 520px;
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.test-layout .section-heading {
  margin: 0;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1.6rem;
  color: var(--coral);
  font: 700 0.67rem/1 var(--mono);
}

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

.attack-list > div {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 61px;
  border-bottom: 1px solid var(--line);
}

.attack-list span,
.attack-list b {
  color: var(--muted);
  font: 650 0.57rem/1 var(--mono);
}

.attack-list p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.82rem;
}

.attack-list b {
  color: var(--mint);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}

.boundary-grid article {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.boundary-grid article + article {
  border-left: 1px solid var(--line);
}

.boundary-grid article > p {
  margin: 0 0 2rem;
  color: var(--mint);
  font: 700 0.61rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.boundary-grid .not-proves > p {
  color: var(--coral);
}

.boundary-grid ul {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.boundary-grid li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--paper-soft);
  font-size: 0.87rem;
  line-height: 1.6;
}

.boundary-grid li::before {
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid var(--mint);
}

.boundary-grid .not-proves li::before {
  border-color: var(--coral);
}

.latency-strip {
  display: grid;
  grid-template-columns: 0.55fr 0.55fr 1.3fr;
  border: 1px solid var(--line);
  border-top: 0;
}

.latency-strip > div,
.latency-strip > p {
  min-height: 155px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.4rem;
  margin: 0;
  border-right: 1px solid var(--line);
}

.latency-strip > p {
  border-right: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.latency-strip span,
.latency-strip small {
  color: var(--muted);
  font: 600 0.55rem/1.3 var(--mono);
  letter-spacing: 0.055em;
}

.latency-strip strong {
  font: 760 1.9rem/1 var(--display);
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50vw;
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 121, 94, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 121, 94, 0.012),
    0 0 0 180px rgba(255, 121, 94, 0.009);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 11vw, 11rem);
}

.cta-inner h2 {
  max-width: 940px;
  margin: 0;
  font: 790 clamp(3.2rem, 7vw, 7.2rem) / 0.88 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.cta-inner > p:not(.kicker) {
  max-width: 620px;
  margin: 2rem 0 0;
  color: var(--paper-soft);
  font-size: 1rem;
  line-height: 1.68;
}

footer {
  background: var(--ink-deep);
}

.footer-inner {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-inner > p {
  justify-self: center;
  margin: 0;
  color: var(--muted);
  font: 600 0.65rem/1.5 var(--mono);
}

.footer-inner > div {
  display: flex;
  gap: 1.2rem;
}

.footer-inner > div a {
  color: var(--paper-soft);
  font: 650 0.61rem/1 var(--mono);
}

.footer-inner > div a:hover {
  color: var(--coral);
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 8rem;
  }

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

  .authority-orbit {
    width: min(100%, 620px);
    min-height: 520px;
    margin-inline: auto;
  }

  .hero-strip {
    margin-top: 1rem;
  }

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

  .flow-grid li:nth-child(2) {
    border-right: 0;
  }

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

  .test-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header nav {
    display: none;
  }

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

  .hero {
    gap: 0;
  }

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

  .hero-strip ul {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }

  .split-heading,
  .policy-sample,
  .replay-body,
  .latency-strip {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
  }

  .run-state,
  .code-card {
    border: 0;
    border-top: 1px solid var(--line);
  }

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

  .evidence-row > div:nth-child(2) {
    border-right: 0;
  }

  .evidence-row > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .latency-strip > div,
  .latency-strip > p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .latency-strip > p {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding-block: 2.4rem;
  }

  .footer-inner > p,
  .footer-inner > div {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 1rem;
  }

  .site-header {
    min-height: 68px;
  }

  .header-cta {
    padding: 0.7rem 0.75rem;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-copy {
    padding-block: 2.2rem 1rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 3.7rem);
    letter-spacing: -0.07em;
  }

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

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

  .authority-orbit {
    width: 100%;
    min-height: 440px;
    transform: none;
  }

  .orbit-node {
    min-width: 135px;
  }

  .node-mandate {
    left: 0;
  }

  .node-proposal {
    right: 0;
  }

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

  .hero-strip ul {
    display: grid;
    gap: 0.55rem;
  }

  .section-heading h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .replay-head,
  .replay-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline {
    min-height: 420px;
    padding: 0.9rem;
  }

  .timeline-row {
    grid-template-columns: 24px 42px 1fr;
    gap: 0.55rem;
  }

  .timeline-row code {
    font-size: 0.59rem;
  }

  .timeline-row .decision-pill {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-row > small {
    grid-column: 3;
  }

  .evidence-row,
  .flow-grid,
  .surface-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .evidence-row > div,
  .evidence-row > div:nth-child(2),
  .flow-grid li,
  .flow-grid li:nth-child(2),
  .surface-grid article,
  .surface-grid article:nth-child(2n),
  .surface-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evidence-row > div:last-child,
  .flow-grid li:last-child,
  .surface-grid article:last-child {
    border-bottom: 0;
  }

  .boundary-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .code-card pre {
    min-height: 330px;
    font-size: 0.62rem;
  }

  .attack-list > div {
    grid-template-columns: 26px 1fr;
    padding-block: 0.65rem;
  }

  .attack-list b {
    grid-column: 2;
  }

  .footer-inner > div {
    flex-wrap: wrap;
  }
}

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

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

/* Shared Cyberelf product workbench */
.live-workbench,.manifest-workbench{padding:3rem 0 4rem;scroll-margin-top:6rem}
.live-workbench h2,.manifest-workbench h2{font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.1;margin:.7rem 0 1rem}
.live-workbench>p,.manifest-workbench>div>p{max-width:65ch;color:#bbc5bd;line-height:1.6}
.workbench-grid,.manifest-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:2rem}
.live-workbench label,.manifest-grid label{display:block;font-size:.875rem;margin:.8rem 0 .5rem;color:#c4cfc9}
.live-workbench textarea,.manifest-grid textarea{display:block;width:100%;height:340px;resize:vertical;border:1px solid #414e45;background:#0b100d;color:#e9f4e9;padding:1rem;font:14px/1.6 'Cascadia Mono',Consolas,monospace;border-radius:3px}
.workbench-actions{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin-block:1rem}
.live-workbench button,.manifest-workbench button,.file-button{background:#222d25;color:#e9f4e9;border:1px solid #495e4e;padding:.7rem 1rem;font:500 .875rem/1.4 inherit;cursor:pointer;border-radius:3px}
.live-workbench .run-check,.manifest-grid .button-primary{background:#c8f86d;color:#101213;border-color:#c8f86d;margin-top:1rem}
.live-workbench button:disabled,.manifest-workbench button:disabled{opacity:.5;cursor:not-allowed}
.file-button{position:relative;overflow:hidden!important;display:inline-block!important;margin:0!important}
.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.workbench-result,.manifest-result{background:#121914;border:1px solid #374d3c;border-radius:3px;padding:1.5rem;min-width:0}
.workbench-result>strong,.manifest-result>strong{display:block;font-size:1.4rem;margin-bottom:1rem;color:#c8f86d}
.workbench-result pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;font:14px/1.65 'Cascadia Mono',Consolas,monospace;color:#cdd9d0}
.manifest-result code{display:block;font-size:13px;overflow-wrap:anywhere;margin:1rem 0}.manifest-result li{margin-bottom:1.1rem}.manifest-result li b{font-size:.8rem;color:#d2decd}.manifest-result p{line-height:1.6;font-size:.95rem;color:#b9c8bd}
.workbench-note{font-size:.8rem!important;color:#a6b6aa!important;line-height:1.6;margin-top:1rem!important;max-width:65ch}
.result-block{color:#ffa59b!important}.workbench-status{margin-top:1rem;color:#ffa59b;min-height:1.5em}
.live-workbench a{color:#c8f86d;text-underline-offset:4px}.live-workbench :focus-visible,.manifest-workbench :focus-visible{outline:2px solid #c8f86d;outline-offset:4px}
@media(max-width:800px){.workbench-grid,.manifest-grid{grid-template-columns:1fr}.live-workbench,.manifest-workbench{padding-block:2rem}.live-workbench textarea,.manifest-grid textarea{height:300px}}
