/* ============================================
   TUMQUAN CORP - PRIMARY STYLES
   Single Source of Truth for All Styles
   Version: 3.0
   Last Updated: January 10, 2026
   ============================================ */

/* TABLE OF CONTENTS:
   1. CSS Variables & Design Tokens
   2. Global Resets & Base Styles
   3. Typography System
   4. Layout Utilities
   5. Component Classes
   6. Header - Desktop
   7. Header - Mobile (Media Queries)
   8. Homepage Components
   9. Page Components
   ============================================ */

/* ============================================
   SECTION 1-5: DESIGN SYSTEM & COMPONENTS
   (Variables, Resets, Typography, Layout, Components)
   ============================================ */

/* ============================================
   TUMQUAN CORP - MASTER DESIGN SYSTEM
   Corporate Quantum/AI Aesthetic
   Black & White with Strategic Accents
   Version: 2.0
   Last Updated: January 9, 2026
   ============================================ */

/* ============================================
   DESIGN TOKENS - DO NOT MODIFY WITHOUT APPROVAL
   ============================================ */

:root {
    /* ==========================================
       COLOR SYSTEM - Corporate Black & White
       ========================================== */

    /* Primary Blacks - Main UI */
    --color-black-pure: #000000;
    --color-black-900: #0a0a0f; /* Deepest UI black */
    --color-black-800: #12121a; /* Card backgrounds */
    --color-black-700: #1a1a24; /* Elevated surfaces */
    --color-black-600: #24242f; /* Hover states */

    /* Grays - Text & Borders */
    --color-gray-900: #18181b; /* Darkest text */
    --color-gray-800: #27272a; /* Body text */
    --color-gray-700: #3f3f46; /* Secondary text */
    --color-gray-600: #52525b; /* Muted text */
    --color-gray-500: #71717a; /* Placeholder text */
    --color-gray-400: #a1a1aa; /* Disabled text */
    --color-gray-300: #d4d4d8; /* Borders */
    --color-gray-200: #e4e4e7; /* Dividers */
    --color-gray-100: #f4f4f5; /* Subtle backgrounds */
    --color-gray-50: #fafafa; /* Off-white */

    /* Pure Whites */
    --color-white-pure: #ffffff;
    --color-white-soft: #fdfefe; /* Slightly warm white */

    /* ==========================================
       THEME SYSTEM - Light Mode (Default)
       ========================================== */

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f9fafb;
    --theme-bg-elevated: #fafafa;
    --theme-text-primary: #000000;
    --theme-text-secondary: #18181b;
    --theme-text-muted: #52525b;
    --theme-border: #e4e4e7;
    --theme-card-bg: #ffffff;
    --theme-card-border: #e4e4e7;
    --theme-shadow: rgba(0, 0, 0, 0.1);

    /* Quantum Accents - Strategic Use Only */
    --color-quantum-blue: #3b82f6; /* Primary quantum */
    --color-quantum-purple: #8b5cf6; /* Secondary quantum */
    --color-quantum-cyan: #06b6d4; /* Tertiary quantum */
    --color-quantum-electric: #60a5fa; /* Hover/Active states */

    /* AI/ML Accents - Machine Learning Feel */
    --color-ai-green: #10b981; /* Success/Active AI */
    --color-ai-emerald: #059669; /* AI Processing */
    --color-ai-teal: #14b8a6; /* Data flow */

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* ==========================================
       TYPOGRAPHY SYSTEM
       ========================================== */

    /* Font Families */
    --font-display:
        "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", sans-serif;
    --font-body:
        "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        sans-serif;
    --font-mono:
        "SF Mono", "JetBrains Mono", "Fira Code", "Consolas", monospace;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem); /* 12-13px */
    --text-sm: clamp(0.875rem, 0.8rem + 0.2vw, 0.9375rem); /* 14-15px */
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem); /* 16-17px */
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); /* 18-20px */
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); /* 20-24px */
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem); /* 24-30px */
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem); /* 30-36px */
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem); /* 36-48px */
    --text-5xl: clamp(3rem, 2.55rem + 2.25vw, 4rem); /* 48-64px */
    --text-6xl: clamp(3.75rem, 3.15rem + 3vw, 5rem); /* 60-80px */

    /* Font Weights */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ==========================================
       SPACING SYSTEM - 8px Base Grid
       ========================================== */

    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem; /* 2px */
    --space-1: 0.25rem; /* 4px */
    --space-1-5: 0.375rem; /* 6px */
    --space-2: 0.5rem; /* 8px */
    --space-2-5: 0.625rem; /* 10px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-7: 1.75rem; /* 28px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */
    --space-14: 3.5rem; /* 56px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px */
    --space-24: 6rem; /* 96px */
    --space-28: 7rem; /* 112px */
    --space-32: 8rem; /* 128px */
    --space-36: 9rem; /* 144px */
    --space-40: 10rem; /* 160px */
    --space-44: 11rem; /* 176px */
    --space-48: 12rem; /* 192px */
    --space-56: 14rem; /* 224px */
    --space-64: 16rem; /* 256px */

    /* ==========================================
       BORDER RADIUS - Sharp to Soft
       ========================================== */

    --radius-none: 0;
    --radius-sm: 0.125rem; /* 2px - Ultra sharp */
    --radius-base: 0.25rem; /* 4px - Sharp corporate */
    --radius-md: 0.375rem; /* 6px - Subtle rounding */
    --radius-lg: 0.5rem; /* 8px - Noticeable rounding */
    --radius-xl: 0.75rem; /* 12px - Prominent rounding */
    --radius-2xl: 1rem; /* 16px - Very round */
    --radius-3xl: 1.5rem; /* 24px - Extra round */
    --radius-full: 9999px; /* Fully circular */

    /* ==========================================
       SHADOWS - Elevation System
       ========================================== */

    /* Light Shadows (for light backgrounds) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base:
        0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Dark Shadows (for dark backgrounds) */
    --shadow-dark-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-dark-base:
        0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-dark-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-dark-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-dark-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --shadow-dark-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.95);

    /* Quantum Glow Effects */
    --glow-quantum:
        0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
    --glow-quantum-strong:
        0 0 30px rgba(59, 130, 246, 0.7), 0 0 60px rgba(59, 130, 246, 0.5);
    --glow-ai:
        0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);

    /* ==========================================
       TRANSITIONS & ANIMATIONS
       ========================================== */

    /* Timing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Durations */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;

    /* ==========================================
       Z-INDEX LAYERS
       ========================================== */

    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    --z-max: 9999;

    /* ==========================================
       LAYOUT CONSTRAINTS
       ========================================== */

    /* Container Widths */
    --container-xs: 20rem; /* 320px */
    --container-sm: 24rem; /* 384px */
    --container-md: 28rem; /* 448px */
    --container-lg: 32rem; /* 512px */
    --container-xl: 36rem; /* 576px */
    --container-2xl: 42rem; /* 672px */
    --container-3xl: 48rem; /* 768px */
    --container-4xl: 56rem; /* 896px */
    --container-5xl: 64rem; /* 1024px */
    --container-6xl: 72rem; /* 1152px */
    --container-7xl: 80rem; /* 1280px */
    --container-8xl: 90rem; /* 1440px */
    --container-full: 100%;

    /* Max Width for Content */
    --max-content: 65ch; /* Optimal reading width */

    /* ==========================================
       BREAKPOINTS (for reference in media queries)
       ========================================== */

    --breakpoint-xs: 320px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    --breakpoint-3xl: 1920px;
}

