/* Restrained motion derived from Semrush's quick UI transitions and smooth content reveals. */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) { transition-delay: 80ms; }
.hero .reveal:nth-child(3) { transition-delay: 150ms; }
.hero .reveal:nth-child(4) { transition-delay: 220ms; }
.hero .orchestration-map { transition-delay: 290ms; }
.hero .hero__proof { transition-delay: 360ms; }

.orchestration-map.is-visible .channel-chip,
.orchestration-map.is-visible .outcome-row {
  animation: item-arrive 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.orchestration-map.is-visible .channel-chip:nth-child(2),
.orchestration-map.is-visible .outcome-row:nth-child(2) { animation-delay: 80ms; }
.orchestration-map.is-visible .channel-chip:nth-child(3),
.orchestration-map.is-visible .outcome-row:nth-child(3) { animation-delay: 160ms; }
.orchestration-map.is-visible .channel-chip:nth-child(4) { animation-delay: 240ms; }

.core-orbit--one {
  animation: orbit-rotate 28s linear infinite;
}

.core-orbit--two {
  animation: orbit-rotate 18s linear infinite reverse;
}

.channel-chip__pulse,
.screen-status i,
.map-point i {
  animation: signal-pulse 2.8s ease-in-out infinite;
}

.waveform i {
  animation: waveform 1.6s ease-in-out infinite alternate;
  transform-origin: center;
}

.waveform i:nth-child(2) { animation-delay: 100ms; }
.waveform i:nth-child(3) { animation-delay: 200ms; }
.waveform i:nth-child(4) { animation-delay: 300ms; }
.waveform i:nth-child(5) { animation-delay: 400ms; }
.waveform i:nth-child(6) { animation-delay: 500ms; }
.waveform i:nth-child(7) { animation-delay: 600ms; }
.waveform i:nth-child(8) { animation-delay: 700ms; }
.waveform i:nth-child(9) { animation-delay: 800ms; }

.platform-panel.is-entering {
  animation: panel-enter 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.map-point {
  animation: map-float 5s ease-in-out infinite;
}

.map-point--two { animation-delay: -1.3s; }
.map-point--three { animation-delay: -2.7s; }
.map-point--four { animation-delay: -3.8s; }

.modal:not([hidden]) .modal__backdrop {
  animation: fade-in 220ms ease-out both;
}

.modal:not([hidden]) .modal__panel {
  animation: modal-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal.is-closing .modal__backdrop {
  animation: fade-out 180ms ease-in both;
}

.modal.is-closing .modal__panel {
  animation: modal-leave 180ms ease-in both;
}

@keyframes item-arrive {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(24, 240, 191, 0.08); }
}

@keyframes waveform {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes map-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-leave {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
