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

:root {
    /* Enterprise Trust Color Palette - Deep Navy Blue & Electric Blue/Teal */
    /* Primary: Deep Navy Blue (stability, security, professionalism) */
    --primary-color: #0a1929;
    --primary-dark: #05101a;
    --primary-light: #1a2f4a;
    --primary-accent: #1e3a5f;
    
    /* Secondary: Electric Blue & Teal (technology, calm, trust) */
    --secondary-color: #0066cc;
    --secondary-light: #0080ff;
    --teal-accent: #14b8a6;
    --teal-light: #2dd4bf;
    --electric-blue: #3b82f6;
    
    /* Accent Colors for CTAs */
    --cta-primary: #0066cc;
    --cta-hover: #0052a3;
    --cta-teal: #14b8a6;
    --cta-teal-hover: #0d9488;
    
    /* Legacy support (keeping for backward compatibility) */
    --accent-color: #14b8a6;
    --accent-secondary: #0066cc;
    --accent-tertiary: #3b82f6;
    
    /* Text Colors - High Contrast for Readability */
    --text-primary: #0a1929;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --text-on-dark: #ffffff;
    
    /* Background Colors - Clean & Spacious */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0a1929;
    --bg-navy: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-dark: rgba(10, 25, 41, 0.95);
    
    /* Enterprise Gradients - Professional & Trustworthy */
    --gradient-1: linear-gradient(135deg, #0a1929 0%, #1e3a5f 50%, #0066cc 100%);
    --gradient-2: linear-gradient(135deg, #0066cc 0%, #14b8a6 100%);
    --gradient-3: linear-gradient(180deg, rgba(10, 25, 41, 0.05) 0%, rgba(0, 102, 204, 0.03) 50%, rgba(20, 184, 166, 0.02) 100%);
    --gradient-4: linear-gradient(45deg, #0a1929, #1e3a5f, #0066cc);
    --gradient-5: radial-gradient(circle at 30% 50%, rgba(10, 25, 41, 0.08), rgba(0, 102, 204, 0.05), transparent 70%);
    --gradient-hero: linear-gradient(135deg, #0a1929 0%, #1e3a5f 40%, #0066cc 100%);
    
    /* Enterprise Shadows - Subtle & Professional */
    --shadow-sm: 0 1px 3px rgba(10, 25, 41, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 25, 41, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(10, 25, 41, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(10, 25, 41, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 30px 70px rgba(10, 25, 41, 0.18), 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-trust: 0 8px 24px rgba(0, 102, 204, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Trust-focused Glows - Subtle & Professional */
    --glow-primary: 0 0 20px rgba(0, 102, 204, 0.3), 0 0 40px rgba(0, 102, 204, 0.15);
    --glow-secondary: 0 0 30px rgba(20, 184, 166, 0.3), 0 0 60px rgba(20, 184, 166, 0.15);
    --glow-accent: 0 0 40px rgba(0, 102, 204, 0.4), 0 0 80px rgba(20, 184, 166, 0.2);
    --glow-trust: 0 0 30px rgba(0, 102, 204, 0.25), 0 0 60px rgba(20, 184, 166, 0.15);
    
    /* Border Colors - Navy & Blue */
    --border-light: rgba(10, 25, 41, 0.15);
    --border-medium: rgba(10, 25, 41, 0.25);
    --border-strong: rgba(10, 25, 41, 0.4);
    --border-blue: rgba(0, 102, 204, 0.3);
    --border-teal: rgba(20, 184, 166, 0.3);
    
    /* Glassmorphism - Enterprise Grade */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(10, 25, 41, 0.12);
    --glass-dark-bg: rgba(10, 25, 41, 0.95);
    --glass-dark-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
    /* Enhanced smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
}

* {
    scroll-behavior: smooth;
}

/* Smooth scrolling for all scrollable elements */
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: smooth;
}

/* Smooth scroll for programmatic scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        scroll-behavior: smooth;
    }
}

html {
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent iOS Safari from zooming on input focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Font display optimization for faster text rendering */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Enterprise-grade subtle background - increased whitespace feel */
    background-image: 
        radial-gradient(at 20% 30%, rgba(10, 25, 41, 0.03) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 102, 204, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(20, 184, 166, 0.02) 0px, transparent 50%);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    position: relative;
    letter-spacing: -0.01em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(10, 25, 41, 0.01) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 102, 204, 0.01) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mobile-first container padding */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Extra small devices (iPhone SE, small Android) */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-content {
        padding: 8px 0;
        gap: 4px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
}

/* Navigation - Enterprise Grade Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    will-change: box-shadow, background;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-bottom: 1px solid var(--border-medium);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .nav-content {
        gap: 8px;
        padding: 10px 0;
        width: 100%;
        overflow: hidden;
        min-height: 56px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    z-index: 1001;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-right: 0;
}

@media (max-width: 768px) {
    .logo {
        gap: 6px;
        font-size: 18px;
        flex: 0 0 auto;
        min-width: 0;
        max-width: calc(100% - 60px);
        overflow: hidden;
    }
}

.logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(10, 25, 41, 0.2));
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(10, 25, 41, 0.3));
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-image {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo {
        gap: 4px;
        max-width: calc(100% - 50px);
    }
    
    .nav-content {
        padding: 8px 0;
        gap: 6px;
        min-height: 52px;
    }
    
    .navbar {
        min-height: 52px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
    }
}

.footer .logo-image {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    margin-left: 0;
    /* Reserve space to prevent layout shift */
    min-height: 40px; /* Reserve space for navigation items */
    contain: layout style;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    min-width: 200px;
    max-width: 220px;
    width: auto;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none;
}

/* Desktop: Ensure dropdown is hidden by default */
@media (min-width: 769px) {
    .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: transparent;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        pointer-events: none;
    }
    
    .dropdown-menu.mobile-open {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px;
        padding: 8px 0;
        margin: 8px 0 0 0;
        pointer-events: auto;
    }
    
    .dropdown-menu a {
        padding: 12px 16px;
        color: var(--text-secondary);
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-top: -5px;
    position: relative;
    z-index: 10;
}

/* Ensure user menu is visible when logged in on desktop */
@media (min-width: 769px) {
    .navbar .user-menu[style*="display: flex"],
    .navbar .user-menu[style*="display:flex"] {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure user menu is visible when user is logged in */
.navbar .user-menu[style*="display: flex"],
.navbar .user-menu[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-menu .user-initials-circle {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1;
    text-align: center;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
}

.user-menu .btn-nav {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 10px;
    min-height: 32px;
}

/* CRITICAL: Override any small button styles for login button specifically */
.navbar .nav-menu .login-btn button.btn-nav,
.navbar .login-btn button.btn-nav {
    font-size: 15px !important;
    padding: 10px 24px !important;
    min-height: 40px !important;
    font-weight: 600 !important;
    min-width: 100px !important;
}

/* Login button - visible by default, JavaScript will hide when logged in */
.navbar .login-btn {
    display: block !important;
    margin-left: 12px;
    flex-shrink: 0;
    align-items: center;
    list-style: none;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

/* Ensure login button is visible on desktop */
@media (min-width: 769px) {
    .navbar .login-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* CRITICAL: Login button sizing - must override all other rules */
.navbar .login-btn button,
.navbar .nav-menu .login-btn button,
.navbar .nav-menu li.login-btn button,
.navbar .login-btn button.btn-nav {
    margin: 0 !important;
    padding: 10px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    min-height: 40px !important;
    height: auto !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 100px !important;
    box-sizing: border-box !important;
    background: var(--primary-dark) !important;
    color: white !important;
    border-radius: 6px !important;
    line-height: 1.5 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cta-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary-dark);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    border: none;
    cursor: pointer;
    min-height: 36px;
    min-width: 80px;
    -webkit-tap-highlight-color: rgba(10, 25, 41, 0.2);
    touch-action: manipulation;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
}

/* Enterprise "Book Meeting" Button - Prominent CTA */
.btn-book-meeting {
    background: var(--cta-primary);
    color: white !important;
    padding: 14px 12px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2);
    touch-action: manipulation;
}

.btn-book-meeting:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-book-meeting:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.cart-icon-wrapper {
    position: relative;
}

#homePageCartBadge {
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    display: none;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

#cartToggleBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    font-size: 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
}

#cartToggleBtn:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#cartToggleBtn:active {
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
    z-index: 1001;
    position: relative;
    order: 2;
    flex-shrink: 0;
    /* Optimize for mobile responsiveness */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.1s ease;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-toggle:active {
    transform: scale(0.95) translateZ(0);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
}

.mobile-menu-toggle.active span {
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
    /* Reserve space to prevent layout shift */
    box-sizing: border-box;
    /* Prevent layout shifts during content changes */
    contain: layout style paint;
    /* Reserve minimum height to prevent shifts during content load */
    height: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out;
    /* will-change removed to prevent flashing - animation handles optimization */
    transform: translateZ(0);
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    /* Reduce animation intensity */
    animation-fill-mode: both;
    /* Prevent layout shifts */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: var(--gradient-1);
    top: -300px;
    right: -300px;
    opacity: 0.4;
    filter: blur(120px);
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-2);
    bottom: -250px;
    left: -250px;
    animation-delay: -5s;
    opacity: 0.35;
    filter: blur(100px);
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.3;
    filter: blur(90px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) translateZ(0);
    }
    33% {
        transform: translate(15px, -15px) scale(1.05) translateZ(0);
    }
    66% {
        transform: translate(-10px, 10px) scale(0.95) translateZ(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    min-height: 650px;
    /* Reserve space to prevent layout shift */
    width: 100%;
    box-sizing: border-box;
    /* Prevent layout shifts during content changes */
    contain: layout style paint;
    /* Ensure grid doesn't recalculate on content load */
    grid-auto-rows: min-content;
    /* Enterprise-grade spacing */
    padding: 0 24px;
}

.hero-content .hero-text {
    min-width: 0; /* Allow text to shrink */
    overflow: visible;
}

.hero-content .hero-visual {
    min-width: 0; /* Allow shrinking on mobile */
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.hero-text {
    /* Prevent flash during initialization */
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
    /* Prevent layout thrashing */
    contain: layout style paint;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden; /* Prevent overflow from causing shifts */
    min-width: 0;
    width: 100%;
    max-width: 100%;
    /* Reserve space to prevent layout shift - increased for longest title */
    min-height: 2.6em; /* Reserve space for title + dynamic text (longest: "10X Faster Software Development") */
    height: auto; /* Allow natural height but with min-height constraint */
}

.hero-title-prefix {
    color: var(--text-primary);
    font-weight: 800;
    white-space: normal;
    flex-shrink: 0;
    line-height: 1.2;
    padding-top: 0;
    font-size: 42px;
    display: block;
    width: 100%;
    word-wrap: break-word;
}

.hero-title-dynamic {
    display: block;
    position: relative;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 200px;
    min-height: 1.5em; /* Reserve space for longest title to prevent layout shift */
    /* Height will be auto but constrained by min-height */
    width: 100%;
    max-width: 100%;
    line-height: 1.15;
    white-space: normal; /* Allow wrapping on mobile */
    overflow: hidden; /* Hide overflow to maintain fixed height */
    word-wrap: break-word;
    font-size: clamp(36px, 5vw, 56px); /* Responsive font size that shrinks for longer text */
    /* Reserve space for longest title - JS will set min-width */
    /* Prevent font loading shifts - font-display is set at @font-face level */
}

.typing-text {
    display: inline-block;
    white-space: normal; /* Allow wrapping on mobile */
    max-width: 100%;
    overflow: hidden; /* Hide overflow to prevent layout shift */
    word-wrap: break-word;
    font-size: inherit; /* Inherit from parent to allow dynamic sizing */
    min-width: 0; /* Allow shrinking if needed, but JS will set min-width for longest title */
    vertical-align: top; /* Align to top to prevent baseline shifts */
    /* Reserve space will be set by JavaScript based on longest title */
    min-height: 1.2em; /* Reserve minimum height */
}

/* Adjust font size for longer titles */
.hero-title-dynamic.long-text {
    font-size: clamp(24px, 3.8vw, 36px);
    min-height: 1.5em; /* Maintain same min-height to prevent shift */
}

.typing-cursor {
    display: inline-block;
    width: 4px;
    min-width: 4px; /* Always reserve space */
    height: 0.9em;
    min-height: 0.9em; /* Always reserve space */
    background: var(--cta-primary);
    margin-left: 6px;
    animation: blink 1s infinite;
    vertical-align: baseline;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.4);
    opacity: 1; /* Always visible to reserve space - animation handles visibility */
    visibility: visible; /* Always visible to reserve space */
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    opacity: 0.6;
}

.gradient-text {
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
    min-height: 2em; /* Prevent layout shift during transitions */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    max-width: 600px;
    letter-spacing: -0.01em;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hero-trust-badge:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--teal-accent);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.trust-text {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-market-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 2px solid var(--border-medium);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-market-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    transition: left 0.6s ease;
    z-index: 0;
}

.hero-market-message:hover::before {
    left: 100%;
}

.hero-market-message:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xl), var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
}

.market-message-text {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.market-message-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
}

.btn-primary {
    background: var(--cta-primary);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 52px;
    padding: 16px 32px;
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.4);
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

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

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

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-medium);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    padding: 16px 32px;
    -webkit-tap-highlight-color: rgba(10, 25, 41, 0.4);
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary > * {
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.hero-delivery-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: rgba(0, 102, 204, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hero-delivery-badge:hover {
    transform: translateX(4px);
    border-color: rgba(0, 102, 204, 0.35);
    box-shadow: var(--shadow-md);
    background: rgba(0, 102, 204, 0.08);
}

.delivery-icon {
    font-size: 32px;
    line-height: 1;
    animation: pulse 2s infinite ease-in-out;
    /* will-change removed to prevent flashing */
    transform: translateZ(0);
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    color: #f59e0b;
    /* Make icons less colorful - use amber theme for delivery */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(30deg) saturate(300%);
}

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

.delivery-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.delivery-text span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Trust Badges Section - Technology Logos */
.hero-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.trust-badges-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.trust-badges-grid {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    height: 32px;
}

.trust-badge-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.trust-badge-item img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Scroll Animations - Fade In on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up.visible {
    opacity: 1;
}

/* Stagger animation delays for multiple elements */
.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}

/* Glassmorphism Card for Hero Visual */
.hero-visual-glass {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow), var(--shadow-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-visual-glass:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl), var(--glow-trust);
    border-color: var(--border-blue);
}

/* Hero Visual - Image Slider */
.hero-visual {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 650px;
    min-width: 500px;
    max-width: 650px;
    /* Prevent flash during initialization */
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
    /* Prevent layout thrashing */
    contain: layout style paint;
    flex-shrink: 0;
    flex-grow: 0;
    /* Reserve space with aspect ratio to prevent layout shift (650px height, ~500-650px width) */
    aspect-ratio: 1 / 1.3; /* Approximate ratio for 500-650px width to 650px height */
}

.image-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0; /* Allow shrinking on mobile - will be set to 500px on larger screens via media query */
    min-height: 650px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    transform: translateZ(0);
    /* will-change: contents; - removed to prevent flashing */
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    /* Prevent flash during initialization */
    opacity: 1;
    visibility: visible;
    flex-shrink: 0;
}

/* Set min-width for larger screens */
@media (min-width: 769px) {
    .image-slider-container {
        min-width: 500px;
    }
    
    .hero-content .hero-visual {
        min-width: 500px;
    }
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateZ(0);
    /* will-change: transform; - removed to prevent flashing, only set when animating */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
    /* will-change removed to prevent flashing - only set during transition */
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
    /* will-change removed - only set during transition */
}

/* Only set will-change during active transition */
.slide.active.transitioning {
    will-change: opacity, transform;
}

.slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    /* Reserve space with aspect ratio to prevent layout shift (1300x650 = 2:1) */
    aspect-ratio: 2 / 1;
    min-height: 0; /* Allow aspect-ratio to control height */
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 15s ease;
    /* will-change removed to prevent flashing - only set when active */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    display: block; /* Remove inline spacing */
    /* Reserve space with aspect ratio to prevent layout shift (1300x650 = 2:1) */
    aspect-ratio: 2 / 1;
}

.slide.active .slide-image {
    transform: scale(1.02);
    /* Only set will-change when slide is active and image is scaling */
    will-change: transform;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
    z-index: 1;
}

.slide-feature-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 20px rgba(124, 58, 237, 0.3);
    animation: slideInRight 0.8s ease-out 0.5s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-icon {
    font-size: 32px;
    line-height: 1;
    animation: pulse 2s infinite ease-in-out;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-text span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-brand-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    padding: 32px 48px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 2px solid rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.4);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    /* Prevent flash */
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: pulseLogo 2s ease-in-out infinite;
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
    }
}

.brand-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive: Image brand overlay on mobile */
@media (max-width: 768px) {
    .image-brand-overlay {
        padding: 24px 32px;
        max-width: 90%;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brand-tagline {
        font-size: 16px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 80px;
    padding: 32px 40px;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide.active .slide-content {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.slide-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 12px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-lg);
}

.slider-btn {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
    touch-action: manipulation;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-primary);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(124, 58, 237, 0.6);
    transform: scale(1.2);
}

.dot.active {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    box-shadow: var(--glow-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-3);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    opacity: 0.7;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

/* Initial state for animated elements - prevents flash */
.feature-card:not(.animate-on-scroll) {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--gradient-1);
    background-size: 200% 200%;
    border-radius: 24px;
    border: 2px solid var(--border-light);
    margin: 0 auto 24px;
    color: white;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: gradient-shift 8s ease infinite;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 4s linear infinite;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg), var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: var(--border-strong);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

    .feature-card p {
        color: var(--text-secondary);
        line-height: 1.7;
    }
    
    /* Mobile: Collapsible feature cards with shorter descriptions */
    @media (max-width: 768px) {
        .feature-card {
            position: relative;
        }
        
        .feature-card p {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 4.5em;
            line-height: 1.5;
        }
        
        .feature-card.expanded p {
            display: block;
            -webkit-line-clamp: unset;
            max-height: none;
        }
        
        .feature-card .mobile-expand-btn {
            display: inline-block;
            margin-top: 8px;
            padding: 6px 12px;
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            opacity: 0.8;
        }
        
        .feature-card .mobile-expand-btn:hover,
        .feature-card .mobile-expand-btn:active {
            background: var(--primary-color);
            color: white;
            opacity: 1;
        }
        
        .feature-card .mobile-expand-btn.hidden {
            display: none;
        }
    }

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Initial state for animated elements - prevents flash */
.step:not(.animate-on-scroll) {
    opacity: 1;
    transform: translateY(0);
}

.step.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    flex-shrink: 0;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    padding-right: 0;
    color: var(--text-primary);
}

    .step-content p {
        color: var(--text-secondary);
        line-height: 1.7;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
        margin-bottom: 16px;
    }
    
    /* Mobile: Collapsible step content */
    @media (max-width: 768px) {
        .step-content p {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 4.5em;
        }
        
        .step-content.expanded p {
            display: block;
            -webkit-line-clamp: unset;
            max-height: none;
        }
        
        .step-content .mobile-expand-btn {
            display: inline-block;
            margin-top: 8px;
            padding: 6px 12px;
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            opacity: 0.8;
        }
        
        .step-content .mobile-expand-btn:hover,
        .step-content .mobile-expand-btn:active {
            background: var(--primary-color);
            color: white;
            opacity: 1;
        }
        
        .step-content .mobile-expand-btn.hidden {
            display: none;
        }
    }

.step {
    position: relative;
    padding-top: 40px;
}

.step-content {
    position: relative;
    flex: 1;
    padding-right: 100px;
}

.step-time {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--glow-primary);
    white-space: nowrap;
    z-index: 1;
}