/* ============================================
   GLOBAL RESETS & IMPROVEMENTS
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   DARK MODE THEME
   ========================================== */

[data-theme="dark"] {
    --theme-bg-primary: #0a0a0f;
    --theme-bg-secondary: #12121a;
    --theme-bg-elevated: #1a1a24;
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #f4f4f5;
    --theme-text-muted: #e4e4e7;
    --theme-border: #27272a;
    --theme-card-bg: #12121a;
    --theme-card-border: #27272a;
    --theme-shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--theme-text-primary);
    background-color: var(--theme-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition:
        background-color var(--duration-300) var(--ease-in-out),
        color var(--duration-300) var(--ease-in-out);
}

/* Focus Styles - Accessibility */
*:focus {
    outline: 2px solid var(--color-quantum-blue);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-quantum-blue);
    outline-offset: 2px;
}

/* Selection Colors */
::selection {
    background-color: var(--color-quantum-blue);
    color: var(--color-white-pure);
}

::-moz-selection {
    background-color: var(--color-quantum-blue);
    color: var(--color-white-pure);
}

/* ============================================
   GLOBAL TYPOGRAPHY - SITE-WIDE CONSISTENCY
   ============================================ */

/* Base HTML Elements - Applied to ALL pages */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--theme-text-primary);
    margin: 0 0 var(--space-4) 0;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tighter);
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

p {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--theme-text-secondary);
    margin: 0 0 var(--space-4) 0;
}

a {
    color: var(--color-quantum-blue);
    text-decoration: none;
    transition: color var(--duration-200) var(--ease-in-out);
}

a:hover {
    color: var(--color-quantum-electric);
}

a:focus-visible {
    outline: 2px solid var(--color-quantum-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

strong,
b {
    font-weight: var(--font-bold);
    color: var(--theme-text-primary);
}

em,
i {
    font-style: italic;
}

ul,
ol {
    margin: 0 0 var(--space-4) 0;
    padding-left: var(--space-6);
    color: var(--theme-text-secondary);
}

li {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-6);
    border-left: 4px solid var(--color-quantum-blue);
    background: var(--theme-bg-elevated);
    font-style: italic;
    color: var(--theme-text-secondary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.125rem 0.375rem;
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    color: var(--color-quantum-cyan);
}

pre {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    padding: 0;
    background: none;
    border: none;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */

/* Headings */
.heading-1,
.h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white-pure);
}

.heading-2,
.h2 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-white-pure);
}

.heading-3,
.h3 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    color: var(--color-white-pure);
}

.heading-4,
.h4 {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-snug);
    color: var(--color-white-pure);
}

.heading-5,
.h5 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-normal);
    color: var(--color-white-pure);
}

.heading-6,
.h6 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: var(--color-white-pure);
}

/* Body Text Sizes */
.text-xs {
    font-size: var(--text-xs);
}
.text-sm {
    font-size: var(--text-sm);
}
.text-base {
    font-size: var(--text-base);
}
.text-lg {
    font-size: var(--text-lg);
}
.text-xl {
    font-size: var(--text-xl);
}
.text-2xl {
    font-size: var(--text-2xl);
}
.text-3xl {
    font-size: var(--text-3xl);
}
.text-4xl {
    font-size: var(--text-4xl);
}
.text-5xl {
    font-size: var(--text-5xl);
}
.text-6xl {
    font-size: var(--text-6xl);
}

/* Font Weights */
.font-thin {
    font-weight: var(--font-thin);
}
.font-extralight {
    font-weight: var(--font-extralight);
}
.font-light {
    font-weight: var(--font-light);
}
.font-normal {
    font-weight: var(--font-normal);
}
.font-medium {
    font-weight: var(--font-medium);
}
.font-semibold {
    font-weight: var(--font-semibold);
}
.font-bold {
    font-weight: var(--font-bold);
}
.font-extrabold {
    font-weight: var(--font-extrabold);
}
.font-black {
    font-weight: var(--font-black);
}

/* Text Colors */
.text-white {
    color: var(--color-white-pure);
}
.text-gray-100 {
    color: var(--color-gray-100);
}
.text-gray-200 {
    color: var(--color-gray-200);
}
.text-gray-300 {
    color: var(--color-gray-300);
}
.text-gray-400 {
    color: var(--color-gray-400);
}
.text-gray-500 {
    color: var(--color-gray-500);
}
.text-gray-600 {
    color: var(--color-gray-600);
}
.text-gray-700 {
    color: var(--color-gray-700);
}
.text-quantum {
    color: var(--color-quantum-blue);
}
.text-ai {
    color: var(--color-ai-green);
}

