/* Orbitnexal.xyz - Orbital Tech Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nexus-dark: #0f1419;
    --orbital-blue: #1da1f2;
    --tech-cyan: #00e5ff;
    --matrix-green: #00ff88;
    --panel-gray: #1c2026;
    --text-primary: #ffffff;
    --text-muted: #8b98a5;
    --accent-orange: #ff7b00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--nexus-dark);
    color: var(--text-primary);
    line-height: 1.65;
    font-weight: 400;
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(29,161,242,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,161,242,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Top Bar */
.top-bar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15,20,25,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(29,161,242,0.2);
}

.top-bar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexus-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nexus-icon {
    width: 42px;
    height: 42px;
}

.nexus-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nexus-title span {
    color: var(--orbital-blue);
}

/* Main Nav */
.main-menu {
    display: flex;
    gap: 0.5rem;
}

.main-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-menu a:hover {
    color: var(--text-primary);
    background: rgba(29,161,242,0.1);
}

/* Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--orbital-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15,20,25,0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.35s ease;
    z-index: 998;
}

.slide-menu.open {
    right: 0;
}

.slide-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.slide-menu a:hover {
    color: var(--orbital-blue);
}

/* Landing Section */
.landing {
    min-height: 100vh;
    padding: 120px 2rem 60px;
    display: flex;
    align-items: center;
}

.landing-grid {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.landing-info h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.landing-info h1 .accent {
    color: var(--tech-cyan);
}

.landing-info p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

/* Status Cards */
.status-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-card {
    background: var(--panel-gray);
    border: 1px solid rgba(29,161,242,0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.2s ease;
}

.status-card:hover {
    border-color: rgba(29,161,242,0.4);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.status-indicator.green {
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
}

.status-indicator.blue {
    background: var(--orbital-blue);
    box-shadow: 0 0 10px var(--orbital-blue);
}

.status-indicator.orange {
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange);
}

.status-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Game Module */
.game-module {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(29,161,242,0.03) 50%, transparent 100%);
}

.module-container {
    max-width: 1200px;
    margin: 0 auto;
}

.module-header {
    text-align: center;
    margin-bottom: 2rem;
}

.module-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tech-cyan);
    letter-spacing: -0.5px;
}

.game-window {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    background: var(--panel-gray);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(29,161,242,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.game-window iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Content Blocks */
.content-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--orbital-blue);
    letter-spacing: -0.5px;
}

.content-block p {
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,0.85);
    font-size: 1.02rem;
}

.content-block ul {
    list-style: none;
    margin: 1.5rem 0;
}

.content-block ul li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(29,161,242,0.1);
}

.content-block ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--tech-cyan);
    font-weight: 700;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-item {
    background: var(--panel-gray);
    border: 1px solid rgba(29,161,242,0.1);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: rgba(29,161,242,0.3);
    transform: translateY(-3px);
}

.feature-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--matrix-green);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    padding-top: 120px;
    padding-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(29,161,242,0.15);
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--tech-cyan);
    letter-spacing: -0.5px;
}

/* Bottom Bar */
.bottom-bar {
    background: var(--panel-gray);
    border-top: 1px solid rgba(29,161,242,0.15);
    padding: 2.5rem 2rem;
}

.bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.bottom-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.resource-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.resource-links a:hover {
    color: var(--orbital-blue);
}

.bottom-copy {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(29,161,242,0.1);
    font-size: 0.8rem;
    color: rgba(139,152,165,0.7);
}

/* Age Check */
.age-check {
    position: fixed;
    inset: 0;
    background: rgba(15,20,25,0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-check.cleared {
    display: none;
}

.age-panel {
    background: var(--panel-gray);
    border: 1px solid rgba(29,161,242,0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 440px;
    margin: 1rem;
    text-align: center;
}

.age-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tech-cyan);
}

.age-panel p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-action {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-action.confirm {
    background: var(--orbital-blue);
    color: var(--nexus-dark);
}

.age-action.confirm:hover {
    background: var(--tech-cyan);
}

.age-action.exit {
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.age-action.exit:hover {
    background: var(--accent-orange);
    color: var(--nexus-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .main-menu {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .landing {
        padding-top: 100px;
    }
    
    .landing-info h1 {
        font-size: 2.2rem;
    }
    
    .status-cards {
        order: 2;
    }
    
    .age-actions {
        flex-direction: column;
    }
    
    .resource-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-block {
        padding: 2rem 1rem;
    }
    
    .top-bar-content {
        padding: 0.8rem 1rem;
    }
}