.step-requirement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 16px;
}

.requirement-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.step-requirement span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-requirement strong {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-highlight {
    margin: 48px 0;
    padding: 24px;
    background: var(--gradient-3);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.2);
}

.timeline-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.timeline-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    animation: bounce 2s infinite ease-in-out;
    /* Use contain to prevent layout thrashing */
    contain: layout style paint;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    /* Make icons less colorful - use amber theme for timeline */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(30deg) saturate(300%);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.process-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 48px;
    padding: 24px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.note-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    /* Make icons less colorful - use amber theme for notes */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(30deg) saturate(300%);
}

.process-note div {
    flex: 1;
}

.process-note strong {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
}

.process-note div {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Architecture Section */
.architecture {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.architecture .section-title {
    color: #1f2937;
}

.architecture .section-subtitle {
    color: #6b7280;
    text-shadow: none;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 64px;
    align-items: start;
}

.architecture-text h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.architecture-intro {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 40px;
}

.architecture-process {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.arch-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.arch-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    /* Make icons less colorful - use blue theme for architecture */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(200deg) saturate(300%);
}

.arch-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.arch-content p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
}

.architecture-benefits {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.architecture-benefits h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.benefits-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.benefits-grid li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #6b7280;
    line-height: 1.6;
    padding: 12px;
    border-left: 2px solid rgba(124, 58, 237, 0.3);
}

.benefits-grid li strong {
    color: #111827 !important; /* Darker color for better contrast - WCAG AA compliant (4.5:1 on white) */
    font-weight: 700;
    padding-left: 16px;
}

/* Ensure architecture-benefits strong tags have sufficient contrast on all devices */
.architecture-benefits .benefits-grid li strong {
    color: #111827 !important; /* Darker color for better contrast - WCAG AA compliant (4.5:1 on white) */
    font-weight: 700;
}

/* Technical Details Collapsible Sections */
.technical-details-collapsible {
    margin-top: 24px;
}

.learn-more-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.learn-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.learn-more-btn[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

.learn-more-btn .btn-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.technical-content {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    animation: slideDown 0.3s ease;
}

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

.technical-content p {
    margin-bottom: 16px;
}

.architecture-diagram {
    position: sticky;
    top: 100px;
}

.diagram-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.diagram-container h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #1f2937;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.flow-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.flow-icon {
    width: 56px;
    height: 56px;
    background: var(--text-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-md);
    color: white;
    /* Make icons less colorful - use gray theme for flow diagram */
    filter: grayscale(100%) brightness(0.9);
}

.flow-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.flow-arrow {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.diagram-model {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    margin-top: 32px;
}

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

.model-item .flow-icon {
    width: 72px;
    height: 72px;
    font-size: 36px;
    background: var(--text-secondary);
}

.diagram-note {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 20px;
    font-style: italic;
}

/* Software Development Section */
.software-development {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.software-development-content {
    margin-top: 64px;
}

.software-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.software-intro h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.software-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.software-value-proposition {
    margin-top: 32px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 16px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(124, 58, 237, 0.25);
    transition: all 0.3s ease;
}

.software-value-proposition:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.35);
}

.value-proposition-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.value-proposition-text strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.software-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.software-benefit-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.software-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(124, 58, 237, 0.4);
}

