:root {
  --bg: #03020a; /* slightly deeper, more void-like */
  --purple: #b06cff; /* warmer, richer */
  --purple-soft: rgba(176, 108, 255, 0.22); /* softer glow */
  --text-main: #f8f7ff; /* slightly brighter */
  --text-soft: #9d9ab3; /* cooler, more transmission-like */
}

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

html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #12051f 0, var(--bg) 55%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 32px 24px;
  text-align: center;
}

.glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 32px;
  background: radial-gradient(circle at top, var(--purple-soft), transparent 60%);
  opacity: 0.18;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.frame {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 255, 0.28);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 0.98));
  padding: 48px 28px 36px;
  box-shadow: 0 0 70px rgba(168, 85, 255, 0.08);
  z-index: 1;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.eq-shell {
  position: relative;
  width: 100%;
  height: 100px;
  margin-bottom: 18px;
  overflow: hidden;
}

#eqCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(0.6px) contrast(1.15) brightness(1.1);
  opacity: 0.08;
  transition: opacity 0.6s ease;
}

.eq-active #eqCanvas {
  opacity: 0.20;
}

.progress {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
  border-radius: 999px;
  margin-bottom: 20px;
}

.progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(168, 85, 255, 0.2), rgba(168, 85, 255, 0.9));
  opacity: 0.12;
  transition: width 0.1s linear;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 255, 0.55);
  box-shadow: 0 0 0 rgba(168, 85, 255, 0);
  background: radial-gradient(circle at top, rgba(168, 85, 255, 0.12), rgba(15, 23, 42, 0.98));
  color: var(--text-main);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cta:hover {
  box-shadow: 0 0 18px rgba(168, 85, 255, 0.35);
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(244, 244, 245, 0.85);
}

.cta-pulse {
  animation: pulse 0.6s ease-out 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 255, 0.55);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 20px 6px rgba(168, 85, 255, 0.25);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 40px 20px rgba(168, 85, 255, 0);
    transform: scale(1);
  }
}

.signal-interrupt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 0.98));
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.signal-interrupt.visible {
  opacity: 1;
}

.ghost-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), transparent);
  opacity: 0.4;
  filter: blur(0.4px);
  transition: opacity 0.4s ease;
}

.signal-interrupt.visible + .ghost-line {
  opacity: 0.6;
}
