/*
 * PREMIUM UX ENHANCEMENTS
 * Version: 1.0
 * ----------------------
 * This file contains world-class B2B UX polish.
 * To remove these enhancements, simply remove the <link> from index.html.
 */

/* ===== ENTERPRISE TRUST BADGES BAR ===== */
.enterprise-trust-bar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 24px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 40px auto;
    max-width: 900px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--purple-500);
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ANIMATED LOGO CAROUSEL ===== */
.logo-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel {
    display: flex;
    gap: 60px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

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

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-logo {
    height: 32px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.carousel-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===== MICRO-ANIMATIONS ===== */

/* Fade-in on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.5s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Button shine effect */
.btn-primary-large::after,
.btn-primary::after {
    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.5s ease;
}

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

/* Subtle floating animation for hero visual */
.hero-visual {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Card hover tilt effect */
.tilt-card {
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* ===== LIVE PRODUCT DEMO EMBED ===== */
.hero-demo-preview {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #0f172a;
}

.hero-demo-preview video,
.hero-demo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.demo-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.demo-play-btn {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-play-overlay:hover .demo-play-btn {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonials-carousel .testimonial-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 400px;
}

/* ===== ANIMATED STATS COUNTER ===== */
.stat-value[data-count] {
    font-variant-numeric: tabular-nums;
}

/* ===== ENTERPRISE CTA SECTION ===== */
.enterprise-cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 80px 0;
    margin-top: 60px;
}

.enterprise-cta-content {
    text-align: center;
    color: white;
}

.enterprise-cta-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.enterprise-cta-content p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.enterprise-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    opacity: 0.6;
}

/* ===== REFINED NAV WITH BLUR ON SCROLL ===== */
.nav-sticky.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== COMPARISON TABLE POLISH ===== */
.comparison-table .highlight-col {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    font-weight: 600;
    color: var(--purple-600);
}

.comparison-table thead .highlight-col {
    background: var(--primary-gradient);
    color: white;
}

/* ===== PRICING CARD GLOW ON POPULAR ===== */
.pricing-card.popular {
    position: relative;
    box-shadow: 0 0 0 2px var(--purple-500), 0 20px 40px rgba(139, 92, 246, 0.2);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

/* ===== PREMIUM SERIF TYPOGRAPHY ===== */
.hero-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

/* Gradient text highlight */
.highlight-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO ANNOUNCEMENT BADGE ===== */
.hero-announcement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-announcement:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.announcement-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CUSTOMER LOGOS SECTION ===== */
.customer-logos-section {
    text-align: center;
    padding: 40px 0 60px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 60px;
}

.logos-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 28px;
    font-weight: 500;
}

.customer-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 56px;
    max-width: 900px;
    margin: 0 auto;
}

.customer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
}

.customer-logo:nth-child(1) {
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.customer-logo:nth-child(2) {
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.customer-logo:nth-child(3) {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 14px;
}

.customer-logo:nth-child(4) {
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
}

.customer-logo:nth-child(5) {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.customer-logo:nth-child(6) {
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    font-weight: 500;
}

.customer-logo:nth-child(7) {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
}

.customer-logo:nth-child(8) {
    font-family: 'Inter', sans-serif;
}

.customer-logo:hover {
    color: var(--purple-500);
}

@media (max-width: 768px) {
    .customer-logos-grid {
        gap: 24px 40px;
    }

    .customer-logo {
        font-size: 14px;
    }

    .hero-announcement {
        font-size: 12px;
    }
}