:root {
  --bg: #07120e;
  --panel: #0c1b15;
  --panel-2: #10231b;
  --ink: #edf4ef;
  --muted: #8ea198;
  --line: #254036;
  --acid: #b9f83d;
  --orange: #ff7043;
  --cyan: #66d9d0;
  --danger: #ff5f5f;
  --paper: #e8ece6;
  --paper-ink: #11221a;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.grid-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .2; background-image: linear-gradient(rgba(185,248,61,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(185,248,61,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.topbar { height: 72px; padding: 0 clamp(20px,4vw,68px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.brand { color: var(--ink); display: flex; align-items: center; gap: 11px; font-size: 14px; text-decoration: none; letter-spacing: -.02em; }
.brand strong { color: var(--acid); }
.brand-symbol { width: 30px; height: 30px; display: flex; align-items: end; gap: 3px; padding: 7px; border: 1px solid var(--line); }
.brand-symbol i { display: block; width: 3px; background: var(--acid); }
.brand-symbol i:nth-child(1) { height: 7px; }.brand-symbol i:nth-child(2) { height: 15px; }.brand-symbol i:nth-child(3) { height: 10px; background: var(--orange); }
.topbar nav { display: flex; gap: 30px; }
.topbar nav a, footer a { color: var(--muted); text-decoration: none; font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.topbar nav a:hover, footer a:hover { color: var(--acid); }
.live-badge { color: var(--muted); display: flex; align-items: center; gap: 8px; font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.live-badge span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(185,248,61,.1), 0 0 18px rgba(185,248,61,.4); }

.hero { min-height: 710px; padding: clamp(70px,9vw,120px) clamp(20px,6vw,100px) 82px; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(45px,7vw,110px); align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -240px; top: -250px; border-radius: 50%; border: 1px solid rgba(185,248,61,.12); box-shadow: inset 0 0 0 90px var(--bg), inset 0 0 0 91px rgba(185,248,61,.08), inset 0 0 0 180px var(--bg), inset 0 0 0 181px rgba(185,248,61,.06); }
.eyebrow { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; color: var(--acid); font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.eyebrow span + span { color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }
.hero h1 { margin: 0; font-size: clamp(54px,7vw,104px); line-height: .9; letter-spacing: -.075em; font-weight: 720; }
.hero h1 em { color: var(--acid); font-style: normal; }
.hero-lede { max-width: 630px; margin: 31px 0 0; color: var(--muted); font-size: clamp(15px,1.4vw,18px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; text-decoration: none; font-weight: 750; font-size: 12px; cursor: pointer; }
.button.primary { color: var(--paper-ink); background: var(--acid); border-color: var(--acid); }
.button.ghost { color: var(--ink); background: transparent; }
.button:hover { filter: brightness(1.06); }
.proof-row { display: flex; margin-top: 58px; }
.proof-row > div { min-width: 120px; padding: 0 22px; border-left: 1px solid var(--line); display: flex; align-items: end; gap: 10px; }
.proof-row > div:first-child { padding-left: 0; border-left: 0; }
.proof-row strong { font-size: 27px; line-height: 1; letter-spacing: -.045em; }
.proof-row span { color: var(--muted); font: 600 8px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.hero-visual { position: relative; background: #091711; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 490px; padding: 19px; }
.hero-visual::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(185,248,61,.15), transparent 38%); z-index: -1; transform: translate(10px,10px); }
.visual-header, .visual-footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.pulse-label { display: flex; gap: 7px; align-items: center; }.pulse-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
.agent-node { margin: 24px 0; padding: 16px; border: 1px solid #315244; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; background: var(--panel); }
.node-id { width: 35px; height: 35px; display: grid; place-items: center; background: var(--acid); color: var(--paper-ink); font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-node strong, .tool-node strong { display: block; font-size: 11px; }.agent-node small, .tool-node small { display: block; color: var(--muted); font: 500 8px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 3px; }
.node-status { color: var(--acid); font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.tool-stack { padding-left: 38px; position: relative; }.tool-stack::before { content: ""; position: absolute; top: -24px; bottom: 22px; left: 17px; border-left: 1px dashed #315244; }
.tool-node { min-height: 62px; margin: 9px 0; padding: 13px; border: 1px solid var(--line); display: grid; grid-template-columns: 27px 1fr 25px; align-items: center; gap: 10px; background: var(--panel); position: relative; }
.tool-node > span { color: var(--muted); font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.tool-node > i { width: 24px; height: 24px; display: grid; place-items: center; font-style: normal; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); }
.tool-node.ok > i, .tool-node.recovered > i { color: var(--acid); border-color: #4d752e; }.tool-node.fault { border-color: rgba(255,95,95,.55); background: rgba(255,95,95,.045); }.tool-node.fault > i { color: var(--danger); border-color: rgba(255,95,95,.55); }.tool-node.pending { opacity: .5; }
.recovery-line { display: flex; align-items: center; gap: 8px; color: var(--orange); font: 600 7px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .07em; }.recovery-line span { flex: 1; height: 1px; background: rgba(255,112,67,.25); }
.visual-footer { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }

.lab { background: var(--paper); color: var(--paper-ink); padding: 94px clamp(20px,5vw,82px) 110px; }
.section-intro { display: grid; grid-template-columns: .5fr 1.25fr .75fr; gap: 35px; align-items: end; margin-bottom: 48px; }
.section-intro > div:first-child { align-self: start; display: flex; align-items: center; gap: 12px; }
.section-number { width: 30px; height: 30px; border: 1px solid #afbbb4; display: grid; place-items: center; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.kicker { font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }
.section-intro h2 { margin: 0; font-size: clamp(38px,4.5vw,68px); line-height: .98; letter-spacing: -.06em; }
.section-intro > p { color: #66746d; font-size: 13px; line-height: 1.65; margin: 0; }

.lab-shell { display: grid; grid-template-columns: minmax(280px,350px) 1fr; border: 1px solid #b9c3bc; background: #f1f4ef; min-height: 900px; box-shadow: 0 30px 80px rgba(14,30,22,.12); }
.control-rail { padding: 22px; border-right: 1px solid #b9c3bc; background: #e3e8e2; }
.control-heading, .stage-toolbar, .seed-row { display: flex; align-items: center; justify-content: space-between; }
.control-heading { padding-bottom: 19px; border-bottom: 1px solid #b9c3bc; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.control-heading button, .stage-toolbar button, .seed-row button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 2px 0; cursor: pointer; color: #627068; font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
fieldset { border: 0; margin: 25px 0 0; padding: 0; } fieldset legend { margin-bottom: 11px; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.scenario-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.scenario-option { border: 1px solid #bdc7c0; background: #eef1ec; min-height: 70px; padding: 10px; text-align: left; cursor: pointer; position: relative; }
.scenario-option:hover { border-color: var(--paper-ink); }.scenario-option.active { background: var(--paper-ink); color: white; border-color: var(--paper-ink); }.scenario-option.active::after { content: "✓"; position: absolute; right: 8px; top: 7px; color: var(--acid); font-size: 10px; }
.scenario-option b { display: block; width: 24px; height: 20px; margin-bottom: 9px; color: var(--orange); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.scenario-option span { display: block; font-size: 10px; line-height: 1.25; font-weight: 750; }.scenario-option small { display: block; color: #79867f; font-size: 8px; margin-top: 4px; }
.strategy-list { display: grid; gap: 6px; }.strategy-option { border: 1px solid #bdc7c0; background: #eef1ec; padding: 11px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; }.strategy-option:hover { border-color: var(--paper-ink); }.strategy-option.active { border-color: var(--paper-ink); box-shadow: inset 3px 0 var(--orange); }.strategy-radio { width: 11px; height: 11px; border: 1px solid #76847c; border-radius: 50%; }.strategy-option.active .strategy-radio { background: var(--paper-ink); box-shadow: inset 0 0 0 3px #eef1ec; }.strategy-option strong { display: block; font-size: 10px; }.strategy-option small { color: #738079; font-size: 8px; }.strategy-option > em { color: #66746d; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.dual-controls { display: grid; gap: 20px; margin-top: 25px; }.dual-controls label > span { display: flex; justify-content: space-between; margin-bottom: 11px; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }.dual-controls output { color: var(--orange); }
input[type="range"] { appearance: none; width: 100%; height: 3px; background: linear-gradient(90deg, var(--paper-ink) var(--range), #b6c0ba var(--range)); outline: 0; } input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; background: var(--orange); border: 3px solid var(--paper-ink); border-radius: 50%; cursor: pointer; } input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; background: var(--orange); border: 3px solid var(--paper-ink); border-radius: 50%; cursor: pointer; }
.dual-controls label > small { display: flex; justify-content: space-between; color: #7a877f; font: 600 7px ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 8px; }.dual-controls label > small i { font-style: normal; }
select { width: 100%; padding: 10px; border: 1px solid #b9c3bc; background: #eef1ec; color: var(--paper-ink); outline: 0; font-size: 10px; }
.run-button { width: 100%; min-height: 52px; margin-top: 25px; border: 0; background: var(--paper-ink); color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; cursor: pointer; font-size: 11px; font-weight: 800; }.run-button b { color: var(--acid); font-size: 22px; }.run-button:hover { background: #1d382c; }.run-button.running b { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.seed-row { padding: 13px 4px 0; color: #6d7b73; font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.seed-row code { color: var(--paper-ink); }

.results-stage { padding: 0; min-width: 0; }.stage-toolbar { min-height: 58px; padding: 0 24px; border-bottom: 1px solid #c4cdc7; color: #617068; font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }.stage-toolbar > div { display: flex; align-items: center; gap: 9px; }.stage-toolbar > div:last-child { gap: 17px; }.status-dot { background: #50a35f; box-shadow: 0 0 0 4px rgba(80,163,95,.11); }
.run-summary { padding: 30px 28px 22px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }.run-summary h3 { font-size: clamp(27px,3vw,42px); letter-spacing: -.05em; margin: 7px 0 8px; }.run-summary p { margin: 0; color: #68766f; font-size: 11px; max-width: 620px; line-height: 1.55; }.verdict { min-width: 135px; padding: 12px; border: 1px solid #9eada4; }.verdict span { display: block; color: #6e7b74; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.verdict strong { display: block; color: #3c8e49; font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 6px; }.verdict.warning strong { color: #c55a35; }
.metrics-grid { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid #c4cdc7; border-bottom: 1px solid #c4cdc7; }.metric-card { padding: 19px; border-right: 1px solid #c4cdc7; }.metric-card:last-child { border-right: 0; }.metric-card > span { display: block; color: #6b7971; font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }.metric-card strong { display: block; font-size: clamp(25px,2.3vw,38px); letter-spacing: -.055em; margin: 8px 0 5px; }.metric-card small { color: #75827b; font-size: 8px; }.metric-card .delta { color: #2f8740; }.metric-card .delta.negative { color: #c34e39; }
.analysis-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; padding: 12px; }.panel { background: #f8faf6; border: 1px solid #c7cfc9; min-height: 430px; }.panel-heading { padding: 18px; border-bottom: 1px solid #d0d7d2; display: flex; align-items: start; justify-content: space-between; gap: 15px; }.panel-heading h3 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.03em; }.panel-heading > span { color: #748078; font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.comparison-row { padding: 16px 18px; border-bottom: 1px solid #dde2de; }.comparison-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 9px; font-weight: 750; }.comparison-label span { color: #6c7972; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.bar-pair { display: grid; gap: 7px; }.bar-line { display: grid; grid-template-columns: 67px 1fr 36px; gap: 8px; align-items: center; font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.bar-track { height: 6px; background: #dce2dd; position: relative; }.bar-track i { position: absolute; inset: 0 auto 0 0; background: #9ba8a0; }.bar-line.selected .bar-track i { background: var(--orange); }.bar-line b { text-align: right; }.comparison-note { margin: 16px 18px; padding: 12px; background: #edf1ec; color: #66736c; font-size: 9px; line-height: 1.55; }
.trace-list { padding: 10px 18px 20px; max-height: 535px; overflow-y: auto; }.trace-event { display: grid; grid-template-columns: 48px 18px 1fr; gap: 9px; position: relative; min-height: 64px; }.trace-event:not(:last-child)::after { content: ""; position: absolute; top: 28px; bottom: -2px; left: 56px; border-left: 1px solid #ccd5cf; }.trace-time { color: #7d8982; font: 600 7px ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 7px; }.trace-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: #93a198; border: 3px solid #f8faf6; box-shadow: 0 0 0 1px #93a198; z-index: 1; }.trace-event.success .trace-dot, .trace-event.recovered .trace-dot { background: #4da45c; box-shadow: 0 0 0 1px #4da45c; }.trace-event.failed .trace-dot, .trace-event.unsafe .trace-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }.trace-copy { padding-bottom: 15px; }.trace-copy strong { display: block; font-size: 9px; margin-bottom: 4px; }.trace-copy p { margin: 0; color: #738078; font-size: 8px; line-height: 1.45; }.trace-chip { display: inline-block; padding: 2px 5px; margin-left: 6px; background: #e2e8e3; color: #617068; font: 700 7px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.architecture { padding: 105px clamp(20px,6vw,100px) 30px; background: var(--bg); }.section-intro.compact { grid-template-columns: .52fr 1.48fr; color: var(--ink); }.section-intro.compact .section-number { border-color: var(--line); }.architecture-map { display: grid; grid-template-columns: repeat(7,auto); align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.architecture-map article { width: min(245px,18vw); padding: 26px 19px; }.map-index { color: var(--muted); font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.map-icon { width: 47px; height: 47px; margin: 23px 0 22px; display: grid; place-items: center; border: 1px solid #3d5c4e; color: var(--cyan); font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.map-icon.warning { color: var(--orange); border-color: #6b4738; }.map-icon.accent { background: var(--acid); color: var(--paper-ink); border-color: var(--acid); }.architecture-map h3 { margin: 0 0 10px; font-size: 17px; }.architecture-map p { min-height: 80px; color: var(--muted); font-size: 10px; line-height: 1.6; }.architecture-map ul { list-style: none; margin: 17px 0 0; padding: 13px 0 0; border-top: 1px solid var(--line); }.architecture-map li { color: #b3c2ba; font: 600 8px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }.architecture-map li::before { content: "+"; color: var(--acid); margin-right: 7px; }.map-arrow { display: grid; place-items: center; color: #476355; font: 400 25px ui-monospace, SFMono-Regular, Menlo, monospace; }
.engineering-notes { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 70px; border: 1px solid var(--line); }.engineering-notes > div { padding: 25px; border-right: 1px solid var(--line); }.engineering-notes > div:last-child { border-right: 0; }.engineering-notes .kicker { color: var(--acid); }.engineering-notes p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 13px 0 0; }
footer { min-height: 130px; margin-top: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); } footer p { color: var(--muted); font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; background: var(--acid); color: var(--paper-ink); padding: 12px 15px; font-size: 10px; font-weight: 750; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 430px; gap: 45px; }.section-intro { grid-template-columns: .35fr 1fr; }.section-intro > p { grid-column: 2; }.metrics-grid { grid-template-columns: repeat(3,1fr); }.metric-card:nth-child(3) { border-right: 0; }.metric-card:nth-child(n+4) { border-top: 1px solid #c4cdc7; }.architecture-map { grid-template-columns: 1fr 40px 1fr; }.architecture-map article { width: auto; }.architecture-map .map-arrow:nth-of-type(2) { display: none; }.architecture-map article:nth-of-type(3), .architecture-map article:nth-of-type(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 850px) {
  .topbar nav { display: none; }.hero { grid-template-columns: 1fr; }.hero-visual { max-width: 620px; width: 100%; }.lab-shell { grid-template-columns: 1fr; }.control-rail { border-right: 0; border-bottom: 1px solid #b9c3bc; }.scenario-list { grid-template-columns: repeat(3,1fr); }.analysis-grid { grid-template-columns: 1fr; }.engineering-notes { grid-template-columns: 1fr; }.engineering-notes > div { border-right: 0; border-bottom: 1px solid var(--line); }.engineering-notes > div:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; }.live-badge { display: none; }.hero { padding-top: 70px; }.hero h1 { font-size: clamp(48px,16vw,74px); }.hero-actions { flex-direction: column; }.button { width: 100%; }.proof-row { margin-top: 42px; }.proof-row > div { min-width: 0; flex: 1; padding: 0 10px; }.hero-visual { min-height: 450px; padding: 14px; }.tool-stack { padding-left: 22px; }.tool-stack::before { left: 8px; }.section-intro, .section-intro.compact { grid-template-columns: 1fr; }.section-intro > p { grid-column: auto; }.section-intro h2 { font-size: 43px; }.scenario-list { grid-template-columns: repeat(2,1fr); }.run-summary { flex-direction: column; }.verdict { width: 100%; }.metrics-grid { grid-template-columns: repeat(2,1fr); }.metric-card:nth-child(2n) { border-right: 0; }.metric-card:nth-child(3) { border-right: 1px solid #c4cdc7; }.metric-card:nth-child(n+3) { border-top: 1px solid #c4cdc7; }.metric-card:last-child { grid-column: 1 / -1; }.stage-toolbar { padding: 0 14px; }.stage-toolbar > div:first-child span:last-child { display: none; }.analysis-grid { padding: 7px; }.architecture-map { grid-template-columns: 1fr; }.architecture-map .map-arrow { transform: rotate(90deg); min-height: 45px; }.architecture-map .map-arrow:nth-of-type(2) { display: grid; }.architecture-map article { border-top: 1px solid var(--line); }.architecture-map article:first-child { border-top: 0; }.architecture-map p { min-height: 0; } footer { flex-direction: column; justify-content: center; gap: 15px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
