/* ═══════════════════════════════════════════════════════════════
   LUMINA — Responsive Breakpoints
   Mobile-first overrides, tablet, desktop
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════ TABLET (max-width: 1024px) ═══════════ */
@media (max-width: 1024px) {

    :root {
        --container-padding: 30px;
    }

    /* Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        gap: 24px;
        transition: right 0.5s var(--ease-out);
        z-index: var(--z-modal);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: calc(var(--z-modal) - 1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
    }

    .nav-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-3d {
        order: 0;
        max-height: 350px;
    }

    .hero-desc {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    /* Holo Panels */
    .holo-panels {
        grid-template-columns: 1fr 1fr;
    }

    /* Premium */
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .premium-visual {
        max-height: 350px;
    }

    /* Testimonials */
    .testimonials-track {
        grid-template-columns: 1fr 1fr;
    }

    /* About */
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-visual {
        max-height: 300px;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        max-width: 100%;
    }

    /* Cart */
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ═══════════ MOBILE LARGE (max-width: 768px) ═══════════ */
@media (max-width: 768px) {

    :root {
        --container-padding: 20px;
        --nav-height: 64px;
    }

    /* Typography scaling */
    body {
        font-size: 15px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 40px) 0 60px;
    }

    .hero-3d {
        max-height: 280px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat {
        flex: 1;
        min-width: 120px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Holo Panels */
    .holo-panels {
        grid-template-columns: 1fr;
    }

    /* Interactive Room */
    .interactive-room {
        aspect-ratio: 4/3;
    }

    /* Testimonials */
    .testimonials-track {
        grid-template-columns: 1fr;
    }

    /* About */
    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Cart Items */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Shop */
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* CTA */
    .cta-box {
        padding: 50px 30px;
    }

    .cta-actions {
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Landing */
    .landing-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .btn-activate {
        padding: 16px 36px;
        font-size: 0.85rem;
    }
}

/* ═══════════ MOBILE SMALL (max-width: 480px) ═══════════ */
@media (max-width: 480px) {

    :root {
        --container-padding: 16px;
    }

    body {
        font-size: 14px;
    }

    /* Nav */
    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 100%;
    }

    /* Hero */
    .hero-3d {
        max-height: 220px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    /* Shop */
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .product-card-visual {
        aspect-ratio: 4/3;
    }

    /* Cart */
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 16px;
    }

    .cart-item-visual {
        width: 70px;
        height: 70px;
    }

    .cart-summary {
        padding: 24px 20px;
    }

    /* About */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-left: 40px;
    }

    /* Landing */
    .landing-content {
        gap: 20px;
    }

    .landing-subtitle {
        font-size: 0.85rem;
    }

    .landing-sound-toggle {
        bottom: 16px;
        right: 16px;
    }
}

/* ═══════════ LARGE DESKTOP (min-width: 1600px) ═══════════ */
@media (min-width: 1600px) {

    :root {
        --container-max: 1500px;
    }

    .hero-inner {
        gap: 80px;
    }

    .hero-3d {
        max-height: 600px;
    }
}

/* ═══════════ PRINT ═══════════ */
@media print {
    .nav,
    .footer,
    .landing-overlay,
    .custom-cursor,
    .cursor-dot,
    .grain-overlay,
    .page-transition {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-color: #ccc !important;
    }
}

/* ═══════════ HOVER CAPABLE ONLY ═══════════ */
@media (hover: hover) and (pointer: fine) {
    /* Only show hover effects on devices with precise pointers */
    .product-card:hover {
        transform: translateY(-8px);
    }

    .holo-panel:hover {
        transform: translateY(-6px);
    }
}

/* Touch devices: simpler interactions */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }

    .product-card-add {
        opacity: 1;
        transform: none;
    }

    .holo-panel:hover {
        transform: none;
    }
}

/* ═══════════ HIGH CONTRAST ═══════════ */
@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.15);
        --border-light: rgba(255, 255, 255, 0.2);
        --text-secondary: rgba(255, 255, 255, 0.75);
        --text-tertiary: rgba(255, 255, 255, 0.55);
    }
}

/* ═══════════ DARK MODE ENFORCEMENT ═══════════ */
@media (prefers-color-scheme: light) {
    /* Lumina is always dark — no light mode switch */
    :root {
        color-scheme: dark;
    }
}