:root {
  --bg: #0b0f12;
  --bg-raised: #10161a;
  --panel: rgba(15, 21, 25, 0.93);
  --panel-strong: #121a1e;
  --line: #263239;
  --line-soft: rgba(143, 227, 194, 0.14);
  --text: #f2f5f3;
  --muted: #99a7a3;
  --faint: #687772;
  --mint: #8fe3c2;
  --mint-bright: #b5f5dc;
  --blue: #8db8d8;
  --amber: #e6c47a;
  --red: #dc8b85;
  --radius: 7px;
  --content: 1240px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, a { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--mint); color: var(--bg); border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ambient-grid { position: fixed; inset: 0; pointer-events: none; opacity: 0.48; background-image: linear-gradient(rgba(143, 227, 194, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 227, 194, 0.025) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 76%); }

.site-header { position: relative; z-index: 2; max-width: var(--content); min-height: 84px; margin: 0 auto; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(143, 227, 194, 0.5); background: #111a1e; box-shadow: inset 0 0 0 4px rgba(143, 227, 194, 0.035); border-radius: 6px; }
.brand-mark span { font: 700 24px/1 Manrope, sans-serif; color: var(--mint); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font: 700 17px/1.1 Manrope, sans-serif; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid transparent; border-radius: 5px; transition: 160ms ease; }
.header-nav a:hover, .header-nav a:focus-visible { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.025); outline: none; }
.header-nav .contact-link { color: var(--bg); background: var(--mint); border-color: var(--mint); font-weight: 700; }
.header-nav .contact-link:hover, .header-nav .contact-link:focus-visible { color: #020706; background: var(--mint-bright); border-color: var(--mint-bright); }

main { position: relative; z-index: 1; max-width: var(--content); margin: 0 auto; padding: 0 26px 72px; }
.intro-band { min-height: 420px; padding: 70px 0 62px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 64px; border-bottom: 1px solid var(--line); }
.status-line, .section-kicker { color: var(--mint); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; }
.status-line { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(143, 227, 194, 0.1), 0 0 22px rgba(143, 227, 194, 0.55); }
h1, h2 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: 0; }
h1 { max-width: 780px; font-size: clamp(46px, 7.4vw, 88px); line-height: 0.97; font-weight: 600; }
h1 span { color: var(--mint); }
.intro-copy > p { max-width: 670px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.62; }
.hero-stat { min-height: 235px; padding: 27px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-top: 3px solid var(--mint); background: linear-gradient(145deg, rgba(143,227,194,0.08), rgba(12,17,20,0.86) 55%); border-radius: var(--radius); }
.hero-stat-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.hero-stat strong { margin: 10px 0 3px; color: var(--mint-bright); font: 600 86px/0.96 Manrope, sans-serif; }
.hero-stat > span:last-child { color: var(--muted); font-size: 14px; }

.snapshot-bar { min-height: 54px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.snapshot-bar > span:nth-child(2) { flex: 1; }
.snapshot-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.snapshot-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.snapshot-indicator.ready > span { background: var(--mint); box-shadow: 0 0 12px rgba(143,227,194,.65); }
.snapshot-indicator.error > span { background: var(--red); }
#refresh-button { border: 0; padding: 8px 0 8px 12px; background: transparent; color: var(--mint); cursor: pointer; font-weight: 700; }
#refresh-button:hover, #refresh-button:focus-visible { color: var(--mint-bright); outline: none; text-decoration: underline; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.metric { position: relative; min-height: 174px; padding: 28px 24px; border-right: 1px solid var(--line); }
.metric:first-child { border-left: 1px solid var(--line); }
.metric::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--mint); transition: width 300ms ease; }
.metric.loaded::after { width: 100%; }
.metric-label { display: block; min-height: 28px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.metric strong { display: block; margin: 6px 0 10px; font: 600 44px/1 Manrope, sans-serif; }
.metric p { margin: 0; color: var(--faint); font-size: 13px; line-height: 1.45; }
.metric-primary strong { color: var(--mint); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr); gap: 18px; margin-top: 18px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-top: 18px; }
.panel { padding: 26px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.panel h2 { margin-top: 7px; font-size: 20px; font-weight: 600; }
.chart-total { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; font-size: 12px; white-space: nowrap; }
.chart-shell { position: relative; height: 285px; margin-top: 26px; }
#momentum-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: rgba(153,167,163,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#chart-gradient); }
.chart-line { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--bg); stroke: var(--mint-bright); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-y-label { fill: var(--faint); font: 12px "DM Sans", sans-serif; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; }
.chart-empty[hidden] { display: none; }
.chart-axis { min-height: 22px; display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; }
.stage-list { display: grid; gap: 19px; margin-top: 28px; }
.stage-row { display: grid; gap: 8px; }
.stage-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.stage-heading span { color: var(--muted); }
.stage-heading strong { font: 600 18px/1 Manrope, sans-serif; }
.stage-track { height: 6px; overflow: hidden; background: #1b252a; border-radius: 3px; }
.stage-fill { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 3px; transition: width 600ms cubic-bezier(.2,.8,.2,1); }
.stage-row:nth-child(2) .stage-fill { background: var(--blue); }
.stage-row:nth-child(3) .stage-fill { background: var(--amber); }
.stage-row:nth-child(4) .stage-fill { background: #b4a1d6; }
.panel-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.55; }
.loading-row { height: 47px; background: linear-gradient(90deg, #151e22 25%, #1d292e 50%, #151e22 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }

.focus-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 24px; }
.focus-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid rgba(143,227,194,.25); background: rgba(143,227,194,.055); color: var(--mint-bright); border-radius: 4px; font-size: 13px; font-weight: 600; }
.loading-chip { color: var(--muted); border-color: var(--line); }
.focus-panel > p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.65; }
.milestone-list { list-style: none; margin: 24px 0 0; padding: 0; }
.milestone-list li { position: relative; display: grid; grid-template-columns: 12px 1fr auto; align-items: start; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.milestone-list li > span { width: 8px; height: 8px; margin-top: 6px; border: 2px solid var(--mint); border-radius: 50%; }
.milestone-list p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; }
.milestone-list time { color: var(--faint); font-size: 12px; white-space: nowrap; }

.privacy-band { margin-top: 18px; padding: 34px; display: grid; grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); align-items: center; gap: 52px; border: 1px solid rgba(143,227,194,.24); background: linear-gradient(100deg, rgba(143,227,194,.07), rgba(16,22,26,.84) 55%); border-radius: var(--radius); }
.privacy-mark { display: inline-block; margin-bottom: 11px; color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.privacy-band h2 { font-size: 24px; }
.privacy-band p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

footer { position: relative; z-index: 1; max-width: var(--content); min-height: 76px; margin: 0 auto; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
footer strong { color: var(--text); }
footer a { color: var(--mint); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--mint-bright); outline: none; text-decoration: underline; }

@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media (max-width: 900px) {
  .intro-band { grid-template-columns: 1fr; gap: 38px; padding-top: 52px; }
  .hero-stat { min-height: 190px; max-width: 440px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 70px; padding: 14px 18px; }
  .brand-copy small { display: none; }
  .header-nav a { display: none; }
  .header-nav .contact-link { display: inline-flex; padding: 9px 11px; }
  main { padding: 0 18px 48px; }
  .intro-band { min-height: auto; padding: 46px 0 42px; }
  h1 { font-size: clamp(43px, 15vw, 62px); }
  .intro-copy > p { font-size: 16px; }
  .hero-stat { min-height: 170px; padding: 22px; }
  .hero-stat strong { font-size: 68px; }
  .snapshot-bar { min-height: 64px; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; }
  .snapshot-bar > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 156px; padding: 22px 16px; }
  .metric strong { font-size: 38px; }
  .metric-label { font-size: 9px; }
  .panel { padding: 20px 17px; }
  .panel-header { display: grid; }
  .chart-shell { height: 230px; margin-top: 20px; }
  .privacy-band { grid-template-columns: 1fr; gap: 18px; padding: 25px 20px; }
  footer { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
}

@media (max-width: 390px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
}
