/* ═══════════════════════════════════════════════════
   mobile.css — Responsive styles for all pages
   Nuvik Secure
═══════════════════════════════════════════════════ */

/* ─── Hide ugly scrollbar ─── */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ─── Base mobile fixes ─── */
* { box-sizing: border-box; }
body { overflow-x: hidden; }

/* ═══════════════════════════════════
   NAVBAR — Mobile hamburger menu
═══════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 1.2rem !important;
        gap: 0 !important;
        flex-wrap: nowrap;
        grid-template-columns: unset !important;
        position: sticky;
        top: 0; z-index: 100;
    }

    /* Hide desktop nav links */
    .navbar .nav-pills {
        display: none !important;
    }

    /* Mobile menu toggle button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px; height: 38px;
        background: rgba(239,68,68,0.1);
        border: 1px solid rgba(239,68,68,0.2);
        border-radius: 10px;
        color: var(--primary);
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    .mobile-menu-btn:hover { background: rgba(239,68,68,0.2); }

    /* Mobile dropdown nav */
    .mobile-nav {
        display: none;
        flex-direction: column;
        background: rgba(2,6,23,0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(239,68,68,0.1);
        padding: 0.8rem 1.2rem;
        gap: 0.3rem;
        position: sticky;
        top: 64px; z-index: 99;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
        display: block;
        width: 100%;
    }
    .mobile-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(249,115,22,0.1));
        border: 1px solid rgba(239,68,68,0.25);
        color: #f87171;
    }
}

/* Hide mobile elements on desktop */
.mobile-menu-btn { display: none; }
.mobile-nav { display: none; }

/* ═══════════════════════════════════
   INDEX — Hero & Countdown
═══════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.2rem 1rem !important;
        min-height: calc(100vh - 64px) !important;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2.6rem, 12vw, 4rem) !important;
        letter-spacing: -1px !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.3rem;
    }

    .countdown-wrapper {
        gap: 0.7rem !important;
        margin-bottom: 2rem !important;
        flex-wrap: nowrap;
    }
    .countdown-item {
        padding: 1rem 0.9rem !important;
        min-width: 68px !important;
        border-radius: 14px !important;
    }
    .countdown-number { font-size: 2rem !important; }
    .countdown-label { font-size: 0.6rem !important; letter-spacing: 1.5px !important; }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100% !important;
        justify-content: center !important;
    }

    .features-row {
        padding: 0 1rem 3rem !important;
        gap: 0.6rem !important;
    }
    .feature-pill { font-size: 0.78rem !important; }
}

/* ═══════════════════════════════════
   FEATURES PAGE
═══════════════════════════════════ */
@media (max-width: 768px) {
    .features-hero {
        padding: 2rem 1.2rem 2rem !important;
    }
    .features-hero-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        letter-spacing: -1px !important;
    }
    .features-hero-sub {
        font-size: 0.9rem !important;
    }
    .features-grid-wrap {
        padding: 1rem 1rem 3rem !important;
        gap: 1.2rem !important;
        grid-template-columns: 1fr !important;
    }
    .feat-card { padding: 1.5rem !important; }
    .feat-card-title { font-size: 1rem !important; }
}

/* ═══════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════ */
@media (max-width: 768px) {
    .page-wrap {
        padding: 2rem 1.2rem 4rem !important;
        gap: 3rem !important;
    }
    .about-title {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        letter-spacing: -1px !important;
    }
    .what-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .roadmap-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .terminal-wrap {
        font-size: 0.75rem !important;
    }
}

/* ═══════════════════════════════════
   BUY PAGE
═══════════════════════════════════ */
@media (max-width: 768px) {
    .page {
        padding: 2rem 1.2rem 4rem !important;
        min-height: calc(100vh - 64px) !important;
    }

    .buy-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
        letter-spacing: -1px !important;
    }
    .buy-sub {
        font-size: 0.93rem !important;
        padding: 0 0.3rem;
    }

    .pricing-wrap {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .price-card {
        width: 100% !important;
        max-width: 420px;
        padding: 2rem 1.5rem !important;
    }
    .info-card {
        width: 100% !important;
        max-width: 420px;
    }
    .price-amount { font-size: 4rem !important; }
}

/* ═══════════════════════════════════
   SPLASH INTRO — Mobile
═══════════════════════════════════ */
@media (max-width: 768px) {
    .splash-logo { width: 58px !important; height: 58px !important; }
    .splash-name { font-size: 1.6rem !important; }
}

/* ═══════════════════════════════════
   Small phones (< 400px)
═══════════════════════════════════ */
@media (max-width: 400px) {
    .countdown-item { padding: 0.85rem 0.65rem !important; min-width: 58px !important; }
    .countdown-number { font-size: 1.6rem !important; }
    .hero-title { font-size: 2.4rem !important; }
    .nav-brand { font-size: 1.05rem !important; }
}
