@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&family=Bebas+Neue&display=swap');

:root {
    --gold: #FFB300;
    --gold-rgb: 255, 179, 0;
    --obsidian: #05050A;
    --surface: rgba(13, 13, 21, 0.7);
    --surface-hover: rgba(18, 18, 28, 0.9);
    --border: rgba(255, 179, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.4);
}

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

body {
    background-color: var(--obsidian);
    color: #C5C6C7;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 4px !important;
    font-weight: 900;
    transition: all 0.3s ease;
}

.logo:hover {
    letter-spacing: 6px !important;
}

#particle-canvas {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; 
    pointer-events: none;
    opacity: 0.8;
}

.demo-layout, .demo-main, .dashboard-main { 
    background: transparent !important; 
}

.bebas { font-family: 'Bebas Neue', cursive; }

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 10;
}

header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 10, 0.9); backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════
   LANGUAGE SELECTOR - HIGH VISIBILITY
   ═══════════════════════════════════════ */
.lang-selector {
    display: flex; gap: 0.25rem; background: rgba(255,179,0,0.05);
    padding: 0.3rem; border-radius: 14px; border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.1);
}

.lang-btn {
    background: transparent; border: none; color: #FFF;
    font-size: 11px; font-weight: 900; padding: 0.6rem 0.8rem;
    min-width: 40px;
    border-radius: 10px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn.active { background: var(--gold); color: var(--obsidian); box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.3); }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,0.05); }

/* ═══════════════════════════════════════
   DASHBOARD SIMULATION (HOME PREVIEW)
   ═══════════════════════════════════════ */
.dashboard-sim-container {
    display: flex; height: 600px; background: #08080C;
    border-radius: 40px; border: 1px solid var(--glass-border);
    overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    position: relative;
}

.tactical-sidebar, .demo-sidebar {
    width: 80px; background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column; align-items: center; padding: 2rem 0; gap: 2rem;
}

.side-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.25rem; transition: all 0.3s ease;
}

.side-icon.active { color: var(--gold); background: rgba(255,179,0,0.1); border: 1px solid rgba(var(--gold-rgb), 0.2); }

.dashboard-main {
    flex: 1; padding: 3rem; display: flex; flex-direction: column; gap: 2rem;
    background: radial-gradient(circle at top right, rgba(255,179,0,0.03), transparent);
    position: relative;
    overflow-y: auto;
}