.software-benefit-card .benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    margin: 0 auto 20px;
    color: #8b5cf6;
    /* Make icons less colorful - use purple theme for software benefits */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(260deg) saturate(300%);
}

.software-benefit-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.software-benefit-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.software-process {
    margin-top: 64px;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.software-process h4 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

.process-step .step-info h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.process-step .step-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        min-height: 3em;
        margin-bottom: 24px;
    }
    
    .hero-title-prefix {
        font-size: 36px;
        white-space: normal;
        min-height: 1.3em;
    }
    
    .hero-title-dynamic {
        white-space: normal;
        overflow: hidden;
        min-height: 2em;
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .typing-text {
        white-space: normal;
        overflow: hidden;
        min-height: 1.3em;
    }
    
    .hero-subtitle {
        font-size: 18px;
        min-height: 2.8em;
        margin-bottom: 32px;
        max-width: 100%;
    }
    
    .hero-cta {
        min-height: 56px;
        margin-bottom: 32px;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust-badges {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .trust-badges-grid {
        gap: 20px;
        justify-content: center;
    }
    
    .trust-badge-item {
        height: 28px;
    }
    
    .btn-book-meeting {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .nav-content {
        padding: 12px 16px;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .software-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .software-process {
        padding: 32px 24px;
    }
}

/* Machine Learning Section */
.machine-learning {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.machine-learning-content {
    margin-top: 64px;
}

.ml-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.ml-intro h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.ml-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.ml-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.ml-benefit-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.ml-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(124, 58, 237, 0.4);
}

.ml-benefit-card .benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    margin: 0 auto 20px;
    color: #8b5cf6;
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(260deg) saturate(300%);
}

.ml-benefit-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.ml-benefit-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ml-detailed-content {
    margin-top: 48px;
}

.ml-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.ml-detail-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-sm);
}

.ml-detail-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.ml-detail-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ml-detail-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ml-detail-item ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.ml-detail-item li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ml-detail-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ml-detail-item em {
    font-style: italic;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .ml-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ml-details-grid {
        grid-template-columns: 1fr;
    }
    
    .ml-detail-item {
        padding: 24px;
    }
}

/* AI Agent Demos Section */
.agent-demos {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.demo-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

/* AI Web Products Section */
.aiweb-products {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 64px;
    width: 100%;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.product-card .product-icon,
.product-card h3,
.product-card p,
.product-card .product-pricing,
.product-card .btn {
    padding-left: 32px;
    padding-right: 32px;
}

.product-card .product-image {
    padding: 0;
    margin: 0;
}

.product-card h3 {
    padding-top: 20px;
    margin-bottom: 12px;
}

.product-card p {
    margin-bottom: 20px;
}

.product-card .product-pricing {
    margin: 20px 0;
}

.product-card .btn {
    margin: 0 32px 32px 32px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(124, 58, 237, 0.5);
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.product-image img,
.product-image-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image-wrapper .product-image-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-image-wrapper .product-image-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    /* Ensure video frames are crisp */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.product-image-wrapper:hover .product-image-video {
    opacity: 1;
}

.product-image-wrapper:hover .product-image-static {
    opacity: 0;
}

.product-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.product-image-wrapper {
    cursor: pointer;
    position: relative;
}

.product-image-wrapper:hover .product-video-overlay {
    opacity: 1;
}

.product-video-overlay .play-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.product-video-overlay .play-text {
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 50%;
}

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.product-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.product-pricing {
    margin: 20px 0;
    padding: 16px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.product-monthly {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.product-card.integration {
    border-color: rgba(251, 191, 36, 0.3);
}

.product-card.integration::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.product-card.integration:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.package-discount-banner {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    text-align: center;
}

.discount-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.discount-icon {
    font-size: 48px;
}

.discount-text h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 24px;
}

.discount-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading-products {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Industry Grid Section - Professional Styling Matching Product Cards */
.industry-grid-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.industry-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 32px !important;
    margin-top: 64px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .industry-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.industry-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(124, 58, 237, 0.5);
    text-decoration: none;
    color: inherit;
}

.industry-icon-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.industry-icon {
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.industry-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
}

.industry-card:hover .industry-icon-image {
    transform: scale(1.05);
}

.industry-card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.industry-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-top: 0;
}

.industry-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.demo-agent-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.demo-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.demo-agent-card:hover::before {
    transform: scaleX(1);
}

.demo-agent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(124, 58, 237, 0.5);
}

.agent-icon-wrapper {
    font-size: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-radius: 24px;
    border: 2px solid rgba(16, 185, 129, 0.4);
    margin: 0 auto 20px;
    color: #10b981;
    /* Make icons less colorful - use teal/green theme for agents */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(140deg) saturate(300%) drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

.demo-agent-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.demo-agent-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.demo-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    width: 100%;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
    touch-action: manipulation;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 99999 !important;
    font-family: 'Inter', sans-serif;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: auto !important;
    /* Prevent layout shifts but allow pointer events */
    contain: layout style;
    overflow: visible !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: auto !important;
}

.chat-widget-toggle {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    border: 2px solid rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4), 0 0 20px rgba(124, 58, 237, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    will-change: auto !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    /* Prevent flash on initialization but allow pointer events */
    contain: layout style !important;
    pointer-events: auto !important;
    z-index: 100000 !important;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
    touch-action: manipulation;
}

.chat-widget-toggle .chat-icon-text {
    font-size: 32px !important;
    line-height: 1 !important;
    display: block !important;
    user-select: none !important;
    pointer-events: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Prevent flash */
    will-change: auto !important;
    color: white !important;
    /* Make icons less colorful - use white theme for chat toggle */
    filter: grayscale(100%) brightness(1.2) !important;
}

.chat-widget-toggle svg {
    width: 28px !important;
    height: 28px !important;
    display: none !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
    fill: none !important;
}

.chat-widget-toggle svg.hidden {
    display: none !important;
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-primary), 0 0 30px rgba(124, 58, 237, 0.5);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--bg-primary);
}

.chat-welcome-message {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 260px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: none;
    opacity: 0;
    transform: translateY(10px) translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.chat-welcome-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0) translateZ(0);
    pointer-events: all;
    animation: welcomeSlideIn 0.4s ease;
    will-change: transform, opacity;
}

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

