@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
    /* Razorpay-Inspired Light Theme */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #0891b2;
    --secondary-light: #06b6d4;
    --tertiary: #7c3aed;
    --tertiary-light: #8b5cf6;
    --error: #ef4444;
    --success: #22c55e;

    --surface: #ffffff;
    --surface-dim: #f8fafc;
    --surface-alt: #f1f5f9;
    --surface-card: #ffffff;
    --surface-dark: #0f172a;

    --on-surface: #0f172a;
    --on-surface-variant: #475569;
    --on-surface-muted: #94a3b8;
    --outline: #cbd5e1;
    --outline-variant: #e2e8f0;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--on-surface);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    color: var(--on-surface);
}

h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.08; margin-bottom: 1.5rem; }
h2 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
p { color: var(--on-surface-variant); font-size: 1.125rem; line-height: 1.7; }

h2 span, h1 span {
    color: var(--primary);
    font-style: normal;
}

/* Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    display: flex;
    align-items: center;
    z-index: 5000;
    border-bottom: 1px solid var(--outline-variant);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--on-surface);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo img {
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Hide mobile-specific elements inside nav-links on desktop */
.mobile-nav-top, .mobile-nav-body, .mobile-nav-footer {
    display: none;
}

.nav-item {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.desktop-only { display: flex !important; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--on-surface);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--surface-alt);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 4999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        z-index: 5001;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .mobile-nav-top { 
        display: flex !important; 
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--outline-variant);
    }
    
    .mobile-nav-body { 
        display: block !important; 
        flex: 1;
        overflow-y: auto;
    }
    
    .mobile-nav-footer { 
        display: block !important; 
        padding-top: 1.5rem;
        border-top: 1px solid var(--outline-variant);
        margin-top: 1rem;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: 12px;
        text-decoration: none;
        color: var(--on-surface);
        font-weight: 600;
        transition: var(--transition);
        margin-bottom: 0.5rem;
    }

    .mobile-nav-item:hover {
        background: var(--primary-bg);
        color: var(--primary);
    }

}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: white;
}

.footer .social-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: all 0.2s;
}

.footer .social-btn:hover {
    background: rgba(77, 142, 255, 0.12);
    border-color: rgba(77, 142, 255, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer .social-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--on-surface);
    border: 1px solid var(--outline) !important;
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--on-surface-muted) !important;
}



/* ==================== Navigation ==================== */
.navbar { position: fixed; top: 0; width: 100%; height: 72px; z-index: 5000; transition: var(--transition); background: transparent; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--outline-variant); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.nav-item { font-size: 0.9rem; font-weight: 600; color: var(--on-surface-variant); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 0.4rem; height: 100%; cursor: pointer; }
.nav-item:hover { color: var(--primary); }

.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.has-mega-menu { position: relative !important; } /* Center relative to item */

.mega-menu { 
    position: absolute; 
    top: 72px; 
    left: 50%; 
    transform: translateX(-50%) translateY(10px); 
    background: var(--surface); 
    border: 1px solid var(--outline-variant); 
    border-radius: 16px;
    box-shadow: var(--shadow-xl); 
    padding: 1.5rem; 
    display: none; 
    z-index: 5001; 
    opacity: 0; 
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 600px;
}

.has-mega-menu:hover .mega-menu { 
    display: block; 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
}

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border: none; }

.mega-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--on-surface-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.mega-item {
    display: flex;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.mega-item:hover {
    background: var(--primary-bg);
}

.mega-item i {
    color: var(--primary);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.mega-item-text span {
    display: block;
    font-weight: 600;
    color: var(--on-surface);
    font-size: 0.95rem;
}

.mega-item-text p {
    font-size: 0.85rem;
    margin-top: 0.2rem;
    color: var(--on-surface-variant);
    line-height: 1.4;
}

/* Language Selector Extension */
/* Language Selector removed for English-only focus */

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--surface);
}

/* Subtle gradient behind hero */
.hero-slider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 60% at 0% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 100% 30%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.slider-inner {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    z-index: 0;
    transition: transform 12s ease-out;
}

.slide:hover .slide-bg {
    transform: scale(1.03);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: var(--on-surface);
    max-width: 640px;
}

.slide h1 {
    color: var(--on-surface);
    font-size: 3.75rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.06;
}

.slide h1 span {
    color: var(--primary);
}

.slide p {
    color: var(--on-surface-variant);
    font-size: 1.15rem;
    max-width: 480px;
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.slider-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: var(--outline);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    width: 56px;
    background: var(--primary);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: 50%;
    color: var(--on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slider-btn.prev { left: 2rem; }
.slider-btn.next { right: 2rem; }

/* ==================== Trusted By / Social Proof ==================== */
.trusted-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--outline-variant);
    border-bottom: 1px solid var(--outline-variant);
    background: var(--surface-dim);
    overflow: hidden;
}

