:root {
  color-scheme: light;
  --ink: #1c1c2e;
  --muted: #64648a;
  --paper: #f7f8fc;
  --paper-deep: #ecedfa;
  --white: #fff;
  --night: #16213e;
  --night-soft: #1c2d5e;
  --deep: #0d0d1a;
  --blue-2: #1c2d5e;
  --soft: #ecedfa;
  --ok: #2e7d32;
  --fail: #a12323;
  --warn: #9a6a00;
  --teal: #c84b11;
  --teal-bright: #e07b50;
  --lime: #e07b50;
  --orange: #9a6a00;
  --line: #dde0ec;
  --shadow: 0 18px 50px rgba(13, 13, 26, .12);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.62; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { max-width: 100%; }
code, pre { font-family: var(--mono); }
code { font-size: .91em; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: .65rem 1rem; background: var(--lime); color: var(--night); font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 10; top: 0; color: #fff; background: var(--night); border-bottom: 3px solid var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.28); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--teal); border-radius: 8px; font: 900 .92rem/1 var(--mono); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-size: 1.1rem; letter-spacing: -.02em; }
.brand small { margin-top: .28rem; color: rgba(255,255,255,.58); font: .69rem/1 var(--mono); letter-spacing: .08em; }
.runtime-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .48rem .75rem; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(255,255,255,.72); font: .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.runtime-pill span { width: 7px; height: 7px; border-radius: 50%; background: #2e7d32; box-shadow: 0 0 0 4px rgba(46,125,50,.16); }
.site-nav { border-top: 1px solid rgba(255,255,255,.09); }
.site-nav .wrap { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.site-nav a { flex: 0 0 auto; padding: .86rem 0 .8rem; border-bottom: 3px solid transparent; color: rgba(255,255,255,.68); font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); border-color: var(--lime); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: 6.8rem; background: radial-gradient(circle at 85% 20%, var(--soft), transparent 36%); }
.kicker, .eyebrow { margin: 0 0 1rem; color: var(--teal); font: 800 .72rem/1.2 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .page-hero h1, .article h1, .error-page h1 { margin: 0; font-size: clamp(3.35rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.075em; }
.hero h1 em { color: var(--teal); font-family: var(--serif); font-weight: 400; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.65; }
.hero-copy .lede { max-width: 690px; margin: 2rem 0 0; }
.platform-claim { max-width: 690px; margin: 1.35rem 0 0; padding: 1rem 1.1rem; color: var(--blue-2); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 6px 6px 0; box-shadow: 0 3px 0 rgba(13,13,26,.04); }
.hero-actions, .route-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.08rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: transparent; font-size: .82rem; font-weight: 800; text-decoration: none; }
.button:hover { border-color: var(--teal); color: var(--teal); }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 8px 24px rgba(200,75,17,.2); }
.button.primary:hover { background: var(--teal-bright); }
.terminal { overflow: hidden; color: #f7f8fc; background: #0d0d1a; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; box-shadow: 18px 24px 0 var(--paper-deep), var(--shadow); }
.terminal-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.09); background: var(--night-soft); }
.terminal-bar > span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.terminal-bar > span:first-child { background: var(--teal-bright); }
.terminal-bar > span:nth-child(2) { background: #9a6a00; }
.terminal-bar > span:nth-child(3) { background: #2e7d32; }
.terminal-bar small { margin-left: auto; color: rgba(255,255,255,.58); font: .68rem/1 var(--mono); }
.terminal pre { min-height: 185px; margin: 0; padding: 1.8rem; white-space: pre-wrap; font-size: .85rem; line-height: 1.9; }
.terminal code b { color: var(--lime); font-weight: 500; }
.terminal-output { display: grid; gap: .55rem; padding: 1.1rem 1.8rem 1.45rem; border-top: 1px solid rgba(255,255,255,.08); background: rgba(224,123,80,.08); }
.terminal-output span, .result span, .demo-blocks span, .route-result > span { color: var(--teal-bright); font: 700 .65rem/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.terminal-output strong { font: 500 .9rem/1.7 var(--mono); }

.proof-strip { color: #f7f8fc; background: var(--night-soft); border-block: 1px solid rgba(255,255,255,.08); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-grid div { display: grid; gap: .35rem; padding: 2rem 1.8rem; border-left: 1px solid rgba(255,255,255,.1); }
.metric-grid div:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.metric-grid strong { color: var(--lime); font: 500 2.15rem/1 var(--serif); }
.metric-grid span { color: rgba(255,255,255,.62); font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; padding-block: 7rem; }
.section-grid h2, .section-heading h2, .note-panel h2, .comparison-callout h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }
.prose p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.08rem; }
.cards-section { padding: 1rem 0 7rem; }
.section-heading { margin-bottom: 2.5rem; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 0 rgba(13,13,26,.04); }
.card-number { color: var(--orange); font: 700 .7rem/1 var(--mono); }
.card h3 { margin: 3.8rem 0 1rem; font-size: 1.45rem; letter-spacing: -.025em; }
.card p { color: var(--muted); }
.card a, .journal-grid a, .text-link { margin-top: auto; color: var(--teal); font-size: .82rem; font-weight: 800; text-decoration: none; }
.card a:hover, .journal-grid a:hover, .text-link:hover { text-decoration: underline; }
.principle { padding: 1rem 0 8rem; text-align: center; }
.principle blockquote { max-width: 950px; margin: 1.5rem auto 0; font: 400 clamp(2rem, 4.5vw, 4.2rem)/1.13 var(--serif); letter-spacing: -.035em; }

.page-hero { padding-block: 6.5rem 4.7rem; text-align: center; }
.page-hero h1, .article h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero .lede { max-width: 750px; margin: 1.6rem auto 0; }
.example-list { padding-bottom: 7rem; }
.example-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 4rem; align-items: center; padding: 4.5rem 0; border-top: 1px solid var(--line); }
.example-copy h2 { margin: 0 0 1rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.example-copy p { color: var(--muted); }
.code-panel { overflow: hidden; color: #f7f8fc; background: var(--night); border-radius: 7px; box-shadow: var(--shadow); }
.code-label { padding: .75rem 1.2rem; color: rgba(255,255,255,.58); background: #0d0d1a; border-bottom: 1px solid rgba(255,255,255,.09); font: .65rem/1 var(--mono); }
.code-panel pre { margin: 0; padding: 1.5rem; overflow-x: auto; font-size: .78rem; line-height: 1.72; white-space: pre-wrap; }
.result { display: grid; gap: .55rem; padding: 1rem 1.5rem 1.3rem; background: rgba(224,123,80,.1); border-top: 1px solid rgba(255,255,255,.08); }
.result strong { color: #fff; font: 500 .86rem/1.65 var(--mono); }
.example-form { margin-top: 1.6rem; }
.example-form label { display: block; margin-bottom: .45rem; font-size: .75rem; font-weight: 800; }
.example-form > div { display: flex; }
.example-form input { min-width: 0; flex: 1; height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 4px 0 0 4px; background: var(--white); font: inherit; }
.example-form button { height: 44px; padding: 0 1rem; border: 0; border-radius: 0 4px 4px 0; color: #fff; background: var(--teal); font-weight: 800; cursor: pointer; }

.framework-list { display: grid; gap: 1rem; padding-bottom: 5rem; }
.framework-card { display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; padding: 3.2rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal); }
.framework-card.review { border-left-color: var(--orange); }
.framework-status span { display: inline-block; padding: .45rem .65rem; color: #fff; background: var(--teal); border-radius: 3px; font: 800 .65rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.framework-card.review .framework-status span { background: var(--orange); }
.framework-status small { display: block; margin-top: .8rem; color: var(--muted); font: .67rem/1.3 var(--mono); }
.framework-card h2 { margin: 0 0 1rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.framework-card p { color: var(--muted); }
.check-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.check-list li { padding: .35rem .55rem; background: var(--paper-deep); border-radius: 3px; color: var(--night-soft); font-size: .73rem; font-weight: 750; }
.note-panel { margin-bottom: 7rem; padding: 3.5rem; color: #fff; background: var(--night-soft); }
.note-panel .eyebrow { color: var(--lime); }
.note-panel p:last-child { max-width: 850px; color: rgba(255,255,255,.68); }

.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-bottom: 5rem; }
.journal-grid article { min-height: 310px; display: flex; flex-direction: column; align-items: flex-start; padding: 2.3rem; background: var(--white); border: 1px solid var(--line); }
.journal-grid .journal-lead { grid-column: span 2; min-height: 410px; justify-content: flex-end; color: #fff; background: var(--night-soft); }
.journal-grid .journal-lead .eyebrow { color: var(--lime); }
.journal-grid h2 { margin: 0 0 1rem; font-size: 1.8rem; line-height: 1.17; letter-spacing: -.035em; }
.journal-grid .journal-lead h2 { max-width: 760px; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.journal-grid h2 a { color: inherit; font: inherit; text-decoration: none; }
.journal-grid p:not(.eyebrow) { color: var(--muted); }
.journal-grid .journal-lead p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.68); }
.comparison-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 7rem; padding: 4rem; border: 1px solid var(--line); background: var(--paper-deep); }
.comparison-callout .button { margin-top: 1rem; }

.progress-overview { margin-bottom: 2rem; padding: 2.8rem; color: #f7f8fc; background: var(--night); }
.progress-copy { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.progress-copy .eyebrow { width: 100%; color: var(--lime); }
.progress-copy strong { color: var(--lime); font: 400 4rem/1 var(--serif); }
.progress-copy p:last-child { color: rgba(255,255,255,.68); }
.progress-track { height: 9px; margin-top: 1.5rem; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--teal-bright); }
.ledger-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ledger-explainer article { padding: 2.2rem; border: 1px solid var(--line); background: var(--white); }
.ledger-explainer h2 { margin-top: 0; }
.ledger-explainer dl div { margin-top: 1rem; }
.ledger-explainer dt { font-weight: 800; }
.ledger-explainer dd { margin: .3rem 0 0 1.3rem; color: var(--muted); font-size: .9rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: .55rem; border-radius: 50%; }
.status-dot.implemented { background: var(--teal-bright); }
.status-dot.unavailable { background: var(--orange); }
.feature-groups { padding-block: 5rem 7rem; }
.feature-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-link-grid a { display: flex; align-items: baseline; gap: .8rem; padding: 1.4rem; background: var(--white); text-decoration: none; }
.feature-link-grid a:hover { color: var(--teal); background: var(--paper); }
.feature-link-grid strong { font: 400 1.8rem/1 var(--serif); }
.feature-link-grid span { font-weight: 800; }
.feature-ledger { padding-bottom: 7rem; }
.ledger-summary { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.ledger-summary span { padding: .4rem .65rem; border: 1px solid var(--line); background: var(--white); font-size: .76rem; font-weight: 750; }
.ledger-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .82rem; }
.ledger-table th { padding: .9rem .8rem; color: #fff; background: var(--night-soft); text-align: left; font: 700 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.ledger-table td { padding: .78rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.ledger-table tr:hover td { background: var(--paper); }
.ledger-table code { overflow-wrap: anywhere; color: var(--night); }
.ledger-table .status { font-weight: 800; white-space: nowrap; }
.ledger-table .status.unavailable { color: #a12323; }
.ledger-table .source { color: var(--muted); }

.article { padding-block: 6.5rem 7rem; }
.article header { margin-bottom: 2.2rem; }
.article .lede { margin-top: 1.6rem; }
.article-meta { margin: 0 0 4rem; padding-block: .8rem; border-block: 1px solid var(--line); color: var(--muted); font: .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.article h2 { margin: 3.3rem 0 1rem; font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; }
.article > p:not(.lede):not(.article-meta) { color: var(--ink); font: 400 1.08rem/1.8 var(--serif); }
.article aside { margin: 3rem 0; padding: 1.8rem 2rem; border-left: 4px solid var(--teal); background: var(--paper-deep); }
.article aside p { margin-bottom: 0; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.article-nav a { color: var(--teal); font-size: .78rem; font-weight: 800; text-decoration: none; }
.comparison-table { display: grid; margin: 3rem 0; border: 1px solid var(--line); }
.comparison-table > div { display: grid; grid-template-columns: .55fr 1fr 1fr; }
.comparison-table > div > * { padding: .9rem; border-top: 1px solid var(--line); }
.comparison-table .comparison-head > * { border-top: 0; color: #fff; background: var(--night-soft); font-size: .76rem; }
.comparison-table b { background: var(--paper-deep); font-size: .82rem; }
.comparison-table span { font-size: .82rem; }

.demo-shell { padding-block: 6rem 7rem; }
.demo-shell > h1 { margin: 0 0 1.5rem; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.demo-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.demo-blocks article, .route-result, .gate-panel > div { padding: 2rem; border: 1px solid var(--line); background: var(--white); }
.demo-blocks h2, .route-result h2 { margin: 1.3rem 0 .5rem; }
.demo-form { max-width: 620px; margin: 2rem 0; }
.route-result { margin: 2.5rem 0; }
.gate-panel { display: grid; gap: 1px; margin: 2.5rem 0; background: var(--line); border: 1px solid var(--line); }
.gate-panel > div { border: 0; }
.gate-panel strong { font-size: 1.05rem; }
.gate-panel p { margin: .5rem 0 0 1.2rem; color: var(--muted); }
.error-page { width: min(700px, calc(100% - 40px)); margin: 15vh auto; }

.site-footer { padding-block: 3.4rem; color: rgba(255,255,255,.76); background: #0d0d1a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
.footer-grid strong { color: #fff; }
.footer-grid .eyebrow { color: var(--lime); }
.footer-grid p { margin: .55rem 0 0; color: rgba(255,255,255,.58); font-size: .8rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 5rem; }
  .hero-copy { max-width: 760px; }
  .terminal { max-width: 650px; transform: none; }
  .card-grid.three, .feature-link-grid { grid-template-columns: 1fr 1fr; }
  .section-grid, .comparison-callout { grid-template-columns: 1fr; gap: 2rem; }
  .example-card { grid-template-columns: 1fr; gap: 2rem; }
  .framework-card { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 650px) {
  .wrap, .narrow { width: min(100% - 28px, 1180px); }
  .masthead { min-height: 74px; }
  .runtime-pill { display: none; }
  .site-nav .wrap { gap: 1.25rem; }
  .hero { padding-block: 4rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid div:nth-child(odd) { border-left: 0; }
  .metric-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .section-grid { padding-block: 5rem; }
  .card-grid.three, .feature-link-grid, .ledger-explainer, .journal-grid, .demo-blocks { grid-template-columns: 1fr; }
  .journal-grid .journal-lead { grid-column: auto; }
  .framework-card, .note-panel, .comparison-callout { padding: 2rem; }
  .page-hero { padding-block: 4.5rem 3.5rem; }
  .example-card { padding-block: 3rem; }
  .progress-overview { padding: 2rem; }
  .ledger-table { display: block; overflow-x: auto; }
  .comparison-table { overflow-x: auto; }
  .comparison-table > div { min-width: 650px; }
  .article { padding-block: 4.5rem 5rem; }
  .article-nav { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

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