.chat-welcome-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}

.chat-welcome-message p {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.chat-welcome-message .welcome-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.chat-welcome-message .welcome-close:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-color);
}

.chat-widget-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: none;
    visibility: hidden;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) translateZ(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99998;
    pointer-events: none;
    /* Prevent layout shifts */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

.chat-widget.active .chat-widget-container {
    display: flex !important;
    visibility: visible !important;
    transform: translateY(0) translateZ(0) !important;
    opacity: 1 !important;
    will-change: auto;
    pointer-events: auto !important;
}

.chat-widget-header {
    background: var(--bg-secondary);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.chat-widget-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-widget-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    padding: 4px;
    overflow: hidden;
}

.chat-widget-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.chat-widget-header-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.chat-widget-header-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.chat-widget-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
    touch-action: manipulation;
}

.chat-widget-close:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-color);
}

.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
}

.chat-widget-message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-widget-message.user {
    flex-direction: row-reverse;
}

.chat-widget-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-widget-message.user .chat-widget-message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-widget-message.assistant .chat-widget-message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.chat-widget-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.chat-widget-input-area input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.chat-widget-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.chat-widget-send-btn {
    width: 44px;
    height: 44px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.3);
    touch-action: manipulation;
    pointer-events: auto;
}

.chat-widget-send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.chat-widget-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-widget-typing {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    width: fit-content;
}