.trusted-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--on-surface-muted);
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-item .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ==================== API Playground ==================== */
#playground {
    background: var(--surface-dim);
}

.playground-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.upload-box {
    background: var(--surface);
    border: 2px dashed var(--outline);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.06);
}

.upload-box h3 {
    color: var(--on-surface-variant);
    font-weight: 500;
    margin-top: 1rem;
}

.code-window {
    background: var(--surface-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.08);
}

.code-keyword { color: #f472b6; }
.code-func { color: #a78bfa; }
.code-string { color: #67e8f9; }
.code-comment { color: #64748b; }

/* ==================== Features ==================== */
#features {
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.25rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--outline);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: var(--on-surface);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--on-surface-variant);
    font-size: 0.925rem;
    line-height: 1.65;
}

/* ==================== Pricing ==================== */
#pricing {
    background: var(--surface-dim);
}

#pricing .feature-card {
    text-align: center;
    background: var(--surface);
}

#pricing .feature-card h3 {
    font-size: 1.3rem;
}

.price-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--on-surface);
    margin: 1.5rem 0;
}

.price-tag small {
    font-size: 0.95rem;
    color: var(--on-surface-muted);
    font-weight: 400;
}

#pricing .feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1.5rem 0;
}

#pricing .feature-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
}

#pricing .feature-card ul li i,
#pricing .feature-card ul li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Highlighted pricing card */
.feature-card.highlighted {
    border: 2px solid var(--primary);
    position: relative;
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.feature-card.highlighted::before {
    opacity: 1;
    height: 3px;
}

.feature-card.highlighted::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 1.2rem;
    border-radius: 0 0 8px 8px;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--surface-dark);
    padding: 5rem 0 2rem;
    color: #cbd5e1;
}

.footer .logo {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-link-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.footer-link-col a {
    display: block;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-link-col a:hover {
    color: #ffffff;
}

.footer-link-col p {
    font-size: 0.875rem;
    max-width: 300px;
    line-height: 1.7;
    color: #94a3b8;
}

/* ==================== AI Assistant FAB ==================== */
.ask-ir-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    z-index: 2000;
    transition: var(--transition);
}

.ask-ir-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* Chat Window - Razorpay RAY Inspired */
.chat-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 540px;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #eef5ff;
    padding: 1.25rem 1.5rem;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.chat-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: transparent;
}

.message {
    padding: 0;
    font-size: 0.9rem;
    max-width: 90%;
    line-height: 1.5;
}

.message.bot {
    background: transparent;
    color: var(--on-surface);
    display: flex;
    align-self: flex-start;
    border: none;
    gap: 0.75rem;
}

.message.bot::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../assets/logo.png') center/cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.message.bot div {
    flex: 1;
}

.message.user {
    background: var(--surface);
    color: var(--on-surface);
    border: 1px solid var(--outline-variant);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-container {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-left: 2rem;
    width: calc(100% - 2rem);
}

.faq-btn {
    background: transparent;
    border: none;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--outline-variant);
    transition: var(--transition);
}

.faq-btn:last-child {
    border-bottom: none;
}

.faq-btn:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.faq-btn i, .faq-btn svg {
    color: var(--on-surface-muted);
    transition: var(--transition);
}

.faq-btn:hover i, .faq-btn:hover svg {
    color: var(--primary);
}

.faq-container {
    background: #fff;
    border-radius: 12px;
    margin-top: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--outline-variant);
}

.faq-btn {
    padding: 1rem 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.disabled-faqs .faq-btn {
    pointer-events: none;
    opacity: 0.5;
    background: transparent !important;
}

.chat-input {
    padding: 1rem 1.25rem;
    border-top: none;
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--outline-variant);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    background: var(--surface);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: var(--transition);
}

.chat-input input::placeholder {
    color: var(--on-surface-muted);
}

.chat-input input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-input .btn {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
}

.typing-indicator div {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--on-surface-muted);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    from { transform: translateY(0); opacity: 0.4; }
    to { transform: translateY(-3px); opacity: 1; }
}

/* ==================== Animations ==================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ==================== Floating Metric Badge ==================== */
.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-md);
    position: absolute;
    z-index: 3;
}

.metric-badge .badge-icon {
    color: var(--primary);
}

.metric-badge .badge-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface-muted);
    display: block;
    line-height: 1;
}

.metric-badge .badge-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 0.2rem;
}

