/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --text: #e0e0e8;
  --text-dim: #888899;
  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.3);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Site Nav === */
#site-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
}

#site-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

#site-nav a:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* === Splash Overlay === */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#splash h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.05em;
}

#start-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px var(--accent-glow);
}

#start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* === Countdown === */
#countdown {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

#countdown.active {
  opacity: 1;
  pointer-events: auto;
}

#countdown.hidden {
  display: none;
}

#countdown-number {
  font-size: 8rem;
  font-weight: 200;
  color: var(--accent);
  animation: countPulse 0.8s ease-out;
}

@keyframes countPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Main Content === */
#main-content {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 700px;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
}

#main-content.visible {
  display: flex;
}

/* === Timestamp Banner === */
#timestamp {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: var(--surface);
}

/* === Visualizer Canvas === */
#visualizer {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  border-radius: 50%;
}

/* === Mute Button === */
#mute-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#mute-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

#mute-btn.muted {
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.05);
}

/* === Transcript Box === */
#transcript-box {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre-wrap;
}

#transcript-box::-webkit-scrollbar {
  width: 6px;
}

#transcript-box::-webkit-scrollbar-track {
  background: transparent;
}

#transcript-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
