:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #11161a;
  --line: #283139;
  --text: #edf2f4;
  --muted: #96a2aa;
  --green: #79e6b2;
  --amber: #e5bd72;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 70%);
}

a { color: inherit; }
.skip { position: fixed; top: -100px; left: 16px; padding: 10px 16px; background: var(--green); color: #07110d; z-index: 10; }
.skip:focus { top: 16px; }
header, main, footer { width: min(calc(100% - 40px), var(--max)); margin: auto; }
header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.mark { color: var(--green); font-size: 1.3rem; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .8rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--green); }
nav .nav-cta { margin-left: 4px; padding: 7px 11px; border: 1px solid #79e6b273; color: var(--green); }

.hero { min-height: 640px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: center; padding: 90px 0; }
.eyebrow { margin: 0 0 18px; color: var(--green); font: 700 .7rem ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #79e6b21a; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(3.4rem, 7.2vw, 6.8rem); line-height: .94; letter-spacing: -.065em; }
.lede { max-width: 720px; margin-bottom: 36px; color: #b7c1c7; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { padding: 11px 18px; border: 1px solid #3a4650; text-decoration: none; font-size: .84rem; font-weight: 700; }
.button.primary { border-color: var(--green); background: var(--green); color: #07110d; }

.scope { position: relative; padding: 28px; border: 1px solid var(--line); background: #11161ae8; box-shadow: 12px 12px 0 #080a0c; }
.scope::before { content: ""; position: absolute; top: -1px; left: -1px; width: 72px; height: 2px; background: var(--green); }
.scope-head, .meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.scope-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.scope-head b, .tag { padding: 3px 7px; border: 1px solid #3a4650; color: var(--muted); font: 700 .6rem ui-monospace, monospace; letter-spacing: .08em; }
dl { margin: 8px 0 20px; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .78rem; }
dd { margin: 0; font-size: .8rem; font-weight: 650; text-align: right; }
.micro { margin: 0; color: #78858d; font-size: .67rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.principles div { padding: 30px; border-right: 1px solid var(--line); }
.principles div:first-child { padding-left: 0; }
.principles div:last-child { border: 0; }
.principles i { display: block; margin-bottom: 22px; color: var(--green); font: 700 .68rem ui-monospace, monospace; }
.principles strong { display: block; font-size: .9rem; }
.principles p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }

.section { padding: 120px 0 20px; scroll-margin-top: 30px; }
.heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.heading h2 { margin: 0; font-size: clamp(2.3rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.heading > p { margin: 0; color: var(--muted); font-size: .92rem; }

.products { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { min-height: 285px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #11161a80; }
.product.lead { grid-row: span 2; min-height: 570px; background: linear-gradient(145deg, #79e6b219, #11161a8c 55%); }
.meta > span { color: #65727a; font: 700 .68rem ui-monospace, monospace; }
.tag.live { border-color: #79e6b273; background: #79e6b219; color: var(--green); }
.product h3 { margin: 46px 0 14px; font-size: 1.55rem; }
.product.lead h3 { margin-top: 110px; font-size: 2.5rem; }
.product p { color: var(--muted); font-size: .88rem; }
.product ul { margin: 30px 0; padding: 0; list-style: none; color: #b8c2c8; font-size: .78rem; }
.product li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.product li::before { content: "+"; margin-right: 10px; color: var(--green); }
.product a, .log a { color: var(--green); font-size: .77rem; font-weight: 700; text-decoration: none; }
.product-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof article { min-height: 230px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.proof i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 34px; border: 1px solid #3a4650; color: var(--green); font: 700 .6rem ui-monospace, monospace; }
.proof h3 { margin-bottom: 8px; font-size: .96rem; }
.proof p { min-height: 60px; color: var(--muted); font-size: .76rem; }
.proof b, .pending { color: var(--amber); font: 700 .65rem ui-monospace, monospace; text-transform: uppercase; }
.proof .verified { color: var(--green); font: 700 .65rem ui-monospace, monospace; text-transform: uppercase; }

.research { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.research article { display: flex; min-height: 255px; padding: 24px; border: 1px solid var(--line); background: var(--panel); flex-direction: column; }
.research i { margin-bottom: 34px; color: var(--green); font: 700 .62rem ui-monospace, monospace; font-style: normal; letter-spacing: .08em; }
.research h3 { margin-bottom: 8px; font-size: 1rem; }
.research p { color: var(--muted); font-size: .78rem; }
.research b { margin-top: auto; color: var(--amber); font: 700 .65rem ui-monospace, monospace; text-transform: uppercase; }
.research b.ready { color: var(--green); }
.research a, .registry-link a { margin-top: 14px; color: var(--green); font-size: .76rem; font-weight: 700; text-decoration: none; }

.notice { margin: 20px 0 0; padding: 18px 20px; border-left: 2px solid var(--amber); background: #e5bd720f; color: #9da6aa; font-size: .73rem; }
.notice strong { color: var(--amber); }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
th { padding: 14px 18px; border-bottom: 1px solid var(--line); color: #748089; font: 700 .6rem ui-monospace, monospace; text-transform: uppercase; }
td { padding: 22px 18px; border-right: 1px solid var(--line); font-size: .78rem; }
td:last-child { border: 0; }
td strong, td small { display: block; }
td small { color: var(--muted); }
.registry-link { margin: 14px 0 0; text-align: right; }

.logs { display: grid; gap: 14px; }
.log { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); background: var(--panel); }
.log-id { padding: 28px; border-right: 1px solid var(--line); }
.log-id b, .log-id time { display: block; font: 700 .68rem ui-monospace, monospace; }
.log-id b { margin-bottom: 8px; color: var(--green); }
.log-id time { color: var(--muted); }
.log-body { padding: 32px; }
.log-body h3 { margin: 0; }
.log-body > p { margin: 18px 0 26px; color: var(--muted); font-size: .86rem; }
.checklist { margin-bottom: 28px; border-top: 1px solid var(--line); }
.checklist div { display: grid; grid-template-columns: 190px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .7rem; }
.checklist code { color: #77848b; font-size: .66rem; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 120px; padding: 48px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
footer .brand { color: var(--text); font-size: .9rem; }
footer div > p { margin-top: 14px; }
footer .operator-credit { margin-top: 9px; color: #647078; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* Formatted product and build-log pages */
.subpage header { position: relative; }
.breadcrumb { display: flex; gap: 9px; align-items: center; padding-top: 28px; color: var(--muted); font: 650 .68rem ui-monospace, monospace; text-transform: uppercase; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.product-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 72px; align-items: center; min-height: 570px; padding: 82px 0 66px; }
.product-hero h1, .log-page h1 { max-width: 850px; font-size: clamp(3.3rem, 6.7vw, 6.2rem); }
.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--panel); }
.status-strip div { padding: 20px 22px; border-right: 1px solid var(--line); }
.status-strip div:last-child { border-right: 0; }
.status-strip span, .status-strip strong { display: block; }
.status-strip span { margin-bottom: 5px; color: var(--muted); font: 700 .6rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.status-strip strong { color: var(--green); font-size: .8rem; }
.section.compact { padding-top: 94px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #11161a80; }
.feature-grid i { display: block; margin-bottom: 44px; color: var(--green); font: 700 .65rem ui-monospace, monospace; font-style: normal; }
.feature-grid h3 { margin-bottom: 9px; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .82rem; }
.product-shot { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.product-shot a { display: block; }
.product-shot img { display: block; width: 100%; height: auto; }
.product-shot figcaption { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font: 650 .65rem ui-monospace, monospace; text-transform: uppercase; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-grid article { min-height: 170px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.method-grid span { color: var(--green); font: 700 .62rem ui-monospace, monospace; letter-spacing: .06em; }
.method-grid p { margin: 34px 0 0; color: var(--muted); font-size: .8rem; }
.text-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.text-links a { color: var(--green); font-size: .76rem; font-weight: 700; text-decoration: none; }
.text-links.vertical { align-items: flex-start; flex-direction: column; gap: 10px; }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.limits p { margin: 0; padding: 24px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.page-cta { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-top: 100px; padding: 46px; border: 1px solid #79e6b259; background: linear-gradient(135deg, #79e6b21a, #11161a 60%); }
.page-cta h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.page-cta p:last-child { margin: 0; color: var(--muted); }
.page-cta .button { flex: 0 0 auto; }

.log-page { width: min(100%, 920px); margin: 0 auto; padding: 78px 0 20px; }
.log-page-head { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: end; height: auto; width: 100%; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.log-page-head .lede { margin-bottom: 0; }
.record-meta { margin: 0; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.record-meta div { padding: 9px 0; }
.log-page > section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.log-page > section h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; }
.log-page > section > p { max-width: 760px; color: #b0bbc1; }
.record-list { border-top: 1px solid var(--line); }
.record-list div { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.record-list span { color: var(--green); font: 700 .65rem ui-monospace, monospace; text-transform: uppercase; }
.record-list strong { color: #b0bbc1; font-size: .8rem; font-weight: 500; }

@media (max-width: 880px) {
  nav { gap: 16px; }
  nav .nav-cta { margin-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .scope { max-width: 520px; }
  .principles { grid-template-columns: 1fr; }
  .principles div, .principles div:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .heading { grid-template-columns: 1fr; gap: 22px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .research { grid-template-columns: 1fr 1fr; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .status-strip div:nth-child(2) { border-right: 0; }
  .status-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-grid, .limits { grid-template-columns: 1fr; }
  .log-page-head { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  header, main, footer { width: calc(100% - 28px); }
  nav a { display: none; }
  nav .nav-cta { display: block; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero { min-height: auto; padding: 66px 0; }
  .products, .proof, .research { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .product.lead { grid-row: auto; min-height: 460px; }
  .product.lead h3 { margin-top: 70px; }
  .log { grid-template-columns: 1fr; }
  .log-id { border-right: 0; border-bottom: 1px solid var(--line); }
  .checklist div { grid-template-columns: 1fr; }
  .page-cta { align-items: flex-start; flex-direction: column; padding: 28px; }
  .record-list div { grid-template-columns: 1fr; gap: 6px; }
  footer { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
