/* Scroll fade-up reveal */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-spring), transform var(--ease-spring);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up[data-delay="1"] { transition-delay: 80ms; }
.fade-up[data-delay="2"] { transition-delay: 160ms; }
.fade-up[data-delay="3"] { transition-delay: 240ms; }
.fade-up[data-delay="4"] { transition-delay: 320ms; }
.fade-up[data-delay="5"] { transition-delay: 400ms; }

/* Waveform bars */
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.25; }
  50%      { transform: scaleY(1);    opacity: 0.8; }
}

.hero-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-bottom: var(--sp-8);
}

.wave-bar {
  width: 2.5px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: wave-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

.wave-bar:nth-child(1)  { height: 10px; animation-delay: 0s; }
.wave-bar:nth-child(2)  { height: 16px; animation-delay: 0.12s; }
.wave-bar:nth-child(3)  { height: 24px; animation-delay: 0.24s; }
.wave-bar:nth-child(4)  { height: 30px; animation-delay: 0.36s; }
.wave-bar:nth-child(5)  { height: 36px; animation-delay: 0.48s; }
.wave-bar:nth-child(6)  { height: 36px; animation-delay: 0.60s; }
.wave-bar:nth-child(7)  { height: 30px; animation-delay: 0.72s; }
.wave-bar:nth-child(8)  { height: 24px; animation-delay: 0.84s; }
.wave-bar:nth-child(9)  { height: 16px; animation-delay: 0.96s; }
.wave-bar:nth-child(10) { height: 10px; animation-delay: 1.08s; }

/* Floating animation for overlay pill */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.sc-pill-wrap {
  animation: float 4s ease-in-out infinite;
}

/* Gentle glow pulse behind app showcase */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.sc-glow {
  animation: glow-breathe 6s ease-in-out infinite;
}

/* Record button pulse */
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.sc-pill-rec-inner,
.sc-rail-record-dot {
  animation: rec-pulse 1.8s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wave-bar {
    animation: none;
    opacity: 0.4;
    transform: scaleY(0.5);
  }

  .sc-pill-wrap,
  .sc-glow,
  .sc-pill-rec-inner,
  .sc-rail-record-dot {
    animation: none;
  }
}
