/* ==========================================
   xQubit.AI - Quantum Computing meets AI Agents
   Modern Landing Page Styles
   ========================================== */

/* CSS Variables */
:root {
    /* Dark Theme Colors (default) */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a25;
    --color-bg-card: rgba(255, 255, 255, 0.02);
    --color-bg-card-hover: rgba(255, 255, 255, 0.05);

    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);

    /* New Color Palette - Quantum Teal & Amber (based on Pantone trends 2022-2025) */
    --color-accent-primary: #0EA5E9;    /* Sky Blue - primary quantum energy */
    --color-accent-secondary: #06B6D4;  /* Cyan - quantum computing */
    --color-accent-tertiary: #F59E0B;   /* Amber - warm accent, inspired by Peach Fuzz 2024 */
    --color-accent-highlight: #14B8A6;  /* Teal - technology & innovation */

    /* Legacy color names for compatibility */
    --color-accent-cyan: #0EA5E9;
    --color-accent-blue: #0284C7;

    /* Logo colors - Quantum Blue gradient for visibility in both themes */
    --color-logo-start: #0EA5E9;
    --color-logo-end: #0284C7;

    --gradient-primary: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-highlight) 100%);
    --gradient-logo: linear-gradient(135deg, var(--color-logo-start) 0%, var(--color-logo-end) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);

    /* Border colors */
    --color-border: rgba(255, 255, 255, 0.05);
    --color-border-hover: rgba(255, 255, 255, 0.1);

    /* Navbar scrolled background */
    --navbar-bg-scrolled: rgba(10, 10, 15, 0.9);

    /* Typography - American Tech Product Stack */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* Shadows */
    --shadow-glow-primary: 0 0 40px rgba(14, 165, 233, 0.3);
    --shadow-glow-secondary: 0 0 40px rgba(6, 182, 212, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);

    /* Legacy shadow names for compatibility */
    --shadow-glow-cyan: var(--shadow-glow-primary);
    --shadow-glow-purple: var(--shadow-glow-secondary);

    /* Layout */
    --container-max: 1280px;
    --navbar-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ==========================================
   Preloader
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.quantum-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.quantum-spinner::before,
.quantum-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: spin 1.5s linear infinite;
}

.quantum-spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: var(--color-accent-cyan);
    border-bottom-color: var(--color-accent-purple);
}

.quantum-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-left-color: var(--color-accent-cyan);
    border-right-color: var(--color-accent-purple);
    animation-direction: reverse;
    animation-duration: 1s;
}

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

.loader-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: var(--color-bg-primary);
    padding: var(--spacing-2xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 999;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--color-accent-cyan);
    color: var(--color-bg-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    background: #00d4e0;
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + var(--spacing-3xl)) var(--spacing-xl) var(--spacing-3xl);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    animation: fadeIn 0.6s ease 0.5s forwards;
    opacity: 0;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-accent-cyan);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

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

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

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-4xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-glow-cyan);
}

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

.feature-card-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-lg);
}

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

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.feature-visual {
    flex: 1;
    min-height: 200px;
    margin-top: var(--spacing-xl);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Technology Section
   ========================================== */
.technology {
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.tech-content {
    position: relative;
    z-index: 2;
}

.tech-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tech-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.tech-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: var(--color-bg-card-hover);
}

.tech-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent-cyan);
}

.tech-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.tech-item-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.tech-visual {
    position: relative;
    height: 500px;
}

#tech-canvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ==========================================
   AI Agents Section
   ========================================== */
.agents {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.agents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.agent-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow-purple);
}

.agent-card-featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.agent-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
}

.agent-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    animation: glowPulse 3s ease infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.agent-avatar svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.agent-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.agent-role {
    font-size: 0.875rem;
    color: var(--color-accent-cyan);
    margin-bottom: var(--spacing-md);
}

.agent-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.agent-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.about-visual {
    position: relative;
    height: 500px;
}

#about-canvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.metric {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

#cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    background: var(--color-bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--color-text-tertiary);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent-cyan);
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.community-link svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.footer-legal a:hover {
    color: var(--color-text-secondary);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .tech-wrapper,
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .tech-visual,
    .about-visual {
        height: 400px;
        order: -1;
    }

    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

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

    .mobile-menu {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-column: span 1;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card:last-child {
        grid-column: span 1;
    }

    .about-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* ==========================================
   Light Theme
   ========================================== */
[data-theme="light"] {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fc;
    --color-bg-tertiary: #f0f2f5;
    --color-bg-card: rgba(0, 0, 0, 0.02);
    --color-bg-card-hover: rgba(0, 0, 0, 0.04);

    --color-text-primary: #0f172a;
    --color-text-secondary: rgba(15, 23, 42, 0.7);
    --color-text-tertiary: rgba(15, 23, 42, 0.5);

    /* Logo colors - darker blue for light theme visibility */
    --color-logo-start: #0284C7;
    --color-logo-end: #0369A1;

    --gradient-glow: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);

    /* Border colors */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.12);

    /* Navbar scrolled background */
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.9);
}

/* Light theme specific overrides */
[data-theme="light"] .navbar.scrolled {
    background-color: var(--navbar-bg-scrolled);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--color-text-primary);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-indicator {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .features::before,
[data-theme="light"] .agents::before,
[data-theme="light"] .cta::before {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .tech-item,
[data-theme="light"] .agent-card,
[data-theme="light"] .metric {
    border-color: var(--color-border);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .feature-card::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .tech-item:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .agent-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .agent-stats {
    border-top-color: var(--color-border);
}

[data-theme="light"] .footer {
    border-top-color: var(--color-border);
}

[data-theme="light"] .footer-bottom {
    border-top-color: var(--color-border);
}

[data-theme="light"] .mobile-menu-btn span {
    background: var(--color-text-primary);
}

[data-theme="light"] .quantum-spinner::before {
    border-top-color: var(--color-accent-primary);
    border-bottom-color: var(--color-accent-secondary);
}

[data-theme="light"] .quantum-spinner::after {
    border-left-color: var(--color-accent-primary);
    border-right-color: var(--color-accent-secondary);
}

/* ==========================================
   Theme Toggle Button
   ========================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
}

.theme-toggle:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Theme transition */
body,
body * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
