:root {
  --ink: #e8f0eb;
  --muted: #91a39f;
  --dim: #5c716e;
  --bg: #0d171f;
  --bg-deep: #081117;
  --surface: #12232a;
  --surface-light: #172c32;
  --line: rgba(170, 209, 197, .14);
  --line-strong: rgba(170, 209, 197, .26);
  --amber: #f4b860;
  --amber-soft: #e09b4e;
  --aqua: #7dd3c0;
  --blue: #7dd3fc;
  --radius: 18px;
  --shell: min(1160px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin: 0 auto; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 5; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' 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='.55'/%3E%3C/svg%3E"); }

.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .17em; font-weight: 750; white-space: nowrap; }
.brand-dot { color: var(--amber); }
.brand-mark { height: 24px; display: inline-flex; align-items: flex-end; gap: 3px; }
.brand-mark i { width: 4px; display: block; border-radius: 4px; background: var(--amber); }
.brand-mark i:nth-child(1) { height: 10px; opacity: .6; }
.brand-mark i:nth-child(2) { height: 17px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a, .nav-github { color: var(--muted); font-size: 12px; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active, .nav-github:hover { color: var(--ink); }
.nav-links a.active { position: relative; }
.nav-links a.active::after { position: absolute; content: ""; left: 0; right: 0; bottom: -14px; height: 2px; background: var(--amber); }
.nav-github { border: 1px solid var(--line-strong); border-radius: 100px; padding: 9px 14px; color: var(--ink); }
.nav-github span, .text-link span, .button span, .site-footer a span, .doc-arrow { color: var(--amber); }

.hero { min-height: 655px; display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(42px, 7vw, 100px); align-items: center; padding-top: 65px; padding-bottom: 82px; }
.hero-copy { padding-bottom: 22px; }
.eyebrow { margin: 0 0 25px; color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.pulse-dot, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(125, 211, 192, .12); vertical-align: 1px; }
.pulse-dot { animation: pulse 2.2s ease-in-out infinite; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: .98; }
h1 { max-width: 600px; margin-bottom: 27px; font-size: clamp(62px, 8vw, 100px); }
h2 { margin-bottom: 20px; font-size: clamp(48px, 5.6vw, 76px); }
h1 em, h2 em { color: var(--amber); font-style: italic; }
.hero-lede { max-width: 390px; margin-bottom: 34px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border-radius: 100px; padding: 13px 18px; font-size: 12px; font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--bg-deep); background: var(--amber); box-shadow: 0 9px 26px rgba(244, 184, 96, .16); }
.button-primary:hover { background: #ffd18a; }
.button-ghost { width: 100%; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); margin-top: 20px; }
.button-ghost:hover { background: var(--surface-light); border-color: var(--aqua); }
.text-link { color: var(--muted); font-size: 12px; }
.text-link:hover { color: var(--ink); }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 10px; margin-top: 57px; }
.note-line { width: 29px; height: 1px; background: var(--amber); }

.hero-console { position: relative; overflow: hidden; padding: 22px 23px 21px; min-height: 420px; background: linear-gradient(145deg, rgba(24, 49, 56, .92), rgba(14, 31, 37, .92)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 23px 80px rgba(0, 0, 0, .22); }
.hero-console::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border: 1px solid rgba(125, 211, 192, .22); border-radius: 50%; box-shadow: 0 0 0 25px rgba(125, 211, 192, .035), 0 0 0 50px rgba(125, 211, 192, .02); }
.console-topline, .panel-header, .payload-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.console-label, .panel-kicker, .mini-label, .doc-number { color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.status-chip, .live-label { display: inline-flex; align-items: center; gap: 7px; color: var(--aqua); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.console-reading { margin-top: 45px; }
.reading-label, .score-suffix, .trend-copy { display: block; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.console-reading strong { display: block; margin: 2px 0 3px; color: var(--ink); font-family: Georgia, serif; font-size: 49px; font-weight: 400; letter-spacing: -.06em; }
.console-reading strong small { color: var(--muted); font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0; }
.reading-delta { color: var(--aqua); font-size: 11px; }
.reading-delta b { color: var(--dim); font-weight: 400; margin-left: 5px; }
.chart-wrap { position: relative; }
.hero-chart-wrap { margin: 24px -7px 11px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: rgba(170, 209, 197, .11); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(244, 184, 96, .28)); transition: d .3s ease; }
.amber-line { stroke: var(--amber); }
.aqua-line { stroke: var(--aqua); filter: drop-shadow(0 0 5px rgba(125, 211, 192, .24)); }
.chart-area { stroke: none; }
.chart-area:not(.aqua-area) { fill: url(#hero-fill); }
.aqua-area { fill: rgba(125, 211, 192, .11); }
.chart-point { fill: var(--bg-deep); stroke: var(--amber); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(244, 184, 96, .65)); }
.aqua-point { stroke: var(--aqua); }
.chart-axis { display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: 9px; letter-spacing: .06em; }
.console-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.console-footer strong { display: block; margin-top: 4px; color: var(--ink); font-size: 16px; font-weight: 500; }
.console-footer small { color: var(--muted); font-size: 9px; font-weight: 400; }
.unit { color: var(--aqua); font-size: 10px; }
.console-scan { position: absolute; top: 0; left: -20%; width: 20%; height: 1px; opacity: .7; background: var(--aqua); box-shadow: 0 0 17px 4px rgba(125, 211, 192, .34); animation: scan 6s ease-in-out infinite; }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-item { display: flex; align-items: flex-start; gap: 14px; padding: 21px 18px 22px 0; border-right: 1px solid var(--line); }
.strip-item:not(:first-child) { padding-left: 22px; }
.strip-item:last-child { border-right: 0; }
.strip-index { color: var(--amber); font: 11px Georgia, serif; }
.strip-item strong, .strip-item small { display: block; }
.strip-item strong { font-size: 12px; font-weight: 600; }
.strip-item small { margin-top: 3px; color: var(--dim); font-size: 10px; }

.section { padding-top: 144px; padding-bottom: 145px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: end; margin-bottom: 55px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p:last-child { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.lab-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.control-panel { padding: 21px 20px 20px; }
.output-panel { position: relative; padding: 21px 24px 23px; overflow: hidden; }
.output-panel::after { content: ""; position: absolute; right: -120px; bottom: -145px; width: 330px; height: 330px; border: 1px solid rgba(125, 211, 192, .11); border-radius: 50%; box-shadow: 0 0 0 23px rgba(125, 211, 192, .025), 0 0 0 46px rgba(125, 211, 192, .02); pointer-events: none; }
.output-state { color: var(--aqua); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.output-state.warning { color: var(--amber); }
.control-block { margin-top: 27px; }
.control-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.control-label label { color: var(--ink); }
.control-label output { color: var(--aqua); font-size: 11px; }
input[type="range"] { display: block; width: 100%; height: 4px; margin: 12px 0 7px; appearance: none; border-radius: 100px; outline: none; background: linear-gradient(to right, var(--aqua) 0%, var(--aqua) var(--range-progress, 40%), rgba(170, 209, 197, .15) var(--range-progress, 40%), rgba(170, 209, 197, .15) 100%); }
input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 2px solid var(--bg); border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 1px var(--aqua); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 1px var(--aqua); cursor: grab; }
.range-meta { display: flex; justify-content: space-between; color: var(--dim); font-size: 9px; }
.control-divider { height: 1px; margin: 25px 0 20px; background: var(--line); }
.well-select-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
select { padding: 7px 8px; color: var(--ink); background: var(--surface-light); border: 1px solid var(--line-strong); border-radius: 7px; outline: none; font-size: 11px; }
select:focus, input[type="range"]:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.output-top { display: flex; align-items: flex-end; gap: 70px; margin: 39px 0 16px; }
.output-top strong { display: inline-block; margin-top: 4px; font: 400 53px/1 Georgia, serif; letter-spacing: -.07em; }
.score-suffix { display: inline-block; margin: 0 0 7px 5px; color: var(--dim); letter-spacing: 0; }
.trend-box { padding-bottom: 5px; }
.trend-box strong { display: block; margin: 3px 0 1px; color: var(--aqua); font: 500 17px/1 Inter, sans-serif; letter-spacing: 0; }
.trend-box .trend-copy { color: var(--dim); font-size: 9px; letter-spacing: 0; }
.lab-chart-wrap { margin: 10px 0 22px; }
.payload-head { padding-top: 18px; border-top: 1px solid var(--line); }
.copy-button { color: var(--muted); padding: 0; border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.copy-button:hover { color: var(--ink); }
.copy-button span { color: var(--amber); margin-left: 6px; }
.payload { min-height: 128px; margin: 15px 0 0; padding: 15px 17px; overflow: auto; color: #a6d6cc; background: var(--bg-deep); border: 1px solid rgba(125, 211, 192, .12); border-radius: 10px; font: 11px/1.7 "SFMono-Regular", Consolas, monospace; }
.copy-status { position: absolute; right: 25px; bottom: 23px; color: var(--aqua); font-size: 10px; }

.section-architecture { padding-top: 20px; }
.compact-heading { margin-bottom: 67px; }
.architecture-map { display: grid; grid-template-columns: 1fr 75px 1fr 75px 1fr 75px 1fr; align-items: center; }
.arch-node { min-height: 185px; position: relative; padding: 24px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(145deg, rgba(23, 44, 50, .94), rgba(15, 30, 36, .94)); }
.arch-node::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(170, 209, 197, .06); border-radius: 8px; pointer-events: none; }
.arch-node h3 { margin: 29px 0 5px; font: 400 23px Georgia, serif; letter-spacing: -.04em; }
.arch-node p { margin: 0; max-width: 125px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.node-number { color: var(--dim); font: 10px Georgia, serif; }
.node-icon { position: absolute; top: 20px; right: 20px; color: var(--amber); font-size: 24px; }
.arch-api { border-color: rgba(244, 184, 96, .45); }
.arch-data { border-color: rgba(125, 211, 192, .38); }
.arch-connector { position: relative; height: 1px; background: var(--line-strong); }
.arch-connector i { position: absolute; right: 0; top: -3px; width: 7px; height: 7px; transform: rotate(45deg); border-top: 1px solid var(--aqua); border-right: 1px solid var(--aqua); }
.arch-connector span { position: absolute; top: -23px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 9px; letter-spacing: .08em; }
.architecture-foot { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.foot-rule { width: 40px; height: 1px; background: var(--amber); }
.architecture-foot p { margin: 0; color: var(--muted); font-size: 11px; }
.architecture-foot a { margin-left: 9px; color: var(--ink); }
.architecture-foot a:hover { color: var(--amber); }

.docs-section { padding-top: 0; padding-bottom: 125px; display: grid; grid-template-columns: 1fr 1.7fr; gap: 70px; align-items: start; }
.docs-intro h2 { font-size: 47px; }
.docs-grid { display: grid; gap: 10px; }
.doc-card { position: relative; display: grid; grid-template-columns: 150px 1fr 25px; gap: 18px; align-items: center; padding: 23px 19px; border-top: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.doc-card:last-child { border-bottom: 1px solid var(--line); }
.doc-card:hover { padding-left: 26px; background: var(--surface); }
.doc-card strong { font: 400 21px Georgia, serif; letter-spacing: -.04em; }
.doc-arrow { justify-self: end; font-size: 17px; }

.site-footer { display: flex; align-items: center; gap: 26px; min-height: 98px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.site-footer > a { margin-left: auto; color: var(--ink); }
.site-footer > a:hover { color: var(--amber); }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(125, 211, 192, .12); } 50% { box-shadow: 0 0 0 7px rgba(125, 211, 192, .03); } }
@keyframes scan { 0% { left: -20%; opacity: 0; } 16% { opacity: .8; } 48%, 100% { left: 120%; opacity: 0; } }
@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 680px); }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding-top: 75px; }
  .hero-console { max-width: 650px; width: 100%; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(3), .strip-item:nth-child(4) { border-top: 1px solid var(--line); }
  .strip-item:nth-child(3) { padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .section-heading > p:last-child { max-width: 520px; }
  .lab-grid { grid-template-columns: 1fr; }
  .control-panel { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 26px; }
  .control-panel .panel-header, .control-panel .control-divider, .control-panel .well-select-row, .control-panel .button { grid-column: 1 / -1; }
  .control-divider { margin-top: 22px; }
  .architecture-map { grid-template-columns: 1fr 55px 1fr; gap: 38px 0; }
  .architecture-map .arch-connector:nth-of-type(4) { grid-column: 1 / -1; transform: rotate(180deg); }
  .architecture-map .arch-connector:nth-of-type(6) { display: none; }
  .architecture-map .arch-node:nth-of-type(5) { grid-column: 1; grid-row: 3; }
  .architecture-map .arch-node:nth-of-type(7) { grid-column: 3; grid-row: 3; }
  .docs-section { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 620px) {
  :root { --shell: calc(100% - 30px); }
  .site-header { min-height: 72px; gap: 12px; }
  .nav-links { display: none; }
  .nav-github { margin-left: auto; }
  .hero { padding-top: 58px; padding-bottom: 62px; }
  h1 { font-size: clamp(55px, 17vw, 80px); }
  .hero-note { margin-top: 39px; }
  .hero-console { padding: 17px; }
  .console-reading { margin-top: 34px; }
  .console-footer { gap: 4px; }
  .console-footer strong { font-size: 13px; }
  .signal-strip { grid-template-columns: 1fr; }
  .strip-item, .strip-item:not(:first-child) { padding: 15px 0; border-right: 0; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: 0; }
  .section { padding-top: 96px; padding-bottom: 98px; }
  h2 { font-size: 53px; }
  .control-panel { display: block; }
  .control-panel .panel-header { display: flex; }
  .output-panel { padding: 17px; }
  .output-top { gap: 27px; justify-content: space-between; }
  .output-top strong { font-size: 45px; }
  .architecture-map { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .arch-node { min-height: 145px; }
  .arch-connector { width: 1px; height: 38px; margin: 0 auto; }
  .arch-connector span { top: 12px; left: 15px; transform: none; white-space: nowrap; }
  .arch-connector i { right: -3px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .architecture-map .arch-connector:nth-of-type(4) { grid-column: auto; transform: none; }
  .architecture-map .arch-connector:nth-of-type(6) { display: block; }
  .architecture-map .arch-node:nth-of-type(5), .architecture-map .arch-node:nth-of-type(7) { grid-column: auto; grid-row: auto; }
  .doc-card { grid-template-columns: 1fr 21px; gap: 8px; }
  .doc-number { grid-column: 1 / -1; }
  .doc-card strong { font-size: 19px; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; padding: 22px 0; }
  .site-footer p { order: 3; flex-basis: 100%; }
  .site-footer > a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
