/* --- IMPORTS & SETUP --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* CORE PALETTE (Dark Default) */
    --bg-body: #050505;
    --bg-surface: #0F0F11;
    --bg-card: #18181A;
    --bg-input: #111;
    --border: #2A2A2D;
    --border-hover: #444;
    --text-main: #E0E0E0;
    --text-dim: #888;
    --accent: #FF6B35; /* Orange Default */
    
    /* UI SPECIFIC VARIABLES */
    --phone-bg: #0F0F11;
    --phone-border: #2A2A2D;
    --border-strong: #444;
    
    /* SPACING & GRID */
    --container-width: 1100px;
    --header-height: 70px;
}

/* LIGHT MODE OVERRIDES */
[data-theme="light"] {
    --bg-body: #F0F0F0;
    --bg-surface: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-input: #EEE;
    --border: #E0E0E0;
    --border-hover: #BBB;
    --text-main: #111;
    --text-dim: #666;
    
    --phone-bg: #FAFAFA;
    --phone-border: #E0E0E0;
    --border-strong: #CCC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
}

body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-body) 80%);
    pointer-events: none; z-index: -1;
}

/* --- UTILITY CLASSES --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.mono { font-family: 'JetBrains Mono', monospace; }
.accent { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 64px; }

/* --- NAVIGATION --- */
nav {
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    position: fixed; top: 0; width: 100%; z-index: 100;
}
[data-theme="light"] nav { background: rgba(255, 255, 255, 0.8); }

.nav-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-main); }
.logo-mark { width: 16px; height: 16px; background: var(--accent); border-radius: 2px; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 13px; color: var(--text-dim); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text-main); }

.cta-btn {
    background: var(--text-main); color: var(--bg-body);
    padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: transform 0.1s;
}
.cta-btn:hover { transform: translateY(-1px); }

/* --- TYPOGRAPHY --- */
h1 { font-size: 72px; line-height: 1.05; letter-spacing: -2.5px; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 48px; line-height: 1.1; letter-spacing: -1.5px; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; font-weight: 600; margin-bottom: 16px; }

/* --- BUTTONS --- */
.btn-primary {
    padding: 16px 32px; background: var(--accent); color: #000;
    font-weight: 700; border-radius: 8px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,255,157, 0.2); transform: translateY(-2px); }

/* --- CONTENT SECTIONS --- */
.page-section { padding: 100px 0; }
.content-header { margin-bottom: 60px; }
.content-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 80px; align-items: start; }
.content-nav { position: sticky; top: 120px; }
.content-nav ul { list-style: none; }
.content-nav a {
    display: block; padding: 8px 0; color: var(--text-dim);
    text-decoration: none; font-size: 14px; transition: color 0.2s;
}
.content-nav a:hover { color: var(--accent); }
.content-main { max-width: none; }
.content-main h2 { margin-top: 60px; margin-bottom: 20px; }
.content-main h3 { margin-top: 40px; margin-bottom: 16px; }
.content-main p { margin-bottom: 20px; line-height: 1.6; color: var(--text-dim); }
.content-main ul, .content-main ol { margin: 20px 0; padding-left: 24px; color: var(--text-dim); }
.content-main li { margin-bottom: 8px; line-height: 1.6; }

/* --- PHONE UI COMPONENTS --- */
.phone-wrapper {
    display: flex; justify-content: center;
    perspective: 1000px;
}

