:root {
  --bg-obsidian: #05090E;
  --bg-surface: #0A121C;
  --bg-elevated: #0F1A27;
  --bg-panel: #070E16;
  --emerald: #00F5A0;
  --emerald-soft: rgba(0, 245, 160, 0.12);
  --cyan: #00D9F5;
  --cyan-soft: rgba(0, 217, 245, 0.12);
  --text-primary: #F2F7F5;
  --text-secondary: #A9C2BA;
  --text-tertiary: #6E8A82;
  --hairline: rgba(169, 194, 186, 0.15);
  --hairline-strong: rgba(0, 245, 160, 0.30);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}
::selection { background: var(--emerald); color: #030705; }
html {
  color-scheme: dark;
  caret-color: var(--emerald);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 160, 0.35) var(--bg-obsidian);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-obsidian); }
::-webkit-scrollbar-thumb { background: rgba(169, 194, 186, 0.25); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.tabular { font-variant-numeric: tabular-nums; }
.emerald-txt { color: var(--emerald); }
.cyan-txt { color: var(--cyan); }
#quant-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.telemetry-bar {
  background: #03060A;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 9px 0;
  position: relative;
  z-index: 10;
}
.telemetry-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.telemetry-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.45; }
}
.telemetry-ticker { display: flex; gap: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.telemetry-ticker strong { color: var(--text-primary); font-weight: 500; }
.telemetry-ticker .sep { color: var(--text-tertiary); }
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 9, 14, 0.88);
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 6px;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--emerald); }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--emerald);
  color: #030906;
  box-shadow: 0 8px 20px -4px rgba(0, 245, 160, 0.28);
}
.btn-primary:hover {
  background: #22FFAE;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(0, 245, 160, 0.38);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { border-color: var(--emerald); background: rgba(0, 245, 160, 0.06); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-full { width: 100%; }
.mono-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(3, 9, 6, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Hero & Visual Showcase */
.hero { padding: 76px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald);
  font-size: 1.08em;
}
.hero-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero-desc strong { color: var(--text-primary); font-weight: 600; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
  gap: 18px;
}
.spec-cell { display: flex; flex-direction: column; gap: 3px; }
.spec-cell:not(:first-child) { border-left: 1px solid var(--hairline); padding-left: 18px; }
.spec-cell dt { font-family: var(--font-mono); font-size: 11px; color: var(--emerald); }
.spec-cell dd { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }

/* Interactive Visual Showcase Window */
.showcase-window {
  background: var(--bg-panel);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(169, 194, 186, 0.2);
  overflow: hidden;
}
.showcase-header {
  background: #0A131E;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 10px;
}
.showcase-tabs { display: flex; gap: 6px; }
.view-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.view-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.view-tab.active {
  background: var(--bg-elevated);
  color: var(--emerald);
  border-color: rgba(0, 245, 160, 0.28);
}
.showcase-pane { display: none; padding: 18px 20px; }
.showcase-pane.active { display: block; }
.pane-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pane-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.pane-sub { display: block; font-size: 12px; color: var(--text-tertiary); }
.badge-live {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.chart-stage {
  background: #050A0F;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.interactive-svg { width: 100%; height: auto; display: block; }
.axis-lbl { fill: #6E8A82; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.curve-tag { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10.5px; font-weight: 600; }
.emerald-fill { fill: #00F5A0; }
.cyan-fill { fill: #00D9F5; }
.map-lbl { fill: #D5E6E0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 500; }
.fund-node { cursor: pointer; transition: transform 0.15s ease; }
.fund-node:hover .node-halo { r: 14px; fill: rgba(0, 245, 160, 0.35); }
.chart-inspector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0A131E;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 10px 14px;
}
.insp-label { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary); }
.insp-main strong { font-size: 13px; color: var(--text-primary); }
.insp-stats { display: flex; gap: 16px; }
.insp-stats div { display: flex; flex-direction: column; }
.insp-stats span { font-size: 10px; color: var(--text-tertiary); }
.insp-stats strong { font-family: var(--font-mono); font-size: 12.5px; }

/* Familiar AI Chat View */
.chat-conversation { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.chat-bubble { padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; }
.user-bubble {
  background: #0E1A28;
  border: 1px solid var(--hairline);
  align-self: flex-end;
  max-width: 90%;
}
.chat-author { display: block; font-size: 11px; font-weight: 600; color: var(--cyan); margin-bottom: 4px; }
.ai-bubble {
  background: rgba(0, 245, 160, 0.05);
  border: 1px solid rgba(0, 245, 160, 0.25);
}
.ai-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; }
.ai-badge { color: var(--emerald); font-weight: 600; }
.ai-time { color: var(--text-tertiary); }

/* Visual Interactive Explorer Section */
.section-visual-explorer {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}
.section-intro { max-width: 72ch; margin-bottom: 44px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 12px;
}
.section-lead { font-size: 16px; color: var(--text-secondary); max-width: 66ch; }
.explorer-board {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: stretch;
}
.explorer-controls { display: flex; flex-direction: column; gap: 12px; }
.cat-pill {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cat-pill:hover { border-color: rgba(0, 245, 160, 0.4); }
.cat-pill.active {
  background: var(--bg-elevated);
  border-color: var(--emerald);
  box-shadow: 0 10px 24px -8px rgba(0, 245, 160, 0.2);
}
.cat-name { display: block; font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cat-meta { display: block; font-size: 12.5px; color: var(--text-secondary); }
.explorer-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.chart-card-header h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.chart-card-header p { font-size: 13.5px; color: var(--text-secondary); max-width: 52ch; }
.sim-kpis { display: flex; gap: 22px; }
.kpi-box { display: flex; flex-direction: column; }
.kpi-box span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); text-transform: uppercase; }
.kpi-box strong { font-family: var(--font-mono); font-size: 16px; }
.nav-chart-wrap {
  background: #05090E;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px;
}
.nav-svg { width: 100%; height: auto; display: block; }

/* Ecosystem Ledger & Visual Banners */
.section-ecosystem, .section-opendata-detail {
  padding: 88px 0;
  border-top: 1px solid var(--hairline);
}
.architectural-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.ledger-column {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(10, 18, 28, 0.55);
}
.ledger-column:first-child { border-right: 1px solid var(--hairline); }
.ledger-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.ledger-domain { color: var(--text-tertiary); letter-spacing: 0.05em; }
.ledger-state { padding: 3px 9px; border-radius: 6px; font-weight: 500; }
.state-emerald { color: var(--emerald); background: var(--emerald-soft); }
.state-cyan { color: var(--cyan); background: var(--cyan-soft); }
.ledger-title { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; margin-bottom: 10px; }
.title-note { font-size: 17px; font-weight: 400; color: var(--text-secondary); }
.ledger-summary { color: var(--text-secondary); font-size: 15px; max-width: 62ch; margin-bottom: 22px; }
.feature-visual-banner { margin-bottom: 24px; }
.banner-svg { width: 100%; height: auto; display: block; }
.ledger-rows { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); margin-bottom: 32px; }
.ledger-row { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.ledger-row dt { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.ledger-row dd { font-size: 13.8px; color: var(--text-secondary); max-width: 64ch; }
.ledger-row code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  background: rgba(0, 217, 245, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Connection & Roadmap Split */
.opendata-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.connection-panel, .roadmap-panel {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 34px;
}
.panel-heading { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.panel-copy { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 20px; }
.endpoint-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-obsidian);
  border: 1px solid var(--hairline-strong);
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.endpoint-code { font-family: var(--font-mono); font-size: 12px; color: var(--emerald); overflow-x: auto; white-space: nowrap; }
.btn-copy {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
  padding: 7px 13px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-copy:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-copy.copied { background: var(--emerald); color: #030906; border-color: var(--emerald); }
.quota-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  margin-bottom: 24px;
  gap: 12px;
}
.quota-cell dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2px; }
.quota-cell dd { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.clean-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.clean-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: baseline; }
.step-index { font-family: var(--font-mono); font-size: 12px; color: var(--emerald); font-weight: 600; }
.clean-steps strong { display: block; font-size: 14.5px; color: var(--text-primary); margin-bottom: 2px; }
.clean-steps p { font-size: 13.5px; color: var(--text-secondary); }
.roadmap-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.roadmap-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.roadmap-phase { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.roadmap-row.is-live .roadmap-phase { color: var(--emerald); font-weight: 600; }
.roadmap-detail h4 { font-size: 14.5px; color: var(--text-primary); margin-bottom: 3px; }
.roadmap-detail p { font-size: 13px; color: var(--text-secondary); }
.section-cta { padding: 72px 0 92px; border-top: 1px solid var(--hairline); }
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 42px 46px;
  flex-wrap: wrap;
}
.cta-copy { max-width: 60ch; }
.cta-title { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 8px; text-wrap: balance; }
.cta-copy p { color: var(--text-secondary); font-size: 15px; }
.footer { border-top: 1px solid var(--hairline); padding: 38px 0; background: #03060A; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand p { color: var(--text-secondary); font-size: 13px; max-width: 52ch; margin-top: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--emerald); text-decoration: underline; }
@media (max-width: 980px) {
  .hero-grid, .explorer-board, .architectural-ledger, .opendata-split { grid-template-columns: 1fr; }
  .ledger-column:first-child { border-right: none; border-bottom: 1px solid var(--hairline); }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-cell:not(:first-child) { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 10px; }
  .nav-links { display: none; }
}