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

:root {
  --void: #020408;
  --deep: #050d1a;
  --cosmos: #091428;
  --plasma: #ff6b35;
  --plasma-dim: rgba(255,107,53,0.15);
  --photon: #fff8e0;
  --star-white: #e8f4ff;
  --quantum: #00c8ff;
  --quantum-dim: rgba(0,200,255,0.12);
  --higgs: #c084fc;
  --text: #c8daf0;
  --text-muted: #5a7a9a;
  --border: rgba(0,200,255,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── CMB animated background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,53,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(0,200,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(192,132,252,0.04) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: cmb-pulse 12s ease-in-out infinite alternate;
}

@keyframes cmb-pulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Canvas ── */
#cosmos-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--quantum);
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--photon);
  letter-spacing: -3px;
}

.hero h1 .amp {
  display: block;
  font-size: 0.35em;
  font-weight: 200;
  color: var(--quantum);
  letter-spacing: 8px;
  margin: 8px 0;
}

.hero h1 .cosmo {
  display: block;
  background: linear-gradient(135deg, var(--plasma) 0%, var(--higgs) 50%, var(--quantum) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* ── Cosmic timeline strip ── */
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 60px;
}

.ts-step {
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: var(--deep);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.ts-step::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--plasma), var(--quantum));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ts-step:hover::before { transform: scaleX(1); }
.ts-step:hover { background: var(--cosmos); }
.ts-step:last-child { border-right: none; }

.ts-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--plasma);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ts-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 4px;
}

.ts-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Section ── */
.section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible { opacity: 1; transform: none; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-tag .num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--quantum);
  opacity: 0.7;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--photon);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--plasma), transparent);
}

p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

strong { color: var(--star-white); font-weight: 600; }

/* ── Evidence cards ── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.ev-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,200,255,0.1);
}

.ev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--quantum), var(--higgs));
  opacity: 0.6;
}

.ev-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.ev-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--star-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ev-card p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Cosmological params ── */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
}

.param-table th {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--quantum);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  text-align: left;
}

.param-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,200,255,0.07);
  color: var(--text-muted);
}

.param-table td:first-child { color: var(--star-white); font-weight: 600; }
.param-table td:last-child  { color: var(--plasma); font-family: 'Space Mono', monospace; }

.param-table tr:hover td { background: rgba(0,200,255,0.04); }

/* ── Quote block ── */
.cosmoquote {
  border-left: 3px solid var(--plasma);
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--plasma-dim);
  border-radius: 0 6px 6px 0;
}

.cosmoquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--photon);
  margin: 0 0 8px;
  font-weight: 300;
  line-height: 1.6;
}

.cosmoquote cite {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--plasma);
  font-style: normal;
}

/* ── Mysteries section ── */
.mystery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .mystery-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -1px; }
  .timeline-strip { grid-template-columns: repeat(2,1fr); }
}

.mystery-card {
  background: linear-gradient(135deg, var(--deep), var(--cosmos));
  border: 1px solid rgba(192,132,252,0.25);
  border-radius: 8px;
  padding: 22px;
}

.mystery-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--higgs);
  margin-bottom: 10px;
}

.mystery-card p { margin: 0; font-size: 0.84rem; }

/* ── Footer ── */
.footer-band {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-band span {
  font-family: 'Space Mono', monospace;
  font-size: 0.63rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
