@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmos-black: #050510;
    --nebula-blue: #1e3a5f;
    --stellar-cyan: #0ea5e9;
    --aurora-green: #34d399;
    --star-white: #f0f9ff;
    --meteor-gray: #64748b;
    --panel-dark: rgba(30, 58, 95, 0.4);
    --glow-cyan: rgba(14, 165, 233, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cosmos-black);
    min-height: 100vh;
    color: var(--star-white);
    line-height: 1.75;
    background-image: 
        radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(52, 211, 153, 0.08) 0%, transparent 50%);
}

.masthead {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glow-cyan);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.masthead-inner {
    max-width: 1750px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.site-brand {
    font-family: 'Audiowide', cursive;
    font-size: 1.6rem;
    color: var(--stellar-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 15px var(--glow-cyan);
}

.site-brand img {
    width: 40px;
    height: 40px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0.75rem;
}

.site-nav a {
    color: var(--meteor-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s;
}

.site-nav a:hover {
    color: var(--star-white);
    background: var(--panel-dark);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--stellar-cyan);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.expanded span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.expanded span:nth-child(2) { opacity: 0; }

.nav-toggle.expanded span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.page-body {
    padding-top: 80px;
}

.stellar-hero {
    padding: 5rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--panel-dark) 0%, transparent 70%);
}

.stellar-hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--stellar-cyan), var(--aurora-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stellar-hero p {
    font-size: 1.1rem;
    max-width: 780px;
    margin: 0 auto;
    color: var(--meteor-gray);
    font-weight: 300;
}

.beacon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.beacon-card {
    background: var(--panel-dark);
    border: 1px solid var(--glow-cyan);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.beacon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.beacon-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.beacon-card h3 {
    font-family: 'Audiowide', cursive;
    font-size: 0.95rem;
    color: var(--aurora-green);
    margin-bottom: 0.75rem;
}

.beacon-card p {
    color: var(--meteor-gray);
    font-size: 0.9rem;
}

.mission-zone {
    padding: 3rem 2rem;
    max-width: 1450px;
    margin: 0 auto;
}

.mission-zone h2 {
    font-family: 'Audiowide', cursive;
    font-size: 1.6rem;
    text-align: center;
    color: var(--stellar-cyan);
    margin-bottom: 2rem;
}

.mission-frame {
    background: var(--panel-dark);
    border: 1px solid var(--glow-cyan);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.15);
}

.mission-frame iframe {
    width: 100%;
    height: 590px;
    border: none;
    border-radius: 14px;
}

.info-area {
    padding: 3rem 2rem;
    max-width: 1050px;
    margin: 0 auto;
}

.info-area h2 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--aurora-green);
    margin-bottom: 1rem;
}

.info-area p {
    color: var(--meteor-gray);
    margin-bottom: 1.1rem;
}

.capsule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.capsule {
    background: var(--panel-dark);
    border-radius: 12px;
    padding: 1.75rem;
    border-left: 3px solid var(--stellar-cyan);
}

.capsule h3 {
    font-family: 'Audiowide', cursive;
    font-size: 0.9rem;
    color: var(--stellar-cyan);
    margin-bottom: 0.75rem;
}

.capsule p {
    color: var(--meteor-gray);
    font-size: 0.9rem;
}

.document-page {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.document-page h1 {
    font-family: 'Audiowide', cursive;
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--stellar-cyan), var(--aurora-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.document-page h2 {
    font-family: 'Audiowide', cursive;
    font-size: 1rem;
    color: var(--aurora-green);
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.document-page p, .document-page li {
    color: var(--meteor-gray);
    margin-bottom: 0.9rem;
}

.document-page ul {
    padding-left: 1.5rem;
}

.ground-control {
    background: rgba(5, 5, 16, 0.95);
    border-top: 1px solid var(--glow-cyan);
    padding: 2.5rem 2rem;
    margin-top: 4rem;
}

.control-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.support-links {
    margin-bottom: 1.5rem;
}

.support-links h4 {
    font-family: 'Audiowide', cursive;
    font-size: 0.85rem;
    color: var(--stellar-cyan);
    margin-bottom: 0.75rem;
}

.support-links a {
    color: var(--meteor-gray);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.support-links a:hover {
    color: var(--aurora-green);
}

.control-text {
    color: var(--meteor-gray);
    font-size: 0.85rem;
}

.gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.gate-overlay.cleared {
    display: none;
}

.gate-panel {
    background: var(--panel-dark);
    border: 1px solid var(--stellar-cyan);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 430px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 50px var(--glow-cyan);
}

.gate-panel h2 {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    color: var(--stellar-cyan);
    margin-bottom: 1rem;
}

.gate-panel p {
    color: var(--meteor-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-btn.enter {
    background: linear-gradient(135deg, var(--stellar-cyan), var(--aurora-green));
    color: var(--cosmos-black);
}

.gate-btn.enter:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px var(--glow-cyan);
}

.gate-btn.leave {
    background: transparent;
    border: 1px solid var(--meteor-gray);
    color: var(--meteor-gray);
}

.gate-btn.leave:hover {
    border-color: var(--aurora-green);
    color: var(--aurora-green);
}

@media (max-width: 900px) {
    .site-nav {
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        padding: 1.5rem;
        border-bottom: 1px solid var(--glow-cyan);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav a {
        display: block;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .mission-frame iframe {
        height: 450px;
    }

    .support-links a {
        display: block;
        margin: 0.4rem 0;
    }
}

@media (max-width: 600px) {
    .site-brand {
        font-size: 1.3rem;
    }

    .site-brand img {
        width: 32px;
        height: 32px;
    }

    .stellar-hero {
        padding: 3rem 1.5rem;
    }

    .mission-frame iframe {
        height: 350px;
    }

    .document-page {
        padding: 5rem 1.5rem 3rem;
    }

    .document-page h1 {
        font-size: 1.7rem;
    }

    .gate-panel {
        padding: 2rem 1.5rem;
    }

    .gate-buttons {
        flex-direction: column;
    }
}
