/* ========================================
   LUMA DEVICES CASE STUDY
   Premium Smart Home Technology Landing Page

   Design Philosophy:
   - Minimalist & Clean
   - Premium Typography
   - Subtle Animations
   - Generous White Space
   - Elegant Light Aesthetics
======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
======================================== */
:root {
    /* ===== Colors ===== */
    /* Base Colors */
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-gray-100: #E0E0E0;
    --color-gray-200: #C0C0C0;
    --color-gray-300: #9E9E9E;
    --color-gray-400: #757575;
    --color-gray-900: #212121;

    /* Accent Colors */
    --color-silver: #C0C0C0;
    --color-metallic: #B8B8B8;
    --color-blue-light: #E3F2FD;
    --color-blue: #90CAF9;
    --color-gold-light: #FFF8E1;
    --color-gold: #FFD54F;

    /* Semantic Colors */
    --color-primary: var(--color-gray-900);
    --color-secondary: var(--color-blue);
    --color-accent: var(--color-gold);
    --color-background: var(--color-white);
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-400);
    --color-border: var(--color-gray-100);

    /* ===== Typography ===== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    --font-size-7xl: 4.5rem;      /* 72px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ===== Spacing ===== */
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 1.5rem;      /* 24px */
    --spacing-lg: 2rem;        /* 32px */
    --spacing-xl: 3rem;        /* 48px */
    --spacing-2xl: 4rem;       /* 64px */
    --spacing-3xl: 6rem;       /* 96px */
    --spacing-4xl: 8rem;       /* 128px */

    /* ===== Borders & Radius ===== */
    --border-radius-sm: 0.25rem;   /* 4px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 1rem;      /* 16px */
    --border-radius-xl: 1.5rem;    /* 24px */
    --border-radius-full: 9999px;

    /* ===== Shadows ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --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);

    /* ===== Transitions ===== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* ===== Layout ===== */
    --container-width: 1280px;
    --header-height: 80px;

    /* ===== Z-Index ===== */
    --z-index-header: 1000;
    --z-index-mobile-menu: 999;
    --z-index-overlay: 998;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on all elements */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Initial load state */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin: 0;
}

h1 {
    font-size: var(--font-size-6xl);
}