/* Text Gradient Effects */
.text-gradient-quantum {
    background: linear-gradient(
        135deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple),
        var(--color-quantum-cyan)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-ai {
    background: linear-gradient(
        135deg,
        var(--color-ai-green),
        var(--color-ai-emerald),
        var(--color-ai-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Utilities */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.text-justify {
    text-align: justify;
}

.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}
.capitalize {
    text-transform: capitalize;
}

.italic {
    font-style: italic;
}
.not-italic {
    font-style: normal;
}

.underline {
    text-decoration: underline;
}
.line-through {
    text-decoration: line-through;
}
.no-underline {
    text-decoration: none;
}

/* Line Heights */
.leading-none {
    line-height: var(--leading-none);
}
.leading-tight {
    line-height: var(--leading-tight);
}
.leading-snug {
    line-height: var(--leading-snug);
}
.leading-normal {
    line-height: var(--leading-normal);
}
.leading-relaxed {
    line-height: var(--leading-relaxed);
}
.leading-loose {
    line-height: var(--leading-loose);
}

/* Letter Spacing */
.tracking-tighter {
    letter-spacing: var(--tracking-tighter);
}
.tracking-tight {
    letter-spacing: var(--tracking-tight);
}
.tracking-normal {
    letter-spacing: var(--tracking-normal);
}
.tracking-wide {
    letter-spacing: var(--tracking-wide);
}
.tracking-wider {
    letter-spacing: var(--tracking-wider);
}
.tracking-widest {
    letter-spacing: var(--tracking-widest);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-7xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Section Spacing */
.section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--space-24);
        padding-bottom: var(--space-24);
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--space-32);
        padding-bottom: var(--space-32);
    }
}

/* Display */
.block {
    display: block;
}
.inline-block {
    display: inline-block;
}
.inline {
    display: inline;
}
.flex {
    display: flex;
}
.inline-flex {
    display: inline-flex;
}
.grid {
    display: grid;
}
.hidden {
    display: none;
}

/* Flexbox Utilities */
.flex-row {
    flex-direction: row;
}
.flex-col {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}

.items-start {
    align-items: flex-start;
}
.items-center {
    align-items: center;
}
.items-end {
    align-items: flex-end;
}
.items-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.justify-between {
    justify-content: space-between;
}
.justify-around {
    justify-content: space-around;
}

.gap-1 {
    gap: var(--space-1);
}
.gap-2 {
    gap: var(--space-2);
}
.gap-3 {
    gap: var(--space-3);
}
.gap-4 {
    gap: var(--space-4);
}
.gap-6 {
    gap: var(--space-6);
}
.gap-8 {
    gap: var(--space-8);
}
.gap-12 {
    gap: var(--space-12);
}
.gap-16 {
    gap: var(--space-16);
}

/* Grid Utilities */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* ============================================
   BACKGROUND COLORS & PATTERNS
   ============================================ */

/* Solid Backgrounds */
.bg-black {
    background-color: var(--color-black-pure);
}
.bg-black-900 {
    background-color: var(--color-black-900);
}
.bg-black-800 {
    background-color: var(--color-black-800);
}
.bg-black-700 {
    background-color: var(--color-black-700);
}
.bg-white {
    background-color: var(--color-white-pure);
}
.bg-quantum {
    background-color: var(--color-quantum-blue);
}
.bg-ai {
    background-color: var(--color-ai-green);
}

/* Gradient Backgrounds */
.bg-gradient-quantum {
    background: linear-gradient(
        135deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple)
    );
}

.bg-gradient-ai {
    background: linear-gradient(
        135deg,
        var(--color-ai-green),
        var(--color-ai-teal)
    );
}

.bg-gradient-dark {
    background: linear-gradient(
        180deg,
        var(--color-black-900) 0%,
        var(--color-black-800) 100%
    );
}

/* Quantum Grid Pattern */
.bg-quantum-grid {
    background-color: var(--color-black-900);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   BORDER UTILITIES
   ============================================ */

.border {
    border-width: 1px;
}
.border-2 {
    border-width: 2px;
}
.border-4 {
    border-width: 4px;
}
.border-0 {
    border-width: 0;
}

.border-gray-800 {
    border-color: var(--color-gray-800);
}
.border-gray-700 {
    border-color: var(--color-gray-700);
}
.border-gray-300 {
    border-color: var(--color-gray-300);
}
.border-quantum {
    border-color: var(--color-quantum-blue);
}
.border-ai {
    border-color: var(--color-ai-green);
}

/* Border Radius */
.rounded-none {
    border-radius: var(--radius-none);
}
.rounded-sm {
    border-radius: var(--radius-sm);
}
.rounded {
    border-radius: var(--radius-base);
}
.rounded-md {
    border-radius: var(--radius-md);
}
.rounded-lg {
    border-radius: var(--radius-lg);
}
.rounded-xl {
    border-radius: var(--radius-xl);
}
.rounded-2xl {
    border-radius: var(--radius-2xl);
}
.rounded-3xl {
    border-radius: var(--radius-3xl);
}
.rounded-full {
    border-radius: var(--radius-full);
}

/* ============================================
   SHADOW & GLOW EFFECTS
   ============================================ */

.shadow-sm {
    box-shadow: var(--shadow-dark-sm);
}
.shadow {
    box-shadow: var(--shadow-dark-base);
}
.shadow-md {
    box-shadow: var(--shadow-dark-md);
}
.shadow-lg {
    box-shadow: var(--shadow-dark-lg);
}
.shadow-xl {
    box-shadow: var(--shadow-dark-xl);
}
.shadow-2xl {
    box-shadow: var(--shadow-dark-2xl);
}
.shadow-none {
    box-shadow: none;
}

/* Quantum Glow */
.glow-quantum {
    box-shadow: var(--glow-quantum);
}
.glow-quantum-strong {
    box-shadow: var(--glow-quantum-strong);
}
.glow-ai {
    box-shadow: var(--glow-ai);
}

/* Hover Glow */
.hover-glow-quantum:hover {
    box-shadow: var(--glow-quantum);
}
.hover-glow-ai:hover {
    box-shadow: var(--glow-ai);
}

/* ============================================
   TRANSITION UTILITIES
   ============================================ */

.transition-none {
    transition: none;
}
.transition-all {
    transition-property: all;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}

/* Duration Modifiers */
.duration-75 {
    transition-duration: var(--duration-75);
}
.duration-100 {
    transition-duration: var(--duration-100);
}
.duration-150 {
    transition-duration: var(--duration-150);
}
.duration-200 {
    transition-duration: var(--duration-200);
}
.duration-300 {
    transition-duration: var(--duration-300);
}
.duration-500 {
    transition-duration: var(--duration-500);
}
.duration-700 {
    transition-duration: var(--duration-700);
}

/* Ease Modifiers */
.ease-linear {
    transition-timing-function: var(--ease-linear);
}
.ease-in {
    transition-timing-function: var(--ease-in);
}
.ease-out {
    transition-timing-function: var(--ease-out);
}
.ease-in-out {
    transition-timing-function: var(--ease-in-out);
}

/* ============================================
   COMPONENT CLASSES
   ============================================ */

/* Cards */
.card {
    background-color: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-base);
    padding: var(--space-6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all var(--duration-300) var(--ease-in-out);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    background-color: rgba(15, 15, 20, 0.8);
}

.card-quantum {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        rgba(139, 92, 246, 0.05)
    );
    border: 1px solid var(--color-quantum-blue);
}

