/* Custom Design System for Prometheus 1 */

:root {
    /* Color Palette */
    --color-void: #030304;       /* XBlack Void */
    --color-space: #07070a;      /* Sub-space container background */
    --color-card: rgba(9, 9, 12, 0.7); /* Translucent Glassmorphism Card */
    --color-border: rgba(255, 255, 255, 0.04);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    
    /* Neons */
    --color-cyan: #00f3ff;
    --color-magenta: #ff007f;
    --color-purple: #7a00ff;
    --color-yellow: #ffb700;
    
    /* Text Colors */
    --color-text: #e2e8f0;       /* Silver slate */
    --color-muted: #64748b;      /* Slate grey */
    --color-dark-muted: #334155;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-void);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-void);
}
::-webkit-scrollbar-thumb {
    background: var(--color-dark-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 700px;
}
.py-20 {
    padding-top: 100px;
    padding-bottom: 100px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.font-mono {
    font-family: var(--font-mono);
}
.text-cyan { color: var(--color-cyan); }
.text-magenta { color: var(--color-magenta); }
.text-purple { color: var(--color-purple); }
.text-yellow { color: var(--color-yellow); }
.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.text-slate-muted {
    color: var(--color-muted);
}
.hidden {
    display: none !important;
}

/* Background canvas */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #08080f 0%, var(--color-void) 100%);
    pointer-events: none;
}

/* CRT monitor overlay */
.monitor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    opacity: 0.6;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-magenta) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 50px;
}
.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-cyan);
}
.section-desc {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-top: 10px;
}
.text-center {
    text-align: center;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--color-cyan);
    color: var(--color-void);
    border: 1px solid var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}
.btn-primary:hover {
    background: transparent;
    color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-glowing {
    background: transparent;
    border: 1px solid var(--color-magenta);
    color: var(--color-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.1);
}
.btn-glowing:hover {
    background: var(--color-magenta);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(3, 3, 4, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo-link {
    text-decoration: none;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #ffffff;
}
.logo-symbol {
    color: var(--color-cyan);
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
.logo-num {
    color: var(--color-magenta);
}
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 4px;
}
.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: relative;
}
.status-indicator.online {
    background-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
}
.status-indicator.online::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid var(--color-cyan);
    animation: status-pulse 2s infinite;
}
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--color-muted);
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}
.nav-item:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}
.audio-control-wrapper {
    display: flex;
    align-items: center;
}
.audio-btn {
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}
.audio-btn:hover {
    color: var(--color-cyan);
}

/* Cards & Glassmorphism with Dynamic Border Glow */
.hover-glow {
    position: relative;
    background: var(--color-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}
.hover-glow:hover {
    border-color: var(--color-border-hover);
    background: rgba(12, 12, 18, 0.8);
}
/* Mouse radial glow styling */
.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        80px circle at var(--x, 0px) var(--y, 0px),
        rgba(255, 255, 255, 0.05),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hover-glow:hover .card-border-glow {
    opacity: 1;
}

/* Custom glow borders based on attributes */
.hover-glow[data-neon="cyan"]:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.05);
}
.hover-glow[data-neon="magenta"]:hover {
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.05);
}
.hover-glow[data-neon="purple"]:hover {
    box-shadow: 0 0 30px rgba(122, 0, 255, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122, 0, 255, 0.06) 0%, transparent 70%);
    top: 20%;
    left: -10%;
    z-index: -1;
    pointer-events: none;
}
.hero-content {
    z-index: 2;
}
.hacker-tag {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hologram Viewport Graphic */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hologram-viewport {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.1);
}
.ring-outer {
    width: 320px;
    height: 320px;
    border-top: 1.5px solid var(--color-cyan);
    border-bottom: 1.5px solid var(--color-magenta);
    animation: rotate-cw 20s linear infinite;
}
.ring-middle {
    width: 260px;
    height: 260px;
    border-left: 1px solid var(--color-purple);
    border-right: 1px solid var(--color-cyan);
    border-style: dashed;
    animation: rotate-ccw 15s linear infinite;
}
.ring-inner {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--color-cyan);
    animation: rotate-cw 8s linear infinite;
}
.logo-hologram {
    z-index: 2;
    animation: hologram-float 4s ease-in-out infinite;
}
.logo-symbol-huge {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.6), 0 0 60px rgba(255, 0, 127, 0.3);
    user-select: none;
}
.hologram-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 243, 255, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: radial-gradient(circle, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
    pointer-events: none;
}
.hologram-data {
    position: absolute;
    bottom: -40px;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    width: 100%;
}
.hologram-line {
    margin-bottom: 4px;
    opacity: 0.7;
    animation: flicker 4s infinite alternate;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    cursor: pointer;
}
.scroll-indicator:hover {
    color: var(--color-cyan);
}
.scroll-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--color-cyan), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #ffffff;
    animation: scroll-line 2s infinite;
}

