@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Poppins:wght@200;300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --stellar-blue: #4a90d9;
    --deep-space: #0b1628;
    --nebula: #1e3a5f;
    --starlight: #e8f4ff;
    --comet: #7ec8e3;
    --nova: #ffd93d;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--deep-space);
    color: var(--starlight);
    line-height: 1.75;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

a {
    color: var(--comet);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--nova);
}

/* Navigation */
.stellar-nav {
    background: linear-gradient(180deg, var(--nebula) 0%, transparent 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.star-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
}

.brand-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--stellar-blue);
}

/* Mobile Menu */
.burger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--comet);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.burger.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.star-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.star-menu a {
    color: var(--starlight);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.star-menu a:hover {
    color: var(--comet);
}

/* Main */
.page-main {
    padding-top: 85px;
}

/* Constellation Hero */
.constellation-hero {
    padding: 5rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(74, 144, 217, 0.2) 0%, transparent 60%);
}

.constellation-hero h1 {
    font-size: 3rem;
    color: var(--stellar-blue);
    margin-bottom: 1.5rem;
}

.constellation-hero p {
    font-size: 1.1rem;
    max-width: 780px;
    margin: 0 auto;
}

/* Orbit Cards */
.orbit-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.orbit-card {
    background: linear-gradient(135deg, var(--nebula) 0%, var(--deep-space) 100%);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.orbit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(74, 144, 217, 0.2);
}

.orbit-card .glyph {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.orbit-card h3 {
    color: var(--comet);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Galaxy Game */
.galaxy-game {
    padding: 4rem 2rem;
    background: var(--nebula);
}

.galaxy-game h2 {
    text-align: center;
    color: var(--stellar-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.game-viewport {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--stellar-blue);
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.3);
}

.game-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Nebula Grid */
.nebula-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    max-width: 1600px;
    margin: 2rem auto;
    background: rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.nebula-cell {
    background: var(--deep-space);
    padding: 3rem;
}

.nebula-cell h3 {
    color: var(--comet);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Document Box */
.document-box {
    max-width: 950px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.document-inner {
    background: var(--nebula);
    padding: 3.5rem;
    border-radius: 16px;
    border-top: 4px solid var(--stellar-blue);
}

.document-inner h1 {
    color: var(--stellar-blue);
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.document-inner h2 {
    color: var(--comet);
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

.document-inner p {
    margin-bottom: 1.2rem;
}

.document-inner ul {
    margin: 1rem 0 1.5rem 2rem;
}

.document-inner li {
    margin-bottom: 0.5rem;
}

/* Footer */
.stellar-footer {
    background: var(--nebula);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid var(--stellar-blue);
}

.footer-title {
    color: var(--comet);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.support-orbits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.support-orbits a {
    color: var(--starlight);
    padding: 0.7rem 1.8rem;
    border: 1px solid var(--stellar-blue);
    border-radius: 30px;
    font-size: 0.9rem;
}

.support-orbits a:hover {
    background: var(--stellar-blue);
    color: var(--deep-space);
}

.footer-note {
    color: rgba(232, 244, 255, 0.5);
    font-size: 0.85rem;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 22, 40, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-panel {
    background: var(--nebula);
    border: 2px solid var(--stellar-blue);
    padding: 3.5rem;
    text-align: center;
    max-width: 480px;
    margin: 1rem;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(74, 144, 217, 0.3);
}

.age-panel h2 {
    color: var(--stellar-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.age-panel p {
    margin-bottom: 2rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-actions button {
    padding: 1rem 2.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-proceed {
    background: var(--stellar-blue);
    color: var(--deep-space);
}

.btn-proceed:hover {
    background: var(--comet);
}

.btn-exit {
    background: transparent;
    color: var(--starlight);
    border: 1px solid rgba(232, 244, 255, 0.3);
}

.btn-exit:hover {
    border-color: var(--starlight);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .burger {
        display: block;
    }

    .star-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--nebula);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s;
    }

    .star-menu.open {
        right: 0;
    }

    .star-menu li {
        border-bottom: 1px solid rgba(74, 144, 217, 0.2);
    }

    .star-menu a {
        display: block;
        padding: 1.2rem 0;
    }

    .nebula-grid {
        grid-template-columns: 1fr;
    }

    .constellation-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .brand-label {
        font-size: 1.5rem;
    }

    .constellation-hero {
        padding: 3rem 1rem;
    }

    .document-inner {
        padding: 2rem;
    }

    .age-panel {
        padding: 2.5rem;
    }

    .age-actions {
        flex-direction: column;
    }
}
