/* marketing.css — animations + grid backdrop for the spoke welcome pages.
 *
 * Loaded once from the public-marketing layout. All keyframes/utilities used
 * by the marketing-hero, marketing-unlocks, and marketing-cta components live
 * here so welcome pages stay free of inline <style> blocks.
 *
 * Palette: blue / white / black only — orb colors here intentionally tinted
 * blue so they match the rest of the platform marketing surface.
 */

/* Faint dotted grid backdrop reused across hero/unlocks/cta */
.hero-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Drifting ambient orbs in the hero */
@keyframes hero-orb-drift-1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
    50%      { transform: translate(-48%, -52%) scale(1.06); opacity: 0.75; }
}
@keyframes hero-orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%      { transform: translate(-12px, 18px) scale(1.04); opacity: 0.75; }
}
@keyframes hero-orb-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%      { transform: translate(14px, -16px) scale(1.04); opacity: 0.75; }
}
.hero-orb-1 { animation: hero-orb-drift-1 14s ease-in-out infinite; }
.hero-orb-2 { animation: hero-orb-drift-2 18s ease-in-out infinite; }
.hero-orb-3 { animation: hero-orb-drift-3 16s ease-in-out infinite; }

/* Pipeline-diagram traveling dot (top → bottom on a loop) */
@keyframes hero-travel {
    0%   { top: 0.25rem;  opacity: 0; }
    8%   { opacity: 1; }
    50%  { top: calc(100% - 0.75rem); opacity: 1; }
    58%  { opacity: 0; }
    100% { top: 0.25rem; opacity: 0; }
}
.hero-travel { animation: hero-travel 4.2s ease-in-out infinite; }

/* "Live" pip pulse */
@keyframes hero-live-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
.hero-live-dot { animation: hero-live-pulse 1.6s ease-in-out infinite; }

/* Alpine x-cloak — hide elements until Alpine hydrates so collapsed FAQ
 * answers don't flash open on page load. */
[x-cloak] { display: none !important; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-orb-1, .hero-orb-2, .hero-orb-3,
    .hero-travel, .hero-live-dot {
        animation: none;
    }
}