/* ============================================
   PREMIUM BUTTONS - NEXT-GEN DESIGN
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--color-quantum-blue);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Primary Button - Quantum Gradient */
.btn-primary {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 1) 0%,
        rgba(139, 92, 246, 1) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 14px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 1) 0%,
        rgba(99, 102, 241, 1) 100%
    );
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Secondary Button - Glass Morphism */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary::before {
    background: rgba(99, 102, 241, 0.15);
}

.btn-secondary:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Ghost Button - Minimal */
.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
}

.btn-ghost::before {
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover::before {
    opacity: 1;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* ============================================
   HOMEPAGE COMPONENTS
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(
        ellipse at top,
        rgba(59, 130, 246, 0.12) 0%,
        #0a0a0f 50%,
        #0a0a0f 100%
    );
    overflow: hidden;
}

.hero-quantum-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            ellipse at 20% 30%,
            rgba(99, 102, 241, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            ellipse at 80% 70%,
            rgba(139, 92, 246, 0.06) 0%,
            transparent 40%
        );
    opacity: 1;
    z-index: 1;
}

#quantum-particles-hero,
#quantum-particles-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#quantum-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    color: var(--color-white-pure);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #818cf8 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-12);
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
}

.btn-hero-primary {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 4px 14px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-hero-secondary:hover {
    background: rgba(30, 30, 50, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-black-900);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 30, 0.6) 0%,
        rgba(20, 20, 35, 0.6) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.6) 20%,
        rgba(139, 92, 246, 0.6) 50%,
        rgba(99, 102, 241, 0.6) 80%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 35, 0.8) 0%,
        rgba(25, 25, 40, 0.8) 100%
    );
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.stat-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 0.25rem;
    display: block;
}

/* Clickable Stat Item */
.stat-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-item-clickable {
    cursor: pointer;
}

.stat-item-clickable:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-item-clickable .stat-number {
    color: #10b981;
}

.stat-item-clickable:hover .stat-number {
    color: #059669;
}

/* Features Section */
.features-section {
    position: relative;
    padding: var(--space-16) 0;
    background: #ffffff;
}

.section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2),
        rgba(139, 92, 246, 0.2)
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    color: #818cf8;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 20;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: white;
    line-height: 1.2;
}

/* Light background sections need dark text */
.section-light .section-title {
    color: #0a0a0f;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* Light background sections need dark text */
.section-light .section-description {
    color: rgba(10, 10, 15, 0.7);
}

.features-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card {
    position: relative;
    background: rgba(10, 10, 15, 0.6);
    padding: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    background: rgba(15, 15, 20, 0.8);
}

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

/* Light Theme Feature Cards */
[data-theme="light"] .feature-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 100%
    );
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 16px 48px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .feature-title {
    color: var(--color-black-900);
}

[data-theme="light"] .feature-description {
    color: rgba(0, 0, 0, 0.7);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
    color: white;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

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

.feature-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: #ffffff;
    letter-spacing: -0.01em;
}

.feature-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.feature-link,
.feature-link-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #818cf8;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-link,
.feature-card:hover .feature-link-text {
    color: #6366f1;
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        ellipse at top,
        rgba(59, 130, 246, 0.12) 0%,
        #0a0a0f 50%,
        #0a0a0f 100%
    );
    overflow: hidden;
    padding: var(--space-16) 0;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white-pure);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    color: white;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE HERO - PREMIUM DESIGN
   ============================================ */

.page-hero {
    position: relative;
    background: #000000;
    color: var(--color-white-pure);
    margin-top: 72px;
    padding: 2.5rem 0 2rem;
    text-align: left;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.page-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

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

.page-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    font-family: var(--font-display);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.page-hero-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

@keyframes subtle-glow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.page-hero-subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 1.5rem 0 0 0;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0;
    font-family: var(--font-body);
}

/* Light Mode Page Hero */
[data-theme="light"] .page-hero {
    background: #ffffff;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .page-hero::before {
    background-image:
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .page-hero::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

[data-theme="light"] .page-hero-title {
    color: #000000;
}

[data-theme="light"] .page-hero-subtitle {
    color: rgba(0, 0, 0, 0.65);
}

/* ============================================
   PAGE CONTENT COMPONENTS
   ============================================ */

.page-content {
    padding: var(--space-10) 0;
    background: #000000;
    min-height: 40vh;
    transition: background-color var(--duration-300) var(--ease-in-out);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.content-section {
    margin-bottom: var(--space-10);
}

.content-section h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: #3b82f6;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.content-section h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: #60a5fa;
    letter-spacing: -0.01em;
}

.content-section h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: #60a5fa;
}

.content-section p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
    font-weight: 400;
}

.content-section ul,
.content-section ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-8);
    color: rgba(255, 255, 255, 0.8);
}

.content-section li {
    font-size: var(--text-base);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-3);
}

.content-section strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Highlight Box */
.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    padding: var(--space-5);
    border-radius: var(--radius-base);
    margin: var(--space-6) 0;
    transition: background-color var(--duration-300) var(--ease-in-out);
}

[data-theme="dark"] .highlight-box {
    background: rgba(59, 130, 246, 0.08);
}

.highlight-box h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--theme-text-primary);
}

