:root {
  --bg: #0b0f14;
  --bg-glow: #121a24;
  --fg: #e6edf3;
  --accent: #35d6a4;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root:not([data-theme="dark"]) {
  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(120% 90% at 50% -10%, var(--bg-glow) 0%, transparent 60%);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.card {
  width: 100%;
  max-width: 540px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Waveform ------------------------------------------------------------ */

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin: 36px 0 0;
}

.wave span {
  display: block;
  width: 4px;
  height: 10%;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Hand-tuned so the bars read as a tone burst, not a flat row. */
.wave span:nth-child(1)  { animation-delay: -1.40s; --h: 18%; }
.wave span:nth-child(2)  { animation-delay: -1.30s; --h: 32%; }
.wave span:nth-child(3)  { animation-delay: -1.20s; --h: 54%; }
.wave span:nth-child(4)  { animation-delay: -1.10s; --h: 76%; }
.wave span:nth-child(5)  { animation-delay: -1.00s; --h: 96%; }
.wave span:nth-child(6)  { animation-delay: -0.90s; --h: 68%; }
.wave span:nth-child(7)  { animation-delay: -0.80s; --h: 44%; }
.wave span:nth-child(8)  { animation-delay: -0.70s; --h: 88%; }
.wave span:nth-child(9)  { animation-delay: -0.60s; --h: 52%; }
.wave span:nth-child(10) { animation-delay: -0.50s; --h: 72%; }
.wave span:nth-child(11) { animation-delay: -0.40s; --h: 98%; }
.wave span:nth-child(12) { animation-delay: -0.30s; --h: 60%; }
.wave span:nth-child(13) { animation-delay: -0.20s; --h: 38%; }
.wave span:nth-child(14) { animation-delay: -0.10s; --h: 24%; }
.wave span:nth-child(15) { animation-delay:  0.00s; --h: 14%; }

@keyframes pulse {
  0%, 100% { height: 10%; opacity: 0.45; }
  50%      { height: var(--h, 70%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wave span { animation: none; height: var(--h, 70%); opacity: 0.9; }
}
