/* ============================================================================
   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;
    /* Modified: 2025-12-25
       Purpose: Improve cross-browser/device compatibility
       Changes: Disabled scroll-snap to prevent section overlap issues on various devices */
    /* 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;
}

:root {
    --nav-h: 80px;
    --hero-logo-w: min(380px, 70vw);
    --hero-section-gap: clamp(0.9rem, 1.8vh, 1.8rem);
    --hero-card-pad-y: clamp(1rem, 1.8vh, 1.6rem);
    --hero-card-pad-x: clamp(0.8rem, 1.2vw, 1.2rem);
}

/* 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: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-right: 3rem;
}

.nav-brand:hover {
    opacity: 0.8;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #111827 !important;
}

.nav-links a.active {
    color: #111827 !important;
    font-weight: 600;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto; /* Pushes to the right end */
}

.lang-switch-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.lang-switch-btn.active {
    color: #111827;
    background: #e5e7eb;
    font-weight: 600;
}

/* ============================================================================
   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
   ============================================================================ */

/* Modified: 2025-12-25
   Purpose: Fix layout overlap between sections on various devices/browsers
   Changes: 
   - Use min-height instead of fixed height for content flexibility
   - Remove scroll-snap-align for better cross-device compatibility
   - Add overflow: hidden to prevent content bleeding into adjacent sections
   - Add padding-block for vertical spacing */
section {
    min-height: 100vh;
    /* height: 100vh; -- Removed to allow content to naturally size */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 4vh, 4rem) 2rem;
    position: relative;
    overflow: hidden;
    /* scroll-snap-align: center; -- Disabled for cross-device compatibility */

    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
   Modified: 2025-12-25 - Removed fixed height for better responsive behavior
   ============================================================================ */
.hero-landing {
    text-align: center;
    padding-top: calc(var(--nav-h) + clamp(0.75rem, 2vh, 1.5rem));
    padding-bottom: clamp(1rem, 2.4vh, 2rem);
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    /* height: 100vh; -- Removed for content flexibility */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
    /* scroll-snap-align: center; -- Disabled */

    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
   Modified: 2025-12-25 - Removed fixed height
   ============================================================================ */
.impact-section {
    background: transparent;
    min-height: 100vh;
    /* height: 100vh; -- Removed */
    /* scroll-snap-align: center; -- Disabled */
}

.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
   Modified: 2025-12-25 - Removed fixed height and scroll-snap
   ============================================================================ */
.final-cta-section {
    min-height: 100vh;
    /* height: 100vh; -- Removed */
    /* scroll-snap-align: center; -- Disabled */
}

.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)
   Modified: 2025-12-25 - Removed fixed height and scroll-snap for cross-device compatibility
   ============================================================================ */
.hero-landing {
    text-align: center;
    padding-top: calc(var(--nav-h) + clamp(0.75rem, 2vh, 1.5rem));
    padding-bottom: clamp(1rem, 2.4vh, 2rem);
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    /* height: 100vh; -- Removed for content flexibility */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
    /* scroll-snap-align: center; -- Disabled for cross-device compatibility */

    /* 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: var(--hero-logo-w);
    max-width: 100%;
    margin-bottom: var(--hero-section-gap);
    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 */
    /* Modified: 2025-12-25 - Further reduced to 2vw for better fit on 1280×720 */
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 var(--hero-section-gap) 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 */
    /* Modified: 2025-12-25 - Further reduced to 0.8vw */
    font-size: clamp(1.1rem, 1rem + 0.8vw, 1.35rem);
    color: #64748b;
    font-weight: 500;
    margin: 0 0 clamp(1rem, 2.4vh, 1.8rem) 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;
    /* Updated: 2026-01-23 - Use 3 columns for 6-card layout (3×2 grid) */
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    max-width: min(1200px, 95vw);
    margin: 0 auto clamp(1rem, 2.6vh, 1.9rem);
    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 */
    /* Modified: 2025-12-25 - Reduced vw coefficients for tighter layout */
    padding: var(--hero-card-pad-y) var(--hero-card-pad-x);
    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-landing.section-visible .hero-feature-card:nth-child(5) {
    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;
}

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

.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 */
    /* Modified: 2025-12-25 - Reduced size for tighter layout */
    width: clamp(48px, 8vw, 60px);
    height: clamp(48px, 8vw, 60px);
    margin: 0 auto 1.1rem;
}

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

.hero-feature-title {
    /* Optimized: 2025-12-22 */
    /* Modified: 2025-12-25 - Reduced size */
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.55rem;
}

.hero-feature-subtitle {
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}