.highlight-box p,
.highlight-box ul,
.highlight-box li {
    color: var(--theme-text-secondary);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.info-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 1rem;
    padding: var(--space-6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-quantum-blue) 20%,
        var(--color-quantum-purple) 50%,
        var(--color-quantum-cyan) 80%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(99, 102, 241, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: var(--color-white-pure);
}

.info-card:hover::before,
.info-card:hover::after {
    opacity: 1;
}

.info-card h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-3);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.info-card:hover h4 {
    color: var(--color-quantum-blue);
}

.info-card p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-700);
    margin-bottom: 0;
}

/* Legal Pages */
.legal-section {
    margin-bottom: var(--space-8);
}

.legal-section h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: #3b82f6;
}

.legal-section p,
.legal-section li {
    font-size: var(--text-base);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.last-updated {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

/* ============================================
   QUANTUM ANIMATIONS
   ============================================ */

@keyframes quantum-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes quantum-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

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

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-pulse {
    animation: quantum-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: quantum-glow 3s ease-in-out infinite;
}

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

.animate-fade-in {
    animation: fade-in var(--duration-500) var(--ease-out);
}

.animate-slide-in-up {
    animation: slide-in-up var(--duration-500) var(--ease-out);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 639px) {
    .sm-hidden {
        display: none;
    }
}

@media (min-width: 640px) {
    .sm-block {
        display: block;
    }
    .sm-flex {
        display: flex;
    }
    .sm-grid {
        display: grid;
    }
}

@media (min-width: 768px) {
    .md-block {
        display: block;
    }
    .md-flex {
        display: flex;
    }
    .md-grid {
        display: grid;
    }
}

@media (min-width: 1024px) {
    .lg-block {
        display: block;
    }
    .lg-flex {
        display: flex;
    }
    .lg-grid {
        display: grid;
    }
}

@media (min-width: 1280px) {
    .xl-block {
        display: block;
    }
    .xl-flex {
        display: flex;
    }
    .xl-grid {
        display: grid;
    }
}

/* ============================================
   HOMEPAGE RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 1.625rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .feature-card {
        padding: var(--space-4);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-3);
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.375rem;
    }

    .stat-label {
        font-size: 0.6875rem;
        letter-spacing: 0.03em;
    }
}

/* ============================================
   TUMQUAN SYNTAX MARKDOWN - CODE DISPLAY
   ============================================ */

/* Code Block Container */
.syntax-block {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(15, 10, 30, 0.98) 0%,
        rgba(10, 10, 15, 0.98) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.syntax-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple),
        var(--color-quantum-cyan)
    );
}

/* Code Header (Optional - for language label) */
.syntax-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.syntax-language {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-quantum-electric);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Code Content */
.syntax-code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-100);
    overflow-x: auto;
    white-space: pre;
}

.syntax-code code {
    font-family: var(--font-mono);
    background: transparent;
    border: none;
    padding: 0;
}

/* Inline Code */
.syntax-inline {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-quantum-electric);
    padding: var(--space-0-5) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Syntax Highlighting Colors */
.syntax-keyword {
    color: var(--color-quantum-purple);
    font-weight: var(--font-semibold);
}

.syntax-string {
    color: var(--color-ai-teal);
}

.syntax-comment {
    color: var(--color-gray-500);
    font-style: italic;
}

.syntax-function {
    color: var(--color-quantum-electric);
}

.syntax-number {
    color: var(--color-ai-green);
}

.syntax-operator {
    color: var(--color-gray-300);
}

.syntax-variable {
    color: var(--color-white-pure);
}

/* Command Line Style */
.syntax-cli {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(16, 185, 129, 0.3);
}

.syntax-cli::before {
    background: linear-gradient(
        90deg,
        var(--color-ai-green),
        var(--color-ai-emerald)
    );
}

.syntax-cli .syntax-code {
    color: var(--color-ai-green);
}

/* Copy Button (Optional) */
.syntax-copy-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-base);
    color: var(--color-gray-300);
    font-size: var(--text-xs);
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-in-out);
}

.syntax-copy-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-quantum-blue);
    color: var(--color-white-pure);
}

/* ============================================
   FOOTER COMPONENTS
   ============================================ */

.main-footer {
    background: var(--theme-bg-primary);
    border-top: 1px solid var(--theme-border);
    padding: var(--space-16) 0 var(--space-8);
    transition: all var(--duration-300) var(--ease-in-out);
}

.footer-container {
    max-width: var(--container-7xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* About Tumquan Section - Stylized */
.footer-brand-section {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(139, 92, 246, 0.03) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    margin-bottom: var(--space-12);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.footer-brand-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple),
        var(--color-quantum-cyan)
    );
}

[data-theme="dark"] .footer-brand-section {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(139, 92, 246, 0.08) 100%
    );
    border-color: rgba(99, 102, 241, 0.25);
}

.footer-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--theme-text-secondary);
    text-align: center;
    margin: 0;
    font-weight: var(--font-normal);
}

.footer-description strong {
    color: var(--theme-text-primary);
    font-weight: var(--font-bold);
    background: linear-gradient(
        135deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Separator */
.footer-separator {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--theme-border),
        transparent
    );
    margin: var(--space-8) 0;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-column h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--theme-text-primary);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-size: var(--text-base);
    transition: all var(--duration-200) var(--ease-in-out);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-quantum-blue);
    transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-6);
}

.footer-copyright {
    color: var(--theme-text-muted);
    font-size: var(--text-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-quantum-blue);
    transition: all var(--duration-200) var(--ease-in-out);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-quantum-blue);
    color: var(--color-white-pure);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .footer-brand-section {
        padding: var(--space-6);
    }

    .footer-description {
        font-size: var(--text-base);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ============================================
   THEME TOGGLE & DARK MODE SUPPORT
   ============================================ */

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-quantum-blue);
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.theme-icon-light {
    opacity: 1;
}

.theme-icon-dark {
    opacity: 0;
}

/* Dark theme active state */
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
}

/* Dark Theme Variables */
[data-theme="light"] {
    /* Override dark colors for light mode */
    --color-bg-primary: var(--color-white-pure);
    --color-bg-secondary: var(--color-gray-50);
    --color-bg-tertiary: var(--color-gray-100);
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-700);
    --color-text-tertiary: var(--color-gray-600);
    --color-border-primary: var(--color-gray-300);
    --color-border-secondary: var(--color-gray-200);
}

[data-theme="light"] .page-content {
    background: var(--color-white-pure);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--color-black-900);
}

