/* ============================================
   TRAFFICFLOW - PREMIUM AI SAAS LANDING
   Visual 3D, Glassmorphism, IA Aesthetic
   Version: 2.0 - 2026-01-25
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Core Colors */
    --color-bg-dark: #050510;
    --color-bg-darker: #020208;
    --color-primary: #6366f1;
    --color-secondary: #8b5cf6;
    --color-accent: #00d4ff;
    --color-accent-2: #7c3aed;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #050510 0%, #0a0a1f 50%, #0f0520 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-glow: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #a855f7 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-strong: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-glow-cyan: 0 0 60px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 60px rgba(139, 92, 246, 0.3);
    --shadow-glow-accent: 0 0 80px rgba(99, 102, 241, 0.4);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    font-family: var(--font-display);
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-dark);
    color: #fff;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid Background - Ultra Premium */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1.5px, transparent 1.5px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.4;
        background-size: 60px 60px;
    }
    50% {
        opacity: 0.7;
        background-size: 65px 65px;
    }
}

/* Grid pattern variant */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.15) 1.5px, transparent 0);
    background-size: 40px 40px;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Glow Orbs Background */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.glow-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    bottom: -20%;
    left: -10%;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: 4s;
}

/* ============================================
   HERO SECTION - 3D & AI AESTHETIC
   ============================================ */
.hero-premium {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: badge-breathe 4s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

@keyframes badge-breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 30px rgba(99, 102, 241, 0.25);
    }
}

.hero-badge:hover {
    background: var(--glass-bg);
    border-color: var(--color-accent);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
    animation: none;
}

.hero-badge-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow:
        0 0 10px var(--color-success),
        0 0 20px rgba(16, 185, 129, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -2px;
}

.hero-title-gradient {
    background: linear-gradient(
        135deg,
        #fff 0%,
        #e0e7ff 15%,
        #c4b5fd 30%,
        #a78bfa 45%,
        #8b5cf6 60%,
        #00d4ff 75%,
        #60a5fa 90%,
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shimmer 8s linear infinite;
    text-shadow: none;
    position: relative;
}

@keyframes gradient-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Add glow effect to gradient text */
.hero-title-gradient::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-subtitle strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* Premium Buttons */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
}

.btn-primary-premium {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    position: relative;
}

.btn-primary-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary-premium::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: 16px;
    filter: blur(12px);
    opacity: 0.6;
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary-premium:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.7),
        0 0 80px rgba(99, 102, 241, 0.4);
}

.btn-primary-premium:hover::before {
    opacity: 1;
}

.btn-primary-premium:hover::after {
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.btn-secondary-premium {
    background: var(--glass-bg);
    color: #fff;
    border: 2px solid var(--glass-border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary-premium:hover {
    background: var(--glass-bg-strong);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ============================================
   3D AI ORB - ULTRA PREMIUM
   ============================================ */
.ai-orb-3d {
    position: relative;
    width: 450px;
    height: 450px;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 30px 80px rgba(99, 102, 241, 0.6));
    transform-style: preserve-3d;
}

.ai-orb-core {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        conic-gradient(from 0deg, #6366f1, #8b5cf6, #a855f7, #ec4899, #f59e0b, #10b981, #00d4ff, #6366f1);
    box-shadow:
        0 0 100px rgba(99, 102, 241, 0.9),
        0 0 180px rgba(139, 92, 246, 0.7),
        0 0 280px rgba(168, 85, 247, 0.5),
        inset 0 0 100px rgba(255,255,255,0.2),
        inset 0 0 60px rgba(0, 212, 255, 0.3);
    animation: rotate-slow 20s linear infinite, pulse-orb 4s ease-in-out infinite;
    transform: translateZ(50px);
}

@keyframes pulse-orb {
    0%, 100% {
        transform: translateZ(50px) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateZ(60px) scale(1.03);
        filter: brightness(1.15);
    }
}

.ai-orb-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    animation: rotate-slow 30s linear infinite reverse;
}

.ai-orb-ring::before,
.ai-orb-ring::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--color-accent), 0 0 50px var(--color-accent);
}

.ai-orb-ring::before {
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-orb-ring::after {
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-orb-ring-2 {
    inset: -35px;
    border-color: rgba(139, 92, 246, 0.3);
    animation-duration: 40s;
    animation-direction: normal;
}

.ai-orb-ring-3 {
    inset: -70px;
    border-color: rgba(168, 85, 247, 0.2);
    animation-duration: 50s;
}

/* Floating Particles - Enhanced */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

@keyframes particle-rise {
    0% {
        transform: translateY(110vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(20px) scale(1) rotate(45deg);
    }
    50% {
        transform: translateY(50vh) translateX(-10px) scale(1.2) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(-20px) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--color-accent),
        0 0 40px var(--color-accent),
        0 0 60px rgba(99, 102, 241, 0.5);
    animation: particle-rise linear infinite;
}

/* Particle glow pulse */
.particle::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--color-accent);
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.6;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 36px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent, rgba(99,102,241,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        var(--shadow-card),
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 100px rgba(139, 92, 246, 0.3);
}

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

/* Card with 3D Tilt */
.card-3d-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-tilt:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateZ(15px) translateY(-8px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-dark {
    background: var(--color-bg-dark);
    position: relative;
}

.section-darker {
    background: var(--color-bg-darker);
    position: relative;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.section-title-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 19px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ============================================
   BRAIN SECTION (MÉTODO)
   ============================================ */
.brain-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.brain-card {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, var(--glass-bg-strong) 0%, var(--glass-bg) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.brain-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.brain-card:hover::after {
    transform: scaleX(1);
}

.brain-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-card), 0 0 80px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.brain-card-number {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    pointer-events: none;
}

.brain-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow:
        0 12px 35px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.3),
        inset 0 -2px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
}

.brain-card-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 21px;
    background: var(--gradient-accent);
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.brain-card:hover .brain-card-icon {
    transform: perspective(500px) rotateY(15deg) rotateX(-10deg) scale(1.15) translateZ(20px);
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.7),
        0 0 100px rgba(99, 102, 241, 0.5),
        inset 0 -2px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 20px rgba(255, 255, 255, 0.4);
}

.brain-card:hover .brain-card-icon::before {
    opacity: 1;
}

.brain-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.brain-card-text {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* ============================================
   EXECUTIVE PANEL
   ============================================ */
.executive-card {
    position: relative;
    padding: 36px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.executive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--card-accent);
    transition: width 0.3s ease;
}

.executive-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0,0,0,0.15);
}

