/* MIDNIGHT ORBIT - DESIGN SYSTEM */
:root {
    --color-void: #090B12;
    --color-deep-space: #101522;
    --color-nebula: #171D2B;
    --color-graphite: #202638;
    
    --color-solar-amber: #D99A3D;
    --color-orbit-violet: #7057B8;
    --color-stellar-cyan: #4FA9B8;
    
    --text-primary: #F2F0EA;
    --text-secondary: #A8ADBA;
    --text-muted: #707687;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1440px;
}

body {
    background-color: var(--color-void);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--color-solar-amber); }
.text-violet { color: var(--color-orbit-violet); }
.text-cyan { color: var(--color-stellar-cyan); }

/* Background & Surface Utilities */
.bg-void { background-color: var(--color-void); }
.bg-deep-space { background-color: var(--color-deep-space); }
.bg-nebula { background-color: var(--color-nebula); }
.border-graphite { border-color: var(--color-graphite); }

/* Layout Spacing (Generous) */
.section-padding {
    padding: 60px 18px;
}
@media (min-width: 768px) {
    .section-padding { padding: 90px 28px; }
}
@media (min-width: 1024px) {
    .section-padding { padding: 120px 40px; }
}

.container-custom {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Game Terminal Sizing */
.game-terminal-container {
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .game-terminal-container { width: 96%; }
}
@media (min-width: 1024px) {
    .game-terminal-container { 
        width: 95%; 
        max-width: 1350px;
    }
}

/* Custom UI Elements */
.btn-primary {
    background: transparent;
    border: 1px solid var(--color-solar-amber);
    color: var(--color-solar-amber);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}
.btn-primary:hover {
    background: var(--color-solar-amber);
    color: var(--color-void);
    box-shadow: 0 0 15px rgba(217, 154, 61, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-orbit-violet);
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}
.btn-secondary:hover {
    background: rgba(112, 87, 184, 0.1);
    box-shadow: 0 0 15px rgba(112, 87, 184, 0.2);
}

.card-nebula {
    background: var(--color-nebula);
    border: 1px solid var(--color-graphite);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card-nebula:hover {
    border-color: var(--color-orbit-violet);
    transform: translateY(-2px);
}

/* Top Strip */
.compliance-strip {
    background-color: #050608;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 6px 18px;
    border-bottom: 1px solid var(--color-graphite);
    z-index: 50;
    position: relative;
}

/* Header */
.orbit-header {
    background-color: rgba(16, 21, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-graphite);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Orbital Visuals (CSS Art) */
.orbital-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.orbit-ring-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(112, 87, 184, 0.3);
    border-radius: 50%;
    transform: rotateX(70deg) rotateY(10deg);
    animation: spin 30s linear infinite;
}
.orbit-ring-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(79, 169, 184, 0.2);
    border-radius: 50%;
    transform: rotateX(65deg) rotateY(-10deg);
    animation: spin-reverse 45s linear infinite;
}
.planet-silhouette {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-deep-space) 0%, #000 100%);
    border-radius: 50%;
    box-shadow: inset -10px -10px 30px rgba(0,0,0,0.8), 
                0 0 40px rgba(217, 154, 61, 0.15);
    position: absolute;
    z-index: 2;
}
.atmosphere-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 40%, rgba(112, 87, 184, 0.15) 0%, transparent 60%);
    z-index: 1;
}

/* Animations */
@keyframes spin { 100% { transform: rotateX(70deg) rotateY(10deg) rotateZ(360deg); } }
@keyframes spin-reverse { 100% { transform: rotateX(65deg) rotateY(-10deg) rotateZ(-360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-solar-amber);
}

/* Terminal Game Wrapper */
.terminal-wrapper {
    background: var(--color-deep-space);
    border: 1px solid var(--color-graphite);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.terminal-header {
    background: var(--color-nebula);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-graphite);
    font-family: monospace;
    font-size: 0.85rem;
}
.terminal-body {
    position: relative;
    width: 100%;
    background: #000;
    flex-grow: 1;
    min-height: 400px; /* Mobile */
}
@media (min-width: 768px) {
    .terminal-body { min-height: 600px; }
}
@media (min-width: 1024px) {
    .terminal-body { min-height: 700px; }
}

/* Fullscreen mode fixes */
.terminal-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}
.terminal-wrapper:fullscreen .terminal-body {
    height: calc(100vh - 45px);
    min-height: auto;
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Cookie Panel */
#cookie-panel {
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-panel.show {
    transform: translateY(0);
}

/* Legal Modal Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-graphite);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-orbit-violet);
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.legal-content h3:first-child {
    margin-top: 0;
}
.legal-content p, .legal-content ul {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.legal-content strong {
    color: var(--text-primary);
    font-weight: 500;
}