.chat-widget-typing span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-widget-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-widget-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 16px;
        z-index: 99999 !important;
    }
    
    .chat-widget-container {
        width: calc(100vw - 32px);
        max-width: 380px;
        bottom: 136px;
        right: 0;
        max-height: calc(100vh - 200px);
        position: fixed !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
    }
    
    .chat-widget.active .chat-widget-container {
        display: flex !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    .chat-widget-input-area {
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        z-index: 100000 !important;
        background: var(--bg-secondary);
        border-top: 1px solid rgba(124, 58, 237, 0.2);
        flex-shrink: 0;
    }
    
    .chat-widget-input-area input {
        font-size: 16px !important;
        padding: 12px 14px;
        min-height: 44px;
    }
    
    .chat-widget-send-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        z-index: 100001 !important;
        position: relative;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .chat-widget-messages {
        max-height: calc(100vh - 250px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chat-widget-toggle {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        bottom: 20px !important;
        right: 20px !important;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .chat-widget-close {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 32px !important;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .chat-widget-header {
        padding: 16px 20px !important;
    }
    
    .chat-welcome-message {
        width: calc(100vw - 80px);
        max-width: 260px;
        bottom: 136px;
    }
    
    /* Ensure chat widget is above everything on mobile */
    .chat-widget * {
        pointer-events: auto;
    }
}

/* Chat Modal */
.chat-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.chat-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.chat-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.chat-modal.active .chat-container {
    transform: scale(1);
}

/* Mobile: Smaller, friendlier chat modal */
@media (max-width: 768px) {
    .chat-modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    
    .chat-container {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 85vh !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .chat-modal.active .chat-container {
        transform: translateY(0) !important;
        scale: 1 !important;
    }
}

.chat-header {
    background: var(--bg-secondary);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .chat-header {
        padding: 16px 20px;
    }
    
    .chat-agent-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 32px !important;
    }
    
    .chat-header-info h3 {
        font-size: 18px !important;
    }
    
    .chat-header-info p {
        font-size: 12px !important;
    }
    
    .chat-close-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 28px !important;
    }
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-agent-icon {
    font-size: 40px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    color: white;
    /* Make icons less colorful - use purple theme for chat agent */
    filter: grayscale(100%) brightness(0.9) sepia(100%) hue-rotate(240deg) saturate(250%);
}

.chat-header-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.chat-header-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.chat-close-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    max-height: calc(90vh - 200px);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .chat-messages {
        padding: 16px;
        gap: 12px;
        min-height: 200px;
        max-height: calc(85vh - 180px);
    }
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.chat-message.agent .message-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px 16px 16px 4px;
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 4px 16px;
    box-shadow: var(--glow-primary);
}

.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-primary);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-family: inherit;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-text-fill-color: var(--text-primary) !important;
    opacity: 1 !important;
    caret-color: var(--primary-color);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), var(--glow-primary);
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    opacity: 1 !important;
}

.chat-input-area input::placeholder {
    color: var(--text-light);
}

.send-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
}

.send-btn:active {
    transform: scale(0.95);
}

/* Mobile: Larger, easier-to-click send button */
@media (max-width: 768px) {
    .chat-input-area {
        padding: 16px;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: var(--bg-secondary);
        border-top: 2px solid rgba(124, 58, 237, 0.2);
    }
    
    .chat-input-area input {
        font-size: 16px !important;
        padding: 14px 16px;
        min-height: 48px;
        border-radius: 16px;
    }
    
    .send-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
    }
    
    .send-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .send-btn:active {
        transform: scale(0.9) !important;
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
    }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-3);
    pointer-events: none;
}

