/* WAValt coming soon. Night-studio dark, waveform identity, spacing-only
   separation. One gradient (#7c3aed to #0ea5e9) used three ways: wordmark
   WAV, waveform bars, submit button. Playhead + lit-progress animation is
   frozen at a fixed position under prefers-reduced-motion. */

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

html { height: 100%; }

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(52rem 30rem at 50% 28%, rgba(124, 58, 237, 0.09), transparent 65%),
    radial-gradient(44rem 26rem at 80% 85%, rgba(14, 165, 233, 0.05), transparent 70%),
    #050507;
  color: #f5f5f7;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 1.5rem;
  overflow-x: hidden;
}

::selection { background: rgba(124, 58, 237, 0.45); }

main {
  width: 100%;
  max-width: 33rem;
  text-align: center;
}

/* Wordmark: WAV carries the gradient (the .wav nod), alt stays quiet. */
.wordmark {
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.wav { color: #a78bfa; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wav {
    background: linear-gradient(100deg, #7c3aed 10%, #0ea5e9 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.alt {
  font-weight: 400;
  color: #eceff4;
}

/* Waveform identity band */
.wave {
  margin-top: 2.25rem;
  user-select: none;
}

.wave-band { position: relative; }

.wave-svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-base { opacity: 0.26; }

.wave-progress {
  position: absolute;
  inset: 0;
  clip-path: inset(0 62% 0 0);
  animation: wave-progress 14s linear infinite;
}

.playhead-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(38%);
  animation: wave-sweep 14s linear infinite;
}

.playhead {
  position: absolute;
  left: 0;
  top: -0.375rem;
  bottom: -0.375rem;
  width: 2px;
  border-radius: 1px;
  background: rgba(240, 240, 245, 0.95);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
  animation: wave-playhead 14s linear infinite;
}

@keyframes wave-progress {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes wave-sweep {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100% - 2px)); }
}

@keyframes wave-playhead {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-progress { animation: none; }
  .playhead-track { animation: none; }
  .playhead { animation: none; opacity: 1; }
}

/* Timeline ruler labels */
.timerow {
  display: flex;
  justify-content: space-between;
  margin-top: 0.625rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 247, 0.32);
}

.line {
  margin-top: 2.75rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.78);
}

.soon {
  margin-top: 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* recenters letter-spaced uppercase */
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.42);
}

#notify { margin-top: 2.75rem; }

.row {
  display: flex;
  gap: 0.625rem;
  max-width: 26rem;
  margin: 0 auto;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input[type="email"]::placeholder { color: rgba(245, 245, 247, 0.38); }

input[type="email"]:focus {
  outline: none;
  border-color: rgba(148, 104, 245, 0.75);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

#go {
  height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 150ms ease;
}

#go:hover { filter: brightness(1.12); }

#go:focus-visible {
  outline: 2px solid #f5f5f7;
  outline-offset: 2px;
}

#go:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

#note {
  margin-top: 1rem;
  min-height: 1.375rem;
  font-size: 0.9375rem;
  color: rgba(245, 245, 247, 0.65);
}

#done {
  margin-top: 2.75rem;
  font-size: 1.125rem;
  color: rgba(245, 245, 247, 0.85);
}

/* honeypot: off-screen, never display:none so lazy bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 30rem) {
  .wave { margin-top: 1.75rem; }
  .line { margin-top: 2.25rem; }
  #notify { margin-top: 2.25rem; }
  .row { flex-direction: column; }
  #go { width: 100%; }
}
