/* ==========================================================================
   LunaFrame Landing Page - Modern Glassmorphism & Dreamy Theme
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
    --bg-dark: #0a0c16;
    --bg-card: rgba(23, 27, 48, 0.65);
    --bg-card-hover: rgba(33, 38, 66, 0.8);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glass-bright: rgba(255, 255, 255, 0.3);
    
    --primary-pink: #ffb5e8;
    --primary-purple: #c5a3ff;
    --primary-blue: #b5ead7;
    --accent-gold: #ffdac1;
    --accent-cyan: #9bf6ff;
    
    --text-main: #f4f5f8;
    --text-muted: #a0a5c0;
    --text-dim: #6c7293;
    
    --font-heading: 'M PLUS Rounded 1c', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'M PLUS Rounded 1c', sans-serif;
    
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --shadow-glow: 0 0 35px rgba(197, 163, 255, 0.25);
    --shadow-pink-glow: 0 0 40px rgba(255, 181, 232, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    word-break: break-word;
    overflow-wrap: break-word;
    touch-action: manipulation;
}

/* --- Background Animated Orbs & Stars --- */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 15px 25px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 75px 125px, #ffb5e8, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 230px 220px, #c5a3ff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 340px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 450px 310px, #9bf6ff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 550px 550px;
    opacity: 0.4;
    z-index: -2;
    pointer-events: none;
    animation: starsFlicker 8s ease-in-out infinite alternate;
}

@keyframes starsFlicker {
    0% { opacity: 0.25; transform: scale(1); }
    100% { opacity: 0.55; transform: scale(1.02); }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(197,163,255,0.3) 0%, rgba(0,0,0,0) 70%);
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    left: -150px;
    background: radial-gradient(circle, rgba(255,181,232,0.25) 0%, rgba(0,0,0,0) 70%);
}

.orb-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, rgba(155,246,255,0.2) 0%, rgba(0,0,0,0) 70%);
}

/* --- Glassmorphism Utilities --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: transform var(--transition-bounce), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all var(--transition-bounce);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: #121324;
    box-shadow: 0 4px 20px rgba(255, 181, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(255, 181, 232, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-glass-bright);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

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

/* --- Header / Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 2rem;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(10, 12, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-highlight {
    color: var(--primary-pink);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-pink);
}

.nav-mobile-btn {
    display: none !important;
}

.nav-desktop-btn {
    display: inline-flex;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Layout Container --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-pink);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero Section --- */
.hero-section {
    padding: 10rem 1.5rem 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 181, 232, 0.12);
    border: 1px solid rgba(255, 181, 232, 0.3);
    border-radius: 30px;
    color: var(--primary-pink);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.hashtags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hashtag {
    font-size: 0.85rem;
    color: var(--primary-purple);
    background: rgba(197, 163, 255, 0.1);
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(197, 163, 255, 0.2);
}

/* Floating Device Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-device-wrap {
    position: relative;
    width: 340px;
    height: 340px;
}

.moon-halo {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,181,232,0.2) 0%, rgba(197,163,255,0.1) 50%, rgba(0,0,0,0) 70%);
    animation: moonGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes moonGlowPulse {
    0% { transform: scale(0.98); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

.device-frame {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-pink-glow);
    position: relative;
    animation: floatDevice 6s ease-in-out infinite;
}

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

@keyframes floatDevice {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-bright);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.badge-1 {
    top: 20px;
    left: -30px;
    animation: floatBadge 5s ease-in-out infinite alternate;
}

.badge-2 {
    bottom: 20px;
    right: -30px;
    animation: floatBadge 5s ease-in-out 1s infinite alternate;
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* --- Concept Section --- */
.concept-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.concept-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,181,232,0.2), rgba(197,163,255,0.2));
    border: 1px solid var(--border-glass-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-pink);
}

.concept-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.concept-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-box {
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-purple);
    opacity: 0.6;
}