.pricing .section-header {
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.star {
    font-size: 20px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 600px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(99, 102, 241, 0.3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-featured {
    border: 2px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pricing-featured::before {
    transform: scaleX(1);
    background: rgba(99, 102, 241, 0.6);
    height: 3px;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: rgba(99, 102, 241, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Content-Specific Styling - Elegant & Minimal Design */

/* Basic Plan - Clean & Simple */
.pricing-basic {
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

.pricing-basic::before {
    background: rgba(99, 102, 241, 0.5);
}

.pricing-basic .pricing-features li .check-icon {
    background: rgba(99, 102, 241, 0.85);
}

/* Advanced Plan - Premium & Refined */
.pricing-advanced {
    border-left: 3px solid rgba(139, 92, 246, 0.5);
}

.pricing-advanced::before {
    background: rgba(139, 92, 246, 0.5);
}

.pricing-advanced .pricing-features li .check-icon {
    background: rgba(139, 92, 246, 0.85);
}

/* Complete Package - All-in-One Elegance */
.pricing-complete {
    border-left: 3px solid rgba(236, 72, 153, 0.5);
}

.pricing-complete::before {
    background: rgba(236, 72, 153, 0.5);
}

.pricing-complete .pricing-features li .check-icon {
    background: rgba(236, 72, 153, 0.85);
}


.pricing-header {
    margin-bottom: 28px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.pricing-price {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-validity {
    text-align: center;
    margin-bottom: 28px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.validity-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.validity-date {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    padding-top: 6px;
}

.amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.price-breakdown {
    display: block;
    width: 100%;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.one-time {
    color: var(--text-light);
}

.plus {
    color: var(--text-secondary);
    font-weight: 600;
}

.monthly {
    color: var(--text-primary);
    font-weight: 600;
}

.monthly span {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 13px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

.pricing-features li.feature-note {
    opacity: 0.6;
    font-size: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-features li .check-icon {
    width: 20px;
    height: 20px;
    background: rgba(99, 102, 241, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.pricing-features li.feature-note .check-icon {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

.pricing-features li span:last-child {
    color: var(--text-secondary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.pricing-ui-note {
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(236, 72, 153, 0.06) 100%);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 3px solid rgba(99, 102, 241, 0.4);
}

.pricing-ui-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.pricing-ui-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Enterprise Pricing Section */
.enterprise-pricing-section {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.enterprise-pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
}

.enterprise-header {
    text-align: center;
    margin-bottom: 48px;
}

.enterprise-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.enterprise-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.enterprise-content {
    max-width: 1000px;
    margin: 0 auto;
}

.enterprise-info h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 32px;
}

.enterprise-info h4:first-child {
    margin-top: 0;
}

.enterprise-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.enterprise-pricing-range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.pricing-range-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-range-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.range-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.range-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.range-price span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

.range-description {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.enterprise-features {
    margin: 40px 0;
}

.enterprise-features h4 {
    margin-bottom: 20px;
}

.enterprise-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.enterprise-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.enterprise-features li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: rgba(99, 102, 241, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.enterprise-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.enterprise-cta .btn {
    margin-bottom: 16px;
}

.enterprise-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .enterprise-pricing-range {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enterprise-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .enterprise-pricing-section {
        padding: 40px 24px;
        margin-top: 60px;
    }
    
    .enterprise-header h3 {
        font-size: 26px;
    }
    
    .enterprise-subtitle {
        font-size: 16px;
    }
    
    .range-price {
        font-size: 28px;
    }
}

.pricing-note {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.pricing-note p {
    color: var(--text-secondary);
    font-size: 15px;
    font-style: italic;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.pricing-note strong {
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-guarantee {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding: 40px 24px;
    background: rgba(124, 58, 237, 0.05);
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md), 0 0 30px rgba(124, 58, 237, 0.15);
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.guarantee-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 1);
}

.guarantee-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    /* Make icons less colorful - use amber/orange theme for guarantees */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(30deg) saturate(300%);
}

.guarantee-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.guarantee-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Initial state for animated elements - prevents flash */
.benefits-text:not(.animate-on-scroll),
.benefits-visual:not(.animate-on-scroll) {
    opacity: 1;
    transform: translateY(0);
}

.benefits-text.animate-on-scroll:not(.animated),
.benefits-visual.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefits-text.animate-on-scroll.animated,
.benefits-visual.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.benefits-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.benefits-list {
    list-style: none;
    margin-bottom: 32px;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: var(--glow-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.benefits-list strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.benefits-list p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.growth-chart {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.growth-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-secondary);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 300px;
    margin-bottom: 20px;
}

.bar {
    flex: 1;
    background: var(--text-secondary);
    border-radius: 8px 8px 0 0;
    min-height: 40px;
    animation: growBar 1s ease-out;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px 8px 0 0;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

.chart-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-content > p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.15);
}

.contact-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    /* Make icons less colorful - use cyan theme for contact */
    filter: grayscale(100%) brightness(0.7) sepia(100%) hue-rotate(170deg) saturate(300%);
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    opacity: 0.8;
}

.contact-info-item span {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.contact-form {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), var(--glow-primary);
}

.contact-form input:invalid:not(:focus):not(:placeholder-shown),
.contact-form textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc2626;
}

.contact-form .field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 8px;
    display: block;
    animation: slideIn 0.3s ease-out;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 24px;
}

.form-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.form-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    animation: slideIn 0.3s ease-out;
}

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

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Simplified footer layout */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-links-column h4 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

/* Fix contrast for footer links with primary color */
.footer a[href^="tel:"],
.footer a[href^="mailto:"] {
    color: #4f46e5 !important; /* Use primary-dark for better contrast on light background */
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-main-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }
    
    .footer-right {
        gap: 24px;
    }
    
    .footer-contact p,
    .footer-account a {
        font-size: 14px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--text-light);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
}

/* Show side nav only on desktop by default (screens wider than 768px) */
@media (min-width: 769px) {
    .side-nav {
        display: block;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
}

.side-nav.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .side-nav {
        right: 16px;
    }
}

/* Adjust side nav position when chat widget might be visible */
@media (min-width: 1200px) {
    .side-nav {
        right: 24px;
    }
}

.side-nav-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    min-width: 180px;
}

/* Custom scrollbar for side nav */
.side-nav::-webkit-scrollbar {
    width: 4px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 2px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

.side-nav-header {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.side-nav-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    pointer-events: auto;
    z-index: 1000;
}

.side-nav-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
}

.side-nav-toggle svg {
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.toggle-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.toggle-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

/* Slid out (hidden) state */
.side-nav.slid-out {
    transform: translateY(-50%) translateX(calc(100% - 60px));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav.slid-out .side-nav-content {
    width: 60px;
    padding: 12px 8px;
}

.side-nav.slid-out .side-nav-title {
    display: none;
}

.side-nav.slid-out .side-nav-list {
    display: none;
}

.side-nav.slid-out .side-nav-header {
    justify-content: center;
    padding: 8px;
    margin-bottom: 0;
    border-bottom: none;
}

.side-nav.slid-out .side-nav-toggle {
    width: 100%;
    pointer-events: auto;
    z-index: 999;
}

.side-nav.slid-out .toggle-icon-close {
    opacity: 0;
    transform: rotate(90deg);
}

.side-nav.slid-out .toggle-icon-open {
    opacity: 1;
    transform: rotate(0deg);
}

.side-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.side-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--text-secondary);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.side-nav-link:hover {
    color: var(--text-primary);
    background: rgba(107, 114, 128, 0.1);
    padding-left: 16px;
}

.side-nav-link:hover::before {
    height: 60%;
}

.side-nav-link.active {
    color: var(--text-primary);
    background: rgba(107, 114, 128, 0.15);
    font-weight: 600;
    padding-left: 16px;
}

.side-nav-link.active::before {
    height: 100%;
    width: 4px;
    background: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .hero-title-prefix {
        font-size: 32px;
    }
    
    .hero-title-dynamic {
        min-width: auto;
        white-space: nowrap;
        overflow: hidden;
        width: 100%;
        font-size: 32px;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
        min-width: 0; /* Remove fixed min-width for mobile */
        width: 100%;
    }
    
    /* Mobile styles for Live Example Callout (here section) */
    .live-example-callout {
        padding: 20px 16px !important;
        margin: 30px 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .live-example-callout > div:first-child {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .live-example-callout > div:first-child > div:first-child {
        font-size: 24px !important;
    }
    
    .live-example-callout h3 {
        font-size: 20px !important;
    }
    
    .live-example-callout > p:first-of-type {
        font-size: 16px !important;
        padding: 0 8px;
    }
    
    .live-example-callout > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .live-example-callout > div[style*="grid"] > div {
        padding: 16px !important;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .architecture-content {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        position: relative;
        top: 0;
    }
    
    .diagram-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Hide side nav on mobile devices */
@media (max-width: 768px) {
    .side-nav {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* Also hide on tablets and small screens */
@media (max-width: 1024px) and (max-height: 600px) {
    .side-nav {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* Responsive adjustments for navigation */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 16px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 12px;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .logo {
        gap: 6px;
        flex: 0 0 auto;
        min-width: 0;
        max-width: calc(100% - 60px);
    }
    
    .nav-content {
        justify-content: space-between;
        padding: 10px 0;
        gap: 8px;
        min-height: 56px;
    }
    
    /* Login button visibility controlled by JavaScript on mobile too */
    .navbar .login-btn {
        display: block !important;
        margin-left: 8px;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* CRITICAL: Login button sizing on mobile - must override all other rules */
    .navbar .login-btn button,
    .navbar .nav-menu .login-btn button,
    .navbar .nav-menu li.login-btn button,
    .navbar .login-btn button.btn-nav {
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        min-width: 90px !important;
        font-weight: 600 !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar {
        min-height: 56px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        order: 2;
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
        padding: 10px !important;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
        /* Prevent layout shift */
        contain: layout style;
    }
    
    /* Ensure nav menu is properly positioned when active */
    .nav-menu.active {
        display: flex !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 20px 24px;
        /* Reserve space to prevent shifts when opening */
        min-height: auto;
        contain: layout style;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(124, 58, 237, 0.2);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 999;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    @media (max-width: 480px) {
        .nav-menu.active {
            top: 52px;
            max-height: calc(100vh - 52px);
            padding: 16px 20px;
        }
    }
    
    /* Ensure touch-friendly sizes on mobile */
    .nav-menu a,
    .nav-menu button {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 16px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .nav-menu li {
        margin: 4px 0;
    }
    
    .btn-nav {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Ensure all buttons have proper touch targets on mobile */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .demo-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .hero {
        padding: 80px 0 40px;
        margin-top: 56px;
        min-height: auto; /* Allow natural height on mobile */
        /* Reserve space to prevent layout shift */
        contain: layout style paint;
    }
    
    .hero-content {
        min-height: 400px; /* Reserve space for mobile hero content */
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        /* Reserve space for longest title on mobile */
        min-height: 3.5em; /* Reserve space for prefix + dynamic text (longest: "10X Faster Software Development") */
        margin-bottom: 20px; /* Fixed margin to prevent shifts */
    }
    
    .hero-title-prefix {
        font-size: 24px;
        line-height: 1.3;
        min-height: 1.3em; /* Reserve space for prefix */
    }
    
    .hero-title-dynamic {
        min-width: auto;
        white-space: normal;
        overflow: hidden; /* Hide overflow to prevent shifts */
        width: 100%;
        font-size: 24px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        /* Reserve space for longest dynamic title on mobile */
        min-height: 2.2em; /* Reserve space for longest title: "10X Faster Software Development" */
        display: block; /* Ensure it takes full width */
    }
    
    .hero-title-dynamic.long-text {
        font-size: clamp(20px, 3.2vw, 28px);
        min-height: 2.5em; /* Extra space for longer text */
    }
    
    .typing-text {
        min-height: 1.3em; /* Reserve minimum space for typing text */
        display: inline-block;
        vertical-align: top;
    }
    
    .hero-subtitle {
        min-height: 3em; /* Reserve space for subtitle on mobile */
        margin-bottom: 20px; /* Fixed margin */
    }
    
    .hero-cta {
        min-height: 60px; /* Reserve space for buttons (2 buttons stacked or side by side) */
        margin-bottom: 32px; /* Fixed margin */
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        min-height: 48px; /* Fixed height for buttons */
        padding: 14px 24px;
        font-size: 16px;
        /* Prevent font loading shifts */
        font-display: swap;
    }
    
    @media (max-width: 480px) {
        .hero {
            padding: 70px 0 30px;
            margin-top: 52px;
        }
        
        .hero-content {
            min-height: 350px; /* Smaller reserve for smaller screens */
        }
        
        .hero-title {
            font-size: 20px;
            gap: 3px;
            min-height: 3.8em; /* Reserve space for smaller font */
        }
        
        .hero-title-prefix {
            font-size: 20px;
            min-height: 1.3em;
        }
        
        .hero-title-dynamic {
            font-size: 20px;
            min-height: 2.5em; /* Reserve space for longest title */
        }
        
        .hero-title-dynamic.long-text {
            font-size: clamp(18px, 2.8vw, 22px);
            min-height: 2.8em; /* Extra space for longer text */
        }
        
        .hero-subtitle {
            min-height: 3.5em; /* Reserve space for subtitle */
        }
    }
    
    @media (max-width: 375px) {
        .hero-content {
            min-height: 320px; /* Smaller reserve for very small screens */
        }
        
        .hero-title {
            font-size: 18px;
            min-height: 4em; /* Reserve space for smallest font */
        }
        
        .hero-title-prefix {
            font-size: 18px;
            min-height: 1.3em;
        }
        
        .hero-title-dynamic {
            font-size: 18px;
            min-height: 2.7em; /* Reserve space for longest title */
        }
        
        .hero-title-dynamic.long-text {
            font-size: clamp(16px, 2.5vw, 20px);
            min-height: 3em; /* Extra space for longer text */
        }
        
        .hero-subtitle {
            min-height: 4em; /* Reserve space for subtitle */
        }
    }
    
    .typing-cursor {
        width: 3px;
        margin-left: 4px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    /* Prevent text from being too small */
    body {
        font-size: 16px;
    }
    
    /* Better form inputs on mobile */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important;
        padding: 14px 16px;
        min-height: 48px;
    }
    
    /* Better image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix overflow issues */
    .hero-content,
    .features-grid,
    .pricing-grid,
    .benefits-content {
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title-dynamic {
        min-width: auto;
        width: 100%;
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
        min-height: 4em; /* Adjust for mobile */
    }
    
    .hero-market-message {
        margin-bottom: 20px;
    }
    
    .hero-delivery-badge {
        margin-bottom: 24px;
    }
    
    .hero-cta {
        margin-bottom: 32px;
        gap: 12px;
    }
    
    .hero-stats {
        gap: 24px;
        justify-content: center;
    }
    
    .hero-market-message {
        padding: 16px 20px;
        margin-bottom: 24px;
    }
    
    .market-message-text {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .market-message-text strong {
        font-size: 16px;
    }
    
    .software-value-proposition {
        padding: 20px 24px;
        margin-top: 24px;
    }
    
    .value-proposition-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .value-proposition-text strong {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding-top: 20px;
    }
    
    .step-content {
        padding-right: 0;
        padding-bottom: 40px;
    }
    
    .step-time {
        position: static;
        margin-top: 12px;
        display: inline-block;
        width: auto;
    }
    
    .hero-delivery-badge {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .delivery-icon {
        font-size: 28px;
    }
    
    .timeline-highlight {
        padding: 20px;
    }
    
    .timeline-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-icon {
        font-size: 36px;
    }
    
    .process-note {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-guarantee {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
    
    .guarantee-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-info-item {
        width: 100%;
        min-width: auto;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        height: 450px;
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .image-slider-container {
        height: 100%;
        width: 100%;
        min-width: 0; /* Remove fixed min-width for mobile */
        min-height: 450px;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .image-slider {
        height: 100%;
        width: 100%;
    }
    
    .slide {
        width: 100%;
        height: 100%;
    }
    
    .slide-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    
    .slide-content {
        padding: 20px;
        right: 60px;
        left: 16px;
        bottom: 16px;
        background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.98) 100%);
    }
    
    .slide-content h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .slide-content p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .slider-controls {
        padding: 12px 6px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .slide-feature-badge {
        top: 16px;
        right: 70px;
        padding: 12px 16px;
    }
    
    .badge-icon {
        font-size: 28px;
    }
    
    .badge-text strong {
        font-size: 15px;
    }
    
    .badge-text span {
        font-size: 12px;
    }
    
    /* Ensure all buttons have proper touch targets on mobile at 480px */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .demo-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    /* Ensure buttons in here section are touch-friendly */
    .live-example-callout button,
    .live-example-callout a {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .slider-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.4);
        touch-action: manipulation;
    }
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 32px 24px;
        min-height: 600px; /* Adjusted for mobile */
    }
    
    .pricing-features {
        min-height: 240px; /* Adjusted for mobile */
    }
    
    .price-main {
        gap: 2px;
    }
    
    .currency {
        font-size: 24px;
        padding-top: 4px;
    }
    
    .amount {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
        margin-bottom: 16px;
    }
    
    .hero-title-prefix {
        font-size: 24px;
        white-space: normal;
    }
    
    .hero-title-dynamic {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        font-size: 24px;
        overflow: visible;
        white-space: normal;
    }
    
    .typing-text {
        white-space: normal;
        overflow: visible;
    }
    
    .typing-cursor {
        width: 2px;
        margin-left: 3px;
        height: 0.8em;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
        min-height: 3.5em;
    }
    
    .hero-visual {
        height: 300px;
        min-width: 0; /* Remove fixed min-width for mobile */
        width: 100%;
        max-width: 100%;
    }
    
    .image-slider-container {
        min-width: 0; /* Remove fixed min-width for mobile */
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile styles for Live Example Callout (here section) at 480px */
    .live-example-callout {
        padding: 16px 12px !important;
        margin: 24px 0 !important;
    }
    
    .live-example-callout > div:first-child > div:first-child {
        font-size: 20px !important;
    }
    
    .live-example-callout h3 {
        font-size: 18px !important;
    }
    
    .live-example-callout > p:first-of-type {
        font-size: 14px !important;
        padding: 0 4px;
    }
    
    .live-example-callout > div[style*="grid"] {
        gap: 10px !important;
        margin-top: 16px !important;
    }
    
    .live-example-callout > div[style*="grid"] > div {
        padding: 12px !important;
    }
    
    .live-example-callout > div[style*="grid"] > div h4 {
        font-size: 14px !important;
    }
    
    .live-example-callout > div[style*="grid"] > div p {
        font-size: 12px !important;
    }
    
    .live-example-callout > p:last-of-type {
        font-size: 13px !important;
        margin-top: 16px !important;
        padding: 0 4px;
    }
    
    .slide-content {
        padding: 20px;
        right: 60px;
    }
    
    .slide-content h3 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .slider-controls {
        padding: 12px 6px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        gap: 12px;
    }
    
    .slide-feature-badge {
        top: 12px;
        right: 60px;
        padding: 10px 12px;
    }
    
    .badge-icon {
        font-size: 24px;
    }
    
    .badge-text strong {
        font-size: 13px;
    }
    
    .badge-text span {
        font-size: 11px;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }
    
    .dot.active {
        width: 12px;
        height: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Ensure all inputs are at least 16px to prevent zoom on iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Better touch targets for mobile */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* AI Design Badge - Showcasing AI Power */
.ai-design-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 140px;
    height: 140px;
    z-index: 999;
    cursor: pointer;
    perspective: 1000px;
}

.ai-badge-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.ai-design-badge:hover .ai-badge-inner {
    transform: rotateY(15deg) rotateX(5deg) scale(1.05);
}

.ai-badge-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

.ai-badge-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotateGlow 4s linear infinite;
}

.ai-badge-front::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-badge-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 16px rgba(255, 255, 255, 1));
    }
}

.ai-badge-text {
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai-badge-text-main {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-badge-text-sub {
    display: block;
    font-size: 9px;
    opacity: 0.95;
    font-weight: 600;
}

.ai-badge-particles {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
}

.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.ai-particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.ai-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.ai-particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
}

.ai-particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(10px, -15px) scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@media (max-width: 768px) {
    .ai-design-badge {
        width: 100px;
        height: 100px;
        bottom: 15px;
        left: 15px;
    }

    .ai-badge-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    .ai-badge-text {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .ai-badge-text-main {
        font-size: 9px;
        margin-bottom: 1px;
    }

    .ai-badge-text-sub {
        font-size: 7px;
    }

    .ai-badge-front {
        padding: 8px;
    }

    .ai-particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .ai-design-badge {
        width: 85px;
        height: 85px;
        bottom: 10px;
        left: 10px;
    }

    .ai-badge-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .ai-badge-text {
        font-size: 7px;
        letter-spacing: 0.6px;
    }

    .ai-badge-text-main {
        font-size: 8px;
    }

    .ai-badge-text-sub {
        font-size: 6px;
    }

    .ai-badge-front {
        padding: 6px;
        border-radius: 12px;
    }
}

/* ==================== Custom Notification System ==================== */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .notification-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: 100%;
        width: auto;
    }
}

.notification {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--bg-card);
    border: 2px solid var(--border-medium);
    border-radius: 16px;
    box-shadow: var(--shadow-xl), var(--glow-primary);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    pointer-events: auto;
    position: relative;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    min-width: 300px;
    max-width: 100%;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.notification.warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
}

.notification.info {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
}

.notification-icon {
    align-items: center;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.notification.success .notification-icon {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.notification.error .notification-icon {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.notification.warning .notification-icon {
    background: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.notification.info .notification-icon {
    background: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: 24px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    width: 32px;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
}

.notification-close:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Confirmation Modal */
.confirm-modal-overlay {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
}

.confirm-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-modal {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--bg-card);
    border: 2px solid var(--border-medium);
    border-radius: 24px;
    box-shadow: var(--shadow-2xl), var(--glow-primary);
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 48px);
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-icon {
    align-items: center;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    color: #fff;
    display: flex;
    font-size: 32px;
    height: 64px;
    justify-content: center;
    margin: 0 auto;
    width: 64px;
}

.confirm-modal-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.confirm-modal-message {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-btn {
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
    padding: 12px 32px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
}

.confirm-modal-btn-primary {
    background: var(--gradient-1);
    border: none;
    box-shadow: var(--shadow-md), var(--glow-primary);
    color: #fff;
}

.confirm-modal-btn-primary:hover {
    box-shadow: var(--shadow-xl), var(--glow-accent);
    transform: translateY(-2px);
}

.confirm-modal-btn-secondary {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: var(--glass-bg);
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.confirm-modal-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

@media (max-width: 768px) {
    .confirm-modal {
        padding: 24px;
        width: calc(100% - 32px);
    }
    
    .confirm-modal-title {
        font-size: 20px;
    }
    
    .confirm-modal-message {
        font-size: 15px;
    }
    
    .confirm-modal-buttons {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }
}

/* ==================== Cart Modal ==================== */
.cart-modal-overlay {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
}

.cart-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.cart-modal {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--bg-card);
    border: 2px solid var(--border-medium);
    border-radius: 24px;
    box-shadow: var(--shadow-2xl), var(--glow-primary);
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 90vh;
    max-width: 600px;
    overflow: hidden;
    padding: 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 48px);
}

.cart-modal-overlay.show .cart-modal {
    transform: scale(1);
}

.cart-modal-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-modal-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.cart-modal-close {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    width: 40px;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
}

.cart-modal-close:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.cart-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cart-modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.cart-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.cart-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.cart-item {
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.cart-item-bundle {
    border-color: rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.cart-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    border-radius: 8px;
    flex-shrink: 0;
    height: 60px;
    object-fit: cover;
    width: 60px;
}

.cart-item-icon {
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    flex-shrink: 0;
    font-size: 32px;
    height: 60px;
    justify-content: center;
    width: 60px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.cart-item-confirmation {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: #10b981;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideInFade 0.3s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-remove {
    align-items: center;
    background: transparent;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 18px;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    width: 36px;
    -webkit-tap-highlight-color: rgba(239, 68, 68, 0.2);
    touch-action: manipulation;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.1);
}

.cart-modal-summary {
    border-top: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.cart-total {
    align-items: center;
    display: flex;
    font-size: 20px;
    font-weight: 700;
    justify-content: space-between;
}

.cart-total-label {
    color: var(--text-primary);
}

.cart-total-amount {
    color: var(--primary-color);
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.cart-action-btn {
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    padding: 14px 24px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.2);
    touch-action: manipulation;
    width: 100%;
}

.cart-action-btn-primary {
    background: var(--gradient-1);
    border: none;
    box-shadow: var(--shadow-md), var(--glow-primary);
    color: #fff;
}

.cart-action-btn-primary:hover {
    box-shadow: var(--shadow-xl), var(--glow-accent);
    transform: translateY(-2px);
}

.cart-action-btn-secondary {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: var(--glass-bg);
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.cart-action-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

.cart-action-btn-outline {
    background: transparent;
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.cart-action-btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cart-modal {
        padding: 24px;
        width: calc(100% - 32px);
        max-height: 85vh;
    }
    
    .cart-modal-title {
        font-size: 24px;
    }
    
    .cart-modal-content {
        max-height: 40vh;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image,
    .cart-item-icon {
        height: 50px;
        width: 50px;
    }
    
    .cart-item-name {
        font-size: 15px;
    }
    
    .cart-action-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Product Video Modal */
.product-video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.product-video-modal-overlay.show,
.product-video-modal-overlay[style*="flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-video-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.product-video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.product-video-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-right: 50px;
}

.product-video-modal-player {
    width: 100%;
    max-height: calc(90vh - 120px);
    border-radius: 12px;
    background: #000;
}

@media (max-width: 768px) {
    .product-video-modal-content {
        padding: 16px;
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .product-video-modal-title {
        font-size: 20px;
        padding-right: 40px;
    }
    
    .product-video-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    
    .product-video-modal-player {
        max-height: calc(85vh - 100px);
    }
    
    .product-image-wrapper {
        height: 150px;
    }
}

/* ============================================
   User Avatar Circle - Single circular button for login/logout
   ============================================ */

.user-avatar-wrapper {
    position: relative;
    margin-left: 12px;
    flex-shrink: 0;
}

.user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #7c3aed);
    background: var(--primary-color, #7c3aed);
    color: white;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.user-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-dark, #6d28d9);
    background: var(--primary-dark, #6d28d9);
}

.user-avatar-circle:active {
    transform: scale(0.95);
}

.user-avatar-circle.active {
    background: var(--primary-dark, #6d28d9);
    border-color: var(--primary-dark, #6d28d9);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.user-avatar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

/* When showing initials, make font slightly larger */
.user-avatar-circle.has-initials .user-avatar-content {
    font-size: 16px;
    font-weight: 700;
}

/* Dropdown menu for user avatar */
.user-avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    max-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    pointer-events: none;
}

.user-avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-avatar-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color, #7c3aed) 0%, var(--primary-dark, #6d28d9) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.user-avatar-dropdown-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-dropdown-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

.user-avatar-dropdown-email {
    font-size: 12px;
    opacity: 0.9;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

.user-avatar-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0;
}

.user-avatar-dropdown-item {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.user-avatar-dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.user-avatar-dropdown-item:active {
    background-color: #e5e7eb;
}

.user-avatar-dropdown-item span {
    font-size: 18px;
    width: 24px;
    text-align: center;
    display: inline-block;
}

/* Hide old login/user menu elements on home page (not dashboard) */
body:not(.dashboard-page) .login-btn,
body:not(.dashboard-page) .user-menu {
    display: none !important;
}

/* Mobile styles for user avatar */
@media (max-width: 768px) {
    .user-avatar-wrapper {
        margin-left: 8px;
    }
    
    .user-avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .user-avatar-circle.has-initials .user-avatar-content {
        font-size: 14px;
    }
    
    .user-avatar-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }
}

