/* ============================================
   LANDING PAGE ENHANCEMENTS V2
   Modern, high-converting design system
   ============================================ */

/* === ANIMATED GRADIENT BACKGROUND === */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent),
        radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255, 92, 53, 0.15), transparent),
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(16, 185, 129, 0.15), transparent);
    animation: aurora 20s ease infinite;
    z-index: 1;
}

@keyframes aurora {
    0%, 100% { 
        filter: hue-rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        filter: hue-rotate(30deg);
        opacity: 1;
    }
}

/* === FLOATING PARTICLES === */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; animation-duration: 11s; }
.particle:nth-child(4) { left: 40%; animation-delay: -1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: -3s; animation-duration: 13s; }
.particle:nth-child(6) { left: 60%; animation-delay: -5s; animation-duration: 15s; }
.particle:nth-child(7) { left: 70%; animation-delay: -2s; animation-duration: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -4s; animation-duration: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: -1s; animation-duration: 11s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* === ENHANCED HERO BADGE === */
.hero-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
}

.hero-badge-text {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === ENHANCED HERO TITLE === */
.hero-title-enhanced {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 28px;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-title-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title-word:nth-child(2) { animation-delay: 0.15s; }
.hero-title-word:nth-child(3) { animation-delay: 0.2s; }

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text animation */
.hero-gradient-text {
    background: linear-gradient(
        135deg,
        #ff5c35 0%,
        #ff7a59 25%,
        #818cf8 50%,
        #10b981 75%,
        #ff5c35 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === ENHANCED CTA BUTTONS === */
.btn-hero-primary-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #ff5c35 0%, #ff7a59 100%);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 15px rgba(255, 92, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-primary-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-hero-primary-enhanced:hover::before {
    left: 100%;
}

.btn-hero-primary-enhanced:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(255, 92, 53, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-primary-enhanced:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-hero-primary-enhanced:hover .btn-icon {
    transform: translateX(4px);
}

/* Secondary button with border animation */
.btn-hero-secondary-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: transparent;
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-hero-secondary-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-hero-secondary-enhanced:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* === ANIMATED STATS COUNTER === */
.hero-stats-enhanced {
    display: flex;
    gap: 56px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-enhanced {
    text-align: left;
    opacity: 0;
    animation: fade-slide-up 0.6s ease forwards;
}

.hero-stat-enhanced:nth-child(1) { animation-delay: 0.5s; }
.hero-stat-enhanced:nth-child(2) { animation-delay: 0.6s; }
.hero-stat-enhanced:nth-child(3) { animation-delay: 0.7s; }

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value-enhanced {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-value-enhanced .stat-symbol {
    font-size: 0.6em;
    opacity: 0.7;
}

.stat-label-enhanced {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* === ENHANCED VALUE PROP CARDS === */
.value-prop-card-enhanced {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-prop-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-prop-card-enhanced:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-12px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.value-prop-card-enhanced:hover::before {
    opacity: 1;
}

.value-prop-icon-enhanced {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    border-radius: 20px;
    font-size: 32px;
    margin-bottom: 28px;
    position: relative;
    transition: all 0.4s ease;
}

.value-prop-card-enhanced:hover .value-prop-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
}

/* === TESTIMONIAL CARDS ENHANCED === */
.testimonial-card-enhanced {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card-enhanced::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(102, 126, 234, 0.2);
    line-height: 1;
}

.testimonial-card-enhanced:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

/* === ANIMATED COMPANY LOGOS === */
.logo-marquee {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.trust-logo-enhanced {
    height: 36px;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: all 0.4s ease;
}

.trust-logo-enhanced:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}

/* === PRICING SECTION === */
.pricing-section {
    background: linear-gradient(180deg, #0f172a 0%, #1a1f35 100%);
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 24px 0 8px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.pricing-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 32px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.featured .btn-pricing {
    background: linear-gradient(135deg, #ff5c35 0%, #ff7a59 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 92, 53, 0.4);
}

.pricing-card.featured .btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 92, 53, 0.5);
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveals */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* === FLOATING CTA BAR === */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.floating-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.floating-cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.floating-cta .btn-floating {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff5c35 0%, #ff7a59 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.floating-cta .btn-floating:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 92, 53, 0.4);
}

@media (max-width: 768px) {
    .floating-cta {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        justify-content: center;
    }
    
    .floating-cta.visible {
        transform: translateX(0) translateY(0);
    }
    
    .floating-cta-text {
        display: none;
    }
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 80px;
    }
    
    .hero-stats-enhanced {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
    
    .hero-stat-enhanced {
        text-align: center;
    }
    
    .value-props-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary-enhanced,
    .btn-hero-secondary-enhanced {
        width: 100%;
        justify-content: center;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before,
    .particle,
    .logo-marquee {
        animation: none !important;
    }
}

/* === DARK MODE ENHANCEMENTS === */
[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .hero-title-enhanced {
    color: #0f172a;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-tagline {
    color: #475569;
}

[data-theme="light"] .value-prop-card-enhanced,
[data-theme="light"] .testimonial-card-enhanced,
[data-theme="light"] .pricing-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-title,
[data-theme="light"] .value-prop-title,
[data-theme="light"] .pricing-title {
    color: #0f172a;
}