h2 {
    font-size: var(--font-size-5xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

p {
    margin: 0;
    line-height: var(--line-height-relaxed);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-secondary);
}

strong {
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.main-content {
    overflow-x: hidden;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-index-header);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Logo */
.navbar-brand .logo {
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    transition: opacity var(--transition-base);
}

.navbar-brand .logo:hover {
    opacity: 0.7;
}

.navbar-brand .logo:focus {
    outline: none;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:focus {
    outline: none;
    color: var(--color-gray-900);
}

.nav-link:focus-visible {
    outline: none;
    color: var(--color-gray-900);
}

.nav-link-cta {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-text-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-full);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-link-cta:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: calc(var(--z-index-header) + 1);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: var(--font-size-7xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-highlight {
    background: linear-gradient(90deg, #7D6A4F 0%, #9C8568 50%, #BFAE95 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-light);
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity var(--transition-base);
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-gray-400);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateY(2px);
}

/* ========================================
   BRAND STATEMENT SECTION
======================================== */
.brand-statement-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.brand-statement {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.statement-text {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    color: var(--color-text-secondary);
}

.statement-highlight {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* ========================================
   SECTION HEADERS (Reusable)
======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.feature-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* ========================================
   SHOWCASE SECTIONS
======================================== */
.showcase-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background-color: var(--color-white);
}

.showcase-image-wrapper {
    position: relative;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Parallax effect applied via JS */
.parallax-image {
    transform-origin: center;
    will-change: transform;
}

.showcase-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
}

.showcase-text {
    max-width: 500px;
}

.showcase-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.showcase-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* Alternate Layout */
.showcase-section.showcase-left .showcase-image-wrapper {
    order: 1;
}

.showcase-section.showcase-left .showcase-content {
    order: 2;
}

.showcase-section.showcase-right .showcase-image-wrapper {
    order: 2;
}

.showcase-section.showcase-right .showcase-content {
    order: 1;
}

/* ========================================
   STORY SECTION
======================================== */
.story-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-light-gray);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-quote {
    margin-bottom: var(--spacing-3xl);
    text-align: center;
    border: none;
}

.quote-text {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.quote-highlight {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.quote-author {
    font-size: var(--font-size-base);
    font-style: normal;
    color: var(--color-text-secondary);
}

.quote-author cite {
    font-style: normal;
}

.story-text {
    text-align: left;
}

.story-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.story-paragraph {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.story-paragraph:last-child {
    margin-bottom: 0;
}

/* ========================================
   SPECIFICATIONS SECTION
======================================== */
.specs-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.spec-item {
    padding: var(--spacing-lg);
}

.spec-value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
}

.spec-label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   CALL TO ACTION SECTION
======================================== */
.cta-section {
    position: relative;
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-white) 100%);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.cta-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Background Glow Effect */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(144, 202, 249, 0.15) 0%,
        rgba(255, 213, 79, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* ========================================
   FOOTER
======================================== */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    text-align: center;
}

.footer-logo .logo-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-text-primary);
    color: var(--color-white);
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-text-primary);
}

.footer-link-highlight {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.footer-separator {
    color: var(--color-gray-200);
}

/* Copyright */
.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-copyright p {
    margin-bottom: var(--spacing-xs);
}

.footer-note {
    font-size: var(--font-size-xs);
    color: var(--color-gray-300);
}

/* ========================================
   ANIMATIONS
======================================== */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed Animations */
.fade-in.delay-1 {
    transition-delay: 0.2s;
}

.fade-in.delay-2 {
    transition-delay: 0.4s;
}

.fade-in.delay-3 {
    transition-delay: 0.6s;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --font-size-7xl: 3.5rem;   /* 56px */
        --font-size-6xl: 3rem;     /* 48px */
        --font-size-5xl: 2.5rem;   /* 40px */
        --font-size-4xl: 2rem;     /* 32px */
        --spacing-4xl: 6rem;       /* 96px */
        --spacing-3xl: 4rem;       /* 64px */
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Showcase sections stack vertically */
    .showcase-section {
        grid-template-columns: 1fr;
    }

    .showcase-section.showcase-left .showcase-image-wrapper,
    .showcase-section.showcase-right .showcase-image-wrapper {
        order: 1;
        height: 400px;
    }

    .showcase-section.showcase-left .showcase-content,
    .showcase-section.showcase-right .showcase-content {
        order: 2;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    :root {
        --font-size-7xl: 2.5rem;   /* 40px */
        --font-size-6xl: 2.25rem;  /* 36px */
        --font-size-5xl: 2rem;     /* 32px */
        --font-size-4xl: 1.75rem;  /* 28px */
        --font-size-3xl: 1.5rem;   /* 24px */
        --spacing-4xl: 4rem;       /* 64px */
        --spacing-3xl: 3rem;       /* 48px */
        --spacing-2xl: 2rem;       /* 32px */
        --header-height: 64px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* ===== Header / Navigation ===== */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-3xl) var(--spacing-lg);
        gap: var(--spacing-xl);
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: var(--z-index-mobile-menu);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Force blur effect in all states */
    .nav-menu,
    .nav-menu.active,
    .header .nav-menu,
    .header.scrolled .nav-menu {
        background-color: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;
    }

    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) 0;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    /* ===== Hero Section ===== */
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    /* ===== Features Grid ===== */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* ===== Showcase Sections ===== */
    .showcase-content {
        padding: var(--spacing-xl);
    }

    .showcase-image-wrapper {
        height: 300px;
    }

    /* ===== Story Section ===== */
    .quote-text {
        font-size: var(--font-size-2xl);
    }

    .story-paragraph {
        font-size: var(--font-size-base);
    }

    /* ===== Specs Grid ===== */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .spec-value {
        font-size: var(--font-size-3xl);
    }

    /* ===== CTA Section ===== */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-glow {
        width: 400px;
        height: 400px;
    }

    /* ===== Footer ===== */
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-separator {
        display: none;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
    :root {
        --font-size-7xl: 2rem;     /* 32px */
        --font-size-6xl: 1.75rem;  /* 28px */
        --font-size-5xl: 1.5rem;   /* 24px */
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .statement-text {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .showcase-title {
        font-size: var(--font-size-2xl);
    }

    .quote-text {
        font-size: var(--font-size-xl);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .header,
    .scroll-indicator,
    .mobile-menu-toggle,
    .cta-glow {
        display: none;
    }

    .hero-section {
        height: auto;
        min-height: 0;
        page-break-after: always;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Focus Styles */
a:focus,
.nav-link:focus {
    outline: none;
    color: var(--color-gray-900);
}

button:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-gray-900);
}

/* Reduced 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;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-text-primary: #000000;
        --color-background: #FFFFFF;
    }

    .btn-primary {
        border: 2px solid var(--color-text-primary);
    }
}

/* ========================================
   CUSTOM SCROLLBAR - Ultra-Modern Luma Design
   MUST BE LAST TO OVERRIDE ANY PREVIOUS STYLES!
======================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

::-webkit-scrollbar-track {
    background: rgba(245, 245, 245, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(224, 224, 224, 0.95) 0%,
        rgba(192, 192, 192, 0.9) 15%,
        rgba(184, 184, 184, 0.85) 50%,
        rgba(192, 192, 192, 0.9) 85%,
        rgba(224, 224, 224, 0.95) 100%
    ) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1),
        0 0 4px rgba(0, 0, 0, 0.08),
        inset 2px 0 1px rgba(255, 255, 255, 0.5),
        inset -2px 0 1px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(227, 242, 253, 1) 0%,
        rgba(144, 202, 249, 1) 50%,
        rgba(227, 242, 253, 1) 100%
    ) !important;
    box-shadow:
        0 0 12px rgba(144, 202, 249, 0.8),
        0 0 24px rgba(144, 202, 249, 0.5),
        0 0 36px rgba(144, 202, 249, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    transform: scaleX(1.15) !important;
    border-color: rgba(144, 202, 249, 0.8) !important;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        rgba(144, 202, 249, 1) 0%,
        rgba(100, 181, 246, 1) 50%,
        rgba(144, 202, 249, 1) 100%
    ) !important;
    box-shadow:
        0 0 16px rgba(144, 202, 249, 1),
        0 0 32px rgba(144, 202, 249, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

/* Firefox */
* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(192, 192, 192, 0.9) rgba(245, 245, 245, 0.4) !important;
}
