/* ANDES Virus Tracker — Editorial Light Theme */

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

:root {
  /* Warm editorial palette */
  --bg-primary: #FBFAF7;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F4F2EC;
  --bg-tertiary: #ECE9E0;
  --border: #E2DED1;
  --border-strong: #C9C2B0;

  /* Typography colors */
  --text-primary: #14110F;
  --text-secondary: #4A4641;
  --text-muted: #837D74;

  /* Restrained accents */
  --accent-red: #B91C1C;
  --accent-red-soft: #DC2626;
  --accent-red-light: #FBEEEE;
  --accent-red-deep: #7F1D1D;
  --accent-amber: #B45309;
  --accent-amber-light: #FDF6E8;
  --accent-ink: #1F2937;

  /* Type */
  --font-serif: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Subtle shadows */
  --shadow-xs: 0 1px 1px rgba(20, 17, 15, 0.04);
  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.05), 0 1px 1px rgba(20, 17, 15, 0.04);
  --shadow-md: 0 2px 8px rgba(20, 17, 15, 0.06), 0 1px 3px rgba(20, 17, 15, 0.04);
  --shadow-lg: 0 8px 28px rgba(20, 17, 15, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  font-optical-sizing: auto;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.brand-hanta {
  color: var(--accent-red);
  font-style: italic;
  font-weight: 500;
}

.brand-andes {
  letter-spacing: 0.5px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.1px;
  transition: color 0.18s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--accent-red);
  transition: right 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-red);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  right: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.15rem;
  background: var(--bg-surface);
  border-radius: 6px;
  padding: 0.2rem;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  transition: all 0.18s;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--text-primary);
  color: var(--bg-surface);
}

.lang-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s;
}

.lang-close:hover {
  color: var(--accent-red);
}

.lang-switcher.hidden {
  display: none;
}

.lang-reopen {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
}

.lang-reopen.visible {
  display: inline-flex;
}

.lang-reopen:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ===== ALERT BANNER ===== */
.alert-banner {
  background: var(--accent-red-deep);
  color: #FCE7E7;
  padding: 0.7rem 2rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-banner .alert-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #FCA5A5;
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--bg-primary);
  padding: 5.5rem 2rem 4.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  line-height: 1.02;
  color: var(--text-primary);
  font-optical-sizing: auto;
}

.hero h1 .highlight {
  color: var(--accent-red);
  font-style: italic;
  font-weight: 500;
}

.hero h1 br + span,
.hero h1 [data-i18n="hero_title_2"] {
  display: block;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 560px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== HERO PARTICLE — tap to bounce as 3D sphere, tap to return ===== */
/* NOTE: do NOT add perspective/transform/filter to .hero-visual or any ancestor
   of .hero-particle. Those properties create a new containing block for fixed
   descendants, which means our bouncing position:fixed particle would be
   positioned relative to the .hero-visual box (somewhere in the middle-right
   of the page) instead of the viewport — and would launch off-screen. */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 460px;
}

.hero-particle-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

/* Invisible layout placeholder — keeps the slot reserved while particle is fixed */
.hero-particle-slot {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  filter: drop-shadow(0 24px 24px rgba(20, 17, 15, 0.22))
          drop-shadow(0 6px 10px rgba(20, 17, 15, 0.14));
  transition: filter 0.3s ease;
}

.hero-particle:hover {
  filter: drop-shadow(0 28px 32px rgba(20, 17, 15, 0.28))
          drop-shadow(0 8px 14px rgba(185, 28, 28, 0.20));
}

.hero-particle:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 12px;
  border-radius: 50%;
}

.hero-particle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 50%;
  animation: particle-spin 38s linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes particle-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particle-img { animation: none; }
}

/* Bouncing state — particle leaves flow and JS controls position via transform.
   We use ONLY in-plane rotation (rotateZ) so the rendered shape never tilts
   into edge-view — the source image is already a 3D-rendered sphere, rotating
   it in-plane keeps the spherical look at every angle. */
.hero-particle.is-bouncing {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  width: var(--bounce-size, 360px);
  height: var(--bounce-size, 360px);
  z-index: 9999;
}

.hero-particle.is-bouncing .hero-particle-img {
  animation: none;
}

/* Smooth return — CSS transition takes over from JS */
.hero-particle.is-returning {
  transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

/* TAP ME button — under the particle */
.hero-particle-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 17, 15, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-particle-button:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.32);
}

.hero-particle-button:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

.hero-particle-button[hidden] { display: none; }

