/* ============================================================================
   Smart Cool Tech - Scrollytelling Design System
   Version 2.1 - Responsive Optimization (2025-12-22)
   ============================================================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Enable mandatory scroll snap with proximity for smoother experience */
    scroll-snap-type: y proximity;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #0f172a;
    line-height: 1.6;
    /* Ensure body respects scroll snap */
    overflow-y: scroll;
}

/* Particle Canvas - Fixed Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ============================================================================
   Navbar
   ============================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0f172a;
}

/* ============================================================================
   General Layout
   ============================================================================ */
.container {
    width: 100%;
    max-width: 1200px; /* Reduced from 1400px for better reading */
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================================
   Advanced Section Animations - Different styles for each section
   ============================================================================ */

/* Default section animation (fade + scale) */
section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    scroll-snap-align: center;
    
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exit state - all sections */
section.section-exiting {
    opacity: 0.3;
    transform: translateY(-30px) scale(0.98);
}

/* ============================================================================
   Hero Section - Slide from bottom
   ============================================================================ */
.hero-landing {
    text-align: center;
    padding-top: 100px;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-landing.section-exiting {
    opacity: 0.3;
    transform: translateY(-30px);
}

/* ============================================================================
   Impact Section - Text fade in word by word
   ============================================================================ */
.impact-section {
    background: transparent;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
}

.impact-section .impact-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-section.section-visible .impact-text {
    opacity: 1;
    transform: translateY(0);
}

.impact-section.section-exiting .impact-text {
    opacity: 0.2;
    transform: translateY(-20px);
}

/* ============================================================================
   Feature Sections - Split animation (text from left, visual from right)
   ============================================================================ */
.feature-block .feature-content {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.feature-block .feature-visual-wrapper {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

/* When section becomes visible */
section.section-visible .feature-block .feature-content {
    opacity: 1;
    transform: translateX(0);
}

section.section-visible .feature-block .feature-visual-wrapper {
    opacity: 1;
    transform: translateX(0);
}

/* Reversed layout - swap animation directions */
.feature-block.reversed .feature-content {
    transform: translateX(60px);
}

.feature-block.reversed .feature-visual-wrapper {
    transform: translateX(-60px);
}

section.section-visible .feature-block.reversed .feature-content {
    transform: translateX(0);
}

section.section-visible .feature-block.reversed .feature-visual-wrapper {
    transform: translateX(0);
}

/* Exit animation for feature blocks */
section.section-exiting .feature-block .feature-content,
section.section-exiting .feature-block .feature-visual-wrapper {
    opacity: 0.2;
    transform: translateY(-20px);
}

/* ============================================================================
   Stats Section - Staggered fade in from bottom
   ============================================================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 2rem 0;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

section.section-visible .stat-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

section.section-visible .stat-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

section.section-visible .stat-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

section.section-exiting .stat-item {
    opacity: 0.2;
    transform: translateY(-20px);
}

/* ============================================================================
   Final CTA Section - Zoom in effect
   ============================================================================ */
.final-cta-section {
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
}

.final-cta-section .container {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta-section.section-visible .container {
    opacity: 1;
    transform: scale(1);
}

.final-cta-section.section-exiting .container {
    opacity: 0.2;
    transform: scale(0.95);
}

/* ============================================================================
   Typography
   ============================================================================ */
.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   Hero Landing Section (Original Design - Clear Product Introduction)
   ============================================================================ */
.hero-landing {
    text-align: center;
    padding-top: 100px;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Scroll snap alignment - center for smoother snapping */
    scroll-snap-align: center;
    
    /* Initial state - hero starts visible */
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exit state for hero */
.hero-landing.section-exiting {
    opacity: 0.3;
    transform: translateY(-50px) scale(0.95);
}

.hero-logo {
    /* Optimized: 2025-12-22 - Use min() for better responsive control */
    /* Modified: 2025-12-22 - Reduced margin-bottom to bring logo closer to text */
    width: min(420px, 85vw);
    max-width: 100%;
    margin-bottom: 1.8rem;
    filter: drop-shadow(0 10px 30px rgba(59,130,246,0.15));
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.hero-landing.section-visible .hero-logo {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-main-title {
    /* Optimized: 2025-12-22 - Reduced vw coefficient from 6.6vw to 3vw + base */
    font-size: clamp(2.5rem, 2rem + 3vw, 3.8rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 1.3rem 0;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-landing.section-visible .hero-main-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    /* Optimized: 2025-12-22 - Reduced vw coefficient */
    font-size: clamp(1.1rem, 1rem + 1vw, 1.4rem);
    color: #64748b;
    font-weight: 500;
    margin: 0 0 3.3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-landing.section-visible .hero-tagline {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Feature Cards Grid */
.hero-features {
    display: grid;
    /* Optimized: 2025-12-22 - Use auto-fit + minmax for responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    max-width: min(1200px, 95vw);
    margin: 0 auto 3.3rem;
    opacity: 1;
}

.hero-feature-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    /* Optimized: 2025-12-22 - Responsive padding */
    padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.5rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(30px);
}

.hero-landing.section-visible .hero-feature-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.hero-landing.section-visible .hero-feature-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-landing.section-visible .hero-feature-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.hero-landing.section-visible .hero-feature-card:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.hero-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.25);
}

.hero-feature-icon {
    /* Optimized: 2025-12-22 - Responsive size */
    width: clamp(50px, 10vw, 66px);
    height: clamp(50px, 10vw, 66px);
    margin: 0 auto 1.1rem;
}

.hero-feature-icon svg {
    width: 100%;
    height: 100%;
}

.hero-feature-title {
    /* Optimized: 2025-12-22 */
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.55rem;
}

.hero-feature-desc {
    /* Optimized: 2025-12-22 */
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #64748b;
    line-height: 1.5;
}

/* Primary CTA Button (for hero) */
.cta-button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    padding: 16px 52px;
    box-shadow: 0 10px 25px rgba(59,130,246,0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.hero-landing.section-visible .cta-button-primary {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59,130,246,0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 3rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInBounce 1s ease-out 1.2s forwards, bounce 2s ease-in-out 2.2s infinite;
}

.scroll-indicator svg {
    opacity: 0.6;
}

@keyframes fadeInBounce {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ============================================================================
   Hero Section (For scrollytelling - reused class)
   ============================================================================ */
.hero-section {
    text-align: center;
    padding-top: 140px;
    min-height: 90vh;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #0f172a;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #475569;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

/* ============================================================================
   Impact Section
   ============================================================================ */
.impact-section {
    background: transparent;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
    
    /* Section animation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-section.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.impact-section.section-exiting {
    opacity: 0.3;
    transform: translateY(-50px) scale(0.95);
}

.impact-text {
    /* Optimized: 2025-12-22 - Reduced vw coefficient */
    font-size: clamp(2.2rem, 2rem + 2.5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: #1e293b;
    max-width: min(1000px, 90vw);
    margin: 0 auto;
}

/* ============================================================================
   Video Demo Section
   ============================================================================ */
.video-demo-section {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
    
    /* Section animation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-demo-section.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-demo-section.section-exiting {
    opacity: 0.3;
    transform: translateY(-50px) scale(0.95);
}

.video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.video-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-wrapper.reveal {
    opacity: 1;
    transform: translateY(0);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(15, 23, 42, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Custom Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.play-button-overlay.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.play-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.play-button-overlay:hover .play-icon {
    animation: none;
    transform: scale(1.15);
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-loading.active {
    opacity: 1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.3s ease;
}

/* Video Fallback Link */
.video-fallback {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.video-fallback a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.video-fallback a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 95%;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .play-icon {
        width: 60px;
        height: 60px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}

/* ============================================================================
   Zig-Zag Feature Grid - Flexbox Implementation
   ============================================================================ */
.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-block.reversed {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding: 1rem;
}

.feature-visual-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    /* Optimized: 2025-12-22 - Reduced vw coefficient */
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.65rem;
    color: #0f172a;
    line-height: 1.2;
}

.feature-desc {
    /* Optimized: 2025-12-22 */
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    line-height: 1.7;
    color: #475569;
    max-width: 600px;
}

.feature-visual {
    width: 100%;
    /* Optimized: 2025-12-22 - Use min() and auto height */
    max-width: min(550px, 90vw);
    height: auto;
    min-height: 400px;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

/* Chat Animation for LLM Feature */
.chat-demo {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 1rem 1.3rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    /* Remove auto animation, will be triggered by JS */
}

/* Active state when section is visible */
.feature-block.active .chat-bubble {
    animation: fadeInBubble 0.6s ease-out forwards;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.feature-block.active .chat-bubble.user {
    animation-delay: 0.5s;
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: white;
    color: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-block.active .chat-bubble.assistant {
    animation-delay: 2s;
}

.chat-bubble.assistant-typing {
    align-self: flex-start;
    background: white;
    color: #64748b;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
}

.feature-block.active .chat-bubble.assistant-typing {
    animation-delay: 1.2s;
}

.typing-indicator {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInBubble {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ============================================================================
   Neural Network Animation (Bayesian Intelligence)
   ============================================================================ */
.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-layer {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.neural-layer.input { 
    left: 10%; 
}

.neural-layer.hidden { 
    left: 50%; 
    transform: translateX(-50%); 
}

.neural-layer.output { 
    right: 10%; 
}

.neuron {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
    position: relative;
    opacity: 0;
    z-index: 2;
}

/* Pulse animation for neurons */
.feature-block.active .neuron {
    animation: neuronPulse 2s ease-in-out infinite;
}

.feature-block.active .neuron:nth-child(1) { animation-delay: 0s; opacity: 1; }
.feature-block.active .neuron:nth-child(2) { animation-delay: 0.3s; opacity: 1; }
.feature-block.active .neuron:nth-child(3) { animation-delay: 0.6s; opacity: 1; }
.feature-block.active .neuron:nth-child(4) { animation-delay: 0.9s; opacity: 1; }

@keyframes neuronPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Connection lines */
.neural-connections {
    z-index: 1;
}

.neural-connection {
    stroke-dasharray: 5 5;
    stroke-dashoffset: 0;
    opacity: 0;
    stroke: rgba(16, 185, 129, 0.4);
    stroke-width: 2;
}

.feature-block.active .neural-connection {
    animation: connectionFlow 2.5s ease-in-out infinite;
}

/* Stagger animation for each connection */
.feature-block.active .neural-connection:nth-child(1) { animation-delay: 0s; }
.feature-block.active .neural-connection:nth-child(2) { animation-delay: 0.2s; }
.feature-block.active .neural-connection:nth-child(3) { animation-delay: 0.4s; }
.feature-block.active .neural-connection:nth-child(4) { animation-delay: 0.6s; }
.feature-block.active .neural-connection:nth-child(5) { animation-delay: 0.8s; }
.feature-block.active .neural-connection:nth-child(6) { animation-delay: 1s; }

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 10;
        opacity: 0.2;
        stroke: rgba(16, 185, 129, 0.3);
    }
    50% {
        stroke-dashoffset: -10;
        opacity: 0.9;
        stroke: rgba(16, 185, 129, 0.9);
    }
    100% {
        stroke-dashoffset: -30;
        opacity: 0.2;
        stroke: rgba(16, 185, 129, 0.3);
    }
}

/* ============================================================================
   Real-Time Wave Animation (See The Invisible)
   ============================================================================ */
.wave-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

.wave-chart {
    width: 100%;
    height: 120px;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.wave-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;  /* Double width for seamless loop */
    height: 100%;
    opacity: 0;
}

.feature-block.active .wave-line {
    animation: waveFlow 8s linear infinite;
    opacity: 1;
}

.wave-line svg {
    width: 100%;
    height: 100%;
}

/* Seamless infinite wave animation */
@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);  /* Move by half since width is 200% */
    }
}

.metric-display {
    display: flex;
    justify-content: space-around;
    width: 100%;
    opacity: 0;
}

.feature-block.active .metric-display {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    display: block;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================================
   Stats Section
   ============================================================================ */
.stats-section {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
    
    /* Section animation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-section.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stats-section.section-exiting {
    opacity: 0.3;
    transform: translateY(-50px) scale(0.95);
}

/* Stats Header */
.stats-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.stats-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Container */
.stats-container {
    display: grid;
    /* Optimized: 2025-12-22 - Use auto-fit + minmax for responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    width: 100%;
    max-width: min(1200px, 95vw);
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    margin: 0 auto;
}

.stat-item {
    /* Optimized: 2025-12-22 - Responsive padding */
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.stat-number {
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 800;
    color: #2563eb;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-description {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   CTA Buttons
   ============================================================================ */
.cta-button {
    background: #0f172a;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 56px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(15,23,42,0.15);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.25);
    background: #1e293b;
}

/* Final CTA Section */
.final-cta-section {
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: center;
    
    /* Section animation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta-section.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.final-cta-section.section-exiting {
    opacity: 0.3;
    transform: translateY(-50px) scale(0.95);
}

/* ============================================================================
   Scroll Reveal Animations
   ============================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ============================================================================
   Responsive adjustments
   ============================================================================ */

/* ========== Tablet Portrait & Large Phones: 600px - 768px ========== */
@media (min-width: 600px) and (max-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ========== Tablet Landscape: 900px - 1024px ========== */
@media (min-width: 900px) and (max-width: 1024px) {
    .hero-main-title {
        font-size: 3rem; /* Fixed size to prevent over-scaling */
    }
    
    .impact-text {
        font-size: 2.8rem;
    }
    
    .feature-title {
        font-size: 2.3rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* ========== Large Desktops: 1280px+ ========== */
@media (min-width: 1280px) {
    section {
        padding-inline: clamp(2rem, 5vw, 4rem);
    }
    
    .container {
        max-width: 1400px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .feature-block, .feature-block.reversed {
        flex-direction: column; /* Stack vertically on tablet/mobile */
        gap: 3rem;
        text-align: center;
    }

    .feature-block.reversed {
        flex-direction: column; /* Keep same order: content top, image bottom on mobile usually */
    }
    
    .feature-content, .feature-visual-wrapper {
        width: 100%;
        padding: 0;
    }
    
    .feature-desc {
        margin: 0 auto;
    }
    
    .feature-visual {
        height: auto;
        min-height: 300px;
        max-width: 100%;
    }

    /* Reorder for mobile: Visual first? Or Content first? 
       Let's keep Content first (default) for better storytelling */
}

/* ========== Mobile & Small Tablets: max-width 768px ========== */
/* ========== Mobile & Small Tablets: max-width 768px ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on mobile */
    }
    
    /* Add safe padding for mobile */
    section {
        padding-inline: clamp(1rem, 4vw, 2rem);
    }

    /* Hero Landing Mobile */
    .hero-landing {
        padding-top: 100px;
    }

    .hero-logo {
        width: min(220px, 80vw);
        margin-bottom: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 1rem;
        max-width: min(400px, 95vw);
    }

    .hero-feature-card {
        padding: 1.2rem 0.8rem;
    }

    .hero-feature-icon {
        width: 40px;
        height: 40px;
    }

    .hero-feature-title {
        font-size: 0.95rem;
    }

    .hero-feature-desc {
        font-size: 0.8rem;
    }

    .cta-button-primary {
        padding: 14px 40px;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        margin-top: 2rem;
    }

    /* Stats */
    .stats-header {
        margin-bottom: 3rem;
    }
    
    .stats-title {
        font-size: 2.2rem;
    }
    
    .stats-subtitle {
        font-size: 0.95rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr; /* Stack stats on mobile */
        gap: 2rem;
    }
    
    .stat-item {
        padding: 2.5rem 1.5rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Add safe spacing for video section */
    .video-wrapper {
        max-width: min(95vw, 600px);
    }
}

/* ========== Very Small Phones: max-width 480px ========== */
/* ========== Very Small Phones: max-width 480px ========== */
@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr; /* Single column on very small screens */
        max-width: min(300px, 90vw);
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .feature-visual {
        min-height: 250px;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
}
