@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0f1623;
  --panel: #1a2332;
  --panel-2: #1e2a3d;
  --teal: #2ec4b6;
  --teal-dim: #1a7a72;
  --blue: #3b82f6;
  --text: #e2e8f0;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #243040;
  --border-2: #1e2d42;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

.mono { font-family: 'Space Mono', monospace; }
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .eyebrow {
  margin-bottom: 1rem;
}

.section-intro {
  margin-top: 1rem;
  max-width: 680px;
  color: var(--muted-2);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 22, 35, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo svg { flex-shrink: 0; }

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo-text em {
  font-style: normal;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--teal); }
.nav-links a.nav-cta { color: #ffffff; }

.nav-cta {
  background: var(--teal);
  color: #ffffff;
  padding: 0.5rem 1.35rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.15s;
  margin-left: 1rem;
}

.nav-cta:hover {
  background: #38d9ca;
  transform: translateY(-1px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #38d9ca;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 5rem;
}

.hero-left {
  flex: 0 0 460px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-diff-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}
.hero-diff-link:hover { opacity: 0.75; }
.hero-diff-link svg { flex-shrink: 0; }

.hero-contact {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-contact a {
  color: var(--teal);
  text-decoration: none;
}

.hero-right {
  flex: 1;
  position: relative;
}

/* ─── MAP PANEL ─── */
.map-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem 1rem;
  position: relative;
  overflow: hidden; /* prevent ticker from expanding panel */
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.map-toolbar .map-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.12em;
}

.map-toolbar .map-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease infinite;
}

.map-svg-wrap {
  position: relative;
}

.map-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* District card - floating over map */
.district-card {
  position: absolute;
  bottom: 12%;
  right: -2%;
  width: 195px;
  background: #0f1e2e;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 0.9rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(46,196,182,0.08);
  z-index: 10;
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #243040;
}

.dc-district {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--teal);
}

.dc-state {
  color: var(--muted-2);
}

.dc-section-label {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  margin-top: 0.6rem;
}

.dc-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.dc-topic-name {
  color: var(--muted-2);
  font-size: 0.6rem;
  width: 80px;
  overflow: hidden;
  white-space: nowrap;
}

.dc-bar-track {
  flex: 1;
  height: 4px;
  background: #243040;
  border-radius: 2px;
  overflow: hidden;
  margin-left: 0.4rem;
}

.dc-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--teal);
}

.dc-bar-fill.neg { background: #ef4444; }
.dc-bar-fill.neu { background: #94a3b8; }
.dc-bar-fill.pos { background: var(--teal); }

.dc-pct {
  font-size: 0.55rem;
  color: var(--muted);
  width: 24px;
  text-align: right;
  margin-left: 0.3rem;
}

.dc-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #243040;
  color: var(--muted);
  font-size: 0.55rem;
}

.dc-footer span {
  color: var(--teal);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-2);
  overflow: hidden;
  min-width: 0;
}

.legend-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.legend-swatch {
  height: 6px;
  border-radius: 2px;
  flex: 1;
  background: linear-gradient(to right, #0d4a45, #2ec4b6);
}

.legend-hi, .legend-lo {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
}

/* ─── TOPIC TICKER (full-width bar at bottom of map panel) ─── */
.map-ticker-bar {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-2);
  margin: 0.6rem -1.5rem -1rem; /* bleed to panel edges, cancel panel bottom padding */
  height: 42px;
  background: rgba(10, 21, 32, 0.6);
}

.map-ticker-bar::before,
.map-ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.map-ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(10,21,32,0.9), transparent);
}

.map-ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(10,21,32,0.9), transparent);
}

/* position:absolute keeps ticker out of normal flow — won't inflate parent */
.topic-ticker {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 70s linear infinite;
}

.topic-ticker:hover { animation-play-state: paused; }

.topic-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 1.25rem;
}

.topic-pill .pill-district {
  color: rgba(255,255,255,0.5);
  margin-right: 0.4rem;
}

