/* 
 * LaunchPage AI - Hero Section Styles
 * 
 * Hero background orbs, button glows, badges, and element animations
 */

/* ============================================
   HERO SECTION
   ============================================ */

/* Hero section spacing for fixed header */
#hero {
    padding-top: 5rem; /* 80px - default for desktop */
}

@media (max-width: 768px) {
    #hero {
        padding-top: 4rem; /* 64px - match mobile header height */
    }
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

/* Background Orbs - Premium Floating Animation with Sine Curves */
@keyframes orb-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(15px, -20px) scale(1.03);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, 0) scale(1.05);
        opacity: 0.25;
    }
    75% {
        transform: translate(15px, 20px) scale(1.03);
        opacity: 0.2;
    }
}

@keyframes orb-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(-20px, 15px) scale(1.04);
        opacity: 0.25;
    }
    50% {
        transform: translate(-40px, 0) scale(1.06);
        opacity: 0.2;
    }
    75% {
        transform: translate(-20px, -15px) scale(1.04);
        opacity: 0.15;
    }
}

@keyframes orb-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(25px, 25px) scale(1.05);
        opacity: 0.2;
    }
    66% {
        transform: translate(-25px, -25px) scale(1.05);
        opacity: 0.15;
    }
}

.hero-bg-orb-1 {
    animation: orb-float-1 20s ease-in-out infinite;
}

.hero-bg-orb-2 {
    animation: orb-float-2 25s ease-in-out infinite;
}

.hero-bg-orb-3 {
    animation: orb-float-3 30s ease-in-out infinite;
}

/* Gradient Animation for Text - Slower, More Premium */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: gradient-shift 12s ease-in-out infinite;
}

/* CTA Button Premium Glow */
@keyframes premium-glow {
    0%, 100% {
        box-shadow: 0 10px 40px -12px rgba(77, 124, 254, 0.4),
                    0 4px 25px 0 rgba(0, 255, 162, 0.15),
                    0 0 0 1px rgba(77, 124, 254, 0.1) inset;
    }
    50% {
        box-shadow: 0 15px 60px -12px rgba(77, 124, 254, 0.6),
                    0 8px 35px 0 rgba(0, 255, 162, 0.25),
                    0 0 0 1px rgba(77, 124, 254, 0.2) inset;
    }
}

.hero-cta button {
    animation: premium-glow 4s ease-in-out infinite;
}

/* Badge Gentle Pulse */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-badge span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge span:hover {
    animation: badge-pulse 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.12);
}

/* Hero Elements Fade In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Badge */
.hero-badge {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

/* Hero Headline Parts */
.hero-headline-part-1 {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-headline-part-2 {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-headline-part-3 {
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

/* Hero Underline Draw - Refined & Subtle */
@keyframes drawLine {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

.hero-underline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
}

/* Hero Subheadline */
.hero-subheadline {
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

/* Hero CTA */
.hero-cta {
    animation: scaleIn 0.8s ease-out 1.1s backwards;
}

/* Hero Trust Indicators */
.hero-trust {
    animation: fadeIn 0.8s ease-out 1.3s backwards;
}

/* Hero Proof Card */
.hero-proof {
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    animation: fadeIn 1s ease-out 2s backwards;
}

/* Trust Indicators - Refined Micro-interactions */
.hero-trust > div > div {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-trust > div > div:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px -8px rgba(77, 124, 254, 0.3);
}

/* Mobile-specific trust indicator styles */
@media (max-width: 768px) {
    .hero-trust > div > div {
        font-size: 0.75rem; /* 12px */
    }
    
    /* Disable hover effects on mobile */
    .hero-trust > div > div:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.4);
    }
    
    /* Ensure trust indicators stack nicely on very small screens */
    @media (max-width: 380px) {
        .hero-trust > div {
            gap: 0.5rem !important;
        }
    }
}

/* Social Proof Card - Depth on Hover */
.hero-proof > div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-proof > div:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px -12px rgba(77, 124, 254, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Mobile-specific social proof card styles */
@media (max-width: 768px) {
    .hero-proof {
        margin-bottom: 3rem; /* 48px */
    }
    
    .hero-proof > div:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }
}

/* CTA Button Micro-interaction */
.hero-cta button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 70px -12px rgba(77, 124, 254, 0.7),
                0 10px 40px 0 rgba(0, 255, 162, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Mobile-specific button optimization */
@media (max-width: 768px) {
    .hero-cta button {
        min-height: 48px; /* Touch-friendly height */
        font-size: 0.875rem; /* 14px */
        line-height: 1.2;
    }
    
    /* Reduce glow animation intensity on mobile for better performance */
    .hero-cta button {
        animation: none;
    }
    
    .hero-cta button:active {
        transform: scale(0.98);
    }
}