.hero-feature-desc {
    /* Optimized: 2025-12-22 */
    /* Modified: 2025-12-25 - Reduced size */
    font-size: clamp(0.82rem, 1.2vw, 0.95rem);
    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
   Modified: 2025-12-25 - Removed fixed height and scroll-snap
   ============================================================================ */
.impact-section {
    background: transparent;
    min-height: 100vh;
    /* height: 100vh; -- Removed */
    /* scroll-snap-align: center; -- Disabled */

    /* 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 */
    /* Modified: 2025-12-25 - Further reduced to 2vw */
    font-size: clamp(2.2rem, 2rem + 2vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: #1e293b;
    max-width: min(1000px, 90vw);
    margin: 0 auto;
}

/* ============================================================================
   Video Demo Section
   Modified: 2025-12-25 - Fixed layout overlap with Stats Section
   Modified: 2025-12-25 - Reduce section height for multi-device compatibility
   ============================================================================ */
.video-demo-section {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
    /* min-height: 100vh; -- Removed to allow content-driven height */
    /* height: 100vh; -- Removed to prevent overlap */
    /* scroll-snap-align: center; -- Disabled */
    padding-top: 3rem;
    padding-bottom: 2.5rem;

    /* 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 */
    /* Modified: 2025-12-25 - Further reduced to 1.5vw */
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.65rem;
    color: #0f172a;
    line-height: 1.2;
}

.feature-desc {
    /* Optimized: 2025-12-22 */
    /* Modified: 2025-12-25 - Reduced to 0.4vw */
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    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
   Modified: 2025-12-25 - Fixed layout overlap with Video Demo 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; -- Removed to prevent overlap */
    /* scroll-snap-align: center; -- Disabled */
    padding-top: 6rem;
    padding-bottom: 6rem;

    /* 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 */
    /* Modified: 2025-12-25 - Reduced padding coefficients */
    padding: clamp(2rem, 3.5vw, 2.8rem) clamp(1.5rem, 2.5vw, 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
   Modified: 2025-12-25 - Removed fixed height */
.final-cta-section {
    min-height: 100vh;
    /* height: 100vh; -- Removed */
    /* scroll-snap-align: center; -- Disabled */
    padding-top: 4rem;
    padding-bottom: 4rem;

    /* 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(3, 1fr);
        max-width: 700px;
        gap: 1rem;
    }

    .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;
    }

    /* Modified: 2025-12-25 - Add spacing between Stats and Video sections on compact screens */
    .video-demo-section {
        margin-top: 4rem;
    }
}

/* ========== 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);
    }
}

/* ========== Compact Desktop Screens (1280×720 etc.): 1280px-1440px + max-height ========== */
/* Modified: 2025-12-25 - Add spacing for compact height screens */
@media (min-width: 1280px) and (max-width: 1440px) and (max-height: 800px) {
    .stats-section {
        padding-bottom: 4rem;
    }

    .video-demo-section {
        margin-top: 5rem;
        padding-top: 4rem;
    }
}

/* ========== Height-Aware Desktop Optimization (Robust V2) ========== */
/* Target: Laptops & Short Desktops (Covers 1366x768, 1920x1080@150%, etc.) */
/* Relaxed width to 768px to ensure it hits split-screen/narrow browser windows */
@media (min-width: 768px) and (max-height: 900px) {
    :root {
        /* Dramatically reduce logo size to save vertical space */
        --hero-logo-w: min(240px, 40vw);
        /* Use VH units for gaps to scale with window height */
        --hero-section-gap: 1.5vh;
        /* Compact card padding */
        --hero-card-pad-y: 1.2vh;
        --hero-card-pad-x: 0.8rem;
    }

    /* 1. Tighten the container vertical spacing */
    .hero-landing {
        /* Minimum clearance from navbar */
        padding-top: calc(var(--nav-h) + 1vh);
        padding-bottom: 1vh;
        /* Ensure we use flex distribution if space allows, otherwise stack safely */
        justify-content: flex-start;
    }

    /* 2. Compress Fonts & Margins */
    .hero-main-title {
        /* Smaller title for short screens */
        font-size: clamp(1.8rem, 4vh, 2.4rem);
        line-height: 1.1;
        margin-bottom: 1vh;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 2vh, 1rem);
        margin-bottom: 2vh;
    }

    /* 3. Optimize the Grid */
    .hero-features {
        /* Reduce max-width to allow grid to be more compact horizontally too */
        max-width: min(1000px, 92vw);
        /* Vertical gap proportional to screen height */
        gap: 1.5vh clamp(0.5rem, 1vw, 1.5rem);
        margin-bottom: 2vh;
    }

    /* 4. Optimize Card Internals (Crucial for space) */
    .hero-feature-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Ensure card height doesn't bloat */
        min-height: 0; 
    }

    .hero-feature-icon {
        /* Smaller icons */
        width: clamp(32px, 5vh, 44px);
        height: clamp(32px, 5vh, 44px);
        margin-bottom: 0.8vh;
    }

    .hero-feature-title {
        font-size: 0.85rem;
        margin-bottom: 0.4vh;
    }

    .hero-feature-subtitle {
        font-size: 0.6rem;
        margin-bottom: 0.4vh;
    }

    .hero-feature-desc {
        font-size: 0.75rem;
        line-height: 1.3;
        /* Optional: slightly tighter text */
        letter-spacing: -0.01em;
    }

    /* 5. Button & Extras */
    .cta-button-primary {
        padding: 10px 32px;
        font-size: 0.9rem;
        /* Reduce shadow/transform to feel lighter */
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }

    /* Hide scroll indicator entirely on short screens to avoid clutter */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Extra safety: if screen is REALLY short (< 700px), shrink logo further */
    @media (max-height: 700px) {
        :root {
            --hero-logo-w: min(180px, 30vw);
        }
        .hero-main-title {
            font-size: 1.6rem;
        }
        .hero-landing {
            padding-top: calc(var(--nav-h) + 0.5vh);
        }
    }
}

@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) {
    .navbar {
        grid-template-columns: 1fr auto;
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 0.95rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile */
    }

    .lang-switch {
        margin-left: 0;
        justify-self: end;
    }

    /* 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-demo-section {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .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;
    }
}