:root {
  --ink: #11100e;
  --muted: #69645b;
  --paper: #f2eee5;
  --paper-deep: #e7e0d3;
  --orange: #e95d2a;
  --orange-bright: #ff6b35;
  --line: rgba(17, 16, 14, .17);
  --black: #0b0a08;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, textarea { font: inherit; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.grain { position: fixed; inset: 0; opacity: .028; pointer-events: none; z-index: 20; 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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 30px; font-size: 13px; font-weight: 650; }
.nav nav a, footer a { text-decoration: none; color: #4d4942; }
.nav nav a:hover, footer a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.announcement { border: 1px solid var(--orange); border-top: 0; padding: 10px 14px; color: #6c3b29; font: 700 10px/1.5 var(--mono); letter-spacing: .04em; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #4d9d67; box-shadow: 0 0 0 4px rgba(77,157,103,.13); }
.live-pill.offline i { background: #b34931; box-shadow: 0 0 0 4px rgba(179,73,49,.13); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid var(--ink); padding: 14px 19px; text-decoration: none; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 750; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { padding: 9px 14px; font-size: 11px; }
.button-primary { background: var(--orange); border-color: var(--orange); color: var(--black); }
.button-primary:hover { background: var(--orange-bright); }
.button-ghost:hover { background: var(--ink); color: var(--paper); }

.hero { padding: 114px 0 0; }
.eyebrow, .section-index { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: #736c62; }
.eyebrow span { color: var(--orange); margin-right: 7px; }
.hero h1 { margin: 25px 0 24px; font-size: clamp(62px, 9vw, 126px); line-height: .82; letter-spacing: -.07em; max-width: 1050px; }
.hero h1 em { color: var(--orange); font-family: var(--serif); font-weight: 400; }
.hero-copy { width: min(600px, 100%); font-size: 19px; line-height: 1.58; color: #575149; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.protocol-strip { margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.protocol-strip div { padding: 21px 24px 20px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.protocol-strip div:not(:first-child) { padding-left: 24px; }
.protocol-strip div:last-child { border-right: 0; }
.protocol-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: #827b70; }
.protocol-strip strong { font-size: 13px; }

.terminal-section { padding: 110px 0 130px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .72fr); position: relative; }
.terminal-glow { position: absolute; width: 380px; height: 380px; background: var(--orange); filter: blur(120px); opacity: .08; left: 19%; top: 15%; pointer-events: none; }
.terminal { min-width: 0; background: #11110f; color: #dfd9cd; min-height: 470px; box-shadow: 0 28px 70px rgba(39,31,21,.17); position: relative; z-index: 1; }
.terminal-topbar { height: 50px; border-bottom: 1px solid #2b2925; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 17px; font-family: var(--mono); font-size: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.red { background: #ad4430; }.dot.amber { background: #b98735; }.dot.green { background: #4b8659; }
.terminal-title { color: #7f7b74; }.terminal-status { justify-self: end; color: #6e9e78; }
.terminal pre { margin: 0; padding: 28px 30px 34px; height: 420px; overflow: auto; font: 12px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.terminal pre .key { color: #ec835d; }.terminal pre .string { color: #c7d591; }.terminal pre .number { color: #8fb6cf; }.terminal pre .boolean { color: #ca9ac5; }.terminal pre .muted { color: #6e6b64; }
.receipt-card { background: var(--orange); color: #17130f; padding: 36px 34px; margin: 34px 0 -34px; position: relative; z-index: 2; }
.receipt-kicker { font: 700 10px var(--mono); letter-spacing: .16em; }
.receipt-card h2 { font: 400 36px/1 var(--serif); letter-spacing: -.03em; margin: 20px 0 35px; }
.receipt-card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(17,16,14,.24); }
.receipt-card li { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(17,16,14,.24); }
.receipt-card li > span { font: 10px var(--mono); padding-top: 2px; }
.receipt-card strong, .receipt-card small { display: block; }.receipt-card strong { font-size: 13px; }.receipt-card small { font-size: 11px; line-height: 1.5; margin-top: 5px; opacity: .72; }

.manifesto { padding: 0 0 130px; }
.manifesto-grid { display: grid; grid-template-columns: 1.1fr .65fr; gap: 12%; padding: 38px 0 84px; }
.manifesto h2, .agents h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.manifesto-grid > div { color: #5d574e; line-height: 1.65; font-size: 16px; }
.manifesto-grid p:first-child { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat-grid article { padding: 25px 35px 10px 0; border-right: 1px solid var(--line); }
.stat-grid article:not(:first-child) { padding-left: 35px; }
.stat-grid article:last-child { border-right: 0; }
.stat-grid article > span { color: var(--orange); font: 11px var(--mono); }.stat-grid strong { display: block; font-size: 20px; margin: 33px 0 10px; }.stat-grid p { color: #686157; font-size: 13px; line-height: 1.6; max-width: 260px; }

.call-section { background: var(--black); color: #eee9de; padding: 116px 0; }
.call-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9%; align-items: center; }
.section-index.inverse { color: #807a70; }.call-grid h2 { font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; margin: 33px 0 28px; }.call-copy { color: #99938a; line-height: 1.65; max-width: 500px; }.call-copy code { color: var(--orange); }
.endpoint { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #34312c; padding: 11px 12px; margin-top: 32px; font: 10px var(--mono); }
.endpoint > span { background: var(--orange); color: var(--black); padding: 5px 7px; font-weight: 800; }.endpoint code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b8b2a8; }.copy { border: 0; background: transparent; color: #807a70; font: 700 9px var(--mono); letter-spacing: .1em; cursor: pointer; }.copy:hover { color: var(--orange); }
.code-card { min-width: 0; border: 1px solid #302e2a; position: relative; background: #100f0e; }
.code-tabs { height: 48px; border-bottom: 1px solid #302e2a; display: flex; align-items: stretch; }.code-tabs button { color: #777169; background: transparent; border: 0; padding: 0 20px; font: 10px var(--mono); cursor: pointer; border-right: 1px solid #302e2a; }.code-tabs button.active { color: var(--orange); background: #171512; }.code-card pre { margin: 0; min-height: 235px; padding: 35px 28px; overflow: auto; font: 12px/1.9 var(--mono); color: #a8a299; }.code-string { color: #c3cf91; }.code-keyword { color: #d283b8; }.code-fn { color: #ed7951; }.code-copy { position: absolute; right: 15px; top: 16px; }

.agents { padding: 125px 0; }.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: start; margin-top: 38px; }.agent-links { border-top: 1px solid var(--line); }.agent-links a { display: grid; grid-template-columns: 145px 1fr auto; align-items: center; padding: 22px 5px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, padding .2s; }.agent-links a:hover { color: var(--orange); padding-left: 12px; }.agent-links span { font: 700 12px var(--mono); }.agent-links small { color: #716a60; }.agent-links b { font-size: 17px; }
footer { border-top: 1px solid var(--line); padding: 36px 0; }.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; }.footer-grid p { text-align: center; color: #70695f; font-size: 12px; }.footer-grid > div:last-child { display: flex; justify-content: flex-end; gap: 22px; font-size: 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 25px); background: var(--ink); color: var(--paper); padding: 11px 18px; font: 11px var(--mono); opacity: 0; pointer-events: none; transition: .25s; z-index: 30; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .nav nav { display: none; }.live-pill { display: none; }.hero { padding-top: 80px; }.hero h1 { font-size: clamp(58px, 17vw, 100px); }.protocol-strip { grid-template-columns: 1fr 1fr; margin-top: 70px; }.protocol-strip div:nth-child(2) { border-right: 0; }.protocol-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.terminal-section, .manifesto-grid, .call-grid, .agents-grid { grid-template-columns: 1fr; }.receipt-card { margin: 0 20px; }.manifesto-grid, .agents-grid { gap: 45px; }.stat-grid { grid-template-columns: 1fr; }.stat-grid article, .stat-grid article:not(:first-child) { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }.stat-grid strong { margin-top: 15px; }.call-grid { gap: 65px; }.footer-grid { grid-template-columns: 1fr; gap: 15px; }.footer-grid p { text-align: left; }.footer-grid > div:last-child { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1180px); }.nav { height: 68px; }.button-small { display: none; }.hero { padding-top: 60px; }.hero h1 { margin-top: 20px; }.hero-copy { font-size: 16px; }.hero-actions { flex-direction: column; align-items: stretch; }.protocol-strip div, .protocol-strip div:not(:first-child) { padding: 16px 10px; }.terminal-section { padding-top: 75px; }.terminal pre { padding: 21px 18px; }.terminal-topbar { grid-template-columns: 1fr 1fr; }.terminal-title { display: none; }.receipt-card { margin: 0 8px; padding: 30px 24px; }.manifesto, .agents { padding-bottom: 90px; }.call-section { padding: 85px 0; }.agent-links a { grid-template-columns: 115px 1fr auto; gap: 8px; }.agent-links small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
