/* ============================================================
   WATERBORNE EPIDEMICS — Stylesheet
   Aesthetic: True-black, brutalist typography, neon data,
   SentinelID-grade visual hierarchy.
   ============================================================ */

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

:root {
  --bg:        #000000;
  --bg-2:      #080808;
  --bg-card:   rgba(12, 12, 12, 0.9);
  --blue:      #2196ff;
  --blue-glow: rgba(33, 150, 255, 0.3);
  --teal:      #00e5c8;
  --red:       #ff2d55;
  --red-glow:  rgba(255, 45, 85, 0.3);
  --amber:     #ffcc00;
  --white:     #ffffff;
  --off-white: #e8edf2;
  --muted:     #5a6a7a;
  --dim:       #2a3540;
  --border:    rgba(255, 255, 255, 0.07);
  --border-hi: rgba(33, 150, 255, 0.4);
  --r:         12px;
  --r-lg:      20px;
  --mono:      'Space Mono', monospace;
  --t:         0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a3050; border-radius: 2px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.nav-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1.2s ease-in-out infinite;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--t);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  padding: 7px 18px;
  background: var(--blue);
  color: #000 !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  transition: background var(--t), box-shadow var(--t) !important;
}

.nav-cta:hover {
  background: #4aa8ff !important;
  box-shadow: 0 0 20px var(--blue-glow) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: var(--t);
}

/* ============================================================
   HERO — SentinelID-style
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 40px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 0.6s 0.2s ease forwards;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.hero-eyebrow-text {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.7s 0.4s ease forwards;
}

.hero-title .accent { color: var(--blue); }
.hero-title .danger { color: var(--red); }

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeIn 0.7s 0.6s ease forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 72px;
  opacity: 0;
  animation: fadeIn 0.7s 0.8s ease forwards;
}

.btn-hero-primary {
  padding: 12px 28px;
  background: var(--blue);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--t), box-shadow var(--t);
}

.btn-hero-primary:hover {
  background: #4aa8ff;
  box-shadow: 0 4px 24px var(--blue-glow);
}

.btn-hero-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t), color var(--t);
}

.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* Hero metric strip */
.hero-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.7s 1s ease forwards;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.h-metric .val {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}

.h-metric .unit {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-left: 4px;
}

.h-metric .lbl {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Live counter */
.live-pill {
  position: absolute;
  top: 72px;
  right: 40px;
  background: rgba(255, 45, 85, 0.08);
  border: 1px solid rgba(255, 45, 85, 0.25);
  border-radius: 10px;
  padding: 16px 22px;
  z-index: 3;
  text-align: right;
  opacity: 0;
  animation: fadeIn 0.7s 1.1s ease forwards;
}

.live-pill .live-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s ease-in-out infinite;
}

.live-num {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.live-sub {
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 180px;
  line-height: 1.4;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section { padding: 100px 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 14px;
}

.section-h {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.85;
}

.center { text-align: center; }
.center .section-p { margin: 0 auto; }

.r {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.r.show { opacity: 1; transform: none; }
.r.d1 { transition-delay: 0.1s; }
.r.d2 { transition-delay: 0.2s; }
.r.d3 { transition-delay: 0.3s; }
.r.d4 { transition-delay: 0.4s; }

/* ============================================================
   OVERVIEW
   ============================================================ */
.overview {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.overview-text p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.pathogen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}

.pill.b { border-color: rgba(255, 45, 85, 0.4); color: var(--red); background: rgba(255, 45, 85, 0.06); }
.pill.v { border-color: rgba(255, 204, 0, 0.4); color: var(--amber); background: rgba(255, 204, 0, 0.06); }
.pill.p { border-color: rgba(0, 229, 200, 0.35); color: var(--teal); background: rgba(0, 229, 200, 0.06); }

.trans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trans-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color var(--t);
}

.trans-card:hover { border-color: rgba(33, 150, 255, 0.3); }
.trans-icon { font-size: 1.4rem; margin-bottom: 10px; display: block; }
.trans-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.trans-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   SIMULATOR
   ============================================================ */
.simulator-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.sim-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  margin-top: 52px;
}

.sim-canvas-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #020202;
  cursor: crosshair;
  position: relative;
}

