@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #07110d;
  --ink-deep: #030806;
  --panel: #0e1b16;
  --paper: #f2f0e8;
  --paper-deep: #e5e2d8;
  --signal: #63e6be;
  --signal-deep: #2f9e7a;
  --moss: #789487;
  --line: #27483b;
  --body: #30423a;
  --danger: #ff7a72;
  --serif: 'Newsreader', 'Iowan Old Style', 'Baskerville', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Berkeley Mono', 'SFMono-Regular', Consolas, monospace;
  --page: min(100% - 48px, 1240px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.035;
  pointer-events: none;
  content: '';
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal-deep);
  outline-offset: 4px;
}

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

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

.site-header,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.04em; }
.brand img { display: block; }
.brand span { font-size: 17px; }

nav { display: flex; align-items: center; gap: 32px; font-size: 12px; }
nav a { transition: color 160ms ease; }
nav a:hover { color: var(--signal-deep); }

.nav-source {
  padding: 12px 15px;
  border: 1px solid var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: var(--page);
  min-height: calc(100vh - 86px);
  margin-inline: auto;
  padding: 76px 0 88px;
  overflow: hidden;
}

.hero-copy,
.terminal { position: relative; z-index: 1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--signal-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span { width: 26px; height: 2px; background: currentColor; }

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

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.055em;
}

h1 { max-width: 760px; font-size: clamp(60px, 7.2vw, 112px); line-height: 0.86; }
h1 em { color: var(--signal-deep); font-style: normal; }

.hero-intro {
  max-width: 650px;
  margin: 36px 0 0;
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 17px 20px;
  font-size: 12px;
  font-weight: 600;
}

.button-primary { color: var(--paper); background: var(--ink); transition: background 160ms ease, transform 160ms ease; }
.button-primary:hover { background: var(--signal-deep); transform: translateY(-2px); }

.text-link {
  display: inline-flex;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.hero-footnote { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.hero-footnote span { padding: 7px 9px; border: 1px solid rgba(7, 17, 13, 0.2); color: var(--body); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }

.terminal {
  margin: 0;
  color: #c3d3cb;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  box-shadow: 24px 24px 0 var(--paper-deep);
  transform: rotate(1.25deg);
  animation: terminal-in 800ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.terminal-bar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 9px; }
.terminal-bar > span { color: var(--moss); }
.terminal-bar b { margin-left: auto; color: var(--signal); font-size: 8px; letter-spacing: 0.12em; }
.terminal-lights { display: flex; gap: 5px; }
.terminal-lights i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.terminal-lights i:last-child { background: var(--signal-deep); }

.terminal-body { padding: 28px clamp(22px, 3vw, 38px) 34px; font-size: clamp(10px, 1vw, 12px); line-height: 1.75; }
.terminal-body p { margin: 0 0 10px; }
.terminal-label { color: var(--moss); font-size: 9px; letter-spacing: 0.14em; }
.prompt { color: var(--signal); }
.terminal-rule { height: 1px; margin: 22px 0; background: var(--line); }
.line-key { display: inline-block; width: 74px; color: var(--signal); font-size: 9px; }
.terminal-status { margin-top: 24px !important; padding-top: 17px; border-top: 1px solid var(--line); color: var(--signal); font-weight: 600; letter-spacing: 0.06em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(99, 230, 190, 0.09); }
.terminal figcaption { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--moss); font-size: 9px; text-align: right; }

.hero-route {
  position: absolute;
  right: -16%;
  bottom: -30%;
  width: 670px;
  opacity: 0.055;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 38px max(24px, calc((100vw - 1240px) / 2));
  color: var(--paper);
  background: var(--ink);
}

.manifesto p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 32px); }
.manifesto p:first-child { color: var(--moss); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.manifesto em { color: var(--signal); font-style: normal; }

.section { width: var(--page); margin-inline: auto; padding: clamp(96px, 12vw, 170px) 0; }
.section-heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 72px; }
.section-heading .eyebrow { align-self: start; }
.section-heading > p:last-child { grid-column: 2; max-width: 600px; margin: 0; color: var(--body); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
h2 { font-size: clamp(50px, 6vw, 84px); line-height: 0.94; }

.workflow-list { margin: 0; padding: 0; border-top: 1px solid rgba(7, 17, 13, 0.28); list-style: none; counter-reset: item; }
.workflow-list li { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid rgba(7, 17, 13, 0.28); }
.step-number { color: var(--signal-deep); font-size: 12px; }
.workflow-list h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(29px, 3vw, 42px); font-weight: 600; letter-spacing: -0.035em; }
.workflow-list p { max-width: 650px; margin: 0; color: var(--body); font-family: var(--serif); font-size: 17px; line-height: 1.55; }

