/* ========================================================
   GTS — D2 Carbon Live Studio
   Living, tactile, interactive
   ======================================================== */

:root {
  --brand-green:    #1FA94B;
  --brand-green-dark: #168339;
  --brand-blue:     #1F2389;
  --brand-blue-dark: #161961;

  --bg:           #FFFFFF;
  --bg-elev:      #FFFFFF;
  --bg-deep:      #1F2389;
  --bg-panel:     #F4F5F7;

  --ink:          #1F2389;
  --ink-2:        #3A3F7C;
  --ink-3:        #6F73A5;
  --ink-4:        #A4A7C6;
  --bg-rule:      #ECEDF0;
  --rule:         #ECEDF0;
  --rule-strong:  #D6D8DD;

  --accent:       #1FA94B;
  --accent-deep:  #168339;
  --accent-soft:  #E0F4E6;
  --accent-line:  #1FA94B;

  --hot:          oklch(0.62 0.20 30);
  --cool:         #1F2389;
  --warm:         oklch(0.70 0.16 80);

  /* Constant — always light text on navy/accent panels regardless of theme */
  --ink-on-deep:  #FAF7EC;

  --ff-sans:      'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono:      'IBM Plex Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(20,20,20,.04), 0 0 0 1px rgba(20,20,20,.04);
  --sh:    0 2px 6px rgba(20,20,20,.06), 0 12px 32px -10px rgba(20,20,20,.10);
  --sh-lg: 0 8px 24px -4px rgba(20,20,20,.10), 0 28px 64px -24px rgba(20,20,20,.20);
}

/* ========================================================
   DARK THEME
   ======================================================== */
[data-theme="dark"] {
  --bg:           #0A0C1E;
  --bg-elev:      #12162E;
  --bg-deep:      #1F2389;
  --bg-panel:     #181C36;

  --ink:          #F4F5F9;
  --ink-2:        #B8BAD0;
  --ink-3:        #7B7F9C;
  --ink-4:        #4A4D6A;

  --bg-rule:      rgba(255, 255, 255, 0.08);
  --rule:         rgba(255, 255, 255, 0.08);
  --rule-strong:  rgba(255, 255, 255, 0.16);

  --accent:       #34D86B;
  --accent-deep:  #1FA94B;
  --accent-soft:  rgba(31, 169, 75, 0.18);
  --accent-line:  #34D86B;

  --sh-sm: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
  --sh:    0 2px 6px rgba(0,0,0,.4), 0 12px 32px -10px rgba(0,0,0,.6);
  --sh-lg: 0 8px 24px -4px rgba(0,0,0,.4), 0 28px 64px -24px rgba(0,0,0,.8);
}
[data-theme="dark"] .nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
[data-theme="dark"] .pf-dashboard {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .live-card,
[data-theme="dark"] .product-featured,
[data-theme="dark"] .proof-band,
[data-theme="dark"] .scenario,
[data-theme="dark"] .service-card.featured,
[data-theme="dark"] .module-card.featured {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--sh-lg);
}
[data-theme="dark"] .nav-version-pill { background: var(--bg-panel); }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg-deep); }

.mono { font-family: var(--ff-mono); font-feature-settings: "zero"; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================================
   LIVE TICKER (top)
   ======================================================== */
.ticker {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  font-family: var(--ff-mono);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-row {
  display: flex;
  padding: 9px 0;
  gap: 48px;
  animation: ticker 60s linear infinite;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.04em;
}
.ticker-item .lbl { color: rgba(250, 247, 236, 0.55); }
.ticker-item .val { color: var(--ink-on-deep); }
.ticker-item .delta { color: var(--accent); }
.ticker-item .delta.down { color: var(--hot); }
.ticker-item .sep { color: rgba(250, 247, 236, 0.25); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================================
   NAV
   ======================================================== */
.nav {
  position: sticky;
  top: 36px;
  z-index: 55;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 8px;
}
.brand-mark.live {
  background: var(--accent);
  color: var(--bg-deep);
}
.brand-version {
  margin-left: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 3px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--ink-3);
}
.brand-version.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.nav-version-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.nav-version-pill a {
  padding: 4px 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: all 120ms;
}
.nav-version-pill a:hover { color: var(--ink); }
.nav-version-pill a.active {
  background: var(--ink);
  color: var(--bg-elev);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 24px;
}
.nav-link {
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background 120ms, color 120ms;
}
.nav-link:hover { background: var(--bg-panel); color: var(--ink); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 120ms, transform 80ms, border-color 120ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg-elev); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--bg-deep); }
.btn-accent:hover { background: var(--accent-deep); color: var(--bg-elev); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-panel); }
.btn-lg { padding: 14px 24px; font-size: 14.5px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* ========================================================
   HERO — LIVE COUNTER + STUDIO
   ======================================================== */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(56px, 8.2vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 28px 0 20px;
}
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--accent-line);
  font-style: italic;
  font-weight: 700;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Live counter card ---- */