#simCanvas { display: block; width: 100%; }

.sim-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sim-overlay-text.hide { opacity: 0; }

.sim-stats { display: flex; flex-direction: column; gap: 10px; }

.sim-stat {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.sim-stat .label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.sim-stat .val {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.sim-stat .val.infected { color: var(--red); }
.sim-stat .val.clean { color: var(--teal); }
.sim-stat .val.day { color: var(--blue); }

.sim-controls { display: flex; gap: 8px; margin-top: 4px; }

.btn-sim {
  flex: 1;
  padding: 9px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t);
  background: rgba(33, 150, 255, 0.05);
  color: var(--blue);
}

.btn-sim:hover { background: rgba(33, 150, 255, 0.12); border-color: rgba(33, 150, 255, 0.4); }

.btn-sim.danger-btn {
  background: rgba(255, 45, 85, 0.05);
  color: var(--red);
  border-color: rgba(255, 45, 85, 0.2);
}

.btn-sim.danger-btn:hover {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.5);
}

.sim-legend { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }

.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  color: var(--muted);
}

.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case { border-top: 1px solid var(--border); }
.case:nth-of-type(even) { background: var(--bg-2); }

.case-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 56px;
}

.case-num {
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 0.85;
  flex-shrink: 0;
  user-select: none;
}

.case-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(33, 150, 255, 0.3);
  color: var(--blue);
  background: rgba(33, 150, 255, 0.05);
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* Timeline */
.timeline { padding-left: 24px; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), var(--teal));
  opacity: 0.4;
}

.tl-item { position: relative; margin-bottom: 32px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--blue);
  transition: border-color var(--t), box-shadow var(--t);
}

.case:nth-of-type(even) .tl-dot { background: var(--bg-2); }
.tl-item:hover .tl-dot { border-color: var(--teal); box-shadow: 0 0 8px rgba(0,229,200,0.5); }

.tl-date {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.tl-item h4 { font-size: 0.93rem; font-weight: 600; margin-bottom: 6px; }
.tl-item p { font-size: 0.855rem; color: var(--muted); line-height: 1.75; }

/* Data panel */
.data-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 76px;
}

.panel-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

.panel-body { padding: 20px; }

.data-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.data-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.data-val {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
  display: block;
}

.data-val.r { color: var(--red); }
.data-val.y { color: var(--amber); }
.data-val.g { color: var(--teal); }
.data-val.b { color: var(--blue); }

.data-label { font-size: 0.78rem; color: var(--muted); }

.insight-box {
  margin-top: 18px;
  padding: 14px;
  background: rgba(33, 150, 255, 0.04);
  border: 1px solid rgba(33, 150, 255, 0.15);
  border-radius: var(--r);
}

.insight-hl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 7px;
}

.insight-box p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   SNOW MAP
   ============================================================ */
.map-section { background: var(--bg-2); border-top: 1px solid var(--border); }

.map-wrap {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.map-container {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  position: relative;
}

#snowMap { display: block; width: 100%; }

.map-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.96);
  border: 1px solid rgba(33,150,255,0.3);
  border-radius: 6px;
  padding: 8px 12px;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--off-white);
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
}

.map-legend { display: flex; flex-direction: column; gap: 14px; }
.map-legend h4 { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.map-legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--muted); }
.map-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-dot.death { background: var(--red); }
.map-dot.pump  { background: var(--amber); }

.death-counter-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.death-counter-box .lbl { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.death-counter-box .cnt { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--red); }

.map-copy p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.map-copy p:last-child { margin-bottom: 0; }

/* ============================================================
   GLOBAL IMPACT
   ============================================================ */
.impact { background: var(--bg); border-top: 1px solid var(--border); }

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 52px 0;
}

.cnt {
  background: #030303;
  padding: 32px 20px;
  text-align: center;
  transition: background var(--t);
}

.cnt:hover { background: rgba(33, 150, 255, 0.04); }

