/* Bindings for existing console/landing nodes. Additive: no restyle of layout.

 * The motion.js scanner only initialises [data-mo-*] hooks, which app.js never
 * emits. Entrance on the public landing is CSS so it still plays if the module
 * is slow; hover/spotlight/magnetic stay on the JS layer.
 */

@keyframes mo-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .public-page .hero__copy {
    animation: mo-enter 600ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .connection-map {
    animation: mo-enter 600ms 120ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .connection-route {
    animation: mo-enter 420ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .connection-route:nth-child(1) { animation-delay: 160ms; }
  .public-page .connection-route:nth-child(2) { animation-delay: 240ms; }
  .public-page .connection-route:nth-child(3) { animation-delay: 320ms; }

  .public-page .hero__meta > span {
    animation: mo-enter 350ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .hero__meta > span:nth-child(1) { animation-delay: 200ms; }
  .public-page .hero__meta > span:nth-child(2) { animation-delay: 250ms; }
  .public-page .hero__meta > span:nth-child(3) { animation-delay: 300ms; }

  .public-page .hero__actions {
    animation: mo-enter 400ms 80ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .feature-card {
    animation: mo-enter 500ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }

  .public-page .feature-grid .feature-card:nth-child(1) { animation-delay: 40ms; }
  .public-page .feature-grid .feature-card:nth-child(2) { animation-delay: 110ms; }
  .public-page .feature-grid .feature-card:nth-child(3) { animation-delay: 180ms; }
  .public-page .feature-grid .feature-card:nth-child(4) { animation-delay: 250ms; }
  .public-page .feature-grid .feature-card:nth-child(5) { animation-delay: 320ms; }
  .public-page .feature-grid .feature-card:nth-child(6) { animation-delay: 390ms; }

  .public-page .product-spotlight,
  .public-page .logo-strip,
  .public-page .integration-panel,
  .public-page .cta-panel {
    animation: mo-enter 560ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) backwards;
  }
}

.mo-press { transform-origin: center; }

.modal-backdrop.mo-modal-enter .modal {
  animation-duration: var(--motion-mid, 340ms);
  animation-timing-function: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.toast.mo-toast-bridged {
  animation-duration: var(--motion-mid, 340ms);
  animation-timing-function: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

@media (prefers-reduced-motion: reduce) {
  .mo-press:active { transform: none; }
}
