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

:root {
    /* Modern Postmodern Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --accent-secondary: #f472b6;
    --accent-tertiary: #fb7185;
    
    /* Vibrant Postmodern Accents */
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;
    --neon-yellow: #f59e0b;
    --neon-orange: #f97316;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    /* Enhanced Gradients - Postmodern Style */
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #ec4899 50%, #f472b6 75%, #fb7185 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #6366f1 33%, #8b5cf6 66%, #ec4899 100%);
    --gradient-3: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(251, 113, 133, 0.06) 100%);
    --gradient-4: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #f472b6);
    --gradient-5: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1), transparent 70%);
    --gradient-6: conic-gradient(from 0deg, #6366f1, #8b5cf6, #ec4899, #f472b6, #6366f1);
    
    /* Modern Shadows with Color */
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(99, 102, 241, 0.18), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 30px 80px rgba(99, 102, 241, 0.2), 0 12px 24px rgba(0, 0, 0, 0.12);
    
    /* Enhanced Glows */
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    --glow-secondary: 0 0 40px rgba(236, 72, 153, 0.4), 0 0 80px rgba(244, 114, 182, 0.2);
    --glow-accent: 0 0 50px rgba(99, 102, 241, 0.5), 0 0 100px rgba(236, 72, 153, 0.3);
    --glow-neon: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor;
    
    /* Border Colors */
    --border-light: rgba(99, 102, 241, 0.2);
    --border-medium: rgba(99, 102, 241, 0.4);
    --border-strong: rgba(99, 102, 241, 0.6);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -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;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 10% 80%, rgba(251, 113, 133, 0.06) 0px, transparent 50%),
        radial-gradient(at 90% 20%, rgba(59, 130, 246, 0.04) 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;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(236, 72, 153, 0.02) 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 */
.navbar {
    position: fixed;
    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-md), 0 0 0 1px rgba(99, 102, 241, 0.05);
    will-change: box-shadow, background;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@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%;
}

@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 0 12px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 24px rgba(139, 92, 246, 0.2));
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 32px rgba(139, 92, 246, 0.3));
    transform: scale(1.05) rotate(5deg);
}

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

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

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

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

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

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

.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: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

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

.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);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 600px;
}

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

.hero-content .hero-visual {
    min-width: 500px; /* Fixed minimum width for image slider */
    flex-shrink: 0;
}

.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: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    min-width: 0;
    width: 100%;
}

.hero-title-prefix {
    color: var(--text-primary);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
    padding-top: 0;
    font-size: 36px;
    display: block;
    width: 100%;
}

.hero-title-dynamic {
    display: block;
    position: relative;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 200px;
    width: 100%;
    max-width: 100%;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.typing-text {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    margin-left: 6px;
    animation: blink 1s infinite;
    vertical-align: baseline;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

@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: 32px;
    line-height: 1.7;
    min-height: 5em; /* 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);
}

.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: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.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(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md), var(--glow-primary);
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.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 {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-accent);
    filter: brightness(1.1);
}

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

.btn-secondary {
    background: var(--glass-bg);
    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;
}

.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(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    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: 16px 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;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.hero-delivery-badge:hover {
    transform: translateX(4px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.3);
}

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

/* Hero Visual - Image Slider */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 600px;
    min-width: 500px;
    max-width: 600px;
    /* Prevent flash during initialization */
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
    /* Prevent layout thrashing */
    contain: layout style paint;
    flex-shrink: 0;
    flex-grow: 0;
}

.image-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 500px;
    min-height: 600px;
    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;
}

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

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    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;
    max-width: 100%;
    height: auto;
}

.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;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.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);
    padding-left: 16px;
}

.benefits-grid li strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.learn-more-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    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) {
    .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;
}

.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-color);
    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%;
}

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

.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 */
    contain: layout style paint !important;
}

.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;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99998;
    pointer-events: auto;
}

.chat-widget.active .chat-widget-container {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.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 {
    font-size: 32px;
    width: 48px;
    height: 48px;
    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 widget */
    filter: grayscale(100%) brightness(0.9) sepia(100%) hue-rotate(240deg) saturate(250%);
}

.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;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.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;
        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;
        height: 56px;
    }
    
    .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;
}

@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: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.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-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 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column ul li span {
    color: var(--text-secondary);
}

.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;
    }
    
    .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;
    }
    
    .navbar {
        min-height: 56px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        order: 2;
    }
    
    /* 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;
        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;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Better spacing for mobile */
    .hero {
        padding: 80px 0 40px;
        margin-top: 56px;
    }
    
    .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;
    }
    
    .hero-title-prefix {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-title-dynamic {
        min-width: auto;
        white-space: normal;
        overflow: visible;
        width: 100%;
        font-size: 24px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    @media (max-width: 480px) {
        .hero {
            padding: 70px 0 30px;
            margin-top: 52px;
        }
        
        .hero-title {
            font-size: 20px;
            gap: 3px;
        }
        
        .hero-title-prefix {
            font-size: 20px;
        }
        
        .hero-title-dynamic {
            font-size: 20px;
        }
    }
    
    @media (max-width: 375px) {
        .hero-title {
            font-size: 18px;
        }
        
        .hero-title-prefix {
            font-size: 18px;
        }
        
        .hero-title-dynamic {
            font-size: 18px;
        }
    }
    
    .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-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 24px;
        width: 100%;
    }
    
    .image-slider-container {
        height: 100%;
        width: 100%;
        border-radius: 16px;
        overflow: visible;
    }
    
    .image-slider {
        height: 100%;
        width: 100%;
    }
    
    .slide {
        width: 100%;
        height: 100%;
    }
    
    .slide-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .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;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .slider-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .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: 22px;
        line-height: 1.2;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
        margin-bottom: 16px;
    }
    
    .hero-title-prefix {
        font-size: 22px;
    }
    
    .hero-title-dynamic {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        font-size: 22px;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .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;
    }
    
    .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;
    }
}