.feature-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.feature-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Simulator Section --- */
.simulator-wrapper {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sim-visual-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sim-device {
    position: relative;
    width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-keychain-hook {
    font-size: 2.2rem;
    color: #cbd5e1;
    margin-bottom: -15px;
    z-index: 5;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.sim-bezel {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.2);
    transition: background-color var(--transition-fast);
}

.sim-device[data-frame-color="pink"] .sim-bezel {
    background: #ffc2d1;
}

.sim-device[data-frame-color="dark"] .sim-bezel {
    background: #2d3748;
}

.sim-screen {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.sim-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.sim-screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.sim-shadow {
    width: 200px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(8px);
    margin-top: 1rem;
}

.sim-controls-area h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.control-group {
    margin-bottom: 1.8rem;
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.preset-buttons {
    display: flex;
    gap: 0.8rem;
}

.preset-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all var(--transition-bounce);
}

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

.preset-btn.active, .preset-btn:hover {
    border-color: var(--primary-pink);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-pink);
}

.file-upload-box input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--border-glass-bright);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-pink);
}

.color-options {
    display: flex;
    gap: 0.8rem;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-bounce);
}

.color-white { background: #ffffff; }
.color-pink { background: #ffc2d1; }
.color-dark { background: #2d3748; }

.color-btn.active, .color-btn:hover {
    transform: scale(1.2);
    border-color: var(--primary-pink);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 22, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-main);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-overlay i {
    font-size: 1.8rem;
    color: var(--primary-pink);
}

.gallery-overlay span {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 1rem;
    text-align: center;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Specs Section --- */
.specs-wrapper {
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.specs-table th, .specs-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    text-align: left;
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table th {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-pink);
    width: 35%;
}

.specs-table th i {
    margin-right: 0.5rem;
}

.specs-table td {
    color: var(--text-main);
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    padding: 4rem 1.5rem 3rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(10, 12, 22, 0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.footer-hashtags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-hashtags .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-purple);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 12, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    border: 1px solid var(--border-glass-bright);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.lightbox-caption {
    margin-top: 1.2rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform var(--transition-bounce);
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: var(--primary-pink);
}

/* --- Responsive Media Queries --- */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
    .section-container {
        padding: 4.5rem 1.5rem;
    }

    .navbar {
        padding: 1rem 1.2rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 12, 22, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 1.8rem 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-glass-bright);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-desktop-btn,
    .nav-actions .nav-desktop-btn,
    .nav-actions > a {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .nav-mobile-btn {
        display: inline-flex !important;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border-glass);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-buttons, .hashtags-list {
        justify-content: center;
    }

    .concept-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .simulator-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
        gap: 2.5rem;
    }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    .hero-section {
        padding: 7rem 1.2rem 4rem;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Floating device responsive sizing */
    .floating-device-wrap {
        width: 280px;
        height: 280px;
    }

    .moon-halo {
        top: -15px;
        left: -15px;
        width: 310px;
        height: 310px;
    }

    .device-frame {
        width: 280px;
        height: 280px;
        border-width: 8px;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .badge-1 {
        left: -15px;
        top: 10px;
    }

    .badge-2 {
        right: -15px;
        bottom: 10px;
    }

    .concept-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .feature-box {
        padding: 1.8rem;
    }

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

    .gallery-item {
        height: 220px;
    }

    .specs-wrapper {
        padding: 1.5rem;
    }

    .specs-table th, .specs-table td {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    .specs-table th {
        width: 40%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        z-index: 1010;
        background: rgba(0,0,0,0.6);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

/* Extra Small Devices / Phones (<= 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .floating-device-wrap {
        width: 230px;
        height: 230px;
    }

    .moon-halo {
        top: -10px;
        left: -10px;
        width: 250px;
        height: 250px;
    }

    .device-frame {
        width: 230px;
        height: 230px;
        border-width: 6px;
    }

    .hero-visual {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .simulator-wrapper {
        padding: 1.5rem 1rem;
    }

    .sim-device {
        width: 220px;
        height: 250px;
    }

    .sim-bezel {
        width: 200px;
        height: 200px;
        padding: 12px;
    }

    .sim-shadow {
        width: 160px;
    }

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

    .gallery-item {
        height: 240px;
    }

    .gallery-overlay {
        opacity: 0.85;
        background: linear-gradient(to top, rgba(10, 12, 22, 0.9) 0%, rgba(10, 12, 22, 0.2) 100%);
        justify-content: flex-end;
        padding-bottom: 1rem;
    }

    .specs-table, .specs-table tbody, .specs-table tr, .specs-table th, .specs-table td {
        display: block;
        width: 100%;
    }

    .specs-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-glass);
        padding-bottom: 0.8rem;
    }

    .specs-table th {
        border-bottom: none;
        padding-bottom: 0.2rem;
    }

    .specs-table td {
        border-bottom: none;
        padding-top: 0.2rem;
    }
}

