/* ============================================
   Don't Grow Up, It's a ___
   Brand: Coming Soon + Inter
   Palette: Muted blue-grey bg, pale lemon yellow
   ============================================ */

:root {
  --bg: #A8C4D4;
  --bg-light: #B5CFDD;
  --yellow: #F5F5C2;
  --yellow-dark: #E8E8A0;
  --text: #2A3A4A;
  --text-light: #4A6275;
  --muted: #7A909E;
  --white: #FFFFFF;
  --font-primary: 'Coming Soon', cursive;
  --font-secondary: 'Inter', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-secondary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Film grain overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 2rem;
  position: relative;
}

.billboard {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.headline {
  font-family: var(--font-primary);
  color: var(--yellow);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.3;
  font-weight: 700;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.blank-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}

.period {
  margin-left: 0.1em;
}

.input-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

#word-input {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--yellow);
  background: transparent;
  border: none;
  outline: none;
  width: 8ch;
  min-width: 5ch;
  caret-color: var(--yellow);
  padding: 0;
  line-height: 1.3;
}

#word-input::placeholder {
  color: transparent;
}

.input-underline {
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#word-input:focus ~ .input-underline {
  box-shadow: 0 2px 16px rgba(240, 239, 160, 0.3);
}

.submit-btn {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--yellow);
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2.4rem;
  margin-top: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.submit-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.submit-btn:hover {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(240, 239, 160, 0.3);
}

.submit-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.counter {
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

#count {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   Reveal Section (after submission)
   ============================================ */

.reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 2rem;
}

.reveal.hidden {
  display: none;
}

.billboard-mockup {
  background: var(--bg-light);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  padding: 3rem 4rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(42, 58, 74, 0.08);
}

.mockup-inner {
  position: relative;
  z-index: 1;
}

.mockup-headline {
  font-family: var(--font-primary);
  color: var(--yellow);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mockup-word {
  font-family: var(--font-primary);
  color: var(--yellow);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
}

.mockup-word span {
  color: var(--white);
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.mockup-attribution {
  font-family: var(--font-secondary);
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  opacity: 0.7;
}

.reveal-text {
  font-family: var(--font-primary);
  color: var(--text);
  font-size: 1.3rem;
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.reveal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.btn-primary {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--yellow);
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.btn-primary:hover {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(240, 239, 160, 0.3);
}

.btn-secondary {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 100px;
  padding: 0.85rem 2.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.btn-secondary:hover {
  border-color: var(--text);
}

/* ============================================
   Ticker
   ============================================ */

.ticker-container {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(42, 58, 74, 0.1);
  border-bottom: 1px solid rgba(42, 58, 74, 0.1);
  padding: 1rem 0;
}

.ticker {
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  text-transform: lowercase;
}

.ticker-item em {
  color: var(--yellow);
  font-style: normal;
  font-family: var(--font-primary);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Preview Player
   ============================================ */

.preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.preview-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(42, 58, 74, 0.15);
  border-radius: 100px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: lowercase;
  backdrop-filter: blur(4px);
}

.preview-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--yellow-dark);
}

.preview-icon {
  font-size: 0.8rem;
  color: var(--text);
}

.preview-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.preview-player.hidden {
  display: none;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 1rem;
}

.waveform-bar {
  width: 4px;
  background: var(--yellow);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(1)  { height: 16px; animation-delay: 0s; }
.waveform-bar:nth-child(2)  { height: 28px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3)  { height: 36px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4)  { height: 22px; animation-delay: 0.15s; }
.waveform-bar:nth-child(5)  { height: 40px; animation-delay: 0.3s; }
.waveform-bar:nth-child(6)  { height: 30px; animation-delay: 0.25s; }
.waveform-bar:nth-child(7)  { height: 44px; animation-delay: 0.35s; }
.waveform-bar:nth-child(8)  { height: 24px; animation-delay: 0.2s; }
.waveform-bar:nth-child(9)  { height: 36px; animation-delay: 0.4s; }
.waveform-bar:nth-child(10) { height: 20px; animation-delay: 0.15s; }
.waveform-bar:nth-child(11) { height: 32px; animation-delay: 0.3s; }
.waveform-bar:nth-child(12) { height: 14px; animation-delay: 0.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.preview-progress {
  width: 200px;
  height: 3px;
  background: rgba(42, 58, 74, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.preview-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.preview-fade-text {
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.preview-fade-text:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================
   Signup Section
   ============================================ */

.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.signup-heading {
  font-family: var(--font-primary);
  color: var(--yellow);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  font-weight: 700;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.signup-sub,
.signup-sub-link {
  font-family: var(--font-secondary);
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  text-transform: lowercase;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.signup-sub-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
}

.signup-form.hidden {
  display: none;
}

.signup-input {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(42, 58, 74, 0.12);
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-transform: lowercase;
  backdrop-filter: blur(4px);
}

.signup-input::placeholder {
  color: var(--muted);
}

.signup-input:focus {
  border-color: var(--yellow-dark);
  background: rgba(255, 255, 255, 0.5);
}

.signup-btn {
  margin-top: 1.5rem;
  display: inline-block;
  text-decoration: none;
}

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: fadeInUp 0.5s ease both;
}

.signup-success.hidden {
  display: none;
}

.success-text {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Streaming links */
.streaming-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stream-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  text-transform: lowercase;
}

.stream-link:hover {
  opacity: 1;
  color: var(--text);
}

.stream-icon {
  width: 20px;
  height: 20px;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  text-transform: lowercase;
}

.social-link:hover {
  color: var(--text);
}

.social-dot {
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
}

/* ============================================
   Twinkling Stars
   ============================================ */

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.star svg {
  width: var(--size);
  height: var(--size);
  fill: var(--yellow);
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  20% { opacity: 0.4; }
  50% { opacity: var(--max-opacity); transform: scale(1) rotate(15deg); }
  80% { opacity: 0.4; }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeInUp 0.8s ease both;
}

.billboard-mockup {
  animation: fadeInUp 0.6s ease both;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .hero {
    min-height: 80vh;
    padding: 1.5rem;
  }

  .blank-line {
    flex-wrap: wrap;
    justify-content: center;
  }

  #word-input {
    text-align: center;
    width: 100%;
  }

  .billboard-mockup {
    padding: 2rem 1.5rem;
  }

  .reveal-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .reveal-actions button {
    width: 100%;
  }

  .streaming-links {
    flex-direction: column;
    align-items: center;
  }
}
