/* ═══════════════════════════════════════════════
   IMPERIUM TECHS — RESPONSIVE
   Mobile Optimizations
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-hud-decoration {
        display: none;
    }
    
    .telemetry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .tactical-cursor,
    .cursor-dot,
    .cursor-scan {
        display: none !important;
    }
    
    .boot-overlay {
        padding: 1.5rem;
        font-size: 0.75rem;
    }
    
    .boot-progress {
        width: 100%;
        max-width: 250px;
    }
    
    .theme-toggle {
        position: fixed;
        top: auto;
        bottom: 1.5rem;
        left: 1.5rem;
        right: auto;
        padding: 0.5rem 0.875rem;
        font-size: 0.6rem;
        z-index: 999;
    }
    
    .threat-radar {
        width: 64px;
        height: 64px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .radar-label {
        font-size: 0.45rem;
        bottom: -18px;
    }
    
    .radar-grid {
        inset: 6px;
    }
    
    .radar-grid::before {
        inset: 10px;
    }
    
    .imperium-toast {
        top: auto;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        padding: 0.75rem 1.25rem;
        font-size: 0.7rem;
        max-width: 90vw;
        text-align: center;
    }
    
    .imperium-toast.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .recruit-cipher {
        font-size: 0.5rem;
        padding: 0.35rem;
        letter-spacing: 0.15em;
    }
    
    .encryption-lock {
        width: 56px;
        height: 56px;
    }
    
    .encryption-title {
        font-size: 0.9rem;
    }
    
    .encryption-progress {
        width: 80vw;
        max-width: 280px;
    }
    
    .encryption-hex {
        font-size: 0.6rem;
        max-width: 90vw;
        padding: 0 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(8, 8, 10, 0.98);
        border-bottom: 1px solid var(--border-active);
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .node-card {
        padding: var(--space-sm);
    }
    
    .node-name {
        font-size: 1.15rem;
    }
    
    .node-description {
        font-size: 0.85rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dispatch-form {
        padding: var(--space-md);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-brand .brand-text {
        font-size: 1.25rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        height: 240px;
        padding: var(--space-sm);
        font-size: 0.75rem;
    }
    
    .terminal-header {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .terminal-title {
        font-size: 0.6rem;
    }
    
    .terminal-input-line {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .terminal-input {
        font-size: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-card {
        padding: var(--space-sm);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-md);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-desc {
        font-size: 0.95rem;
        padding: 0 var(--space-sm);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .motion-blur.active {
        filter: none;
    }
}

@media (max-width: 380px) {
    .theme-toggle {
        bottom: 1rem;
        left: 1rem;
        padding: 0.4rem 0.625rem;
        font-size: 0.55rem;
    }
    
    .threat-radar {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .boot-overlay {
        padding: 1rem;
        font-size: 0.7rem;
    }
    
    .header-container {
        padding: 0 var(--space-sm);
        height: 64px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 32px;
    }
}