.hero-particle-button-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-particle-button:hover .hero-particle-button-dot { background: var(--bg-primary); }

.hero-particle-caption {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* TAP TO STOP overlay — fixed at top of viewport during bounce */
.particle-stop {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.42);
  animation: stop-button-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.particle-stop[hidden] { display: none; }

.particle-stop:hover {
  background: var(--accent-red-deep);
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.55);
}

@keyframes stop-button-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* (page scroll stays free while particle is bouncing — particle is fixed-position
   and clamped to the viewport, so it can't be lost) */

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

/* ===== SCROLL ANIMATIONS — subtle ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }

/* ===== STATS GRID — editorial style ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 3.5rem 0 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-surface);
  padding: 2rem 1.75rem;
  text-align: left;
  position: relative;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card:hover {
  background: var(--bg-primary);
}

.stat-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-label::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.stat-card.critical .stat-label { color: var(--accent-red); }
.stat-card.warning  .stat-label { color: var(--accent-amber); }
.stat-card.danger   .stat-label { color: var(--accent-red-deep); }

.stat-value {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
  color: var(--text-primary);
  font-optical-sizing: auto;
}

.stat-value.red      { color: var(--accent-red); }
.stat-value.orange   { color: var(--accent-amber); }
.stat-value.dark-red { color: var(--accent-red-deep); }

.stat-change {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.stat-change.up { color: var(--accent-red); }

/* ===== SECTIONS ===== */
.section {
  margin: 4.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-optical-sizing: auto;
}

.section-title .icon {
  font-family: var(--font-sans);
  color: var(--accent-red);
  font-size: 0.85em;
  font-style: italic;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
  font-weight: 400;
}

/* ===== MAP ===== */
#heatmap {
  width: 100%;
  height: 520px;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
}

.map-legend {
  display: flex;
  gap: 1.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ===== NEWS FEED ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.news-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  transition: padding 0.2s ease;
}

.news-item:hover {
  padding-left: 0.5rem;
}

.news-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.3px;
  font-optical-sizing: auto;
}

.news-item a:hover {
  color: var(--accent-red);
}

.news-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  align-items: center;
}

.news-meta > span:not(:last-child)::after {
  content: '·';
  margin-left: 0.85rem;
  color: var(--border-strong);
}

.news-source {
  color: var(--accent-red);
  font-weight: 700;
}

.news-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.65rem;
  line-height: 1.6;
}

.news-loading,
.news-error {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px dashed var(--border);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ===== VARIANTS PAGE ===== */
.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  overflow: hidden;
}

.variant-card {
  background: var(--bg-surface);
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  transition: background 0.2s ease;
  position: relative;
}

.variant-card:hover {
  background: var(--bg-primary);
}

.variant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-red);
}

.variant-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.variant-card .variant-region {
  font-family: var(--font-sans);
  color: var(--accent-amber);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.variant-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.variant-stats > div + div {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.variant-stat-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  font-weight: 600;
}

.variant-stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: -0.5px;
}

.variant-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ===== INFO PAGE ===== */
.info-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  margin-bottom: 1.5rem;
}

.info-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.info-section h2::before {
  content: '';
  width: 3px;
  height: 0.85rem;
  background: var(--accent-red);
  flex-shrink: 0;
}

.info-section ul {
  list-style: none;
  padding: 0;
}

.info-section li {
  padding: 0.85rem 0 0.85rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-section li:last-child {
  border-bottom: none;
}

.info-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 600;
}

.info-section p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== REPORT FORM ===== */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-red);
  background: var(--bg-surface);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-disclaimer {
  background: var(--accent-red-light);
  border-left: 3px solid var(--accent-red);
  border-radius: 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--accent-red-deep);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  font-family: var(--font-serif);
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.18s, transform 0.18s;
}

.btn:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--text-primary);
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
  text-align: left;
  color: var(--text-muted);
  margin-top: 5rem;
  font-size: 0.85rem;
  line-height: 1.65;
}

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

.footer-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-mark .accent {
  color: var(--accent-red);
  font-style: italic;
  font-weight: 500;
}

.footer a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent-red-deep);
}

.footer p {
  margin: 0.4rem 0;
  max-width: 720px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 280px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    border-bottom: 1px solid var(--border);
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.85rem 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .container {
    padding: 1.5rem 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    letter-spacing: -1px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .stat-value {
    font-size: 3rem;
  }

  #heatmap {
    height: 380px;
  }

  .variants-grid {
    grid-template-columns: 1fr;
  }

  .variant-card {
    border-right: none;
  }

  .form-card {
    padding: 1.75rem 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
