:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #536170;
  --line: #d8dee6;
  --paper: #fbfcfd;
  --band: #eef3f6;
  --blue: #1d5f91;
  --green: #287a5a;
  --red: #a43f3b;
  --gold: #9c6b15;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: var(--blue);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 253, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--blue);
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #f4f8fa;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
}

h2 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.13rem, 2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
}

.evidence-visual {
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(23, 32, 42, 0.12);
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.flow-row:last-of-type {
  border-bottom: 0;
}

.node {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
  font-weight: 700;
}

.arrow {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.verified .node:first-child {
  border-color: rgba(29, 95, 145, 0.44);
}

.routed .node:first-child {
  border-color: rgba(156, 107, 21, 0.45);
}

.audited .node:first-child {
  border-color: rgba(164, 63, 59, 0.42);
}

figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.band.muted {
  background: var(--band);
}

.section-head {
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

article {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

article p,
.band p,
.steps span,
.boundaries {
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  min-height: 150px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: #ffffff;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.command-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
}

code {
  display: block;
  overflow-wrap: anywhere;
  color: #e6f2ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.boundaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding-left: 20px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

footer span {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .grid.three,
  .grid.two,
  .steps,
  .boundaries {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .topbar,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 8px;
  }

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