/* Commando Team Section */
.commando-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cyber-avatar-svg {
    width: 75%;
    height: 75%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    transition: transform var(--transition-normal);
}
.team-card:hover .cyber-avatar-svg {
    transform: scale(1.05);
}
.avatar-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 243, 255, 0.05), transparent 40%);
    pointer-events: none;
    opacity: 0.5;
}
.commando-role {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}
.commando-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.commando-bio {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* AI Sales Crews Section */
.ai-interactive-panel {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}
.panel-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0,0,0,0.3);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ff5555; }
.terminal-dot.yellow { background-color: #ffb86c; }
.terminal-dot.green { background-color: #50fa7b; }
.panel-title {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}
.panel-body {
    padding: 24px;
}
.cost-badge {
    display: inline-block;
    background: rgba(0, 243, 255, 0.08);
    border: 1px dashed var(--color-cyan);
    color: var(--color-cyan);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.ai-bullets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bullet-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}
.bullet-tick {
    color: var(--color-cyan);
    font-size: 1.4rem;
    line-height: 1;
}

/* Custom Cyber Range Sliders */
.slider-group {
    margin-bottom: 20px;
}
.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--color-text);
}
.cyber-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    outline: none;
    margin-bottom: 8px;
}
.cyber-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-cyan);
    transition: transform var(--transition-fast);
}
.cyber-range::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Neural Net Visualizer */
.neural-visualizer {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    height: 160px;
    position: relative;
    overflow: hidden;
    margin: 24px 0;
}
.visualizer-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}
.neural-net-svg {
    width: 100%;
    height: 100%;
}
.live-console {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 12px;
    height: 70px;
    font-size: 0.7rem;
    overflow-y: hidden;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Operations Service Cards */
.arsenal-card {
    padding: 36px;
}
.arsenal-icon-wrapper {
    margin-bottom: 24px;
}
.arsenal-icon {
    filter: drop-shadow(0 0 8px currentColor);
}
.arsenal-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.arsenal-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Terminal Console Box */
.terminal-shell {
    border-radius: 8px;
    background: rgba(6, 6, 8, 0.85);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.terminal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.7rem;
    color: var(--color-muted);
}
.terminal-body {
    padding: 24px;
    height: 400px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #a9b7c6;
    display: flex;
    flex-direction: column;
}
.terminal-welcome {
    white-space: pre-wrap;
    color: var(--color-muted);
    margin-bottom: 16px;
    font-size: 0.75rem;
}
.terminal-output-line {
    margin-bottom: 10px;
    word-break: break-all;
    white-space: pre-wrap;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.terminal-prompt {
    color: var(--color-cyan);
    white-space: nowrap;
}
.terminal-input-element {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 100%;
}

/* Secure Transmission Portal (Contact Form) */
.motto-banner {
    background: linear-gradient(90deg, rgba(255, 0, 127, 0.05), rgba(122, 0, 255, 0.05));
    border-left: 2px solid var(--color-magenta);
    border-right: 2px solid var(--color-purple);
    padding: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    border-radius: 4px;
    margin-bottom: 32px;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}
.portal-card {
    position: relative;
    padding: 40px;
}
.secure-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}
.cyber-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 12px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    outline: none;
}
.cyber-input:focus {
    border-color: var(--color-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
}
.cyber-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff007f'%3E%3Cpath d='M6 9L2 5h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
textarea.cyber-input {
    resize: vertical;
}

/* Secure form status overlay */
.form-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 4, 0.95);
    backdrop-filter: blur(4px);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}
.status-box {
    text-align: center;
    max-width: 320px;
    width: 100%;
}
.status-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 0, 127, 0.1);
    border-top: 2px solid var(--color-magenta);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    animation: rotate-cw 1s linear infinite;
}
.status-message {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-magenta);
    margin-bottom: 12px;
}
.status-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
}
.status-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-magenta);
    transition: width 0.1s linear;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 30px 0;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.divider {
    color: var(--color-border-hover);
}