.topic-pill .pill-sep {
  color: rgba(46, 196, 182, 0.3);
  margin: 0 1.5rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── CAPABILITIES ─── */
.capabilities { background: var(--bg); }

.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.cap-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-2px);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(46, 196, 182, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}

.cap-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.cap-desc {
  font-size: 0.875rem;
  color: var(--muted-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Micro visualizations */
.micro-viz {
  border-top: 1px solid var(--border-2);
  padding-top: 1.25rem;
}

.micro-viz-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* Bar chart micro viz */
.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mini-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted-2);
  width: 72px;
  flex-shrink: 0;
}

.mini-bar-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--teal);
  transition: width 0.6s ease;
}

.mini-bar-fill.blue { background: var(--blue); }
.mini-bar-fill.dim { background: var(--teal-dim); }

.mini-bar-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  width: 28px;
  text-align: right;
}

/* Sparkline micro viz */
.sparkline-wrap {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.spark-bar {
  flex: 1;
  background: var(--teal-dim);
  border-radius: 2px 2px 0 0;
  transition: background 0.2s;
}

.spark-bar.active { background: var(--teal); }
.spark-bar.blue { background: var(--blue); }

/* Donut / segmented micro viz */
.sentiment-mini {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.sent-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.sent-seg-bar {
  width: 18px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sent-seg-fill {
  width: 100%;
  position: absolute;
  bottom: 0;
  border-radius: 2px;
  transition: height 0.6s ease;
}

.sent-seg-fill.neg { background: #ef4444; }
.sent-seg-fill.neu { background: #94a3b8; }
.sent-seg-fill.pos { background: var(--teal); }

.sent-seg-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  color: var(--muted);
}

/* Channel reach mini */
.channel-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ch-dot {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted-2);
}

.ch-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.ch-dot.dim::before { background: var(--teal-dim); }
.ch-dot.blue::before { background: var(--blue); }

/* ─── DIFFERENTIATION ─── */
.differentiation {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.diff-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.diff-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-top: 0.75rem;
  color: var(--text);
}
.diff-left h2 em {
  color: var(--teal);
  font-style: normal;
}
.diff-right p {
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.diff-kicker {
  color: var(--text) !important;
  font-size: 1rem !important;
  font-weight: 500;
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin-top: 1.5rem !important;
}
.diff-kicker em {
  color: var(--teal);
  font-style: normal;
}
@media (max-width: 768px) {
  .diff-block { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── WHO USES IT ─── */
.who-uses {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.who-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.who-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-2px);
}

.who-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: grayscale(0.2);
}

.who-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.who-hook {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.who-desc {
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.65;
}

/* ─── METHODOLOGY ─── */
.methodology {
  background: var(--bg);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.method-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal-dim), var(--teal), var(--teal-dim), transparent);
  z-index: 0;
}

.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.65;
}

.step-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.08);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.75rem;
}

/* ─── SOCIAL PROOF ─── */
.social-proof-section {
  padding: 4rem 2rem;
  background: var(--bg);
}
.testimonial-card {
  max-width: 780px;
  margin: 0 auto;
  border-left: 3px solid var(--accent);
  padding: 2rem 2.5rem;
  background: var(--panel);
  border-radius: 8px;
}
.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.testimonial-attribution strong {
  color: var(--accent);
  font-size: 0.95rem;
}
.testimonial-attribution span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--muted-2);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.cta-form button[type=submit] {
  width: 100%;
}

.cta-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.cta-input:focus {
  border-color: var(--teal);
}

.cta-input::placeholder {
  color: var(--muted);
}

.cta-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.cta-note a {
  color: var(--teal);
  text-decoration: none;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.footer-contact {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-contact a {
  color: var(--teal);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-nav-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-col a {
  font-size: 0.82rem;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--teal); }

/* ─── PRODUCT PAGE ─── */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--muted-2);
  max-width: 600px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: none; }

.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-visual { flex: 1; }