[data-theme="light"] .content-section h2,
[data-theme="light"] h2 {
    color: #0d179b;
}

[data-theme="light"] p,
[data-theme="light"] li {
    color: var(--color-gray-900);
}

/* Additional Light Mode Text Overrides */
[data-theme="light"] .content-section p {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .content-section ul,
[data-theme="light"] .content-section ol,
[data-theme="light"] .content-section li {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .content-section strong {
    color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .section-title {
    color: #0a0a0f;
}

[data-theme="light"] .section-description {
    color: rgba(10, 10, 15, 0.7);
}

[data-theme="light"] .feature-icon {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

[data-theme="light"] .highlight-box {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .stat-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(250, 250, 250, 0.9) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .stat-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 250, 252, 1) 100%
    );
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .stat-number {
    color: #3b82f6;
}

[data-theme="light"] .stat-item-clickable .stat-number {
    color: #10b981;
}

[data-theme="light"] .stat-item-clickable:hover .stat-number {
    color: #059669;
}

[data-theme="light"] .stat-label {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .stat-sublabel {
    color: rgba(0, 0, 0, 0.5);
}

/* Employee Login Link */
.employee-login-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.employee-login-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .employee-login-link {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .employee-login-link:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Light Mode CTA Section */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #dbeafe 100%);
}

[data-theme="light"] .cta-content {
    z-index: 20;
}

[data-theme="light"] .cta-title {
    color: #0f172a;
}

[data-theme="light"] .cta-subtitle {
    color: rgba(15, 23, 42, 0.7);
}

/* Light Mode Button Overrides */
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    border: 2px solid rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

[data-theme="light"] .btn-ghost {
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .btn-ghost:hover {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

/* Light Mode Legal Pages */
[data-theme="light"] .legal-section h3 {
    color: #0d179b;
}

[data-theme="light"] .legal-section p,
[data-theme="light"] .legal-section li {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .last-updated {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .info-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 100%
    );
    border-color: rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .info-card {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 35, 0.9) 0%,
        rgba(25, 25, 40, 0.9) 100%
    );
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-card::before {
    opacity: 1;
}

[data-theme="dark"] .info-card::after {
    opacity: 1;
}

[data-theme="dark"] .info-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .info-card h4 {
    color: var(--color-quantum-blue);
}

/* CTA Box - Base Styles */
.cta-box {
    position: relative;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
    text-align: center;
    overflow: hidden;
}

.cta-box h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.cta-box p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    margin: var(--space-2);
}

/* Dark Mode CTA Box */
[data-theme="dark"] .cta-box {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15),
        rgba(139, 92, 246, 0.15)
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #6366f1 20%,
        #8b5cf6 50%,
        #06b6d4 80%,
        transparent
    );
}

[data-theme="dark"] .cta-box h3 {
    color: #ffffff;
}

[data-theme="dark"] .cta-box p {
    color: rgba(255, 255, 255, 0.85);
}

/* Light Mode CTA Box */
[data-theme="light"] .cta-box {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.08),
        rgba(139, 92, 246, 0.08)
    );
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #6366f1 20%,
        #8b5cf6 50%,
        #06b6d4 80%,
        transparent
    );
}

[data-theme="light"] .cta-box h3 {
    color: #0f172a;
}

[data-theme="light"] .cta-box p {
    color: rgba(15, 23, 42, 0.85);
}

/* Light Mode Form Fields */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] textarea {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    color: #0f172a;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 0 rgba(99, 102, 241, 0);
    transition: all 0.3s ease;
}

[data-theme="light"] .form-input:hover,
[data-theme="light"] .form-textarea:hover,
[data-theme="light"] select:hover,
[data-theme="light"] input[type="text"]:hover,
[data-theme="light"] input[type="email"]:hover,
[data-theme="light"] input[type="tel"]:hover,
[data-theme="light"] textarea:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: #fafafa;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] select:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="tel"]:focus,
[data-theme="light"] textarea:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .form-label,
[data-theme="light"] label {
    color: #0f172a;
    font-weight: 600;
}

[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-link {
    color: var(--color-gray-900);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-quantum-blue);
}

[data-theme="light"] .logo-text {
    background: linear-gradient(
        135deg,
        var(--color-black-900) 0%,
        var(--color-quantum-blue) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .theme-toggle {
    color: var(--color-gray-900);
}

[data-theme="light"] .theme-toggle:hover {
    color: var(--color-quantum-blue);
}

[data-theme="light"] .search-toggle,
[data-theme="light"] .mobile-menu-toggle span {
    color: var(--color-gray-900);
}

[data-theme="light"] .hero-section {
    background: linear-gradient(
        180deg,
        rgba(238, 242, 255, 1) 0%,
        rgba(245, 247, 255, 1) 50%,
        rgba(250, 251, 255, 1) 100%
    );
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle {
    color: var(--color-black-900);
}

[data-theme="light"] .stat-label {
    color: var(--color-gray-700);
}

[data-theme="light"] .footer {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.search-modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 600px;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 30, 0.95) 0%,
        rgba(20, 20, 35, 0.95) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.search-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-suggestions {
    margin-top: 2rem;
}

.search-suggestions-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.search-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-suggestion-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff;
    transform: translateX(4px);
}

/* Light Theme */
[data-theme="light"] .search-modal-content {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 100%
    );
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .search-modal-title {
    color: var(--color-black-900);
}

[data-theme="light"] .search-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--color-black-900);
}

[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .search-suggestions-title {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .search-suggestion-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(99, 102, 241, 0.15);
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .search-suggestion-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(0, 0, 0, 0.95);
}

/* ============================================
   END OF DESIGN SYSTEM
   Tumquan Corp © 2026
   ============================================ */

/* ============================================
   SECTION 6: HEADER - DESKTOP
   ============================================ */

/* ============================================
   TUMQUAN PREMIUM HEADER - NEXT-GEN DESIGN
   Rich Technology Aesthetic
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 15, 0.92) 0%,
        rgba(10, 10, 25, 0.95) 50%,
        rgba(5, 5, 15, 0.92) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(
            90deg,
            transparent,
            rgba(99, 102, 241, 0.3) 20%,
            rgba(139, 92, 246, 0.3) 50%,
            rgba(99, 102, 241, 0.3) 80%,
            transparent
        )
        1;
    z-index: var(--z-fixed);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(99, 102, 241, 0.08);
}

.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.5) 20%,
        rgba(139, 92, 246, 0.6) 50%,
        rgba(99, 102, 241, 0.5) 80%,
        transparent
    );
    opacity: 0.6;
}

.main-header.scrolled {
    height: 64px;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 15, 0.98) 0%,
        rgba(10, 10, 25, 0.98) 50%,
        rgba(5, 5, 15, 0.98) 100%
    );
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(99, 102, 241, 0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ============================================
   BRAND LOGO
   ============================================ */

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-container::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(
        180deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple)
    );
    border-radius: 2px;
    transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-container:hover::before {
    height: 32px;
}