.live-card {
  position: relative;
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.live-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.live-card > * { position: relative; }
.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.live-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: rgba(250, 247, 236, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
}
.live-pulse .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.live-counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.live-counter .num {
  font-family: var(--ff-mono);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live-counter .num .digit {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.live-counter .unit {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: rgba(250, 247, 236, 0.45);
  letter-spacing: 0.04em;
}
.live-meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: rgba(250, 247, 236, 0.5);
  margin-bottom: 28px;
}
.live-divider {
  height: 1px;
  background: rgba(250, 247, 236, 0.12);
  margin: 24px 0;
}
.live-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.live-row .l { color: rgba(250, 247, 236, 0.65); }
.live-row .v { font-weight: 500; color: var(--ink-on-deep); font-variant-numeric: tabular-nums; }
.live-spark {
  height: 36px;
  margin: 12px 0;
}
.live-spark .sp-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}
.live-spark .sp-area {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* hero footer chips */
.hero-chips {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-chip .v {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-chip .l {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.hero-chip .l strong { color: var(--accent-deep); }

/* ========================================================
   SECTION
   ======================================================== */
.section {
  padding: 96px 0;
  position: relative;
}
.section-head {
  margin-bottom: 48px;
  max-width: 920px;
}
.section-head h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 16px;
}
.section-head h2 .accent { color: var(--accent-deep); font-style: italic; }
.section-head h2 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-weight: 800;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.55;
  margin-top: 18px;
}

/* ========================================================
   SIMULATOR
   ======================================================== */
.simulator {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  box-shadow: var(--sh);
}
.sim-side h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.sim-side p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 28px;
}
.sim-control {
  margin-bottom: 28px;
}
.sim-control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.sim-control-head .l {
  font-size: 13.5px;
  font-weight: 500;
}
.sim-control-head .v {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.sim-control-desc {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.sim-slider {
  width: 100%;
  appearance: none;
  height: 4px;
  background: var(--bg-panel);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
.sim-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
    var(--accent) 0 var(--p, 50%),
    var(--bg-panel) var(--p, 50%) 100%);
  height: 4px;
  border-radius: 100px;
}
.sim-slider::-moz-range-track {
  background: linear-gradient(to right,
    var(--accent) 0 var(--p, 50%),
    var(--bg-panel) var(--p, 50%) 100%);
  height: 4px;
  border-radius: 100px;
}
.sim-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  background: var(--ink);
  border: 3px solid var(--bg-elev);
  border-radius: 50%;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}
.sim-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.sim-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--ink);
  border: 3px solid var(--bg-elev);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}

