/* ============================================================
   SaaSpocalypse — Apocalyptic Theme
   ============================================================ */

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

:root {
  --bg:           #080808;
  --bg-card:      rgba(14, 4, 4, 0.93);
  --bg-card-alt:  rgba(18, 6, 4, 0.85);
  --border:       rgba(160, 30, 20, 0.22);
  --border-hover: rgba(220, 60, 40, 0.55);
  --red:          #c0392b;
  --red-bright:   #e74c3c;
  --red-dim:      #8b2218;
  --red-glow:     rgba(200, 50, 35, 0.12);
  --orange:       #e67e22;
  --text:         #cccccc;
  --text-muted:   #666;
  --text-dim:     #444;
  --heading:      'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --body:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; color: #ff6b5b; }
img { max-width: 100%; }

/* ============================================================
   BACKGROUND CANVAS — fixed particle layer
   ============================================================ */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ============================================================
   LANDING OVERLAY
   ============================================================ */
#apocalypse-landing {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #040404;
  transition: opacity 0.9s ease;
  cursor: pointer;
}
#apocalypse-landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

#landing-content {
  text-align: center;
  padding: 2rem;
  z-index: 1;
  position: relative;
}

#landing-logo {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 30px rgba(200, 50, 30, 0.9),
    0 0 80px rgba(200, 50, 30, 0.4),
    0 0 160px rgba(200, 50, 30, 0.15);
  line-height: 1;
  user-select: none;
  min-height: 1.1em;
}
#landing-logo .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.1s, transform 0.15s;
}
#landing-logo .char.visible {
  opacity: 1;
  transform: translateY(0);
}
#landing-logo .glitch {
  color: var(--red-bright);
  text-shadow: 0 0 20px var(--red-bright);
}

#landing-tagline {
  font-family: var(--body);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}
#landing-tagline.visible { opacity: 1; }

#landing-enter {
  margin-top: 2.5rem;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s, background 0.2s, color 0.2s;
}
#landing-enter.visible { opacity: 1; }
#landing-enter:hover {
  background: var(--red);
  color: #fff;
}

#landing-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  animation: pulse-hint 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.8s ease 1s;
}
#landing-hint.visible { opacity: 1; }
@keyframes pulse-hint {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ============================================================
   MAIN SITE
   ============================================================ */
#main-site {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#main-site.visible { opacity: 1; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 4, 4, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 20px rgba(200, 50, 30, 0.6);
}
.site-logo .accent { color: var(--red-bright); }

nav.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav.site-nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
nav.site-nav a:hover { color: var(--red-bright); text-decoration: none; }

.lang-switch {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s !important;
}
.lang-switch:hover {
  border-color: var(--red);
  color: var(--red-bright) !important;
  text-decoration: none !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: background 0.2s;
}
.nav-hamburger:hover span { background: var(--red-bright); }

/* Mobile nav */
@media (max-width: 768px) {
  nav.site-nav { display: none; }
  nav.site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(8, 4, 4, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
section {
  padding: 5rem 0;
  position: relative;
}
section + section { border-top: 1px solid var(--border); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.8rem;
  display: block;
}

h2.section-title {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.75;
}
.section-lead a { font-weight: 500; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding: 7rem 0 5rem;
  border-top: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red-bright);
}

h1.hero-title {
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(200, 50, 30, 0.2);
}
h1.hero-title .accent { color: var(--red-bright); }

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat .number {
  font-family: var(--heading);
  font-size: 2.8rem;
  color: var(--red-bright);
  line-height: 1;
  display: block;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--red);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(200, 50, 30, 0.4);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--red-glow);
}
.card:hover::before { height: 100%; }

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  display: block;
}
.card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.card .card-stat {
  font-family: var(--heading);
  font-size: 2.2rem;
  color: var(--red-bright);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.card .card-source {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.card .card-source a {
  color: var(--text-dim);
  font-size: 0.72rem;
}
.card .card-source a:hover { color: var(--red-bright); }

/* ============================================================
   CASUALTIES SECTION
   ============================================================ */
#casualties .company-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 1.8rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  margin-bottom: 1rem;
}
#casualties .company-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--red-glow);
}
.company-logo-area {
  width: 56px;
  height: 56px;
  background: rgba(200, 50, 30, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.company-body {}
.company-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.company-hit {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--red-bright);
  display: block;
  margin-bottom: 0.4rem;
}
.company-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.company-desc a {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.company-desc a:hover { color: var(--red-bright); }

/* ============================================================
   KARPATHY SECTION
   ============================================================ */
#karpathy {
  background: linear-gradient(180deg, transparent 0%, rgba(180, 30, 20, 0.04) 100%);
}
.karpathy-quote {
  border-left: 3px solid var(--red);
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  margin: 2rem 0;
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
}
.karpathy-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.exposure-bars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}
.exposure-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
}
.exposure-bar-label {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.exposure-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.exposure-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-dim), var(--red-bright));
  transition: width 1.5s ease;
}
.exposure-bar-score {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-align: right;
}

