:root {
    /* Core Colors - Dark Mode Default */
    --primary-color: #f97316; /* Orange-500 */
    --primary-light: #fb923c; /* Orange-400 */
    --secondary-color: #8b5cf6; /* Violet-500 */
    --accent-color: #10b981; /* Emerald-500 */
    
    /* Backgrounds */
    --bg-color: #0f172a; /* Slate-900 */
    --bg-alt: #1e293b; /* Slate-800 */
    --card-bg: rgba(30, 41, 59, 0.7);
    
    /* Text */
    --heading-color: #f8fafc; /* Slate-50 */
    --text-color: #cbd5e1; /* Slate-300 */
    --white: #ffffff;
    
    /* Borders & Glass */
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* UI Elements */
    --badge-bg: rgba(249, 115, 22, 0.1);
    --badge-border: rgba(249, 115, 22, 0.2);
    --pricing-highlight: #f8fafc; /* Bright white for dark mode */

    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] {
    /* Backgrounds */
    --bg-color: #fafbfc; /* Soft off-white */
    --bg-alt: #f1f5f9; /* Slate-100 */
    --card-bg: rgba(255, 255, 255, 0.95);

    /* Text */
    --heading-color: #0f172a; /* Slate-900 */
    --text-color: #475569; /* Slate-600 */

    /* Borders & Glass */
    --border-color: #cbd5e1; /* Slate-300 - more visible */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(203, 213, 225, 0.6);

    /* UI Elements */
    --badge-bg: rgba(249, 115, 22, 0.08);
    --pricing-highlight: #0f172a; /* Dark black for light mode */
    --badge-border: rgba(249, 115, 22, 0.25);

    /* Shadows */
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: var(--bg-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

.logo img {
    filter: none;
    transition: filter 0.3s ease;
}

[data-theme="light"] .logo img {
    filter: brightness(0.95) contrast(1.1);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-light);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--heading-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: transparent;
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.glow-effect {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--heading-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.mobile-menu-btn span:nth-child(1) {
    top: 10px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 19px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 28px;
}

/* Mobile FAB - Hidden by default on desktop */
.mobile-cta-fab {
    display: none;
}

/* Mobile menu and overlay - Hidden by default on desktop */
.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--badge-bg);
    color: var(--primary-light);
    border: 1px solid var(--badge-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

[data-theme="light"] .badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

[data-theme="light"] .stat-number {
    color: var(--heading-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="light"] .glass-card {
    background: var(--glass-bg);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

[data-theme="light"] .glass-panel {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.glass-panel-strong {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .glass-panel-strong {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.15);
    border: 1px solid transparent;
}

/* Features Section */
.features {
    background-color: var(--bg-color);
    position: relative;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.icon-glow-purple {
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.icon-glow-blue {
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.icon-glow-green {
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .icon-glow-purple {
    background: rgba(249, 115, 22, 0.08);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

[data-theme="light"] .icon-glow-blue {
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .icon-glow-green {
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Demo Section */
.demo-section {
    position: relative;
}

.demo-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.demo-content {
    text-align: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.demo-content p {
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
}

.chat-interface {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: left;
    height: 400px;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .chat-interface {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.message.user .avatar {
    /* Or show user avatar */
}

.message .text {
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot .text {
    background: var(--bg-color);
    color: var(--text-color);
    border-top-left-radius: 0;
    border: 1px solid var(--border-color);
}

.message.user .text {
    background: var(--primary-color);
    color: var(--white);
    border-top-right-radius: 0;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.chat-input-area {
    padding: 1rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font-sans);
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.btn-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send:hover {
    transform: scale(1.05);
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    color: var(--heading-color);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-left p,
.footer-bottom-right p {
    color: var(--text-color);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-right a {
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-bottom-right a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Header - Rounded centered design */
    .header {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 500px;
        height: auto;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        padding: 0.75rem 1.25rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] .header {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .header.scrolled {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }

    .header-container {
        padding: 0;
        max-width: 100%;
    }

    .logo img {
        height: 32px;
    }

    /* Hide desktop nav */
    .nav {
        display: none;
    }

    /* Keep only theme toggle and hamburger visible */
    .header-actions .btn {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile Menu - Sidebar from Left */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-color);
        border-right: 1px solid var(--glass-border);
        padding: 2rem 1.5rem;
        box-shadow: 5px 0 40px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    [data-theme="light"] .mobile-menu {
        background: var(--bg-color);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    /* Overlay when menu is open */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-header img {
        height: 36px;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0 0 1.5rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mobile-menu-list a {
        display: block;
        padding: 1rem 1.25rem;
        color: var(--heading-color);
        font-weight: 600;
        font-size: 1rem;
        border-radius: 12px;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-menu-list a:hover,
    .mobile-menu-list a.active {
        background: rgba(249, 115, 22, 0.1);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .mobile-menu-divider {
        height: 1px;
        background: var(--border-color);
        margin: 0.5rem 0;
    }

    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .mobile-menu-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Footer Mobile Styles */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        display: block;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .footer-column {
        text-align: left;
    }

    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        gap: 0.6rem;
    }

    .footer-links li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1.5rem;
        text-align: center;
    }

    .footer-bottom-left p,
    .footer-bottom-right p {
        font-size: 0.8rem;
    }
}