/* Orbivanta — motion inspired by https://www.orivanta.ai/ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@keyframes hero-particle-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(12px, -18px) scale(1.05); opacity: 0.65; }
  66% { transform: translate(-8px, 10px) scale(0.95); opacity: 0.5; }
}

@keyframes voice-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ring-expand {
  0% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(0.92); opacity: 0.5; }
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.8) 0%, transparent 70%);
  animation: hero-particle-drift 8s ease-in-out infinite;
}

.hero__particle:nth-child(1) { width: 6px; height: 6px; top: 25%; left: 20%; animation-delay: 0s; }
.hero__particle:nth-child(2) { width: 4px; height: 4px; top: 40%; left: 35%; animation-delay: 1s; background: radial-gradient(circle, rgba(6, 182, 212, 0.7) 0%, transparent 70%); }
.hero__particle:nth-child(3) { width: 8px; height: 8px; top: 30%; right: 25%; animation-delay: 2s; }
.hero__particle:nth-child(4) { width: 5px; height: 5px; top: 55%; left: 15%; animation-delay: 0.5s; }
.hero__particle:nth-child(5) { width: 7px; height: 7px; top: 60%; right: 20%; animation-delay: 1.5s; background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, transparent 70%); }
.hero__particle:nth-child(6) { width: 4px; height: 4px; top: 45%; right: 40%; animation-delay: 2.5s; }
.hero__particle:nth-child(7) { width: 6px; height: 6px; bottom: 25%; left: 30%; animation-delay: 3s; }
.hero__particle:nth-child(8) { width: 5px; height: 5px; bottom: 30%; right: 35%; animation-delay: 0.8s; }

.voice-visual__core {
  animation: voice-pulse 3s ease-in-out infinite;
}

.voice-visual__ring {
  animation: ring-expand 4s ease-in-out infinite;
}

.voice-visual__ring:nth-child(2) { animation-delay: 0.8s; }
.voice-visual__ring:nth-child(3) { animation-delay: 1.6s; }

.modal.is-opening .modal__panel {
  animation: modal-in 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal.is-closing .modal__panel {
  animation: modal-out 240ms ease forwards;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modal-out {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.96) translateY(12px); }
}

@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;
  }
}