.logo-container:hover {
    transform: translateX(4px);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 40px rgba(129, 140, 248, 0.4);
    filter: drop-shadow(0 2px 12px rgba(129, 140, 248, 0.3));
}

/* ============================================
   NAVIGATION
   ============================================ */

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.08) 100%
    );
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-item:hover .dropdown-arrow {
    transform: translateY(2px);
    opacity: 1;
}

/* ============================================
   MEGA MENU - PREMIUM DESIGN
   ============================================ */

.mega-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100vw;
    background: linear-gradient(
        135deg,
        rgba(8, 8, 20, 0.98) 0%,
        rgba(12, 12, 28, 0.98) 50%,
        rgba(8, 8, 20, 0.98) 100%
    );
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 999;
}

.mega-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.4) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(99, 102, 241, 0.4) 80%,
        transparent
    );
}

.nav-item:hover .mega-menu,
.nav-item.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

.mega-menu-item {
    display: block;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 30, 0.6) 0%,
        rgba(20, 20, 35, 0.4) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-menu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--color-quantum-blue),
        var(--color-quantum-purple)
    );
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mega-menu-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(8px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.15);
}

.mega-menu-item:hover::before {
    opacity: 1;
}

.mega-menu-item:hover::after {
    transform: scaleY(1);
}

.mega-menu-item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-menu-item-title {
    color: #a5b4fc;
}

.mega-menu-item-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    position: relative;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-menu-item-description {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   HEADER CTA BUTTON
   ============================================ */

.header-cta {
    margin-left: 1.5rem;
}

.header-cta .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 1) 0%,
        rgba(139, 92, 246, 1) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-cta .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 1) 0%,
        rgba(99, 102, 241, 1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-cta .btn:hover::before {
    opacity: 1;
}

.header-cta .btn span {
    position: relative;
    z-index: 1;
}

/* ============================================
   THEME TOGGLE & SEARCH
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.theme-toggle,
.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover,
.search-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.theme-icon-light {
    display: block;
}

.theme-icon-dark {
    display: none;
}

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

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #ffffff;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-theme-toggle {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* CRITICAL: Ensure header is always visible on mobile */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
        z-index: 9999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(10, 10, 25, 0.95) !important;
    }

    /* Header container adjustments */
    .header-container {
        padding: 0 1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
    }

    /* Logo adjustments - ensure it's visible */
    .logo-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        color: white !important;
    }

    .logo-text {
        font-size: 1.25rem !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        background: none !important;
        -webkit-text-fill-color: white !important;
        text-fill-color: white !important;
    }

    /* Hide desktop header actions (search and theme toggle) */
    .header-actions {
        display: none !important;
    }

    /* Show mobile menu toggle - CRITICAL */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        padding: 8px !important;
        cursor: pointer !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        background: white !important;
    }

    /* Hide desktop CTA button */
    .header-cta {
        display: none !important;
    }

    /* Show mobile menu header with close and theme toggle */
    .mobile-menu-header {
        display: flex !important;
    }

    /* Ensure main content doesn't overlap header */
    .main-content {
        margin-top: 64px !important;
    }

    /* Hide desktop nav - show only hamburger menu version */
    .header-container > .main-nav {
        display: none !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 85vw;
        max-width: 400px;
        background: linear-gradient(
            135deg,
            rgba(8, 8, 20, 0.98) 0%,
            rgba(12, 12, 28, 0.98) 100%
        );
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 10001 !important;
        overflow-y: auto;
        border-right: 1px solid rgba(99, 102, 241, 0.2);
        display: flex !important;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.active {
        left: 0;
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .mega-menu {
        position: static;
        width: 100%;
        background: rgba(15, 15, 30, 0.6);
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transform: none;
    }

    .nav-item:hover .mega-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.75rem;
    }

    .mega-menu-item {
        padding: 1rem;
    }

    body.menu-open::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1050;
        animation: fadeIn 0.3s ease;
        backdrop-filter: blur(4px);
    }

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

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

[data-theme="light"] .main-header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(250, 250, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    border-image: linear-gradient(
            90deg,
            transparent,
            rgba(99, 102, 241, 0.2) 20%,
            rgba(139, 92, 246, 0.2) 50%,
            rgba(99, 102, 241, 0.2) 80%,
            transparent
        )
        1;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 0 80px rgba(99, 102, 241, 0.05);
}

