:root {
  --ink: #111416;
  --muted: #5f666c;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --line: #d8ded6;
  --line-strong: #242a2d;
  --forest: #1c5c4f;
  --blue: #205c9c;
  --copper: #b8512f;
  --amber: #d4a72c;
  --dark: #111820;
  --dark-soft: #18222d;
  --dark-line: #34414e;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(17, 20, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 20, 22, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 22, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(17, 20, 22, 0.14);
  background: rgba(246, 247, 242, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  min-width: 76px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--ink);
  color: white;
  outline: none;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

main,
section,
div,
article {
  min-width: 0;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  font-size: 4.7rem;
  hyphens: auto;
}

h2 {
  max-width: 820px;
  font-size: 3rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  line-height: 1.25;
}

.lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: #33383d;
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

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

.button-secondary {
  background: white;
}

.system-panel {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--dark);
  color: #eaf0ef;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dark-line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.panel-header span {
  color: #9eaab5;
}

.panel-header strong {
  color: #84d69b;
}

.terminal-lines {
  display: grid;
  gap: 12px;
  padding: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.91rem;
}

.terminal-lines span {
  display: block;
  padding: 12px;
  border: 1px solid var(--dark-line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--dark-soft);
  overflow-wrap: anywhere;
}

.terminal-lines b {
  display: inline-block;
  min-width: 82px;
  color: var(--amber);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 40px));
  margin: -18px auto 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--ink);
}

.proof-strip span {
  flex: 1 1 180px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  color: #30363b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.proof-strip span:last-child {
  border-right: 0;
}

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

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  color: #42484d;
  font-size: 1.05rem;
}

.pipeline-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pipeline-step,
.evidence-card,
.signal-grid > div,
.command-grid > div {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.pipeline-step {
  min-height: 220px;
  padding: 22px;
  box-shadow: 4px 4px 0 rgba(17, 20, 22, 0.85);
}

.pipeline-step span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.pipeline-step p,
.evidence-card p,
.signal-grid p {
  margin: 0;
  color: #4d545a;
}

.section-dark {
  width: 100%;
  max-width: none;
  padding: 82px max(20px, calc((100% - 1180px) / 2));
  background: var(--dark);
  color: white;
}

.section-dark .eyebrow {
  color: var(--amber);
}

.section-dark h2 {
  color: white;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.signal-grid > div {
  border-color: var(--dark-line);
  background: #17212a;
  padding: 22px;
}

.signal-grid p {
  color: #bdc8d2;
}

.output-tables {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

code,
pre {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.output-tables code {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: #f0d27a;
  background: #0c1218;
  overflow-x: auto;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.evidence-card {
  min-height: 210px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.evidence-card:hover,
.evidence-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(32, 92, 156, 0.16);
  outline: none;
}

.evidence-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--copper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stack-table {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.stack-table > div {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.7fr;
  border-bottom: 1px solid var(--line);
}

.stack-table > div:last-child {
  border-bottom: 0;
}

.stack-table span {
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

.stack-table span:last-child {
  border-right: 0;
}

.table-head {
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.run-section {
  padding-bottom: 88px;
}

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

.command-grid > div {
  overflow: hidden;
}

.command-grid h3 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #eef3ed;
}

pre {
  margin: 0;
  padding: 18px;
  color: #f2f6f5;
  background: var(--dark);
  overflow-x: auto;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .section,
  .proof-strip {
    width: calc(100vw - 40px);
    max-width: 760px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy,
  .system-panel {
    max-width: 100%;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .pipeline-map,
  .signal-grid,
  .evidence-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .stack-table > div {
    grid-template-columns: 1fr;
  }

  .stack-table span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .table-head {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .section,
  .proof-strip {
    width: 320px;
    max-width: calc(100vw - 40px);
    margin-left: 20px;
    margin-right: auto;
  }

  .section {
    padding: 54px 0;
  }

  h1 {
    font-size: 1.92rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.9rem;
  }

  .lede {
    font-size: 1.05rem;
  }

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

  .button {
    text-align: center;
    box-shadow: 0 4px 0 var(--ink);
  }

  .button:hover,
  .button:focus-visible {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--ink);
  }

  .proof-strip {
    margin-top: 0;
  }

  .hero,
  .hero-copy,
  .hero-actions,
  .button,
  .system-panel,
  .lede {
    max-width: calc(100vw - 56px);
  }

  .button {
    width: calc(100vw - 56px);
  }

  .proof-strip span {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip span:last-child {
    border-bottom: 0;
  }

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

  .terminal-lines {
    font-size: 0.82rem;
  }

  .terminal-lines b {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.72rem;
  }

  .hero,
  .hero-copy,
  .hero-actions,
  .button,
  .system-panel,
  .lede {
    width: 100%;
    max-width: 100%;
  }
}
