/* ============================================================================
   RESPONSIVE CSS FRAMEWORK - Mobile-First Approach
   Mirror AI - Glasslane
   ============================================================================ */

/* ============================================================================
   1. CSS RESET & NORMALIZE
   ============================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* ============================================================================
   2. CSS CUSTOM PROPERTIES - RESPONSIVE DESIGN TOKENS
   ============================================================================ */
:root {
    /* Breakpoints - for reference in calc() */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1440px;
    --breakpoint-xxl: 1920px;

    /* Fluid Typography - Mobile Base */
    --font-size-base: 16px;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);    /* 12-14px */
    --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);      /* 14-16px */
    --font-size-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);       /* 16-18px */
    --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);   /* 18-20px */
    --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);       /* 20-24px */
    
    /* Fluid Headings */
    --font-size-h1: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);           /* 32-56px */
    --font-size-h2: clamp(1.75rem, 1.35rem + 2vw, 3rem);           /* 28-48px */
    --font-size-h3: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);         /* 24-40px */
    --font-size-h4: clamp(1.25rem, 1.05rem + 1vw, 2rem);           /* 20-32px */
    --font-size-h5: clamp(1.125rem, 0.975rem + 0.75vw, 1.5rem);    /* 18-24px */
    --font-size-h6: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);          /* 16-20px */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* Spacing Scale - Fluid */
    --space-1: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);    /* 4-8px */
    --space-2: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);   /* 8-12px */
    --space-3: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);      /* 12-16px */
    --space-4: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);      /* 16-24px */
    --space-5: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);      /* 24-32px */
    --space-6: clamp(2rem, 1.5rem + 2.5vw, 3rem);          /* 32-48px */
    --space-7: clamp(3rem, 2rem + 5vw, 4rem);              /* 48-64px */
    --space-8: clamp(4rem, 3rem + 5vw, 6rem);              /* 64-96px */

    /* Container Max Widths */
    --container-mobile: 100%;
    --container-tablet: 768px;
    --container-desktop: 1024px;
    --container-large: 1440px;
    --container-xlarge: 1920px;

    /* Grid Columns */
    --grid-columns: 12;
    --grid-gap: var(--space-4);
    --grid-gap-sm: var(--space-2);
    --grid-gap-lg: var(--space-6);

    /* Touch Target Sizes */
    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

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

    /* Border Radius - Responsive */
    --radius-sm: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --radius-md: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --radius-lg: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --radius-xl: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --radius-full: 9999px;
}

/* ============================================================================
   3. RESPONSIVE CONTAINER SYSTEM
   ============================================================================ */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Mobile First - Base (320px+) */