[data-theme="light"] .main-header.scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 100px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .nav-link {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .nav-link:hover {
    color: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .mega-menu {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 255, 0.98) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    border-top-color: rgba(99, 102, 241, 0.15);
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .mega-menu-item {
    background: linear-gradient(
        135deg,
        rgba(248, 248, 255, 0.6) 0%,
        rgba(250, 250, 255, 0.4) 100%
    );
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .mega-menu-item-title {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .mega-menu-item-description {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .mega-menu-item:hover {
    background: linear-gradient(
        135deg,
        rgba(240, 242, 255, 0.9) 0%,
        rgba(245, 247, 255, 0.8) 100%
    );
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .mega-menu-item:hover .mega-menu-item-title {
    color: #3b82f6;
}

[data-theme="light"] .mega-menu-item:hover .mega-menu-item-description {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .search-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .search-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(0, 0, 0, 0.9);
}

/* ============================================
   SECTION 7: HEADER - MOBILE
   Mobile-specific overrides and enhancements
   ============================================ */

/* ============================================
   MOBILE HEADER - CLEAN SOLUTION
   Single source of truth for mobile header
   Last Updated: January 10, 2026
   ============================================ */

@media (max-width: 768px) {
    /* ============================================
       PREVENT HORIZONTAL SCROLL
       ============================================ */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* ============================================
       FIXED HEADER AT TOP
       ============================================ */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
        background: rgba(10, 10, 25, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2) !important;
    }

    /* ============================================
       HEADER CONTAINER - SIMPLE FLEXBOX
       ============================================ */
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding: 0 1rem !important;
        position: relative !important;
    }

    /* ============================================
       HAMBURGER MENU BUTTON - ABSOLUTE LEFT
       ============================================ */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        cursor: pointer !important;
        z-index: 1003 !important;
        flex-shrink: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-menu-toggle:active {
        opacity: 0.7 !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        pointer-events: none !important;
    }

    /* Hamburger animation when menu is open */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }

    /* ============================================
       LOGO - ABSOLUTE CENTER
       ============================================ */
    .logo-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .logo-text {
        display: inline-block !important;
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
        text-fill-color: #ffffff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
    }

    /* ============================================
       HIDE DESKTOP ELEMENTS ON MOBILE
       ============================================ */
    /* Keep search button, hide theme toggle on desktop header */
    .header-actions .desktop-theme-toggle {
        display: none !important;
    }

    /* Keep search visible on mobile if desired, or hide all actions */
    .header-actions {
        display: none !important;
    }

    .header-cta {
        display: none !important;
    }

    /* Hide desktop nav, will be shown as slide-out */
    .header-container > .main-nav {
        display: none !important;
    }

    /* ============================================
       MOBILE SLIDE-OUT MENU
       ============================================ */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        bottom: 0 !important;
        width: 85vw !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: rgba(10, 10, 25, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        padding: 1.5rem !important;
        z-index: 1002 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.3s ease !important;
        border-right: 1px solid rgba(99, 102, 241, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .main-nav.active {
        left: 0 !important;
    }

    /* ============================================
       MOBILE MENU HEADER
       ============================================ */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* Theme toggle in mobile menu */
    .mobile-theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .mobile-theme-toggle:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    /* ============================================
       NAV LIST
       ============================================ */
    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 0 !important;
    }

    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
    }

    .nav-link:hover {
        background: rgba(99, 102, 241, 0.2) !important;
    }

    /* ============================================
       MEGA MENU IN MOBILE
       ============================================ */
    .mega-menu {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: max-height 0.3s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-item.active .mega-menu,
    .nav-item:hover .mega-menu {
        max-height: 1000px !important;
        padding: 0.5rem 0 !important;
    }

    .mega-menu-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .mega-menu-item {
        display: block !important;
        padding: 0.875rem 1.5rem 0.875rem 2.5rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
        background: transparent !important;
        border: none !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .mega-menu-item:hover {
        background: rgba(99, 102, 241, 0.15) !important;
        color: #ffffff !important;
    }

    .mega-menu-item-title {
        font-size: 0.9375rem !important;
        font-weight: 500 !important;
        color: inherit !important;
        margin-bottom: 0 !important;
    }

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

    /* ============================================
       CONTENT SPACING - COORDINATE WITH HERO
       ============================================ */
    body {
        padding-top: 0 !important;
    }

    /* Hero section with minimal spacing below header */
    .hero-section {
        padding-top: calc(64px + 1rem) !important;
        margin-top: 0 !important;
        min-height: auto !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Ensure hero content stays visible and animations work */
    .hero-content {
        position: relative !important;
        z-index: 10 !important;
    }

    /* Preserve hero animations - don't interfere */
    .hero-badge,
    .hero-title,
    .hero-description {
        animation: inherit !important;
        transform: inherit !important;
    }

    /* ============================================
       OVERLAY WHEN MENU IS OPEN
       ============================================ */
    body.menu-open::after {
        content: "" !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 1001 !important;
        backdrop-filter: blur(4px) !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }

    /* ============================================
       PREVENT MENU FROM BLOCKING HERO ANIMATIONS
       ============================================ */
    /* When menu is closed, ensure it doesn't interfere */
    .main-nav:not(.active) {
        pointer-events: none !important;
    }

    .main-nav.active {
        pointer-events: auto !important;
    }
}

/* ============================================
   END OF STYLES
   ============================================ */

/* ============================================
   MOBILE MENU ENHANCEMENTS & FIXES
   Added: January 10, 2026
   ============================================ */

@media (max-width: 768px) {
    /* ============================================
       HIDE DESKTOP THEME TOGGLE ON MOBILE
       ============================================ */
    .desktop-theme-toggle {
        display: none !important;
    }

    /* Hide entire header-actions if needed */
    .header-actions {
        display: none !important;
    }

    /* ============================================
       MOBILE MENU ENHANCEMENTS
       ============================================ */
    /* Enhanced Hamburger Button - Better Tap Target */
    .mobile-menu-toggle {
        width: 48px !important;
        height: 48px !important;
        padding: 12px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: var(--radius-lg) !important;
        transition: all 0.2s ease !important;
        touch-action: manipulation !important;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(99, 102, 241, 0.3) !important;
        transform: translateY(-50%) scale(0.95) !important;
    }

    /* ============================================
       MOBILE THEME TOGGLE (IN MENU)
       ============================================ */
    /* Theme Toggle as Menu Item */
    .mobile-theme-toggle-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 1.25rem 1.5rem !important;
        background: rgba(99, 102, 241, 0.1) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        border-radius: var(--radius-lg) !important;
        margin-top: var(--space-4) !important;
        margin-bottom: var(--space-4) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .mobile-theme-toggle-item:hover,
    .mobile-theme-toggle-item:active {
        background: rgba(99, 102, 241, 0.15) !important;
        border-color: rgba(99, 102, 241, 0.4) !important;
    }

    .mobile-theme-toggle-label {
        display: flex !important;
        align-items: center !important;
        gap: var(--space-3) !important;
        font-size: var(--text-base) !important;
        font-weight: 600 !important;
        color: var(--color-white-pure) !important;
    }

    .mobile-theme-toggle-icon {
        width: 24px !important;
        height: 24px !important;
        color: var(--color-quantum-blue) !important;
    }

    /* Hide desktop theme toggle, show mobile version */
    .desktop-theme-toggle {
        display: none !important;
    }
}

/* Mobile menu is now handled by inline styles in header.html */