.sim-chart-wrap {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sim-chart-head h4 {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: rgba(250, 247, 236, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.sim-chart-head .v {
  font-family: var(--ff-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sim-chart-head .delta {
  font-family: var(--ff-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.sim-chart-head .delta.bad {
  background: color-mix(in srgb, var(--hot) 20%, transparent);
  color: var(--hot);
}
.sim-chart svg { width: 100%; height: 220px; }
.sim-chart .grid line { stroke: rgba(250, 247, 236, 0.06); stroke-width: 1; }
.sim-chart .axis text {
  font-family: var(--ff-mono);
  font-size: 10px;
  fill: rgba(250, 247, 236, 0.35);
}
.sim-chart .line { stroke: var(--accent); stroke-width: 2; fill: none; transition: d 250ms ease-out; }
.sim-chart .area { fill: color-mix(in srgb, var(--accent) 16%, transparent); transition: d 250ms ease-out; }
.sim-chart .target { stroke: var(--bg-elev); stroke-width: 1; stroke-dasharray: 4 4; fill: none; opacity: 0.5; }
.sim-chart .now-line { stroke: rgba(250, 247, 236, 0.2); stroke-width: 1; }

.sim-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  border-top: 1px solid rgba(250, 247, 236, 0.1);
  padding-top: 20px;
}
.sim-summary .l {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 236, 0.4);
}
.sim-summary .v {
  font-family: var(--ff-mono);
  font-size: 20px;
  font-weight: 500;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.sim-summary .v em { font-style: normal; color: var(--accent); }

/* ========================================================
   DECARBONATION LEVERS — DRAGGABLE
   ======================================================== */
.levers {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
}
.levers-side h3 { font-size: 26px; margin-bottom: 14px; }
.levers-side p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.levers-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-panel);
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.levers-hint .grip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.levers-hint .grip span { display: block; width: 12px; height: 1.5px; background: currentColor; }

.lever-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lever {
  display: grid;
  grid-template-columns: 32px 56px 1fr 130px auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: grab;
  transition: box-shadow 160ms, transform 160ms, border-color 160ms;
  user-select: none;
}
.lever:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--sh-sm);
}
.lever.dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.lever.drop-target {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.lever-rank {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.lever.priority-top .lever-rank { color: var(--accent-deep); }
.lever-handle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink-4);
  transition: color 120ms;
}
.lever-handle::before,
.lever-handle::after,
.lever-handle::nth-child {
  content: '';
}
.lever-handle span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.lever:hover .lever-handle { color: var(--ink-2); }
.lever-name { font-size: 15.5px; font-weight: 500; }
.lever-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; font-family: var(--ff-mono); }
.lever-impact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lever-impact .bar {
  flex: 1;
  height: 6px;
  background: var(--bg-panel);
  border-radius: 3px;
  overflow: hidden;
}
.lever-impact .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.lever-impact .val {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent-deep);
  font-weight: 600;
  width: 44px;
  text-align: right;
}
.lever-action {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
}
.lever.priority-top .lever-action {
  background: var(--accent-deep);
  color: var(--ink-on-deep);
  border-color: transparent;
}

/* ========================================================
   SCENARIO COMPARATOR
   ======================================================== */
.scenario {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.scenario::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.scenario > * { position: relative; }
.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}
.scenario-head h3 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.scenario-head h3 em { color: var(--accent); font-style: italic; }
.scenario-tabs {
  display: inline-flex;
  background: rgba(250, 247, 236, 0.08);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}
.scenario-tab {
  padding: 8px 18px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(250, 247, 236, 0.55);
  border-radius: 100px;
  cursor: pointer;
  transition: all 180ms;
}
.scenario-tab.active {
  background: var(--accent);
  color: var(--bg-deep);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.scenario-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scenario-col h4 {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 236, 0.5);
  font-weight: 500;
  margin-bottom: 16px;
}
.scenario-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.scenario-big .v {
  font-family: var(--ff-mono);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 220ms;
}
.scenario-col.better .scenario-big .v { color: var(--accent); }
.scenario-col.worse .scenario-big .v { color: var(--hot); }
.scenario-big .u {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: rgba(250, 247, 236, 0.4);
}
.scenario-sub {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: rgba(250, 247, 236, 0.5);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.scenario-bars { display: flex; flex-direction: column; gap: 14px; }
.scenario-bar { display: flex; align-items: center; gap: 12px; }
.scenario-bar .l {
  font-family: var(--ff-mono);
  font-size: 11px;
  width: 80px;
  color: rgba(250, 247, 236, 0.65);
  letter-spacing: 0.04em;
}
.scenario-bar .track {
  flex: 1;
  height: 8px;
  background: rgba(250, 247, 236, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.scenario-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.scenario-col.worse .scenario-bar .fill { background: var(--hot); }
.scenario-bar .val {
  font-family: var(--ff-mono);
  font-size: 12px;
  width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========================================================
   TIMELINE SCRUBBER
   ======================================================== */
.timeline {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}
.timeline-head h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.timeline-year {
  font-family: var(--ff-mono);
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 180ms;
}
.timeline-year.future { color: var(--accent-deep); }
.timeline-chart-wrap {
  position: relative;
  margin-bottom: 32px;
}
.timeline-chart { width: 100%; height: 280px; }
.timeline-chart .grid line { stroke: var(--bg-rule); stroke-width: 1; stroke-dasharray: 2 4; }
.timeline-chart .axis text { fill: var(--ink-4); font-family: var(--ff-mono); font-size: 10.5px; }
.timeline-chart .actual-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.timeline-chart .forecast-line { stroke: var(--accent-deep); stroke-width: 2; fill: none; stroke-dasharray: 5 4; }
.timeline-chart .actual-area { fill: rgba(20, 23, 26, 0.06); }
.timeline-chart .forecast-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.timeline-chart .target-line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1 3; }
.timeline-chart .now-marker { stroke: var(--ink); stroke-width: 1.5; }
.timeline-chart .scrub-marker { stroke: var(--accent-deep); stroke-width: 2; }

.timeline-scrub {
  position: relative;
  height: 56px;
}
.timeline-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  background: var(--bg-panel);
  transform: translateY(-50%);
  border-radius: 100px;
}
.timeline-track-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: var(--ink);
  transform: translateY(-50%);
  border-radius: 100px;
}
.timeline-track-future {
  height: 3px;
  background: var(--accent-deep);
  border-radius: 100px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.timeline-ticks {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
}
.timeline-tick {
  width: 1px;
  height: 10px;
  background: var(--ink-4);
}
.timeline-tick.major { height: 16px; background: var(--ink-3); }
.timeline-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background: var(--ink);
  border: 4px solid var(--bg-elev);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.timeline-thumb:active { cursor: grabbing; }
.timeline-thumb.future { background: var(--accent-deep); }
.timeline-thumb::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}
.timeline-labels {
  position: absolute;
  top: calc(50% + 22px);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 0 12px;
  letter-spacing: 0.04em;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.timeline-stat .l {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.timeline-stat .v {
  font-family: var(--ff-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  transition: color 180ms;
}
.timeline-stat .v.accent { color: var(--accent-deep); }
.timeline-stat .v.hot { color: var(--hot); }
.timeline-stat .sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ========================================================
   MODULES (live, clickable)
   ======================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms, box-shadow 240ms, border-color 240ms;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: var(--rule-strong);
}
.module-card.featured {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  border-color: transparent;
  grid-column: span 2;
}
.module-card.featured .module-meta,
.module-card.featured .module-desc { color: rgba(250, 247, 236, 0.65); }
.module-card.featured .module-tag {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
}
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.module-num {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.5;
}
.module-tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-panel);
  color: var(--ink-2);
}
.module-tag.live {
  background: var(--accent);
  color: var(--bg-deep);
}
.module-card h4 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.module-card.featured h4 { font-size: 48px; }
.module-meta {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.module-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 50ch; }
.module-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 36px; height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 160ms, border-color 160ms, transform 200ms;
}
.module-card:hover .module-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-elev);
  transform: translate(2px, -2px);
}
.module-card.featured .module-arrow {
  border-color: rgba(250, 247, 236, 0.2);
  color: var(--ink-on-deep);
}
.module-card.featured:hover .module-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
}

