/* Motion inspired by neuroflux.ai — smooth, professional, restrained */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.stagger-children > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 0.5s; }

.hero__title.reveal {
  transform: translateY(32px);
}

.hero__dots {
  animation: dotsDrift 30s ease-in-out infinite alternate;
}

@keyframes dotsDrift {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.03) translateY(-12px); }
}

.playground__preview-art {
  animation: previewPulse 4s ease-in-out infinite;
}

@keyframes previewPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.feature-visual svg {
  transition: transform var(--transition-base);
}

.feature-row:hover .feature-visual svg {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__dots,
  .playground__preview-art {
    animation: none;
  }
}
