:root {
  --ink: #101b2b;
  --ink-soft: #26364c;
  --paper: #f3efe4;
  --paper-2: #e8e1d1;
  --signal: #bafc4a;
  --coral: #ff6d4d;
  --blue: #5b86ff;
  --line: rgba(16, 27, 43, 0.19);
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 27, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}
a { color: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 228, 0.91);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: .08em; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); background: var(--signal); font-size: 13px; letter-spacing: 0; }
nav { display: flex; gap: 28px; }
nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.header-cta { padding: 10px 14px; border: 1px solid var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
  max-width: var(--max);
  min-height: 730px;
  margin: 0 auto;
  padding: 92px 24px;
}
.eyebrow, .kicker { margin: 0 0 24px; font-size: 12px; font-weight: 850; letter-spacing: .18em; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #27b169; box-shadow: 0 0 0 5px rgba(39,177,105,.12); }
h1, h2 { margin: 0; font-weight: 880; letter-spacing: -.055em; line-height: .98; }
h1 { max-width: 780px; font-size: clamp(54px, 7.5vw, 98px); }
h1 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 700px; margin: 32px 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.75; }
.hero-actions, .closing > div { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--ink); font-size: 14px; font-weight: 850; text-decoration: none; }
.button-primary { color: var(--ink); background: var(--signal); box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button-secondary { background: transparent; }
.hero-stats { display: flex; gap: 42px; margin: 54px 0 0; }
.hero-stats div { display: grid; }
.hero-stats dt { font-size: 30px; font-weight: 900; }
.hero-stats dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }

.proof-card { position: relative; padding: 24px; color: #eef4f7; background: var(--ink); box-shadow: 14px 14px 0 var(--coral); transform: rotate(1.25deg); }
.proof-card::before { content: "TRACEABLE"; position: absolute; top: -14px; right: 18px; padding: 6px 9px; color: var(--ink); background: var(--signal); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.proof-head, .proof-row { display: flex; justify-content: space-between; gap: 20px; }
.proof-head { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.18); font: 700 11px/1 monospace; letter-spacing: .08em; }
.proof-state, .pass { color: var(--signal); }
.wave { display: flex; height: 94px; align-items: center; justify-content: space-between; padding: 12px 4px; }
.wave i { width: 5px; height: var(--h, 30%); background: var(--blue); }
.wave i:nth-child(2n) { --h: 72%; background: var(--signal); }
.wave i:nth-child(3n) { --h: 46%; }
.wave i:nth-child(5n) { --h: 88%; background: var(--coral); }
.proof-row { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font: 600 11px/1.35 monospace; }
.proof-row span { color: #92a3b5; }
.hash { margin: 18px 0 0; color: #728499; font: 10px/1 monospace; }

.statement { display: grid; grid-template-columns: repeat(3, 1fr); color: white; background: var(--ink); }
.statement p { min-height: 130px; margin: 0; padding: 42px max(24px, calc((100vw - var(--max)) / 6)); border-right: 1px solid rgba(255,255,255,.16); font-size: 17px; font-weight: 750; line-height: 1.5; }
.statement p:last-child { border-right: 0; }

.section { max-width: var(--max); margin: 0 auto; padding: 130px 24px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 80px; align-items: end; margin-bottom: 64px; }
.section-heading .kicker { grid-column: 1 / -1; margin: 0; }
h2 { font-size: clamp(44px, 6vw, 74px); }
.section-heading > p:last-child { max-width: 480px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.route-card { position: relative; min-height: 470px; padding: 32px; border-right: 1px solid var(--ink); overflow: hidden; }
.route-card:last-child { border-right: 0; }
.route-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 160px; height: 160px; border: 30px solid currentColor; border-radius: 50%; opacity: .09; }
.route-local { background: var(--signal); }
.route-stepfun { background: #fffaf0; }
.route-volc { color: white; background: var(--blue); }
.route-index { font: 900 58px/1 monospace; opacity: .18; }
.route-tag { margin: 50px 0 8px; font: 800 10px/1 monospace; letter-spacing: .13em; }
.route-card h3 { margin: 0 0 18px; font-size: 40px; letter-spacing: -.04em; }
.route-card > p:not(.route-tag), .route-card li { font-size: 14px; line-height: 1.65; }
.route-card ul { margin: 28px 0 0; padding: 22px 0 0 18px; border-top: 1px solid currentColor; }

.architecture { max-width: none; color: white; background: var(--ink); }
.architecture > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-heading.light > p { color: #b7c1cb; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; margin-top: 80px; }
.pipeline-node { min-height: 180px; padding: 22px 16px; border: 1px solid rgba(255,255,255,.26); }
.pipeline-node b { display: block; color: var(--signal); font: 800 11px/1 monospace; }
.pipeline-node strong { display: block; margin: 46px 0 8px; font-size: 19px; }
.pipeline-node span { color: #aeb9c5; font-size: 12px; line-height: 1.5; }
.pipeline-arrow { padding: 0 10px; color: var(--signal); }
.architecture-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.architecture-notes article { padding: 26px; background: rgba(255,255,255,.06); }
.architecture-notes span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ink); background: var(--coral); font-weight: 900; }
.architecture-notes h3 { margin: 38px 0 8px; font-size: 23px; }
.architecture-notes p { margin: 0; color: #aeb9c5; }

.install-panel { position: relative; max-width: 900px; margin: 0 auto; color: #e8edf3; background: var(--ink); box-shadow: 12px 12px 0 var(--blue); }
.terminal-bar { display: flex; gap: 7px; align-items: center; min-height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.terminal-bar span:nth-child(2) { background: #ffd166; }
.terminal-bar span:nth-child(3) { background: var(--signal); }
.terminal-bar b { margin-left: auto; color: #8493a3; font: 600 10px/1 monospace; }
.install-panel pre { margin: 0; padding: 42px 150px 42px 30px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; }
.copy-button { position: absolute; right: 22px; bottom: 26px; padding: 11px 14px; border: 0; color: var(--ink); background: var(--signal); font: 800 12px/1 sans-serif; cursor: pointer; }
.copy-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.steps li { display: flex; gap: 16px; min-height: 150px; padding: 26px 20px; border-right: 1px solid var(--ink); }
.steps li:last-child { border-right: 0; }
.steps b { font: 900 12px/1 monospace; }
.steps strong { display: block; margin-bottom: 12px; }
.steps span { font-size: 13px; line-height: 1.55; }

.evidence { border-top: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.metric-grid article { min-height: 250px; padding: 24px; border-right: 1px solid var(--ink); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid p { margin: 0; font: 700 11px/1.3 monospace; }
.metric-grid strong { display: block; margin-top: 74px; font-size: 48px; letter-spacing: -.04em; }
.metric-grid span { font: 700 11px/1 monospace; }
.metric-grid article:nth-child(1), .metric-grid article:nth-child(2) { background: var(--signal); }
.evidence-footer { display: flex; gap: 60px; align-items: center; justify-content: space-between; padding: 36px 0; border-bottom: 1px solid var(--ink); }
.evidence-footer p { max-width: 800px; line-height: 1.7; }
.evidence-footer a { flex: 0 0 auto; font-weight: 850; text-decoration: none; }

.closing { display: grid; min-height: 540px; place-content: center; justify-items: center; padding: 90px 24px; text-align: center; color: white; background: var(--ink); }
.closing .kicker { color: var(--signal); }
.closing h2 { margin-bottom: 48px; font-size: clamp(58px, 9vw, 110px); }
.button-light { border-color: white; color: white; }
footer { display: flex; justify-content: space-between; padding: 24px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: #09111d; font-size: 11px; letter-spacing: .08em; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .proof-card { max-width: 480px; transform: none; }
  .statement, .route-grid, .architecture-notes, .metric-grid { grid-template-columns: 1fr; }
  .statement p, .route-card, .metric-grid article { border-right: 0; border-bottom: 1px solid currentColor; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .kicker { grid-column: auto; }
  .pipeline { grid-template-columns: 1fr; gap: 10px; }
  .pipeline-arrow { transform: rotate(90deg); text-align: center; }
  .pipeline-node { min-height: 130px; }
  .pipeline-node strong { margin-top: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .metric-grid article { min-height: 190px; }
  .metric-grid strong { margin-top: 42px; }
}

@media (max-width: 580px) {
  .site-header { min-height: 62px; }
  .header-cta { display: none; }
  .hero { padding-top: 68px; }
  h1 { font-size: 49px; }
  .hero-stats { gap: 20px; }
  .statement p { min-height: auto; padding: 28px 24px; }
  .section { padding: 86px 20px; }
  .route-card { min-height: 410px; }
  .install-panel pre { padding: 30px 24px 90px; font-size: 13px; }
  .copy-button { left: 24px; right: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .evidence-footer, footer { flex-direction: column; align-items: flex-start; }
  .closing h2 { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