.phone {
    width: 320px; height: 680px; 
    background-color: var(--phone-bg);
    border-radius: 32px; 
    border: 6px solid #222;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
    transition: border-color 0.4s;
}
[data-theme="light"] .phone { border-color: #DDD; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2); }

.status-bar { height: 40px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono'; font-size: 10px; color: var(--text-dim); margin-top: 5px; }

/* --- THEME CONTROLS --- */
.control-panel {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    background: rgba(30, 30, 30, 0.9); backdrop-filter: blur(10px);
    padding: 12px; border-radius: 50px; border: 1px solid var(--border);
    display: flex; align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
[data-theme="light"] .control-panel { background: rgba(255, 255, 255, 0.9); border-color: #ccc; }

.swatch-group { 
    display: flex; 
    gap: 12px; 
    justify-content: center;
    flex-wrap: wrap;
}

.swatch { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.2s;
    position: relative;
}

.swatch:hover {
    transform: scale(1.1);
}

.swatch.active { 
    border-color: var(--text-main); 
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--text-main);
}

/* --- FOOTER --- */
footer { padding: 60px 0; margin-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-brand { flex: 1; max-width: 200px; }
.footer-col { display: flex; flex-direction: column; min-width: 120px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; color: var(--text-main); margin-bottom: 16px; letter-spacing: 1px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 8px; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

/* --- APP DOWNLOAD MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 1000; display: none; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.show { display: flex; }

.modal-content {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 20px; max-width: 600px; width: 90%; max-height: 90vh;
    position: relative; animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex; flex-direction: column; overflow: hidden;
}

.modal-header {
    padding: 30px 30px 20px; text-align: center; position: relative;
    flex-shrink: 0; border-bottom: 1px solid var(--border);
}
.modal-close {
    position: absolute; top: 20px; right: 20px; width: 32px; height: 32px;
    border: none; background: var(--bg-input); border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--text-dim);
    transition: all 0.2s; font-size: 18px;
}
.modal-close:hover { background: var(--border); }

.modal-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.modal-subtitle { color: var(--text-dim); font-size: 16px; }

.modal-body { 
    padding: 30px; 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}
.phones-container {
    display: flex; gap: 30px; justify-content: center; align-items: flex-start;
    flex-direction: column;
}

.phone-download-card {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-code-large {
    width: 100px; height: 100px; background: #fff; 
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #666; border: 1px solid #ddd; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-info {
    text-align: left;
    flex: 1;
}
.store-label { 
    font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--text-main);
}
.store-desc { 
    font-size: 13px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.4;
}

.download-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 20px; border-radius: 8px; text-decoration: none;
    font-weight: 600; font-size: 13px; transition: all 0.2s;
    min-width: 140px; background: var(--accent); color: #000;
}
.download-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent), 0.3; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; border-color: var(--accent); }
    100% { transform: scale(1.5); opacity: 0; border-color: transparent; }
}

/* ========================================= */
/* RESPONSIVE OPTIMIZATIONS */
/* ========================================= */

/* Fix for homepage layouts - DESKTOP FIRST */
.hero { 
    padding: 160px 0 120px; 
    text-align: left; /* Desktop should be left-aligned */
}

.hero .grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

/* Ensure hero text is left-aligned on desktop */
.hero .grid-2 > *:first-child {
    text-align: left;
}

/* Fix phone mockup sizing and positioning */
.phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    width: 280px;
    height: 600px;
    max-width: 100%;
}

/* Section spacing fixes */
.page-section { 
    padding: 80px 0; 
}

/* Mode cards and step layouts */
.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin: 100px 0;
}

.step-row.reverse {
    direction: rtl;
}

.step-row.reverse > * {
    direction: ltr;
}

/* New subtle theme switcher */
.theme-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: var(--accent);
}

.theme-icon {
    font-size: 20px;
    filter: grayscale(0.7);
    transition: filter 0.3s ease;
}

.theme-trigger:hover .theme-icon {
    filter: grayscale(0);
}

/* Theme Panel (hidden by default) */
.theme-panel {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 260px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.theme-panel-header span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.theme-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.theme-close:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Theme Mode Toggle */
.theme-mode-toggle {
    display: flex;
    background: var(--bg-body);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.mode-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-btn:hover {
    color: var(--text-main);
}

.mode-btn.active {
    background: var(--accent);
    color: #000;
}

/* Theme Colors Section */
.theme-colors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.colors-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation improvements */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

@media (max-width: 900px) {
    /* Hero section mobile fixes */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero .phone-wrapper {
        justify-content: center;
    }

    /* Typography mobile adjustments */
    h1 { font-size: 42px; line-height: 1.1; }
    h2 { font-size: 32px; line-height: 1.2; }
    
    /* Navigation mobile fixes */
    .nav-links { 
        display: none !important; 
    }
    
    .nav-inner {
        padding: 0 16px;
        justify-content: space-between;
    }
    
    /* Make logo smaller on mobile */
    .logo {
        font-size: 16px;
    }
    
    .logo-mark {
        width: 12px;
        height: 12px;
    }
    
    .cta-btn { 
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
        border-radius: 4px;
    }

    /* Step sections mobile layout */
    .step-row, .step-row.reverse { 
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 60px 0;
        direction: ltr;
        text-align: center;
    }
    
    .step-row.reverse {
        direction: ltr;
    }

    /* Phone sizing for mobile */
    .phone {
        width: 240px;
        height: 500px;
        margin: 0 auto;
    }

    /* Container and spacing */
    .container { 
        padding: 0 20px;
        max-width: 100%;
    }
    
    .page-section { 
        padding: 60px 0; 
    }

    /* Mode switcher mobile fixes - fix the inline styles */
    .mode-container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .mode-tabs {
        width: 100% !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 24px;
    }
    
    .mode-tab {
        min-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px !important;
        font-size: 14px !important;
    }
    
    .mode-tab .arrow {
        display: none !important;
    }
    
    .mode-display {
        padding: 24px !important;
        margin: 0 !important;
    }
    
    /* Mode content grid fixes */
    .mode-content .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    .mode-display .grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        min-width: auto;
    }
    
    /* Theme trigger mobile positioning */
    .theme-trigger { 
        bottom: 20px; 
        right: 20px; 
        width: 45px;
        height: 45px;
    }
    
    .theme-icon {
        font-size: 18px;
    }
    
    .theme-panel {
        bottom: 75px;
        right: 20px;
        width: 240px;
        padding: 16px;
    }
    
    .swatch {
        width: 28px;
        height: 28px;
    }
}

/* Mobile modal adjustments */
@media (max-width: 700px) {
    .modal-overlay { padding: 20px; }
    .modal-content { width: 100%; max-width: none; margin: auto; max-height: 95vh; overflow-y: auto; }
    .modal-header { padding: 20px 16px 16px; }
    .modal-title { font-size: 24px; }
    .modal-subtitle { font-size: 14px; }
    .modal-body { padding: 0 16px 30px; }
    .phones-container { flex-direction: column; gap: 30px; }
    .modal-phone { width: 160px; height: 340px; margin: 0 auto 16px; }
    .modal-phone .status-bar { height: 24px; font-size: 8px; padding: 0 12px; }
    .modal-phone .app-header { padding: 12px; }
    .modal-phone .ui-title { font-size: 14px; }
    .qr-code-large { width: 100px; height: 100px; }
    .store-info { margin-bottom: 0; }
    .store-label { font-size: 13px; }
    .store-desc { font-size: 10px; margin-bottom: 16px; }
    .download-link { padding: 10px 16px; font-size: 12px; min-width: 120px; }
}

/* Small Phones - Critical fixes */
@media (max-width: 480px) {
    /* Hero section extremely mobile responsive */
    .hero {
        padding: 80px 0 40px;
    }
    
    h1 { 
        font-size: 36px; 
        line-height: 1.1; 
        word-wrap: break-word; 
        margin-bottom: 20px;
    }
    
    h2 { 
        font-size: 28px; 
        line-height: 1.2;
    }
    
    /* Phone sizing for very small screens */
    .phone {
        width: 200px;
        height: 420px;
        margin: 0 auto;
    }
    
    /* Container ultra mobile */
    .container { 
        padding: 0 16px !important; 
        max-width: 100%;
    }
    
    /* Navigation ultra compact */
    .nav-inner {
        padding: 0 12px;
        gap: 8px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo-mark {
        width: 10px;
        height: 10px;
    }
    
    .cta-btn {
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
        border-radius: 3px;
    }
    
    /* Buttons full width when needed */
    .btn-primary { 
        width: 100%; 
        justify-content: center;
        margin: 20px 0;
    }
    
    /* Sections tighter spacing */
    .page-section {
        padding: 40px 0;
    }
    
    .step-row {
        margin: 40px 0;
        gap: 30px;
    }
    
    /* Mode tabs stack properly */
    .mode-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .mode-tab {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    /* Footer ultra mobile */
    .footer-content {
        text-align: center;
        padding: 0 16px;
    }
    
    /* Control panel smaller */
    .control-panel {
        bottom: 16px;
        right: 16px;
        padding: 8px;
    }
    
    .swatch {
        width: 18px;
        height: 18px;
    }
    
    /* Grid layouts single column */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .modal-overlay { padding: 10px; }
    .modal-content { max-height: 98vh; }
    .modal-header { padding: 16px 12px 12px; }
    .modal-title { font-size: 22px; }
    .modal-body { padding: 0 12px 20px; }
    .phones-container { gap: 20px; }
    .modal-phone { width: 140px; height: 300px; }
    .qr-code-large { width: 80px; height: 80px; }
    .store-label { font-size: 12px; }
    .download-link { padding: 8px 12px; font-size: 11px; min-width: 100px; }
}

/* Extra small screens */
@media (max-width: 375px) {
    .container { padding: 0 12px !important; }
    .control-panel { bottom: 16px; right: 16px; }
}

/* Tablet modal adjustments */
@media (max-width: 900px) and (min-width: 701px) {
    .modal-content { max-width: 550px; }
    .phones-container { gap: 24px; }
    .modal-phone { width: 180px; height: 380px; }
    .qr-code-large { width: 120px; height: 120px; }
}

/* Large screen modal adjustments */
@media (min-width: 1200px) {
    .modal-content { max-width: 700px; }
    .phones-container { gap: 50px; }
    .modal-phone { width: 220px; height: 460px; }
    .qr-code-large { width: 160px; height: 160px; }
}

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

[data-theme="light"] .nav {
    background: rgba(250, 250, 250, 0.95);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

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

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

.nav-link.active {
    color: var(--accent);
    background: rgba(var(--accent), 0.1);
}

/* --- FOOTER FIXES --- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.footer-logo .logo-mark {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- PRIVACY & TERMS PAGES --- */
.privacy-page {
    padding: 2rem 2rem;
    min-height: 100vh;
    margin-top: var(--header-height);
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.privacy-section h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.privacy-section p {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.privacy-section li strong {
    color: var(--accent);
}

.contact-info {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* --- RETRO TERMINAL COMING SOON PAGES --- */
.coming-soon-page {
    padding: 2rem 2rem;
    min-height: 100vh;
    margin-top: var(--header-height);
}

.desktop-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.retro-desktop {
    perspective: 1000px;
}

/* CRT Monitor */
.monitor {
    width: 600px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.monitor-bezel {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 30px 30px 60px 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
}

[data-theme="light"] .monitor-bezel {
    background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

[data-theme="light"] .screen {
    background: #f8f8f2;
    border-color: #ccc;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* Monitor Base */
.monitor-base {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 40px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

[data-theme="light"] .monitor-base {
    background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Terminal Interface */
.terminal {
    width: 100%;
    height: 100%;
    background: #000;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    color: #00ff41;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="light"] .terminal {
    background: #f8f8f2;
    color: #2d3748;
}

.terminal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: var(--accent);
    font-weight: bold;
}

.command {
    color: #00ff41;
}

[data-theme="light"] .command {
    color: #4a5568;
}

.output {
    color: #888;
}

.status {
    color: var(--accent);
    font-weight: bold;
}

/* Loading Boxes Animation */
.loading-boxes {
    display: flex;
    gap: 4px;
    align-items: center;
}

.box {
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent);
    background: transparent;
    animation: fillBox 2s infinite;
}

.box:nth-child(1) { animation-delay: 0s; }
.box:nth-child(2) { animation-delay: 0.25s; }
.box:nth-child(3) { animation-delay: 0.5s; }
.box:nth-child(4) { animation-delay: 0.75s; }
.box:nth-child(5) { animation-delay: 1s; }
.box:nth-child(6) { animation-delay: 1.25s; }
.box:nth-child(7) { animation-delay: 1.5s; }
.box:nth-child(8) { animation-delay: 1.75s; }

@keyframes fillBox {
    0%, 50% {
        background: transparent;
    }
    25% {
        background: var(--accent);
    }
    75%, 100% {
        background: transparent;
    }
}

/* Responsive Desktop Terminal */
@media (max-width: 768px) {
    .monitor {
        width: 90vw;
        max-width: 450px;
        height: 320px;
    }
    
    .monitor-bezel {
        padding: 20px 20px 40px 20px;
    }
    
    .terminal {
        padding: 15px;
        font-size: 12px;
    }
    
    .coming-soon-page {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .monitor {
        width: 95vw;
        max-width: 320px;
        height: 260px;
    }
    
    .monitor-bezel {
        padding: 15px 15px 30px 15px;
    }
    
    .terminal {
        padding: 12px;
        font-size: 11px;
        line-height: 1.4;
    }
    
    .terminal-content {
        gap: 8px;
    }
    
    .box {
        width: 8px;
        height: 8px;
    }
    
    .loading-boxes {
        gap: 2px;
    }
    
    .desktop-wrapper {
        padding: 1rem 0;
    }
}

/* --- ABOUT PAGE STORY ANIMATION --- */
.about-page {
    padding: 2rem 2rem;
    min-height: 100vh;
    margin-top: var(--header-height);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.story-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.story-phone {
    perspective: 1000px;
}

.phone-frame {
    width: 350px;
    height: 700px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

[data-theme="light"] .phone-frame {
    background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #333;
    position: relative;
}

[data-theme="light"] .phone-screen {
    background: #f8f8f2;
    border-color: #ccc;
}

.story-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.story-content .current-line {
    position: absolute;
    top: 30%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
}

.story-content .typing-cursor {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
}

.story-content::-webkit-scrollbar {
    width: 6px;
}

.story-content::-webkit-scrollbar-track {
    background: transparent;
}

.story-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.story-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

[data-theme="light"] .story-content {
    color: #2d3748;
}

.typing-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.current-line {
    display: inline;
}

/* Mobile responsive for about page */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }
    
    .story-phone {
        transform: scale(0.8);
    }
    
    .phone-frame {
        width: 300px;
        height: 600px;
        padding: 15px;
    }
    
    .story-content {
        padding: 15px;
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .about-header h1 {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .story-phone {
        transform: scale(0.7);
    }
    
    .phone-frame {
        width: 280px;
        height: 550px;
        padding: 12px;
    }
    
    .story-content {
        padding: 12px;
        font-size: 11px;
    }
    
    .about-page {
        padding: 1rem;
    }
}

/* Privacy page responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .privacy-header h1 {
        font-size: 2rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.2rem;
    }
    
    .privacy-content {
        padding: 0 1rem;
    }
    
    .privacy-page {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        min-width: auto;
    }
}