* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0b1c2d 0%, #02040a 70%);
  color: #e6ecf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: none;    
  padding: 40px;
  text-align: center;
  animation: fadeIn 1.5s ease;
}


/* ===== TITLE ===== */
.wave {
  display: inline-flex;          
  white-space: nowrap;           
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0;
  gap: 0.25em;
}

.wave span {
  display: inline-block;
  flex-shrink: 0;
  margin: 0 0.12em;
  animation: wave 2.5s ease-in-out infinite;
}

/* stagger */
.wave span:nth-child(1)  { animation-delay: 0s; }
.wave span:nth-child(2)  { animation-delay: 0.05s; }
.wave span:nth-child(3)  { animation-delay: 0.1s; }
.wave span:nth-child(4)  { animation-delay: 0.15s; }
.wave span:nth-child(5)  { animation-delay: 0.2s; }
.wave span:nth-child(6)  { animation-delay: 0.25s; }
.wave span:nth-child(7)  { animation-delay: 0.3s; }
.wave span:nth-child(8)  { animation-delay: 0.35s; }
.wave span:nth-child(9)  { animation-delay: 0.4s; }
.wave span:nth-child(10) { animation-delay: 0.45s; }
.wave span:nth-child(11) { animation-delay: 0.5s; }
.wave span:nth-child(12) { animation-delay: 0.55s; }
.wave span:nth-child(13) { animation-delay: 0.6s; }
.wave span:nth-child(14) { animation-delay: 0.65s; }

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== TEXT ===== */
.subtitle {
  color: #8aa4c8;
  margin-bottom: 2rem;
}

.about {
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ===== BUTTON ===== */
button {
  background: transparent;
  color: #8aa4c8;
  border: 1px solid #2e4a70;
  padding: 12px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

button:hover {
  background: rgba(138, 164, 200, 0.1);
  color: #ffffff;
}

/* ===== VOLUME ===== */
.volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 10px;
  color: #8aa4c8;
  font-size: 0.85rem;
}

input[type="range"] {
  width: 120px;
}

/* ===== FADE ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BRAVE / REDUCE MOTION FALLBACK ===== */
@media (prefers-reduced-motion: reduce) {
  .wave span {
    animation: none;
  }

  .wave {
    text-shadow:
      0 0 8px rgba(138,164,200,0.35),
      0 0 16px rgba(138,164,200,0.15);
  }
}
