:root {
  color-scheme: dark;
  --ink: #f3f4ef;
  --muted: #98a2ad;
  --faint: #66717d;
  --line: rgba(196, 214, 223, 0.14);
  --panel: rgba(23, 31, 43, 0.76);
  --panel-strong: #1b2736;
  --bg: #0e141d;
  --blue: #83b7ff;
  --mint: #a2f5c3;
  --orange: #ffb469;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); font-size: 13px; letter-spacing: .18em; font-weight: 800; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--mint); color: #102019; font-family: var(--serif); font-size: 19px; letter-spacing: 0; }
.nav { display: flex; gap: 34px; margin-left: 130px; }
.nav a { position: relative; color: var(--muted); font-size: 13px; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--mint); }
.reload-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s ease; }
.reload-button:hover { border-color: var(--mint); color: var(--mint); }
.intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; padding: 104px 0 83px; }
.eyebrow, .section-kicker { color: var(--mint); font-size: 11px; letter-spacing: .18em; font-weight: 800; margin: 0 0 19px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(162,245,195,.08); vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 25px; font-size: clamp(46px, 7.2vw, 88px); line-height: .98; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--blue); font-family: var(--serif); font-weight: 400; letter-spacing: -.075em; }
.lede { max-width: 570px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.intro-side { align-self: end; padding-bottom: 4px; }
.run-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(35,52,69,.8), rgba(17,25,36,.8)); padding: 21px 23px 19px; }
.run-card-head, .run-card-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.status-label { color: var(--mint); }
.status-label i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--mint); border-radius: 50%; }
.run-card-main { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 23px; }
.run-version { font-size: 40px; line-height: 1; letter-spacing: -.06em; }
.run-arrow { color: var(--blue); font-size: 31px; }
.run-card-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.run-card-foot strong { color: var(--ink); font-weight: 500; }
.micro-copy { color: var(--faint); font-size: 12px; line-height: 1.65; margin: 16px 0 0; }
.metric-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 10px; margin-bottom: 59px; }
.metric-card { min-height: 171px; border: 1px solid var(--line); background: var(--panel); padding: 19px 20px 18px; }
.metric-card.featured { background: linear-gradient(130deg, #223348, #1a2837); border-color: rgba(131,183,255,.34); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 20px 0 15px; color: var(--ink); font-size: 38px; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.metric-card small { color: var(--faint); font-size: 12px; }
.metric-spark { color: var(--blue); font-size: 19px; }
.metric-index { color: var(--faint); font-size: 11px; }
.meter, .metric-line { height: 4px; overflow: hidden; margin: 0 0 9px; background: rgba(255,255,255,.09); }
.meter span, .metric-line span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .8s ease; }
.metric-line { margin-top: 24px; }
.metric-line span { background: var(--orange); }
.metric-line.mint span { background: var(--mint); }
.mini-bars { display: flex; height: 27px; gap: 4px; align-items: end; margin-top: 20px; }
.mini-bars i { flex: 1; min-height: 5px; background: var(--blue); opacity: .72; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; margin-bottom: 93px; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 27px 28px; }
.panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel h2, .section-block h2, .guardrail-strip h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; font-weight: 500; }
.panel-note, .tag { color: var(--faint); font-size: 12px; margin-top: 23px; }
.tag { padding: 5px 9px; margin-top: 0; color: var(--mint); border: 1px solid rgba(162,245,195,.26); background: rgba(162,245,195,.05); }
.trajectory-chart { height: 175px; display: flex; align-items: end; gap: 14px; padding: 30px 0 0; border-bottom: 1px solid var(--line); }
.chart-column { position: relative; display: flex; flex: 1; height: 100%; align-items: end; gap: 3px; }
.chart-bar { width: 50%; min-height: 4px; background: var(--blue); opacity: .82; }
.chart-bar.mint { background: var(--mint); opacity: .72; }
.chart-label { position: absolute; bottom: -26px; width: 100%; color: var(--faint); font-size: 10px; text-align: center; }
.legend { display: flex; gap: 17px; padding: 30px 0 18px; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--blue); }
.legend-dot.mint { background: var(--mint); }
.legend-note { margin-left: auto; color: var(--faint); }
.iteration-list { border-top: 1px solid var(--line); }
.iteration-row { display: grid; grid-template-columns: 81px 1fr 68px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.iteration-row:last-child { border-bottom: 0; padding-bottom: 0; }
.iteration-date { color: var(--faint); font-size: 11px; }
.iteration-text { min-width: 0; }
.iteration-text strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.iteration-text span { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.iteration-score { color: var(--blue); font-size: 13px; text-align: right; }
.hypothesis-panel { display: flex; min-height: 499px; flex-direction: column; }
.hypothesis-quote { margin: 56px 0 52px; color: var(--blue); font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.24; letter-spacing: -.035em; }
.evidence-block { border-left: 2px solid var(--mint); padding: 2px 0 2px 15px; }
.evidence-label { color: var(--mint); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.evidence-block p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.hypothesis-footer { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 26px; color: var(--faint); font-size: 11px; }
.arrow-large { color: var(--mint); font-size: 24px; }
.section-block { margin-bottom: 93px; }
.section-heading { align-items: end; margin-bottom: 25px; }
.section-heading .section-kicker { margin-bottom: 14px; }
.section-heading > p { max-width: 440px; margin: 0 0 2px; color: var(--muted); font-size: 13px; text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 16px 19px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--faint); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
td { color: var(--muted); }
td:first-child { width: 18%; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(131,183,255,.035); }
.module-number { display: inline-block; width: 26px; color: var(--blue); font-size: 11px; }
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.loop-step { min-height: 212px; border: 1px solid var(--line); background: var(--panel); padding: 22px 20px; }
.step-index { display: block; margin-bottom: 35px; color: var(--orange); font-family: var(--serif); font-size: 21px; }
.loop-step h3 { margin-bottom: 8px; font-size: 18px; font-weight: 500; }
.loop-step p { min-height: 49px; margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.step-code { color: var(--faint); font-size: 10px; letter-spacing: .11em; }
.guardrail-strip { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 35px; margin-bottom: 70px; padding: 32px 0 32px 27px; border-left: 2px solid var(--mint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guardrail-strip .section-kicker { margin-bottom: 12px; }
.guardrail-strip h2 { color: var(--mint); }
.guardrail-strip > p { margin: 0; color: var(--muted); font-size: 13px; }
.guardrail-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; color: var(--muted); font-size: 11px; }
.guardrail-list span { white-space: nowrap; }
.guardrail-list i { margin-right: 5px; color: var(--mint); font-style: normal; }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 35px; color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.footer a { color: var(--muted); letter-spacing: 0; }
.footer a:hover { color: var(--mint); }

@media (max-width: 820px) {
  .shell { width: min(100% - 30px, 650px); }
  .topbar { height: 70px; }
  .nav { display: none; }
  .intro { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 58px; }
  .intro-side { width: min(100%, 420px); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 45px; }
  .metric-card.featured { grid-column: span 2; }
  .dashboard-grid { grid-template-columns: 1fr; margin-bottom: 65px; }
  .hypothesis-panel { min-height: 370px; }
  .section-block { margin-bottom: 65px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .guardrail-strip { grid-template-columns: 1fr; gap: 18px; }
  .guardrail-list { justify-content: start; }
  .footer { gap: 15px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 26px); }
  .reload-button { padding: 8px 11px; }
  .reload-button span { display: none; }
  h1 { font-size: 49px; }
  .lede { font-size: 16px; }
  .metric-grid, .loop-grid { grid-template-columns: 1fr; }
  .metric-card.featured { grid-column: auto; }
  .panel { padding: 22px 18px; }
  .panel-heading { display: block; }
  .panel-note, .tag { display: inline-block; margin-top: 12px; }
  .iteration-row { grid-template-columns: 67px 1fr 49px; gap: 9px; }
  .iteration-text strong, .iteration-text span { white-space: normal; }
  .legend { gap: 10px; flex-wrap: wrap; }
  .legend-note { margin-left: 0; width: 100%; }
  .footer { display: block; line-height: 2; }
  .footer span, .footer a { display: block; }
}