.cnt-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.cnt-label { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.chart-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.chart-box-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz { background: var(--bg-2); border-top: 1px solid var(--border); }

.quiz-wrap { max-width: 720px; margin: 52px auto 0; }

.quiz-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.qprog-track { height: 2px; background: rgba(255,255,255,0.05); }
.qprog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.5s ease;
}

.q-body { padding: 36px 36px 28px; }

.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.q-idx { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.q-score-badge { font-family: var(--mono); font-size: 0.65rem; color: var(--teal); background: rgba(0,229,200,0.08); border: 1px solid rgba(0,229,200,0.2); padding: 3px 9px; border-radius: 4px; }

.q-text { font-size: 1.05rem; font-weight: 600; line-height: 1.55; margin-bottom: 24px; }

.q-opts { display: flex; flex-direction: column; gap: 8px; }

.q-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--off-white);
  text-align: left;
  width: 100%;
  line-height: 1.5;
}

.q-opt:hover { border-color: rgba(33,150,255,0.35); background: rgba(33,150,255,0.04); }
.q-opt.correct  { border-color: var(--teal); background: rgba(0,229,200,0.07); }
.q-opt.wrong    { border-color: var(--red); background: rgba(255,45,85,0.07); }
.q-opt.disabled { pointer-events: none; }

.q-letter {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--t);
  background: rgba(255,255,255,0.03);
}

.q-opt.correct .q-letter { border-color: var(--teal); background: rgba(0,229,200,0.15); color: var(--teal); }
.q-opt.wrong .q-letter   { border-color: var(--red); background: rgba(255,45,85,0.15); color: var(--red); }

.q-foot {
  padding: 18px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.q-feedback { font-size: 0.82rem; color: var(--muted); line-height: 1.55; max-width: 380px; flex: 1; }
.q-feedback.ok  { color: var(--teal); }
.q-feedback.bad { color: var(--red); }

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-blue {
  background: var(--blue);
  color: #000;
}

.btn-blue:hover { background: #4aa8ff; box-shadow: 0 0 18px var(--blue-glow); }
.btn-blue:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }

.q-result { display: none; padding: 52px 36px; text-align: center; }
.q-result.show { display: block; }

.result-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(33,150,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 30px var(--blue-glow);
}

.result-score { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; color: var(--blue); }
.q-result h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.q-result p  { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }

/* ============================================================
   PREVENTION
   ============================================================ */
.prevention { background: var(--bg); border-top: 1px solid var(--border); }

.prev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.prev-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}

.prev-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.prev-card:hover { border-color: rgba(0,229,200,0.3); transform: translateY(-4px); }
.prev-card:hover::after { opacity: 1; }

.prev-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0,229,200,0.07);
  border: 1px solid rgba(0,229,200,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.prev-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; }
.prev-card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.72; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-brand-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; max-width: 290px; }

.f-col-head { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.f-col a { font-size: 0.82rem; color: var(--dim); text-decoration: none; transition: color var(--t); }
.f-col a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 0.72rem; color: var(--muted); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink   { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes rotate  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .navbar { padding: 0 20px; }
  .hero   { padding: 0 20px; }
  .container { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: 220px;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    justify-content: center;
    padding: 48px 28px;
    gap: 24px;
    transition: right var(--t);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(24px);
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 10; }
  .nav-cta { display: none; }

  .overview-grid, .case-layout, .sim-wrap, .map-wrap { grid-template-columns: 1fr; gap: 36px; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .prev-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .data-panel    { position: static; }
  .hero-metrics  { gap: 28px; }
  .live-pill     { position: static; margin-top: 32px; text-align: left; }
  .live-pill .live-label { justify-content: flex-start; }
  .trans-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section        { padding: 64px 0; }
  .hero-title     { font-size: 3rem; }
  .counters-grid  { grid-template-columns: 1fr; }
  .prev-grid      { grid-template-columns: 1fr; }
  .q-body, .q-foot { padding: 20px; }
  .q-foot         { flex-direction: column; align-items: flex-start; }
}