.cases { padding-top: 40px; }
.section-heading.compact { display: block; }
.section-heading.compact h2 { max-width: 880px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.case-grid article { min-height: 330px; padding: 24px; border-right: 1px solid var(--ink); }
.case-grid article:last-child { border-right: 0; }
.case-top { display: flex; justify-content: space-between; gap: 12px; color: var(--body); font-size: 9px; letter-spacing: 0.08em; }
.case-top b { color: var(--signal-deep); }
.case-top .approval { color: #a85f18; }
.case-grid h3 { margin: 74px 0 14px; font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.case-grid p { color: var(--body); font-family: var(--serif); font-size: 17px; }
.case-grid code { font-family: var(--mono); font-size: 0.78em; }
.blocked { margin-top: 42px; padding-top: 14px; border-top: 1px solid rgba(7, 17, 13, 0.2); color: var(--body); font-size: 10px; }
.blocked span { margin-right: 10px; color: #a5453f; }

.proof {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(60px, 9vw, 140px);
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  color: var(--paper);
  background-color: var(--ink);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}

.proof .eyebrow { color: var(--signal); }
.proof h2 { max-width: 560px; }
.proof-intro > p:not(.eyebrow) { max-width: 550px; margin: 28px 0; color: #b7c9c0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.light-link { color: var(--signal); }
.metrics { margin: 0; border-top: 1px solid var(--line); }
.metrics div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 27px 0; border-bottom: 1px solid var(--line); }
.metrics dt { color: #b7c9c0; font-size: 11px; }
.metrics dd { margin: 0; color: var(--signal); font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.metrics small { color: var(--moss); font-family: var(--mono); font-size: 11px; letter-spacing: 0; }

.closing { display: grid; grid-template-columns: auto 1fr; gap: 38px; align-items: start; }
.closing > img { padding: 14px; background: var(--ink); }
.closing h2 { max-width: 960px; }
.command-block { position: relative; grid-column: 2; display: flex; align-items: center; margin-top: 28px; padding: 15px 15px 15px 20px; border: 1px solid rgba(7, 17, 13, 0.35); }
.command-block code { overflow: hidden; font-family: var(--mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-block button { margin-left: auto; padding: 12px 14px; border: 0; color: var(--paper); background: var(--ink); font: 600 10px var(--mono); cursor: pointer; }
.copy-status { position: absolute; right: 0; bottom: -27px; color: var(--signal-deep); font-size: 10px; }

footer { display: grid; grid-template-columns: 0.5fr 1fr auto; gap: 30px; align-items: center; padding: 30px 0; border-top: 1px solid rgba(7, 17, 13, 0.28); color: var(--body); font-size: 10px; }
footer p { margin: 0; text-align: center; }
footer > a:last-child { text-align: right; }

@keyframes terminal-in {
  from { opacity: 0; transform: translateY(34px) rotate(1.25deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.25deg); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 820px; }
  .terminal { max-width: 690px; margin-left: auto; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .case-grid article:last-child { border-bottom: 0; }
  .case-grid h3 { margin-top: 44px; }
  .proof { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 32px, 1240px); }
  .site-header { min-height: 72px; }
  nav a:not(.nav-source) { display: none; }
  .nav-source { padding: 9px 11px; }
  .hero { padding: 64px 0 80px; }
  h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-intro { margin-top: 28px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .terminal { margin-left: 0; box-shadow: 12px 12px 0 var(--paper-deep); transform: none; animation-name: terminal-in-mobile; }
  .terminal-bar b { display: none; }
  .line-key { display: block; width: auto; }
  .manifesto { grid-template-columns: 1fr; }
  .section { padding: 96px 0; }
  .section-heading,
  .workflow-list li { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p:last-child { grid-column: auto; }
  .workflow-list li { padding: 30px 0; }
  .proof { width: 100%; padding: 96px 16px; }
  .closing { grid-template-columns: 1fr; }
  .closing > img { width: 68px; height: 68px; }
  .command-block { grid-column: 1; }
  .command-block button span { display: none; }
  .command-block button::after { content: 'Copy'; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@keyframes terminal-in-mobile {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