/* Mobile Toggle & Menu Styling */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
}
.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(3, 3, 4, 0.95);
    backdrop-filter: blur(20px);
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu-item {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    transition: var(--transition-fast);
}
.mobile-menu-item:hover {
    color: var(--color-cyan);
}
.mobile-btn {
    border: 1px solid var(--color-magenta);
    color: var(--color-magenta);
    padding: 10px 24px;
    border-radius: 4px;
}

/* Animations & Keyframes */
@keyframes rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotate-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
@keyframes hologram-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 5px 15px rgba(0, 243, 255, 0.2)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 15px 25px rgba(0, 243, 255, 0.4)); }
}
@keyframes scroll-line {
    0% { top: -20px; opacity: 0; }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { top: 30px; opacity: 0; }
}
@keyframes flicker {
    0% { opacity: 0.75; }
    4% { opacity: 0.8; }
    8% { opacity: 0.35; }
    9% { opacity: 0.85; }
    22% { opacity: 0.9; }
    23% { opacity: 0.2; }
    24% { opacity: 0.85; }
    60% { opacity: 0.95; }
    61% { opacity: 0.4; }
    62% { opacity: 0.9; }
    100% { opacity: 0.8; }
}

/* Glitch effects for Commando avatars */
.glitch-bar-1 {
    animation: glitch-bar-move-1 2s step-end infinite;
}
.glitch-bar-2 {
    animation: glitch-bar-move-2 3s step-end infinite;
}

@keyframes glitch-bar-move-1 {
    0%, 100% { transform: translateX(0); opacity: 0.2; }
    10% { transform: translateX(-5px); opacity: 0.8; }
    20% { transform: translateX(8px) scaleY(2); }
    30% { transform: translateX(0); opacity: 0.1; }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-8px) scaleY(0.5); }
    80% { transform: translateX(0); }
}

@keyframes glitch-bar-move-2 {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(6px); }
    25% { transform: translateX(-10px) scaleY(1.5); }
    40% { transform: translateX(0); }
    75% { transform: translateX(-4px); }
    90% { transform: translateX(12px); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-graphic {
        order: -1;
        margin-bottom: 20px;
    }
    .nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .system-status {
        display: none;
    }
    .mobile-menu.active {
        display: flex;
    }
    /* Hamburger to X Transformation */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .portal-card {
        padding: 24px;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ====================================================
   Cybernetic Chat Agent Interface Styling
   ==================================================== */

.chat-trigger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 95;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    background: var(--color-void);
    border: 1px solid var(--color-purple);
    color: var(--color-text);
    box-shadow: 0 0 15px rgba(122, 0, 255, 0.2);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-trigger-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    color: #ffffff;
}
.chat-trigger-btn .logo-symbol {
    font-size: 1.1rem;
    line-height: 1;
}

.chat-widget {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 360px;
    height: 480px;
    max-height: 75vh;
    z-index: 96;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}
.chat-agent-title {
    margin-right: auto;
    margin-left: 8px;
    font-weight: 700;
}
.chat-minimize-btn {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0 4px;
}
.chat-minimize-btn:hover {
    color: var(--color-magenta);
}

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(4, 4, 6, 0.95);
}
.chat-body::-webkit-scrollbar {
    width: 4px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: var(--color-dark-muted);
    border-radius: 2px;
}
.chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-msg.agent {
    background: rgba(122, 0, 255, 0.06);
    border: 1px solid rgba(122, 0, 255, 0.15);
    border-left: 2px solid var(--color-purple);
    color: var(--color-text);
    align-self: flex-start;
}
.chat-msg.user {
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-right: 2px solid var(--color-cyan);
    color: #ffffff;
    align-self: flex-end;
}
.chat-msg.system {
    align-self: center;
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 4px 0;
    max-width: 100%;
}

.chat-input-area {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--color-border);
    padding: 8px;
    align-items: center;
}
.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 8px;
    font-family: var(--font-mono);
}
.chat-send-btn {
    background: transparent;
    border: none;
    color: var(--color-cyan);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    transition: var(--transition-fast);
}
.chat-send-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--color-cyan);
}

.chat-settings-toggle {
    position: absolute;
    top: 12px;
    right: 36px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-muted);
    transition: var(--transition-fast);
    z-index: 10;
}
.chat-settings-toggle:hover {
    color: var(--color-cyan);
    transform: rotate(45deg);
}

.chat-settings-panel {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.98);
    border-top: 1px solid var(--color-border);
    padding: 20px;
    z-index: 15;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-normal);
}
.settings-header {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-cyan);
    font-weight: 700;
}
.settings-help {
    font-size: 0.6rem;
    color: var(--color-muted);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 80px;
    }
}