.executive-card:hover::before {
    width: 12px;
}

.executive-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.executive-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.executive-card:hover .executive-card-icon {
    transform: scale(1.15) rotate(8deg);
}

.executive-card-value {
    font-size: 52px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 10px;
}

.executive-card-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.executive-card-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 18px;
    padding: 8px 16px;
    border-radius: 100px;
}

.executive-card-change.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.executive-card-change.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Mini Chart */
.mini-chart {
    height: 56px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.mini-chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--card-accent), var(--card-accent-light));
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.mini-chart-bar:last-child {
    opacity: 1;
}

.mini-chart-bar:hover {
    opacity: 1;
    transform: scaleY(1.1);
}

/* Live Badge */
.live-badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   FUNNEL SECTION
   ============================================ */
.funnel-section {
    position: relative;
    padding: 120px 0;
}

.funnel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Animated Line */
.funnel-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom,
        #3b82f6 0%,
        #6366f1 25%,
        #8b5cf6 50%,
        #10b981 75%,
        #f59e0b 100%
    );
    border-radius: 5px;
    overflow: hidden;
}

.funnel-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
    animation: funnel-flow 3s linear infinite;
}

@keyframes funnel-flow {
    0% { top: -120px; }
    100% { top: 100%; }
}

.funnel-stage {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 56px;
    position: relative;
    transition: all 0.4s ease;
}

.funnel-stage:hover {
    transform: translateX(15px);
}

.funnel-stage-number {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-card);
}

.funnel-stage:hover .funnel-stage-number {
    transform: scale(1.12);
    box-shadow: var(--shadow-card), var(--shadow-glow-accent);
}

.funnel-stage-content {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 32px;
    transition: all 0.4s ease;
}

.funnel-stage:hover .funnel-stage-content {
    background: #fafafa;
    border-color: #d1d5db;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.funnel-stage-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.funnel-stage-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Tooltip */
.funnel-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: #ef4444;
    transition: all 0.3s ease;
}

.funnel-tooltip:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.feature-card {
    padding: 42px;
    background: #fff;
    border-radius: 32px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--feature-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0,0,0,0.12);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 0.06;
}

.feature-card-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 32px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-icon {
    transform: rotateY(20deg) rotateX(-12deg) scale(1.1);
}