.container {
    max-width: var(--container-mobile);
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        max-width: var(--container-tablet);
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        max-width: var(--container-desktop);
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

/* Large (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: var(--container-large);
    }
}

/* Extra Large (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: var(--container-xlarge);
    }
}

/* Container Variants */
.container-fluid {
    width: 100%;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-narrow {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* ============================================================================
   4. RESPONSIVE GRID SYSTEM - CSS Grid & Flexbox
   ============================================================================ */

/* CSS Grid Layout */
.grid {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: repeat(var(--grid-columns), 1fr);
}

/* Fallback for browsers without gap support */
@supports not (gap: var(--grid-gap)) {
    .grid {
        margin: calc(var(--grid-gap) / -2);
    }
    
    .grid > * {
        margin: calc(var(--grid-gap) / 2);
    }
}

.grid-sm {
    gap: var(--grid-gap-sm);
}

.grid-lg {
    gap: var(--grid-gap-lg);
}

/* Mobile First - Single Column Default */
.grid > * {
    grid-column: span 12;
}

/* Column Span Classes - Mobile */
.col-1 { grid-column: span 12; }
.col-2 { grid-column: span 12; }
.col-3 { grid-column: span 12; }
.col-4 { grid-column: span 12; }
.col-5 { grid-column: span 12; }
.col-6 { grid-column: span 12; }
.col-7 { grid-column: span 12; }
.col-8 { grid-column: span 12; }
.col-9 { grid-column: span 12; }
.col-10 { grid-column: span 12; }
.col-11 { grid-column: span 12; }
.col-12 { grid-column: span 12; }

/* Tablet (768px+) */
@media (min-width: 768px) {
    .col-md-1 { grid-column: span 1; }
    .col-md-2 { grid-column: span 2; }
    .col-md-3 { grid-column: span 3; }
    .col-md-4 { grid-column: span 4; }
    .col-md-5 { grid-column: span 5; }
    .col-md-6 { grid-column: span 6; }
    .col-md-7 { grid-column: span 7; }
    .col-md-8 { grid-column: span 8; }
    .col-md-9 { grid-column: span 9; }
    .col-md-10 { grid-column: span 10; }
    .col-md-11 { grid-column: span 11; }
    .col-md-12 { grid-column: span 12; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .col-lg-1 { grid-column: span 1; }
    .col-lg-2 { grid-column: span 2; }
    .col-lg-3 { grid-column: span 3; }
    .col-lg-4 { grid-column: span 4; }
    .col-lg-5 { grid-column: span 5; }
    .col-lg-6 { grid-column: span 6; }
    .col-lg-7 { grid-column: span 7; }
    .col-lg-8 { grid-column: span 8; }
    .col-lg-9 { grid-column: span 9; }
    .col-lg-10 { grid-column: span 10; }
    .col-lg-11 { grid-column: span 11; }
    .col-lg-12 { grid-column: span 12; }
}

/* Large (1440px+) */
@media (min-width: 1440px) {
    .col-xl-1 { grid-column: span 1; }
    .col-xl-2 { grid-column: span 2; }
    .col-xl-3 { grid-column: span 3; }
    .col-xl-4 { grid-column: span 4; }
    .col-xl-5 { grid-column: span 5; }
    .col-xl-6 { grid-column: span 6; }
    .col-xl-7 { grid-column: span 7; }
    .col-xl-8 { grid-column: span 8; }
    .col-xl-9 { grid-column: span 9; }
    .col-xl-10 { grid-column: span 10; }
    .col-xl-11 { grid-column: span 11; }
    .col-xl-12 { grid-column: span 12; }
}

/* Auto-fit Grid - Responsive Cards */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .grid-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .grid-auto-fill {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Flexbox Layout */
.flex {
    display: flex;
    gap: var(--grid-gap);
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

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

.flex-row {
    flex-direction: row;
}

/* Responsive Flex Direction */
@media (min-width: 768px) {
    .flex-md-row { flex-direction: row; }
    .flex-md-column { flex-direction: column; }
}

@media (min-width: 1024px) {
    .flex-lg-row { flex-direction: row; }
    .flex-lg-column { flex-direction: column; }
}

/* Justify Content */
.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; }
.justify-evenly { justify-content: space-evenly; }

/* Align Items */
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }
.align-baseline { align-items: baseline; }

/* ============================================================================
   5. RESPONSIVE TYPOGRAPHY
   ============================================================================ */

/* Base Typography - Mobile First */
body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

h1, .h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

h2, .h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

h3, .h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

h4, .h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

h5, .h5 {
    font-size: var(--font-size-h5);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

h6, .h6 {
    font-size: var(--font-size-h6);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

/* Text Size Utilities */
.text-xs { font-size: var(--font-size-xs) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-md { font-size: var(--font-size-md) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xl { font-size: var(--font-size-xl) !important; }

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

@media (min-width: 768px) {
    .text-md-left { text-align: left; }
    .text-md-center { text-align: center; }
    .text-md-right { text-align: right; }
}

@media (min-width: 1024px) {
    .text-lg-left { text-align: left; }
    .text-lg-center { text-align: center; }
    .text-lg-right { text-align: right; }
}

/* Line Height Utilities */
.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }
.leading-loose { line-height: var(--line-height-loose); }

/* Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ============================================================================
   6. RESPONSIVE SPACING UTILITIES
   ============================================================================ */

/* Margin Utilities - Mobile First */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-7 { margin: var(--space-7) !important; }
.m-8 { margin: var(--space-8) !important; }
.m-auto { margin: auto !important; }

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-auto { margin-top: auto !important; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-7 { margin-bottom: var(--space-7) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-auto { margin-bottom: auto !important; }

/* Margin Left/Right */
.ml-0 { margin-left: 0 !important; }
.ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; }
.mr-auto { margin-right: auto !important; }

/* Margin X/Y Axis */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-7 { padding: var(--space-7) !important; }
.p-8 { padding: var(--space-8) !important; }

/* Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--space-1) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-5 { padding-top: var(--space-5) !important; }
.pt-6 { padding-top: var(--space-6) !important; }
.pt-7 { padding-top: var(--space-7) !important; }
.pt-8 { padding-top: var(--space-8) !important; }

/* Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--space-1) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-5 { padding-bottom: var(--space-5) !important; }
.pb-6 { padding-bottom: var(--space-6) !important; }
.pb-7 { padding-bottom: var(--space-7) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }

/* Responsive Spacing - Tablet */
@media (min-width: 768px) {
    .mt-md-0 { margin-top: 0 !important; }
    .mt-md-4 { margin-top: var(--space-4) !important; }
    .mt-md-5 { margin-top: var(--space-5) !important; }
    .mt-md-6 { margin-top: var(--space-6) !important; }
    .mt-md-7 { margin-top: var(--space-7) !important; }
    .mt-md-8 { margin-top: var(--space-8) !important; }
    
    .mb-md-0 { margin-bottom: 0 !important; }
    .mb-md-4 { margin-bottom: var(--space-4) !important; }
    .mb-md-5 { margin-bottom: var(--space-5) !important; }
    .mb-md-6 { margin-bottom: var(--space-6) !important; }
    .mb-md-7 { margin-bottom: var(--space-7) !important; }
    .mb-md-8 { margin-bottom: var(--space-8) !important; }
    
    .pt-md-6 { padding-top: var(--space-6) !important; }
    .pt-md-7 { padding-top: var(--space-7) !important; }
    .pt-md-8 { padding-top: var(--space-8) !important; }
    
    .pb-md-6 { padding-bottom: var(--space-6) !important; }
    .pb-md-7 { padding-bottom: var(--space-7) !important; }
    .pb-md-8 { padding-bottom: var(--space-8) !important; }
}

/* Responsive Spacing - Desktop */
@media (min-width: 1024px) {
    .mt-lg-6 { margin-top: var(--space-6) !important; }
    .mt-lg-7 { margin-top: var(--space-7) !important; }
    .mt-lg-8 { margin-top: var(--space-8) !important; }
    
    .mb-lg-6 { margin-bottom: var(--space-6) !important; }
    .mb-lg-7 { margin-bottom: var(--space-7) !important; }
    .mb-lg-8 { margin-bottom: var(--space-8) !important; }
}

/* ============================================================================
   7. RESPONSIVE DISPLAY UTILITIES
   ============================================================================ */

/* Display - Mobile First */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Tablet (768px+) */
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
    .d-md-grid { display: grid !important; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
    .d-lg-grid { display: grid !important; }
}

/* Large (1440px+) */
@media (min-width: 1440px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
    .d-xl-grid { display: grid !important; }
}

/* ============================================================================
   8. RESPONSIVE WIDTH & HEIGHT UTILITIES
   ============================================================================ */

/* Width */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Responsive Width - Tablet */
@media (min-width: 768px) {
    .w-md-25 { width: 25% !important; }
    .w-md-50 { width: 50% !important; }
    .w-md-75 { width: 75% !important; }
    .w-md-100 { width: 100% !important; }
    .w-md-auto { width: auto !important; }
}

/* Responsive Width - Desktop */
@media (min-width: 1024px) {
    .w-lg-25 { width: 25% !important; }
    .w-lg-50 { width: 50% !important; }
    .w-lg-75 { width: 75% !important; }
    .w-lg-100 { width: 100% !important; }
    .w-lg-auto { width: auto !important; }
}

/* Height */
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Min/Max Width */
.mw-100 { max-width: 100% !important; }
.min-w-0 { min-width: 0 !important; }

/* ============================================================================
   9. RESPONSIVE IMAGES & MEDIA
   ============================================================================ */

/* Base Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Aspect Ratio Containers */
.aspect-ratio {
    position: relative;
    width: 100%;
}

.aspect-ratio::before {
    content: '';
    display: block;
    padding-bottom: 100%; /* 1:1 by default */
}

.aspect-ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Common Aspect Ratios */
.aspect-16-9::before { padding-bottom: 56.25%; }
.aspect-4-3::before { padding-bottom: 75%; }
.aspect-3-2::before { padding-bottom: 66.66%; }
.aspect-1-1::before { padding-bottom: 100%; }

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================================================
   10. RESPONSIVE NAVIGATION
   ============================================================================ */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: var(--touch-target-comfortable);
    height: var(--touch-target-comfortable);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--z-fixed);
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Hamburger to X Animation */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

/* Mobile Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80vw, 400px);
    height: 100vh;
    background: var(--bg-secondary, #1a1f3a);
    z-index: var(--z-modal);
    transition: right var(--transition-base);
    overflow-y: auto;
    padding: var(--space-6) var(--space-4);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-2);
    min-height: var(--touch-target-comfortable);
}

/* Hide mobile nav on desktop */
@media (min-width: 1024px) {
    .mobile-nav-toggle {
        display: none;
    }
    
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: none;
    }
}

/* ============================================================================
   11. RESPONSIVE BUTTONS & FORMS
   ============================================================================ */

/* Touch-Friendly Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-min);
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

/* Full-width buttons on mobile */
.btn-mobile-full {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-mobile-full {
        width: auto;
    }
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    min-height: var(--touch-target-min);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--font-size-md);
    transition: all var(--transition-base);
}

/* Responsive Form Layout */
.form-group {
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    
    .form-row > * {
        flex: 1;
    }
}

/* ============================================================================
   12. RESPONSIVE CARDS & COMPONENTS
   ============================================================================ */

/* Card Layout */
.card-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

/* 2 columns on tablet */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }
}

/* 3-4 columns on desktop */
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1440px) {
    .card-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Component */
.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base);
}

/* ============================================================================
   13. RESPONSIVE TABLES
   ============================================================================ */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Stack table on mobile */
@media (max-width: 767px) {
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        display: block;
        margin-bottom: var(--space-4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
    }
    
    .table-stack td {
        display: flex;
        justify-content: space-between;
        padding: var(--space-2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .table-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: var(--space-2);
    }
}

/* ============================================================================
   14. RESPONSIVE MODALS
   ============================================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: var(--z-modal);
}

.modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-4);
}

/* Desktop modals are centered */
@media (min-width: 768px) {
    .modal {
        align-items: center;
    }
    
    .modal-content {
        width: auto;
        min-width: 500px;
        max-width: 90vw;
        border-radius: var(--radius-lg);
    }
}

/* ============================================================================
   15. PERFORMANCE OPTIMIZATIONS
   ============================================================================ */

/* GPU Acceleration */
.accelerated {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}

/* ============================================================================
   16. PRINT STYLES
   ============================================================================ */

@media print {
    .no-print,
    nav,
    .mobile-nav-toggle,
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ============================================================================
   17. LANDSCAPE ORIENTATION
   ============================================================================ */

@media (orientation: landscape) and (max-height: 500px) {
    .hero-quantum,
    .hero-section {
        min-height: auto;
        padding: var(--space-6) 0;
    }
}

/* ============================================================================
   18. UTILITY CLASSES
   ============================================================================ */

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-100 { opacity: 1 !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* User Select */
.select-none { 
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important; 
}
.select-all { 
    -webkit-user-select: all !important;
    -moz-user-select: all !important;
    -ms-user-select: all !important;
    user-select: all !important; 
}

/* Pointer Events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* Border Radius */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadow */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important; }

/* Gap Utilities */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-5 { gap: var(--space-5) !important; }
.gap-6 { gap: var(--space-6) !important; }

/* ============================================================================
   19. RIPPLE EFFECT FOR TOUCH DEVICES
   ============================================================================ */

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 600ms ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure buttons have position relative for ripple */
.btn,
button,
.nav-link {
    position: relative;
    overflow: hidden;
}

/* ============================================================================
   END OF RESPONSIVE FRAMEWORK
   ============================================================================ */

/* ============================================================================
   20. LANDING PAGE SPECIFIC RESPONSIVE STYLES
   ============================================================================ */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===== ULTRA-LARGE SCREENS (1920px+) - Premium Desktop ===== */
@media (min-width: 1920px) {
    /* Hero Section - Centered and Spacious */
    .hero-quantum {
        padding: 160px 100px 140px;
        min-height: 92vh;
    }

    .hero-container {
        max-width: 1600px;
        margin: 0 auto;
        gap: 100px;
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-title {
        font-size: 4.8rem !important;
        line-height: 1.12 !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 36px !important;
    }

    .hero-subtitle {
        font-size: 1.55rem !important;
        line-height: 1.75 !important;
        max-width: 700px !important;
        margin-bottom: 52px !important;
    }

    .hero-badge {
        font-size: 1.08rem !important;
        padding: 15px 30px !important;
    }

    .hero-cta {
        gap: 24px;
        margin-top: 48px;
    }

    .cta-primary, .cta-secondary {
        padding: 22px 52px !important;
        font-size: 1.25rem !important;
        border-radius: 60px !important;
    }

    .logo-hologram-container {
        width: 580px !important;
        height: 580px !important;
    }

    .hologram-card {
        width: 360px !important;
        height: 360px !important;
    }

    /* Stats Section - Wider Spacing */
    .stats-quantum {
        padding: 120px 0 !important;
    }

    .stats-container {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
        gap: 48px !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .stat-card {
        padding: 48px 40px !important;
        border-radius: 24px !important;
    }

    .stat-number {
        font-size: 4rem !important;
    }

    .stat-label {
        font-size: 0.95rem !important;
    }

    /* Features Bento - Spacious Grid */
    .features-bento {
        padding: 140px 0 !important;
    }

    .section-header {
        max-width: 1600px;
        margin: 0 auto 80px;
        padding: 0 100px;
        text-align: center !important;
    }

    .bento-grid {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
        gap: 36px !important;
        grid-auto-rows: 340px !important;
    }

    .section-title {
        font-size: 4.2rem !important;
        margin-bottom: 24px !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 1.45rem !important;
        max-width: 850px !important;
        margin: 0 auto;
        text-align: center !important;
    }

    /* Demo Section */
    .demo-section {
        padding: 140px 0 !important;
    }

    .demo-container {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
    }

    .demo-window {
        max-width: 1400px !important;
        margin: 0 auto;
    }

    .demo-content {
        grid-template-columns: 1fr 1fr !important;
        min-height: 500px !important;
    }

    .demo-input {
        border-right: 1px solid var(--glass-border) !important;
        border-bottom: none !important;
    }

    /* CTA Section */
    .early-access-cta {
        padding: 100px 0 !important;
    }

    .cta-container {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
    }

    .cta-card {
        padding: 70px 60px !important;
        max-width: 900px !important;
        margin: 0 auto;
    }

    .cta-heading {
        font-size: 3.2rem !important;
    }

    .cta-description {
        font-size: 1.3rem !important;
        max-width: 700px !important;
    }

    /* About Section */
    .about-section {
        padding: 140px 0 !important;
    }

    .about-container {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
        gap: 100px !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .about-content h2 {
        font-size: 3.8rem !important;
        text-align: left !important;
    }

    .about-content p {
        font-size: 1.25rem !important;
        line-height: 1.8 !important;
        text-align: left !important;
    }

    /* Tech Stack */
    .tech-stack-section {
        padding: 140px 0 !important;
    }

    .tech-stack-container {
        max-width: 1600px !important;
        margin: 0 auto;
        padding: 0 100px;
    }

    /* Footer */
    .quantum-footer {
        padding: 140px 0 50px !important;
    }

    .footer-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 80px !important;
    }

    .footer-grid {
        max-width: 100% !important;
        gap: 80px !important;
        margin-bottom: 70px !important;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
    }

    .footer-brand {
        max-width: 400px !important;
    }

    .footer-logo {
        font-size: 1.8rem !important;
    }

    .footer-description {
        font-size: 1.1rem !important;
        line-height: 1.75 !important;
        max-width: 400px !important;
    }
}

/* ===== LARGE DESKTOP (1440px-1919px) - Standard Desktop ===== */
@media (min-width: 1440px) and (max-width: 1919px) {
    /* Hero Section */
    .hero-quantum {
        padding: 130px 70px 110px;
    }

    .hero-container {
        max-width: 1400px !important;
        margin: 0 auto;
        gap: 70px;
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-title {
        font-size: 4rem !important;
        line-height: 1.13 !important;
        letter-spacing: -0.025em !important;
    }

    .hero-subtitle {
        font-size: 1.4rem !important;
        line-height: 1.7 !important;
        max-width: 620px !important;
    }

    .cta-primary, .cta-secondary {
        padding: 20px 46px !important;
        font-size: 1.15rem !important;
    }

    .logo-hologram-container {
        width: 500px !important;
        height: 500px !important;
    }

    .hologram-card {
        width: 310px !important;
        height: 310px !important;
    }

    /* Stats Section */
    .stats-quantum {
        padding: 100px 0 !important;
    }

    .stats-container {
        max-width: 1400px !important;
        margin: 0 auto;
        padding: 0 70px;
        gap: 40px !important;
    }

    /* Features Bento */
    .features-bento {
        padding: 120px 0 !important;
    }

    .section-header {
        max-width: 1400px;
        margin: 0 auto 70px;
        padding: 0 70px;
        text-align: center !important;
    }

    .bento-grid {
        max-width: 1400px !important;
        margin: 0 auto;
        padding: 0 70px;
        gap: 30px;
        grid-auto-rows: 310px !important;
    }

    .section-title {
        font-size: 3.8rem !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 1.38rem !important;
        max-width: 780px !important;
        margin: 0 auto;
        text-align: center !important;
    }

    /* Demo Section */
    .demo-section {
        padding: 120px 0 !important;
    }

    .demo-container {
        max-width: 1400px !important;
        margin: 0 auto;
        padding: 0 70px;
    }

    .demo-window {
        max-width: 1200px !important;
        margin: 0 auto;
    }

    .demo-content {
        grid-template-columns: 1fr 1fr !important;
        min-height: 480px !important;
    }

    .demo-input {
        border-right: 1px solid var(--glass-border) !important;
        border-bottom: none !important;
    }

    /* CTA Section */
    .early-access-cta {
        padding: 90px 0 !important;
    }

    .cta-container {
        max-width: 1400px !important;
        margin: 0 auto;
        padding: 0 70px;
    }

    .cta-card {
        padding: 60px 50px !important;
        max-width: 800px !important;
        margin: 0 auto;
    }

    .cta-heading {
        font-size: 2.8rem !important;
    }

    /* About Section */
    .about-section {
        padding: 120px 0 !important;
    }

    .about-container {
        max-width: 1400px !important;
        margin: 0 auto;
        padding: 0 70px;
        gap: 80px !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .about-content h2 {
        text-align: left !important;
    }

    .about-content p {
        text-align: left !important;
    }

    /* Footer */
    .quantum-footer {
        padding: 120px 0 45px !important;
    }

    .footer-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 80px !important;
    }

    .footer-grid {
        max-width: 100% !important;
        gap: 80px !important;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
    }

    .footer-brand {
        max-width: 360px !important;
    }
}

/* ===== DESKTOP (1024px-1439px) - Standard Laptop ===== */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-quantum {
        padding: 110px 50px 90px;
    }

    .hero-container {
        max-width: 1200px !important;
        gap: 50px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 3.2rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.6 !important;
        max-width: 500px !important;
    }

    .hero-badge {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }

    .cta-primary, .cta-secondary {
        padding: 16px 36px !important;
        font-size: 1.05rem !important;
    }

    .logo-hologram-container {
        width: 420px !important;
        height: 420px !important;
    }

    .hologram-card {
        width: 260px !important;
        height: 260px !important;
    }

    .hologram-logo {
        width: 210px !important;
        height: 130px !important;
    }

    /* Features */
    .features-bento {
        padding: 100px 0 !important;
    }

    .section-header {
        max-width: 1200px;
        margin: 0 auto 60px;
        padding: 0 50px;
        text-align: center !important;
    }

    .section-title {
        font-size: 3rem !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 1.2rem !important;
        max-width: 650px !important;
        margin: 0 auto;
        text-align: center !important;
    }

    .bento-grid {
        max-width: 1200px !important;
        margin: 0 auto;
        padding: 0 50px;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px;
        grid-auto-rows: 280px !important;
    }

    .bento-card {
        padding: 32px !important;
    }

    .card-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 26px !important;
    }

    .card-title {
        font-size: 1.4rem !important;
    }

    .card-description {
        font-size: 1rem !important;
    }

    /* Stats */
    .stats-quantum {
        padding: 90px 0 !important;
    }

    .stats-container {
        max-width: 1200px !important;
        margin: 0 auto;
        padding: 0 50px;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 28px;
    }

    .stat-number {
        font-size: 3.2rem !important;
    }

    /* Demo */
    .demo-section {
        padding: 100px 0 !important;
    }

    .demo-container {
        max-width: 1200px !important;
        margin: 0 auto;
        padding: 0 50px;
    }

    .demo-window {
        max-width: 1100px !important;
        margin: 0 auto;
    }

    .demo-content {
        grid-template-columns: 1fr 1fr !important;
        min-height: 460px !important;
    }

    .demo-input {
        border-right: 1px solid var(--glass-border) !important;
        border-bottom: none !important;
    }

    /* About Section */
    .about-section {
        padding: 100px 0 !important;
    }

    .about-container {
        max-width: 1200px !important;
        margin: 0 auto;
        padding: 0 50px;
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
    }

    .about-content h2 {
        font-size: 3rem !important;
        text-align: left !important;
    }

    .about-content p {
        font-size: 1.15rem !important;
        text-align: left !important;
    }

    /* Tech Stack */
    .tech-stack-section {
        padding: 100px 0 !important;
    }

    .tech-stack-container {
        max-width: 1200px !important;
        margin: 0 auto;
        padding: 0 50px;
    }

    /* Footer */
    .quantum-footer {
        padding: 100px 0 40px !important;
    }

    .footer-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 80px !important;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
        gap: 60px !important;
    }

    .footer-brand {
        max-width: 340px !important;
    }

    .footer-logo {
        font-size: 1.6rem !important;
    }

    .footer-description {
        font-size: 1rem !important;
    }
}

/* ===== TABLET LANDSCAPE (768px-1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hero Section */
    .hero-quantum {
        padding: 100px 40px 80px !important;
        min-height: auto !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 50px;
        max-width: 720px !important;
        margin: 0 auto;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 20px !important;
    }

    .hero-subtitle {
        font-size: 1.15rem !important;
        line-height: 1.65 !important;
        max-width: 600px !important;
        margin: 0 auto 32px !important;
    }

    .hero-badge {
        margin: 0 auto 24px !important;
        width: fit-content !important;
    }

    .hero-ctas {
        justify-content: center !important;
        gap: 16px !important;
    }

    .cta-primary, .cta-secondary {
        padding: 15px 32px !important;
        font-size: 1rem !important;
    }

    .logo-hologram-container {
        width: 380px !important;
        height: 380px !important;
        margin: 0 auto;
    }

    .hologram-card {
        width: 240px !important;
        height: 240px !important;
    }

    .hologram-logo {
        width: 190px !important;
        height: 120px !important;
    }

    /* Features */
    .features-bento {
        padding: 80px 40px !important;
    }

    .section-title {
        font-size: 2.5rem !important;
    }

    .section-subtitle {
        font-size: 1.1rem !important;
        max-width: 600px !important;
        text-align: center !important;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        grid-auto-rows: 260px !important;
    }

    .bento-card.large {
        grid-column: span 2 !important;
    }

    .bento-card {
        padding: 28px !important;
    }

    .card-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 24px !important;
    }

    .card-title {
        font-size: 1.3rem !important;
    }

    /* Stats */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
        padding: 0 40px;
    }

    .stat-number {
        font-size: 3rem !important;
    }

    .stat-label {
        font-size: 0.95rem !important;
    }

    /* Demo */
    .demo-section {
        padding: 80px 40px !important;
    }

    .demo-content {
        grid-template-columns: 1fr !important;
    }

    .demo-input {
        border-right: none !important;
        border-bottom: 1px solid var(--glass-border) !important;
    }

    /* Early Access CTA */
    .early-access-cta {
        padding: 70px 40px !important;
    }

    .cta-card {
        padding: 44px 36px !important;
    }

    .cta-heading {
        font-size: 2rem !important;
    }

    .cta-description {
        font-size: 1.05rem !important;
    }

    /* About Section */
    .about-section {
        padding: 80px 40px !important;
    }

    .about-container {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
        text-align: center !important;
    }

    .about-content h2 {
        font-size: 2.5rem !important;
        text-align: center !important;
    }

    .about-content p {
        font-size: 1.05rem !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .glass-logo-container {
        width: 240px !important;
        height: 240px !important;
        margin: 0 auto !important;
    }

    .mirror-logo {
        width: 180px !important;
        height: auto !important;
    }

    /* Footer */
    .quantum-footer {
        padding: 90px 40px 35px !important;
    }

    .footer-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 40px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 48px !important;
    }

    .footer-brand {
        grid-column: span 2 !important;
    }

    .footer-logo {
        font-size: 1.5rem !important;
    }

    .footer-description {
        max-width: 100% !important;
    }
}