.agent-grid-sim {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.agent-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--glass-border);
    border-radius: 24px; 
    padding: 2rem 1.5rem; 
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    cursor: pointer;
    position: relative; 
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.agent-card:hover { 
    background: var(--surface-hover); 
    border-color: rgba(var(--gold-rgb), 0.4); 
    transform: translateY(-8px); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.agent-avatar-box { width: 64px; height: 64px; margin: 0 auto 1.5rem; position: relative; }
.agent-avatar-box img { width: 100%; height: 100%; }

.agent-status-dot {
    position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px;
    border-radius: 50%; border: 2px solid #08080C;
}

.agent-status-dot.online { background: #00E676; box-shadow: 0 0 10px #00E676; }

.agent-card h4 { font-size: 1.4rem; color: #FFF; margin-bottom: 0.25rem; }
.agent-card p { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; }

/* HUD MINI - SECURE ANCHOR */
.hud-mini-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    z-index: 600;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Ensure HUD is constrained inside the Simulation Container in Home */
.dashboard-sim-container .hud-mini-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 100;
}

.modal-body-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hud-simulation {
    pointer-events: auto;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(32px);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.95), 0 0 50px rgba(var(--gold-rgb), 0.25);
}

.hud-header {
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
    padding-bottom: 0.75rem; margin-bottom: 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
}

.hud-title { font-size: 9px; font-weight: 900; color: var(--gold); letter-spacing: 0.2em; }
.hud-status { width: 10px; height: 10px; background: #00E676; border-radius: 50%; animation: pulse-green 2s infinite; }

@keyframes pulse-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.telemetry-logs {
    height: 120px; overflow-y: hidden; font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px; line-height: 1.6; color: rgba(255, 255, 255, 0.5);
}

.log-entry { margin-bottom: 0.4rem; display: flex; gap: 0.75rem; }
.log-time { color: var(--gold); opacity: 0.5; font-weight: 700; }

.hud-progress { margin-top: 1.25rem; }
.progress-bar { height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #FFF); width: 0%; transition: width 0.3s ease; }

/* ═══════════════════════════════════════
   HERO & BENTO - NO INITIAL HIDDEN STATE
   ═══════════════════════════════════════ */
.hero { padding: 12rem 0 8rem; text-align: center; }
.hero-tag { font-size: 10px; font-weight: 900; color: var(--gold); letter-spacing: 0.5em; text-transform: uppercase; margin-bottom: 2rem; display: inline-block; }
.hero-title { font-size: clamp(3rem, 12vw, 7rem); line-height: 0.85; color: #FFF; margin-bottom: 2rem; letter-spacing: -2.5px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3.5rem; }

.section-header h2 { margin-top: 0.5rem; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: 4rem; }
.bento-item { 
    background: var(--surface); backdrop-filter: blur(32px); border: 1px solid var(--border); 
    border-radius: 36px; padding: 3rem; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative; overflow: hidden; 
}
.bento-item:hover { background: var(--surface-hover); border-color: rgba(var(--gold-rgb), 0.4); transform: translateY(-8px); }

.col-span-12 { grid-column: span 12; } .col-span-6 { grid-column: span 6; } .col-span-8 { grid-column: span 8; } .col-span-4 { grid-column: span 4; }

/* BUTTONS */
.btn-gold { 
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2.5rem; background: var(--gold); color: var(--obsidian); font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: 2px; border-radius: 16px; transition: all 0.3s ease; border: none; white-space: nowrap;
}
.btn-gold:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(var(--gold-rgb), 0.3); }
.btn-outline { 
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2.5rem; border: 1px solid var(--glass-border); color: #FFF; font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: 2px; border-radius: 16px; transition: all 0.3s ease; white-space: nowrap;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--gold); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* UTILITY */
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; }
.text-gold { color: var(--gold); } .uppercase { text-transform: uppercase; }

@media (max-width: 991px) {
    .dashboard-sim-container { height: auto; flex-direction: column; border-radius: 20px; }
    .tactical-sidebar { width: 100%; height: 60px; flex-direction: row; justify-content: center; padding: 0 1rem; border-right: none; border-bottom: 1px solid var(--glass-border); gap: 1rem; }
    .hidden-mobile { display: none; }
    .hero { padding: 8rem 0 4rem; }
    .hero-title { font-size: 4rem; }
    .btn-gold, .btn-outline { width: 100%; max-width: 400px; text-align: center; padding: 1rem 1.5rem; }
    .container { padding: 0 1.5rem; }
    .demo-main { padding: 2rem 1.5rem !important; }
    .demo-sidebar { width: 100% !important; height: auto !important; flex-direction: row !important; justify-content: center !important; position: static !important; padding: 1rem !important; border-bottom: 1px solid var(--glass-border) !important; border-right: none !important; margin-top: 0 !important; top: auto !important; }
    .demo-header-tactical { flex-direction: column; align-items: flex-start !important; gap: 1.5rem !important; margin-bottom: 3rem !important; }
    .operation-controls { width: 100%; justify-content: flex-start !important; gap: 0.5rem !important; flex-wrap: wrap; }
    .op-btn { width: 100% !important; max-width: none !important; margin-top: 0.5rem; }
}

/* ═══════════════════════════════════════
   TACTICAL HEADER CLASSES
   ═══════════════════════════════════════ */
.demo-header-tactical {
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap; width: 100%;
}

.operation-info { flex: 1; min-width: 250px; }
.operation-controls { 
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; 
    justify-content: flex-end; flex: 2; min-width: 250px; 
}

.stat-box {
    display: flex; align-items: center; gap: 0.5rem; font-size: 10px; 
    font-weight: 900; letter-spacing: 1px; color: var(--text-muted); 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 0.5rem 0.8rem; border-radius: 10px; white-space: nowrap;
}

.op-btn { font-size: 9px; padding: 0.6rem 1rem; white-space: nowrap; border-radius: 10px; }

/* Specific Demo Fixes */
.demo-page { overflow: hidden !important; }
.demo-sidebar .side-icon { margin-bottom: 1rem; cursor: pointer; }
.demo-sidebar .side-icon:hover { color: var(--gold); background: rgba(255,179,0,0.05); }

/* ═══════════════════════════════════════
   TACTICAL MODALS (PEON STYLE)
   ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(5,5,10,0.85);
    backdrop-filter: blur(20px); z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease; transition-delay: 0.1s;
}
.modal-overlay.visible { opacity: 1; }

.modal-content.peon-style {
    background: #08080C; border: 1px solid var(--border);
    border-radius: 48px; width: 100%; max-width: 900px;
    max-height: 90vh;
    padding: 3rem; position: relative; display: flex; flex-direction: column;
    box-shadow: 0 0 100px rgba(0,0,0,0.8), 0 0 40px rgba(var(--gold-rgb), 0.1);
    transform: translateY(30px) scale(0.95); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5001;
}

.modal-body-scroller {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}
.modal-overlay.visible .modal-content.peon-style { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 2rem; right: 2rem; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); color: var(--text-muted); width: 44px; height: 44px;
    border-radius: 14px; cursor: pointer; transition: all 0.3s ease;
}
.modal-close:hover { color: #FFF; background: var(--gold); border-color: var(--gold); color: var(--obsidian); }

.modal-body { flex: 1; overflow-y: auto; padding-right: 2rem; margin-top: 2rem; }

.tactical-section { margin-bottom: 3rem; }
.tactical-section h3 { font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; }

.terminal-box {
    background: #000; border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem; font-family: 'IBM Plex Sans', monospace; font-size: 11px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; }
.sector-list { list-style: none; margin-top: 1rem; }
.sector-list li { font-size: 10px; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-muted); }

.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.lang-btn-large {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: var(--text-muted); font-weight: 900; font-size: 11px; padding: 1.5rem;
    border-radius: 18px; cursor: pointer; transition: all 0.3s ease; letter-spacing: 2px;
}
.lang-btn-large:hover, .lang-btn-large.active { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }

.danger-zone { border-top: 1px solid rgba(255, 82, 82, 0.1); padding-top: 3rem; margin-top: 1rem; }
.btn-danger {
    width: 100%; padding: 1.5rem; background: rgba(255, 82, 82, 0.1); color: #FF5252;
    border: 1px solid rgba(255, 82, 82, 0.2); border-radius: 18px; font-weight: 900;
    font-size: 11px; letter-spacing: 3px; cursor: pointer; transition: all 0.3s ease;
}
.btn-danger:hover { background: #FF5252; color: #FFF; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ═══════════════════════════════════════
   STRATEGIC AGENT GRID (DEMO)
   ═══════════════════════════════════════ */
/* Consolidated with previous definition */

/* Consolidated with previous definition */

.agent-avatar-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    position: relative;
}

.agent-avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #000;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #05050A;
}

.agent-status-dot.online { background: #00E676; box-shadow: 0 0 10px #00E676; }

.agent-card h4 {
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