/* ============================================================
   GOLD RUSH SECTION
   ============================================================ */
#goldrush .price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.85rem;
}
#goldrush .price-table th {
  background: rgba(200, 50, 30, 0.12);
  color: var(--red-bright);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
#goldrush .price-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  vertical-align: top;
}
#goldrush .price-table tr:hover td {
  background: rgba(200, 50, 30, 0.04);
  color: var(--text);
}
#goldrush .price-table td:first-child { color: var(--text); font-weight: 500; }
#goldrush .price-table .profit { color: var(--red-bright); font-weight: 700; }

/* ============================================================
   TIMELINE
   ============================================================ */
#timeline {
  overflow: hidden;
}
.timeline-scroll {
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dim) transparent;
}
.timeline-scroll::-webkit-scrollbar { height: 3px; }
.timeline-scroll::-webkit-scrollbar-track { background: transparent; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--red-dim); }

.timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  padding: 0 2rem;
  min-width: max-content;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 5%, var(--border) 95%, transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
/* Both use column; HTML structure differs for above/below placement */
.timeline-item { flex-direction: column; }

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red-dim);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-item.now .timeline-dot {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 15px var(--red-bright), 0 0 30px rgba(231, 76, 60, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
  width: 16px;
  height: 16px;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 15px var(--red-bright), 0 0 30px rgba(231, 76, 60, 0.4); }
  50% { box-shadow: 0 0 25px var(--red-bright), 0 0 55px rgba(231, 76, 60, 0.6); }
}

.timeline-connector {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  width: 145px;
  font-size: 0.78rem;
  text-align: center;
  transition: border-color 0.2s;
}
.timeline-item:hover .timeline-card { border-color: var(--border-hover); }
.timeline-year {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--red-bright);
  display: block;
  line-height: 1;
}
.timeline-card p {
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-size: 0.74rem;
  line-height: 1.5;
}
.timeline-item.now .timeline-card {
  border-color: var(--red);
  background: rgba(200, 50, 30, 0.08);
}
.timeline-item.now .timeline-year { color: #ff6b5b; }

.you-are-here {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-bright);
  white-space: nowrap;
  text-align: center;
  padding-bottom: 0.3rem;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ============================================================
   RISKS SECTION
   ============================================================ */
#risks .risk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.risk-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 25px var(--red-glow);
}
.risk-number {
  font-family: var(--heading);
  font-size: 3rem;
  color: rgba(192, 57, 43, 0.15);
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  line-height: 1;
  user-select: none;
}
.risk-icon { font-size: 1.6rem; margin-bottom: 0.8rem; display: block; }
.risk-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.risk-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.risk-card .risk-stat {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--heading);
  font-size: 1.4rem;
  color: var(--red-bright);
}

/* ============================================================
   DOCTORS SECTION (OUR APPROACH)
   ============================================================ */
#doctors {
  background: linear-gradient(180deg, transparent 0%, rgba(180, 30, 20, 0.05) 50%, transparent 100%);
}
.doctors-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .doctors-intro { grid-template-columns: 1fr; gap: 2rem; }
}
.doctors-statement {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.2;
}
.doctors-statement .accent { color: var(--red-bright); }
.doctors-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.doctors-body p { margin-bottom: 1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--red-glow);
}
.service-card:hover::after { opacity: 1; }
.service-card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.service-price {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  border-bottom: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.contact-cta h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.contact-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.contact-email-link {
  display: inline-block;
  font-family: var(--heading);
  font-size: 1.4rem;
  color: var(--red-bright);
  letter-spacing: 0.05em;
  transition: text-shadow 0.2s;
}
.contact-email-link:hover {
  text-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
  text-decoration: none;
  color: #ff6b5b;
}
.contact-details {}
.contact-detail-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.contact-detail-item:last-child { border-bottom: none; }
.detail-label {
  color: var(--text-muted);
  min-width: 90px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detail-value { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--red-bright); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red { color: var(--red-bright); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Red rule divider */
.red-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.red-rule::before, .red-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.red-rule span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* Glitch animation for section headings (optional decoration) */
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.7; }
  99% { opacity: 0.9; }
}
.flicker { animation: flicker 6s infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-stats { gap: 1.5rem; }
  #casualties .company-card { grid-template-columns: 1fr; gap: 0.8rem; }
  .timeline-item { width: 130px; }
  .timeline-card { width: 120px; }
  #goldrush .price-table { font-size: 0.78rem; }
  #goldrush .price-table th,
  #goldrush .price-table td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
  #site-header { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  h1.hero-title { font-size: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