/* mini chart inside featured module */
.module-mini {
  margin-top: 32px;
  padding: 20px;
  background: rgba(250, 247, 236, 0.04);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 24px;
  align-items: center;
}
.module-mini-kpi .l {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 236, 0.4);
}
.module-mini-kpi .v {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.module-mini-spark svg { width: 100%; height: 36px; }
.module-mini-spark path.l { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.module-mini-spark path.a { fill: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ========================================================
   CTA / FOOTER
   ======================================================== */
.cta-section {
  padding: 120px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(56px, 9vw, 152px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  max-width: 16ch;
  margin: 0 auto 28px;
}
.cta-section h2 .accent { color: var(--accent-deep); font-style: italic; }
.cta-section h2 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-weight: 800;
}
.cta-section p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.cta-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--ink-2); transition: color 120ms; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .live-card { order: -1; }
  .simulator { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .levers { grid-template-columns: 1fr; gap: 32px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 24px; }
  .modules-grid { grid-template-columns: 1fr; }
  .module-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .container, .container-narrow, .hero-inner, .footer-inner { padding: 0 20px; }
  .lever { grid-template-columns: 24px 1fr; gap: 12px; padding: 14px; }
  .lever-handle, .lever-impact, .lever-action { display: none; }
  .hero h1 { font-size: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .module-mini { grid-template-columns: 1fr 1fr; }
  .scenario { padding: 24px; }
  .timeline { padding: 24px; }
  .section { padding: 64px 0; }
}