.feature-card-icon-face {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: var(--feature-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 18px 40px var(--feature-shadow),
        0 0 60px var(--feature-shadow),
        inset 0 -3px 20px rgba(0, 0, 0, 0.25),
        inset 0 3px 20px rgba(255, 255, 255, 0.3);
    transform: translateZ(20px);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-card-icon-face {
    box-shadow:
        0 25px 60px var(--feature-shadow),
        0 0 100px var(--feature-shadow),
        inset 0 -3px 25px rgba(0, 0, 0, 0.3),
        inset 0 3px 25px rgba(255, 255, 255, 0.4);
    transform: translateZ(30px) scale(1.05);
}

.feature-card-icon-shadow {
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    background: var(--feature-gradient);
    filter: blur(30px);
    opacity: 0.6;
    transform: translateZ(-20px) translateY(30px);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-card-icon-shadow {
    opacity: 0.9;
    filter: blur(40px);
    transform: translateZ(-25px) translateY(35px);
}

.feature-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    position: relative;
}

.feature-card-text {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    position: relative;
}

/* AI Highlight Card - Ultra Premium */
.feature-card-ai {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0520 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-card-ai::before {
    background: var(--gradient-accent);
}

.feature-card-ai::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.1) 45%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(99, 102, 241, 0.1) 55%,
        transparent 100%
    );
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}

.feature-card-ai .feature-card-title {
    color: #fff;
    position: relative;
    z-index: 1;
}

.feature-card-ai .feature-card-text {
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

.feature-card-ai:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow:
        0 35px 70px rgba(0,0,0,0.2),
        0 0 100px rgba(99, 102, 241, 0.4);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    letter-spacing: 0.5px;
}

/* ============================================
   INTEGRATIONS SECTION
   ============================================ */
.integration-chip {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 22px 32px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.integration-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-12px) scale(1.08);
    box-shadow:
        var(--shadow-card),
        0 0 60px rgba(0, 212, 255, 0.4),
        0 0 100px rgba(99, 102, 241, 0.3);
}

.integration-chip:hover::before {
    opacity: 1;
}

.integration-chip-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.3),
        inset 0 -2px 10px rgba(0,0,0,0.2),
        inset 0 2px 10px rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    position: relative;
}

.integration-chip-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
}

.integration-chip:hover .integration-chip-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 -2px 15px rgba(0,0,0,0.3),
        inset 0 2px 15px rgba(255,255,255,0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS - FRAMER MOTION STYLE
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Spring-like reveal (simulates Framer Motion spring) */
.reveal-spring {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Scale reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Stagger with spring easing */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }
.delay-900 { transition-delay: 0.9s; }

/* Magnetic hover effect (Framer Motion style) */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-hover:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .ai-orb-3d {
        width: 350px;
        height: 350px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .ai-orb-3d {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }

    .funnel-stage {
        flex-direction: column;
        align-items: flex-start;
    }

    .funnel-line {
        display: none;
    }

    .funnel-stage-number {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .brain-card,
    .feature-card,
    .executive-card {
        padding: 28px;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   AI BRAIN IMAGE - HERO SECTION (Premium Effects)
   ============================================ */
.ai-brain-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
}

/* Primary Glow Effect */
.ai-brain-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(ellipse at center,
        rgba(139, 92, 246, 0.4) 0%,
        rgba(6, 182, 212, 0.2) 40%,
        transparent 70%);
    filter: blur(60px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Secondary Glow Effect */
.ai-brain-glow-secondary {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(ellipse at center,
        rgba(99, 102, 241, 0.3) 0%,
        rgba(168, 85, 247, 0.1) 50%,
        transparent 80%);
    filter: blur(80px);
    animation: glow-pulse-secondary 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes glow-pulse-secondary {
    0%, 100% { opacity: 0.4; transform: scale(1.1); }
    50% { opacity: 0.8; transform: scale(1); }
}

/* Floating Particles */
.ai-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
}

.ai-particle-1 {
    top: 10%;
    left: 15%;
    animation: particle-float-1 8s ease-in-out infinite;
}

.ai-particle-2 {
    top: 20%;
    right: 10%;
    width: 6px;
    height: 6px;
    animation: particle-float-2 10s ease-in-out infinite;
}

.ai-particle-3 {
    bottom: 25%;
    left: 10%;
    width: 10px;
    height: 10px;
    animation: particle-float-3 7s ease-in-out infinite;
}

.ai-particle-4 {
    bottom: 15%;
    right: 15%;
    width: 5px;
    height: 5px;
    animation: particle-float-4 9s ease-in-out infinite;
}

@keyframes particle-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 1; }
    50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.9; }
}

@keyframes particle-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33% { transform: translate(-25px, 20px) scale(1.3); opacity: 1; }
    66% { transform: translate(15px, -15px) scale(0.9); opacity: 0.5; }
}

@keyframes particle-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate(40px, -30px) scale(1.2); opacity: 0.6; }
}

