/* ═══════════════════════════════════════
   ORB FLOAT
═══════════════════════════════════════ */

.orb-1 { animation: orbDrift1 25s ease-in-out infinite; }
.orb-2 { animation: orbDrift2 30s ease-in-out infinite; }

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -60px); }
    66% { transform: translate(-30px, 30px); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-50px, 40px); }
    66% { transform: translate(30px, -50px); }
}

/* ═══════════════════════════════════════
   HERO ANIMATIONS
═══════════════════════════════════════ */

.animate-hero {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    animation: heroIn 0.7s var(--ease) 0.15s forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeIn 0.5s var(--ease) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Hero card subtle rotating glow */
.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(124, 92, 191, 0.03) 25%,
        transparent 50%,
        rgba(124, 92, 191, 0.03) 75%,
        transparent 100%
    );
    animation: slowRotate 12s linear infinite;
    pointer-events: none;
}

@keyframes slowRotate {
    to { transform: rotate(360deg); }
}

/* Hero floating particles */
.hero-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-dim);
    border-radius: 50%;
    animation: particleRise 8s linear infinite;
    opacity: 0;
}

.hero-particles span:nth-child(1) { left: 12%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 28%; animation-delay: 1.3s; }
.hero-particles span:nth-child(3) { left: 48%; animation-delay: 2.6s; }
.hero-particles span:nth-child(4) { left: 62%; animation-delay: 4s; }
.hero-particles span:nth-child(5) { left: 78%; animation-delay: 5.2s; }
.hero-particles span:nth-child(6) { left: 90%; animation-delay: 6.5s; }

@keyframes particleRise {
    0% { bottom: -5px; opacity: 0; }
    15% { opacity: 0.3; }
    100% { bottom: 105%; opacity: 0; transform: translateX(15px); }
}

/* Typing cursor */
.typing-cursor {
    animation: cursorBlink 0.9s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scroll line pulse */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.15; height: 28px; }
    50% { opacity: 0.4; height: 42px; }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL (BLUR)
═══════════════════════════════════════ */

.animate {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.animate-delay-1 { transition-delay: 0.08s; }
.animate-delay-2 { transition-delay: 0.16s; }
.animate-delay-3 { transition-delay: 0.24s; }
.animate-delay-4 { transition-delay: 0.32s; }

 ═══════════════════════════════════════
   SPINNER
═══════════════════════════════════════ */

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.spinner { animation: spin 0.7s linear infinite; }

/* ═══════════════════════════════════════
   IN-DEV PULSE
═══════════════════════════════════════ */

.in-dev-badge {
    animation: devPulse 2.5s ease-in-out infinite;
}

@keyframes devPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180, 77, 204, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(180, 77, 204, 0); }
}

/* ═══════════════════════════════════════
   RING PULSE (download)
═══════════════════════════════════════ */

.ring-1 { animation: ringBreath 5s ease-in-out infinite; }
.ring-2 { animation: ringBreath 5s ease-in-out 1.5s infinite; }

@keyframes ringBreath {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.03); }
}

/* ═══════════════════════════════════════
   STAT CARD TOP LINE
═══════════════════════════════════════ */

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.stat-card:hover::before { transform: scaleX(1); }

/* ═══════════════════════════════════════
   FEATURE CARD MOUSE GLOW
═══════════════════════════════════════ */

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 92, 191, 0.06) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: inherit;
}

.feature-card:hover::after { opacity: 1; }

/* ═══════════════════════════════════════
   FAQ GLOW
═══════════════════════════════════════ */

.faq-item.active {
    box-shadow: 0 2px 16px rgba(124, 92, 191, 0.06);
}

/* ═══════════════════════════════════════
   TILT BASE
═══════════════════════════════════════ */

[data-tilt] {
    transition: transform 0.2s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* ═══════════════════════════════════════
   BUTTON SHINE
═══════════════════════════════════════ */

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.45s ease;
    pointer-events: none;
}

.btn-primary:hover::after { left: 100%; }

/* ═══════════════════════════════════════
   NAV LINK UNDERLINE GLOW
═══════════════════════════════════════ */

.nav-links a:hover::after {
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ═══════════════════════════════════════
   SCREENSHOT OVERLAY ICON
═══════════════════════════════════════ */

.screenshot-overlay i {
    transition: transform 0.3s var(--ease);
}

.screenshot:hover .screenshot-overlay i {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════
   BACK TO TOP GLOW
═══════════════════════════════════════ */

.back-to-top:hover {
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .hero-logo { animation: none; }
    .hero-card::before { animation: none; display: none; }
    .hero-particles { display: none; }
}