/* ==================== Code Preview Card ==================== */
.code-preview-card {
    background: var(--surface-dark);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.code-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-preview-filename {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    margin-left: 0.75rem;
}

.code-preview-body {
    padding: 1.5rem;
}

.code-preview-body pre {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #67e8f9;
    overflow-x: auto;
}

/* ==================== Section Titles ==================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0.5rem auto 0;
    color: var(--on-surface-variant);
}

/* ==================== Background ==================== */
.bg-mesh {
    background-color: var(--surface);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-dim);
}

::-webkit-scrollbar-thumb {
    background: var(--outline);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--on-surface-muted);
}

/* ==================== Testimonials ==================== */
.testimonials-section {
    background: var(--surface);
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .pricing-wrapper {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
    }
    
    .pricing-wrapper .feature-card {
        min-width: 300px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .pricing-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    .pricing-wrapper::-webkit-scrollbar-thumb {
        background: var(--outline-variant);
        border-radius: 10px;
    }
}

.footer-brands-col p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(173, 198, 255, 0.05);
    border: 1px solid rgba(173, 198, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* Explicitly white for visibility on dark footer */
    transition: var(--transition);
    text-decoration: none;
}

.social-btn i {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.testimonial-card {
    background: var(--surface-dim);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--outline);
}

.testimonial-body {
    font-size: 1.05rem;
    color: var(--on-surface);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-body::before {
    content: '"';
    font-family: 'Space Grotesk', serif;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.testimonial-author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
/* Removed lang-selector responsive styles */
    .mega-menu { display: none !important; }

    h1 { font-size: 2.25rem; }
    .slide h1 { font-size: 2.25rem; }
    
    .slide .container > div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .animate-float {
        order: 2;
    }
    .slide-content {
        order: 1;
    }

    .mega-menu { display: none !important; }

    h1 { font-size: 2.5rem; }
    .slide h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-slider { min-height: auto; height: auto; }
    .slide { min-height: 80vh; padding-top: 6rem; padding-bottom: 4rem; }

    .features-grid { grid-template-columns: 1fr; }
    .playground-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brands-col { grid-column: span 2; }
    .mega-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 2rem; }

    .slider-btn { 
        display: flex; 
        width: 36px;
        height: 36px;
        top: auto;
        bottom: 2rem;
        transform: none;
    }
    .slider-btn.prev { left: 1.5rem; }
    .slider-btn.next { right: 1.5rem; }
    .metric-badge { display: none; }
    
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        grid-template-columns: none;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
    }
    
    .testimonials-grid::-webkit-scrollbar {
        height: 6px;
        display: none;
    }
    
    .testimonial-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    min-width: 250px;
    max-width: 350px;
    background: #ffffff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-success { border-left-color: #22c55e; }
.toast.btn-primary:active { transform: translateY(0); }
.toast.toast-show { transform: translateX(0); }
.toast-content {
    font-size: 0.85rem;
    color: var(--on-surface);
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--on-surface-muted);
    cursor: pointer;
    margin-left: auto;
}

/* ==================== FAQ Section ==================== */
.faq-section {
    background: var(--surface);
    border-top: 1px solid var(--outline-variant);
    padding: 8rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.faq-heading h2 {
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--outline-variant);
}

.faq-question {
    width: 100%;
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--on-surface);
    transition: var(--transition);
}

.faq-item:first-child {
    border-top: 1px solid var(--outline-variant);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    color: var(--on-surface-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--on-surface-variant);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.75rem;
    opacity: 1;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-heading h2 {
        font-size: 2.5rem;
    }
}
/* ==================== How It Works (Integration) ==================== */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
}

/* Connective line for desktop */
@media (min-width: 993px) {
    .how-it-works::before {
        content: '';
        position: absolute;
        top: 3.5rem;
        left: 15%;
        right: 15%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--outline-variant) 0, var(--outline-variant) 8px, transparent 8px, transparent 16px);
        z-index: 0;
    }
}

/* ==================== Footer Social Buttons ==================== */
.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    color: #fff;
}

.social-btn i, .social-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== Improved Footer System ==================== */
.footer {
    background: #0a0f1d;
    padding: 8rem 0 4rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.footer-brands-col p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 320px;
}

.footer-link-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-partners-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.footer-partners-badge img {
    height: 18px;
    filter: grayscale(1) brightness(1.5) opacity(0.6);
    transition: all 0.3s ease;
}

.footer-partners-badge:hover img {
    filter: grayscale(0) brightness(1) opacity(1);
}

@media (max-width: 1200px) {
    .footer-grid {
        gap: 2rem;
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
    }
    .footer-brands-col {
        grid-column: span 3;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brands-col {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer { padding: 6rem 0 3rem; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-brands-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