.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--muted-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.feature-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-text ul li {
  font-size: 0.875rem;
  color: var(--muted-2);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.feature-text ul li::before {
  content: '→';
  color: var(--teal);
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
}

.viz-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.viz-panel-header {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── ABOUT PAGE ─── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
  color: #fff;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--muted-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.about-content p:last-child { margin-bottom: 0; }

/* ─── PROSE PAGES (privacy/terms) ─── */
.prose-content {
  max-width: 720px;
  margin: 0 auto;
}

.prose-content h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

.prose-content h2:first-child { margin-top: 0; }

.prose-content h3 {
  font-size: 1rem;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.prose-content p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.prose-content ul, .prose-content ol {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose-content li { margin-bottom: 0.3rem; }

.prose-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: -1rem;
  margin-bottom: 3rem;
}

/* ─── HIGHLIGHT BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.08);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
}

/* ─── TEAL LINE UNDER SECTION HEADER ─── */
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 1rem;
}

/* ─── DATA TABLE (product page) ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  color: var(--muted-2);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-2);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table td.highlight {
  color: var(--teal);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
}

/* ─── SCROLL ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ─── MOBILE (basic) ─── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 5rem;
    text-align: center;
  }

  .hero-left { flex: none; }
  .hero-right { width: 100%; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }

  .caps-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .method-steps::before { display: none; }
  .footer-top { flex-direction: column; }
  .footer-nav { gap: 2rem; }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 2.5rem; }
  .district-card { right: 0; bottom: -10%; }
}

@media (max-width: 600px) {
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
  .who-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  /* Keep CTA visible on mobile — see 640px block below */
}

/* ─── MOBILE EXPERIENCE (640px and below) ─── */
@media (max-width: 640px) {

  /* NAV: ditch text links, keep logo + Request Access CTA */
  .nav-inner { padding: 0 1.25rem; }
  .nav-links li:not(:last-child) { display: none; }
  nav .nav-cta {
    display: inline-block !important;
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }

  /* HERO */
  .hero {
    padding: 5rem 1.25rem 2.5rem;
    gap: 2rem;
    text-align: left;
  }
  .hero h1 { font-size: 1.75rem; line-height: 1.3; }
  .hero-sub { font-size: 0.88rem; max-width: none; margin-bottom: 1.75rem; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem; }

  /* HERO MAP: hide the D3 choropleth (too dense at 390px),
     pull district card out as a full-width data widget */
  #district-map { display: none; }
  .map-legend { display: none; }
  .map-ticker-bar { display: none; }
  .map-toolbar .map-meta { display: none; }
  .district-card {
    position: static !important;
    width: 100% !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 0.75rem;
    box-sizing: border-box;
    font-size: 0.72rem;
  }
  .dc-topic-row { gap: 0.5rem; }
  .dc-bar-track { flex: 1; }

  /* SECTIONS: reduce vertical breathing room */
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .inner { padding: 0 1.25rem; }

  /* CAPABILITIES: limit screenshot previews so cards don't tower */
  .cap-img-wrap { max-height: 180px; overflow: hidden; border-radius: 4px; }
  .cap-card { padding: 1.25rem; }

  /* WHO GRID: ensure cards have comfortable padding */
  .who-card { padding: 1.25rem 1rem; }

  /* METHOD STEPS: tighten spacing on single-column */
  .method-step { padding: 1.25rem; }
  .method-num { font-size: 1.25rem; }

  /* CTA SECTION */
  .cta-section { padding: 3.5rem 1.25rem; }
  .cta-form input, .cta-form button { width: 100%; }

  /* FOOTER */
  .footer-nav { flex-wrap: wrap; gap: 1.5rem; }
  .footer-top { gap: 2rem; }
  .footer-inner { padding: 0 1.25rem; }
  .footer-bottom { font-size: 0.75rem; }

  /* STATS BAR */
  .stats-inner { padding: 0 1.25rem; }
  .stat-value { font-size: 1.5rem; }
}
