:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11141a;
  --surface-2: #171b22;
  --line: #2a303b;
  --muted: #929cab;
  --text: #f2f5f8;
  --lime: #b9f35b;
  --cyan: #6ee7f2;
  --amber: #ffca62;
  --red: #ff776f;
  --shell: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); }
a { color: inherit; }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.75rem 1rem; background: var(--lime); color: #10140b; font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.86rem; font-weight: 750; text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border: 1px solid #65703e; border-radius: 0.45rem; background: #1b2115; color: var(--lime); font-size: 0.7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.site-header nav { display: flex; gap: 1.75rem; }
.site-header nav a, .header-link { color: #b6bec9; font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .header-link:hover { color: var(--text); }
.header-link { padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 0.45rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; min-height: 760px; padding-block: 5.5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 0.48rem; aspect-ratio: 1; margin-right: 0.55rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgb(185 243 91 / 0.09); }
h1 { max-width: 800px; margin: 0; font-size: clamp(3.2rem, 6.4vw, 6.7rem); line-height: 0.94; letter-spacing: -0.065em; text-wrap: balance; }
.hero-lead { max-width: 63ch; margin: 1.75rem 0 2rem; color: #aeb6c1; font-size: 1.05rem; line-height: 1.75; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 3.1rem; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 0.5rem; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--lime); background: var(--lime); color: #11150d; }
.button.secondary { background: #12151a; color: #dbe1e8; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hero-stats { display: flex; gap: 2rem; margin: 3.5rem 0 0; }
.hero-stats div { min-width: 90px; }
.hero-stats dt { font-size: 1.6rem; font-weight: 760; letter-spacing: -0.04em; }
.hero-stats dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }

.system-console { border: 1px solid #313844; border-radius: 0.8rem; background: linear-gradient(150deg, #171b21, #0d1014); box-shadow: 0 35px 80px rgb(0 0 0 / 0.38); overflow: hidden; }
.console-topbar, .console-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); color: #9ba4b1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.console-topbar::before { content: "●  ●  ●"; color: #4c5664; letter-spacing: 0.25em; }
.live-pill { padding: 0.3rem 0.45rem; border: 1px solid #435528; border-radius: 99px; color: var(--lime); font-size: 0.57rem; }
.execution-id { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; color: var(--muted); font-size: 0.72rem; }
.execution-id code { color: var(--cyan); }
.execution-steps { display: grid; gap: 0; margin: 0; padding: 0 1.25rem; list-style: none; }
.execution-steps li { display: grid; grid-template-columns: 2.1rem 1fr auto; gap: 0.8rem; align-items: center; padding: 1.05rem 0; border-top: 1px solid #222832; }
.execution-steps li > span { display: grid; place-items: center; width: 1.9rem; aspect-ratio: 1; border: 1px solid #3a4350; border-radius: 50%; color: #87919e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6rem; }
.execution-steps .done > span { border-color: #536f2f; color: var(--lime); }
.execution-steps .waiting > span { border-color: #856a31; color: var(--amber); box-shadow: 0 0 0 5px rgb(255 202 98 / 0.06); }
.execution-steps strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.69rem; letter-spacing: 0.05em; }
.execution-steps small { color: #7f8996; font-size: 0.68rem; }
.execution-steps b { color: #6f7986; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.execution-steps .waiting b { color: var(--amber); }
.console-footer { border-top: 1px solid var(--line); border-bottom: 0; background: #0a0c0f; }

.section { padding-block: 8rem; }
.section-heading { max-width: 760px; margin-bottom: 3.5rem; }
.section-heading h2, .cta h2 { margin: 0; font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.section-heading > p:last-child { max-width: 62ch; margin: 1.3rem 0 0; color: var(--muted); line-height: 1.7; }
.problem { border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(3rem, 8vw, 8rem); }
.problem-statement { margin: 0; color: #c8ced6; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.55; letter-spacing: -0.02em; }
.risk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.risk-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: #b5bec9; font-size: 0.85rem; }
.risk-list span { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }

.architecture { border-block: 1px solid #d8dde2; background: #eff2f4; color: #11151a; }
.architecture .eyebrow, .tests .eyebrow { color: #4c640e; }
.architecture-heading, .tests-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.text-link { color: inherit; font-size: 0.78rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; white-space: nowrap; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 0.65rem; align-items: center; padding: 2rem; border: 1px solid #cbd1d7; background: #f8fafb; overflow-x: auto; }
.pipeline-node { min-width: 145px; padding: 1rem; border: 1px solid #c9cfd5; border-radius: 0.45rem; background: #fff; box-shadow: 0 4px 0 #e2e6e9; }
.pipeline-node small { display: block; color: #69727d; font-size: 0.55rem; letter-spacing: 0.12em; }
.pipeline-node strong { display: block; margin: 0.45rem 0 0.3rem; font-size: 0.88rem; }
.pipeline-node code { color: #59616c; font-size: 0.62rem; }
.pipeline-node.entry { border-color: #8ea34e; }
.pipeline-node.score { border-color: #4a7e84; }
.connector { color: #8b949e; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.25rem; border: 1px solid #cbd1d7; background: #fff; }
.tier { min-height: 290px; padding: 1.6rem; border-right: 1px solid #d8dde2; }
.tier:last-child { border-right: 0; }
.tier-top { display: flex; justify-content: space-between; color: #707984; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.tier.hot .tier-top span { color: #4a6500; }
.tier.warm .tier-top span { color: #916600; }
.tier.cold .tier-top span { color: #56606c; }
.tier h3 { margin: 3rem 0 0.8rem; font-size: 1.25rem; }
.tier p { color: #5f6873; font-size: 0.83rem; line-height: 1.65; }
.tier code { display: inline-block; margin-top: 1.2rem; color: #4e5863; font-size: 0.62rem; }

.scoring { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.score-card { display: grid; grid-template-columns: 0.55fr 1fr; gap: 2rem; padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.score-number { min-height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #42572a; background: #151b11; }
.score-number strong { font-size: 4rem; line-height: 1; color: var(--lime); letter-spacing: -0.07em; }
.score-number span, .score-number small { color: #7e8c70; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; }
.score-number small { margin-top: 1rem; color: var(--lime); letter-spacing: 0.2em; }
.score-factors { display: grid; align-content: center; }
.score-factors div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: #aeb7c2; font-size: 0.75rem; }
.score-factors b { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.score-card blockquote { grid-column: 1 / -1; margin: 0; padding: 1.2rem; border-left: 2px solid var(--cyan); background: #0d1115; color: #aeb8c4; font-size: 0.78rem; line-height: 1.7; }

.reliability { background: #121722; }
.light-heading { max-width: 820px; }
.reliability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #2b3443; }
.reliability-grid article { min-height: 270px; padding: 1.5rem; border-right: 1px solid #2b3443; }
.reliability-grid article:last-child { border: 0; }
.reliability-grid .icon { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 1px solid #435063; border-radius: 0.4rem; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.reliability-grid h3 { margin: 3rem 0 0.8rem; font-size: 1rem; }
.reliability-grid p { color: #8d99a9; font-size: 0.76rem; line-height: 1.65; }
.failure-flow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 1.1rem 1.4rem; border: 1px solid #2b3443; background: #0c1017; color: #9aa6b5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.failure-flow i { height: 1px; flex: 1; background: linear-gradient(90deg, #384556, var(--red)); }

.evidence-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.2rem; }
.artifact-preview { margin: 0; border: 1px solid var(--line); background: var(--surface); }
.preview-bar { display: flex; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); color: #7e8996; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.canvas-preview { position: relative; min-height: 330px; overflow: hidden; background-color: #0c0f14; background-image: radial-gradient(#2a313d 1px, transparent 1px); background-size: 18px 18px; }
.node { position: absolute; z-index: 2; min-width: 88px; padding: 0.75rem; border: 1px solid #384250; border-radius: 0.4rem; background: #171c24; color: #c8d0da; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6rem; text-align: center; box-shadow: 0 10px 25px rgb(0 0 0 / 0.35); }
.n1 { left: 7%; top: 42%; }.n2 { left: 26%; top: 25%; }.n3 { left: 45%; top: 42%; }.n4 { left: 65%; top: 20%; }.n5 { left: 65%; top: 66%; }.n6 { right: 5%; top: 42%; }
.hot-node { border-color: #6c843a; color: var(--lime); }
.wire { position: absolute; z-index: 1; height: 1px; background: #3d4857; transform-origin: left; }
.w1 { width: 23%; left: 15%; top: 48%; transform: rotate(-20deg); }.w2 { width: 23%; left: 34%; top: 35%; transform: rotate(18deg); }.w3 { width: 23%; left: 53%; top: 47%; transform: rotate(-22deg); }.w4 { width: 29%; left: 53%; top: 50%; transform: rotate(22deg); }
.artifact-preview figcaption { padding: 1rem; color: #7f8996; font-size: 0.68rem; line-height: 1.5; }
.artifact-links { display: grid; border: 1px solid var(--line); }
.artifact-links a { display: grid; grid-template-columns: 2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.artifact-links a:last-child { border: 0; }
.artifact-links a:hover { background: var(--surface-2); }
.artifact-links > a > span { color: #697482; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.artifact-links strong, .artifact-links small { display: block; }
.artifact-links strong { font-size: 0.76rem; }
.artifact-links small { margin-top: 0.25rem; color: #737e8c; font-size: 0.63rem; }
.artifact-links b { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.58rem; }

.tests { background: #eff2f4; color: #12161b; }
.table-wrap { overflow-x: auto; border: 1px solid #cbd1d7; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 1rem 1.1rem; border-bottom: 1px solid #dde2e6; text-align: left; font-size: 0.72rem; }
th { color: #68727d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; }
td:nth-child(2), td:nth-child(3) { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tag { padding: 0.28rem 0.42rem; border-radius: 99px; font-size: 0.56rem; font-weight: 800; }
.hot-tag { background: #e2f7b8; color: #405d00; }.warm-tag { background: #fff0c7; color: #785500; }.cold-tag { background: #e5e9ed; color: #53606d; }
.verification-line { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid #cbd1d7; background: #f8fafb; color: #65707b; font-size: 0.68rem; }
.verification-line code { color: #315a61; font-weight: 800; }.verification-line strong { margin-left: auto; color: #69737e; font-weight: 600; }

.adapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.adapter-grid article { min-height: 230px; padding: 1.4rem; border-right: 1px solid var(--line); }
.adapter-grid article:last-child { border: 0; }
.adapter-grid small { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.55rem; letter-spacing: 0.1em; }
.adapter-grid h3 { margin: 2.7rem 0 0.6rem; font-size: 1rem; }
.adapter-grid p, .adapter-grid span { color: #8d97a4; font-size: 0.7rem; line-height: 1.5; }
.adapter-grid span { display: block; margin-top: 1.6rem; color: var(--lime); }

.cta { padding-block: 7rem; border-block: 1px solid #334026; background: #151b10; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.cta h2 { max-width: 720px; }
.cta p:last-child { max-width: 62ch; color: #919e88; line-height: 1.65; }
.dark-button { background: transparent !important; }
.site-footer { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #68727f; font-size: 0.65rem; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .system-console { max-width: 680px; }
  .scoring { grid-template-columns: 1fr; }
  .reliability-grid, .adapter-grid { grid-template-columns: repeat(2, 1fr); }
  .reliability-grid article:nth-child(2), .adapter-grid article:nth-child(2) { border-right: 0; }
  .reliability-grid article:nth-child(-n+2), .adapter-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .evidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .site-header { min-height: 4.5rem; }
  .site-header nav { display: none; }
  .header-link { padding: 0.55rem 0.65rem; }
  .brand > span:last-child { display: none; }
  .hero { padding-block: 4rem; gap: 3rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hero-lead { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; justify-content: space-between; }
  .hero-stats div { min-width: 0; }
  .console-topbar::before { display: none; }
  .section { padding-block: 5.5rem; }
  .problem-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .architecture-heading, .tests-heading { display: block; }
  .architecture-heading .text-link, .tests-heading .text-link { display: inline-block; margin-top: 1.5rem; }
  .pipeline { padding: 1rem; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier { min-height: 240px; border-right: 0; border-bottom: 1px solid #d8dde2; }
  .tier:last-child { border-bottom: 0; }
  .tier h3 { margin-top: 2rem; }
  .score-card { grid-template-columns: 1fr; padding: 1rem; }
  .score-card blockquote { grid-column: 1; }
  .reliability-grid, .adapter-grid { grid-template-columns: 1fr; }
  .reliability-grid article, .adapter-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .failure-flow { align-items: flex-start; flex-direction: column; }
  .failure-flow i { width: 1px; height: 1.5rem; flex: none; margin-left: 1rem; background: linear-gradient(var(--red), #384556); }
  .canvas-preview { min-height: 270px; transform-origin: left center; }
  .node { min-width: 72px; padding: 0.55rem; font-size: 0.52rem; }
  .n2 { left: 28%; }.n3 { left: 47%; }.n4, .n5 { left: 64%; }.n6 { right: 2%; }
  .verification-line { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .verification-line strong { margin-left: 0; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.5rem; }
  .site-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