@keyframes particle-float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(-15px, -25px) scale(1.4); opacity: 1; }
    75% { transform: translate(20px, 10px) scale(0.8); opacity: 0.7; }
}

/* Image Frame with Border Glow */
.ai-brain-frame {
    position: relative;
    z-index: 2;
    padding: 4px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.5) 0%,
        rgba(139, 92, 246, 0.3) 25%,
        rgba(6, 182, 212, 0.5) 50%,
        rgba(168, 85, 247, 0.3) 75%,
        rgba(99, 102, 241, 0.5) 100%);
    background-size: 400% 400%;
    border-radius: 24px;
    animation: border-glow 8s ease infinite;
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 90px rgba(6, 182, 212, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-brain-image {
    display: block;
    border-radius: 20px;
    animation: float-brain 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.ai-brain-container:hover .ai-brain-image {
    transform: scale(1.03) translateY(-5px);
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 80px rgba(6, 182, 212, 0.3));
}

.ai-brain-container:hover .ai-brain-frame {
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.5),
        0 0 100px rgba(139, 92, 246, 0.3),
        0 0 150px rgba(6, 182, 212, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
}

.ai-brain-container:hover .ai-brain-glow {
    opacity: 1;
    transform: scale(1.2);
}

/* Corner Accents */
.ai-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 4;
    pointer-events: none;
}

.ai-corner::before,
.ai-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.ai-corner-tl {
    top: 15px;
    left: 15px;
}
.ai-corner-tl::before {
    width: 20px;
    height: 3px;
    top: 0;
    left: 0;
    border-radius: 3px;
}
.ai-corner-tl::after {
    width: 3px;
    height: 20px;
    top: 0;
    left: 0;
    border-radius: 3px;
}

.ai-corner-tr {
    top: 15px;
    right: 15px;
}
.ai-corner-tr::before {
    width: 20px;
    height: 3px;
    top: 0;
    right: 0;
    border-radius: 3px;
}
.ai-corner-tr::after {
    width: 3px;
    height: 20px;
    top: 0;
    right: 0;
    border-radius: 3px;
}

.ai-corner-bl {
    bottom: 15px;
    left: 15px;
}
.ai-corner-bl::before {
    width: 20px;
    height: 3px;
    bottom: 0;
    left: 0;
    border-radius: 3px;
}
.ai-corner-bl::after {
    width: 3px;
    height: 20px;
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.ai-corner-br {
    bottom: 15px;
    right: 15px;
}
.ai-corner-br::before {
    width: 20px;
    height: 3px;
    bottom: 0;
    right: 0;
    border-radius: 3px;
}
.ai-corner-br::after {
    width: 3px;
    height: 20px;
    bottom: 0;
    right: 0;
    border-radius: 3px;
}

@keyframes float-brain {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Gradient Radial Utility */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Responsive AI Brain */
@media (max-width: 1024px) {
    .ai-brain-container {
        min-height: 350px;
        padding: 30px;
    }

    .ai-corner {
        width: 30px;
        height: 30px;
    }

    .ai-corner::before {
        width: 15px !important;
    }
    .ai-corner::after {
        height: 15px !important;
    }
}

@media (max-width: 768px) {
    .ai-brain-container {
        min-height: 280px;
        padding: 20px;
    }

    .ai-brain-image {
        max-width: 320px !important;
    }

    .ai-brain-frame {
        border-radius: 16px;
        padding: 3px;
    }

    .ai-brain-image {
        border-radius: 14px;
    }

    .ai-particle {
        display: none;
    }

    .ai-corner {
        width: 24px;
        height: 24px;
    }

    .ai-corner-tl, .ai-corner-tr {
        top: 8px;
    }
    .ai-corner-bl, .ai-corner-br {
        bottom: 8px;
    }
    .ai-corner-tl, .ai-corner-bl {
        left: 8px;
    }
    .ai-corner-tr, .ai-corner-br {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .ai-brain-container {
        min-height: 220px;
        padding: 15px;
    }

    .ai-brain-image {
        max-width: 260px !important;
    }

    .ai-corner {
        display: none;
    }

    .ai-brain-glow-secondary {
        display: none;
    }
}

/* ============================================
   CONTACT PAGE - INFO CARDS
   ============================================ */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    border-color: #d1d5db;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--contact-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   CONTACT PAGE - REASON CARDS
   ============================================ */
.reason-card {
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: #d1d5db;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.reason-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.reason-card:hover .reason-card-icon {
    transform: scale(1.15) rotate(8deg);
}

.reason-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.reason-card-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
