/* ── Reveal animations via Intersection Observer ── */

[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"]    { transform: translateY(32px); }
[data-animate="fade-down"]  { transform: translateY(-32px); }
[data-animate="fade-left"]  { transform: translateX(32px); }
[data-animate="fade-right"] { transform: translateX(-32px); }
[data-animate="zoom-in"]    { transform: scale(0.92); }
[data-animate="fade"]       { transform: none; }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger children */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.45s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.55s; }
[data-stagger].is-visible > * {
    opacity: 1;
    transform: none;
}

/* ── Hero headline animation ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-title   { animation: heroFadeUp 0.8s ease 0.1s both; }
.hero-sub     { animation: heroFadeUp 0.8s ease 0.3s both; }
.hero-actions { animation: heroFadeUp 0.8s ease 0.5s both; }

/* ── Floating orb decorations ── */
@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}
.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite;
}
.orb-green {
    background: rgba(0, 229, 160, 0.15);
    animation-delay: 0s;
}
.orb-violet {
    background: rgba(124, 58, 237, 0.12);
    animation-delay: 3s;
}

/* ── WhatsApp pulse ── */
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-pulse { animation: waPulse 2.2s infinite; }

/* ── Number counter ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-number { animation: countUp 0.6s ease both; }

/* ── Gradient shimmer on hover ── */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-hover:hover {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent2), var(--color-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 1.5s linear infinite;
}