/* ===== MOBILE & TABLET PORTRAIT (max-width: 767px) ===== */
@media (max-width: 767px) {
    /* Navigation */
    .quantum-nav {
        padding: 8px 0 !important;
    }

    .nav-container {
        padding: 0 16px !important;
        gap: 20px !important;
    }

    .nav-brand {
        font-size: 1.05rem !important;
        gap: 8px !important;
    }

    .nav-brand-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .nav-brand-logo img {
        width: 32px !important;
        height: 32px !important;
    }

    .nav-brand-beta {
        font-size: 0.58rem !important;
        padding: 1px 6px !important;
    }

    /* Hero Section */
    .hero-quantum {
        padding: 80px 18px 55px !important;
        min-height: auto !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
        letter-spacing: -0.02em !important;
        padding: 0 8px !important;
    }

    .hero-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
        padding: 0 12px !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .hero-badge {
        font-size: 0.78rem !important;
        padding: 9px 15px !important;
        margin: 0 auto 20px !important;
        width: fit-content !important;
    }

    .hero-ctas {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .cta-primary, .cta-secondary {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
    }

    /* Holographic Visual */
    .logo-hologram-container {
        width: 290px !important;
        height: 290px !important;
        margin: 0 auto !important;
    }

    .hologram-card {
        width: 185px !important;
        height: 185px !important;
    }

    .hologram-logo {
        width: 150px !important;
        height: 92px !important;
    }

    .orbit-ring {
        width: 260px !important;
        height: 260px !important;
    }

    .orbit-ring-2 {
        width: 210px !important;
        height: 210px !important;
    }

    /* Features Section */
    .features-bento {
        padding: 60px 18px !important;
    }

    .section-header {
        margin-bottom: 45px !important;
        text-align: center !important;
    }

    .section-title {
        font-size: 1.95rem !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        grid-auto-rows: auto !important;
    }

    .bento-card {
        padding: 24px !important;
        border-radius: 20px !important;
        min-height: 220px !important;
    }

    .bento-card.large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .card-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    .card-title {
        font-size: 1.18rem !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    .card-description {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }

    /* Stats Section */
    .stats-quantum {
        padding: 50px 18px !important;
    }

    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .stat-card {
        padding: 28px 20px !important;
        border-radius: 18px !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
        margin-bottom: 8px !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    /* Demo Section */
    .demo-section {
        padding: 60px 18px !important;
    }

    .demo-window {
        border-radius: 16px !important;
    }

    .demo-titlebar {
        padding: 12px 16px !important;
    }

    .demo-title {
        font-size: 0.9rem !important;
    }

    .demo-content {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .demo-input, .demo-output {
        padding: 24px 18px !important;
    }

    .demo-input {
        border-right: none !important;
        border-bottom: 1px solid var(--glass-border) !important;
    }

    .demo-textarea {
        height: 200px !important;
        padding: 16px !important;
        font-size: 0.88rem !important;
    }

    .demo-analyze-btn {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
        margin-top: 16px !important;
    }

    /* About Section */
    .about-section {
        padding: 60px 18px !important;
    }

    .about-container {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        text-align: center !important;
    }

    .about-content h2 {
        font-size: 1.95rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .about-content p {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .glass-logo-container {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto !important;
    }

    .mirror-logo {
        width: 150px !important;
        height: auto !important;
    }

    /* Early Access CTA */
    .early-access-cta {
        padding: 55px 18px !important;
    }

    .cta-card {
        padding: 32px 22px !important;
        border-radius: 20px !important;
    }

    .cta-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .cta-heading {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 14px !important;
    }

    .cta-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 26px !important;
        max-width: 100% !important;
    }

    .cta-button {
        width: 100% !important;
        padding: 15px 28px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
    }

    /* Feature Badges */
    .feature-badge {
        padding: 7px 11px !important;
        font-size: 0.75rem !important;
        border-radius: 16px !important;
    }

    /* Footer */
    .quantum-footer {
        padding: 70px 18px 28px !important;
        margin-top: 60px !important;
    }

    .footer-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 18px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 38px !important;
        margin-bottom: 45px !important;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-logo {
        justify-content: center !important;
        font-size: 1.5rem !important;
        gap: 12px !important;
    }

    .footer-description {
        text-align: center !important;
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .footer-column {
        text-align: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 18px !important;
        padding: 20px 0 0 !important;
        text-align: center !important;
    }

    .footer-copyright {
        text-align: center !important;
        font-size: 0.85rem !important;
    }

    .social-links {
        justify-content: center !important;
        gap: 14px !important;
    }
}

/* ===== LANDSCAPE ORIENTATION FIX ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-quantum {
        padding: 70px 30px 50px !important;
        min-height: auto !important;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }

    .logo-hologram-container {
        width: 280px !important;
        height: 280px !important;
    }
}

/* ===== ACCESSIBILITY - TOUCH TARGETS ===== */
@media (max-width: 768px) {
    button, a.nav-link, a.nav-cta, a.footer-link, .cta-primary, .cta-secondary {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* ===== PERFORMANCE - REDUCE ANIMATIONS ON MOBILE ===== */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .quantum-layer-1,
    .quantum-layer-2 {
        animation-duration: 25s !important;
    }

    .orbit-ring,
    .orbit-ring-2 {
        animation-duration: 18s !important;
    }
}

/* ===== STAT CARDS MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .stats-quantum {
        padding: 60px 20px !important;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        max-width: 100% !important;
    }

    .stat-card {
        padding: 24px 16px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
        line-height: 1.1 !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
        line-height: 1.3 !important;
        display: block !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
}

@media (max-width: 480px) {
    .stats-quantum {
        padding: 40px 16px !important;
    }

    .stats-container {
        gap: 12px !important;
    }

    .stat-card {
        padding: 20px 12px !important;
        border-radius: 14px !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
        margin-bottom: 6px !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.3px !important;
    }
}

/* ===== BENTO CARDS MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .features-bento {
        padding: 60px 20px !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
    }

    .bento-card {
        padding: 28px 24px !important;
        border-radius: 20px !important;
        min-height: auto !important;
    }

    .bento-card.large {
        grid-column: span 1 !important;
    }

    .card-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 24px !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
    }

    .card-title {
        font-size: 1.35rem !important;
        margin-bottom: 14px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .card-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
    }

    .bento-card:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 480px) {
    .features-bento {
        padding: 40px 16px !important;
    }

    .bento-grid {
        gap: 16px !important;
    }

    .bento-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }

    .card-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }

    .card-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 360px) {
    .stat-card {
        padding: 16px 10px !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
    }

    .stat-label {
        font-size: 0.6rem !important;
    }

    .bento-card {
        padding: 20px 16px !important;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    .card-description {
        font-size: 0.85rem !important;
    }
}

/* ============================================================================
   END OF LANDING PAGE RESPONSIVE STYLES
   ============================================================================ */

