@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Outfit:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic: #7c3aed;
    --nebula: #a855f7;
    --star: #fcd34d;
    --void: #030712;
    --deep: #0f0f1a;
    --mist: #e2e8f0;
    --dim: #6b7280;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--void);
    color: var(--mist);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.cosmos-nav {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.cosmos-nav-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
}

.star-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.star-mark {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--cosmic), var(--nebula));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.star-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: var(--mist);
    font-weight: 700;
}

.space-links {
    display: flex;
    gap: 38px;
}

.space-links a {
    color: var(--dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.space-links a:hover {
    color: var(--nebula);
}

.orbit-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.orbit-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--nebula);
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.orbit-menu {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--deep);
    border-bottom: 2px solid var(--cosmic);
    padding: 20px;
}

.orbit-menu.activated {
    display: block;
}

.orbit-menu a {
    display: block;
    color: var(--mist);
    text-decoration: none;
    padding: 15px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.vessel {
    margin-top: 78px;
}

.nebula-hero {
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2) 0%, var(--void) 70%);
    padding: 100px 28px 85px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nebula-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23fff' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='50' r='0.5' fill='%23fff' fill-opacity='0.15'/%3E%3Ccircle cx='80' cy='20' r='0.8' fill='%23fff' fill-opacity='0.12'/%3E%3C/svg%3E");
}

.nebula-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 22px;
    background: linear-gradient(90deg, var(--nebula), var(--star));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.nebula-hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 38px;
    color: var(--dim);
    position: relative;
}

.signal-beacons {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
}

.beacon {
    background: rgba(124, 58, 237, 0.15);
    padding: 15px 28px;
    border-radius: 30px;
    border: 1px solid var(--cosmic);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.beacon-glyph {
    font-size: 1.3rem;
}

.launch-bay {
    padding: 65px 28px;
}

.launch-bay h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 42px;
    color: var(--star);
}

.launch-frame {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--deep);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--cosmic);
    box-shadow: 0 15px 60px rgba(124, 58, 237, 0.25), 0 0 100px rgba(124, 58, 237, 0.1);
}

.launch-frame iframe {
    width: 100%;
    height: 570px;
    border: none;
    display: block;
}

.galaxy-features {
    padding: 80px 28px;
    background: var(--deep);
}

.galaxy-features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--nebula);
}

.constellation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    max-width: 1350px;
    margin: 0 auto;
}

.star-card {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.1), transparent);
    padding: 38px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s;
}

.star-card:hover {
    border-color: var(--cosmic);
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.card-planet {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.star-card h3 {
    color: var(--star);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.star-card p {
    color: var(--dim);
}

.data-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 60px 28px;
}

.data-panel {
    background: var(--deep);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--nebula);
}

.data-panel h3 {
    color: var(--star);
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.data-panel p {
    color: var(--dim);
}

.station-footer {
    background: var(--deep);
    padding: 55px 28px;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
}

.station-footer-inner {
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

.station-nav {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.station-nav a {
    color: var(--dim);
    text-decoration: none;
    font-weight: 500;
}

.station-nav a:hover {
    color: var(--nebula);
}

.transmission-zone {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.transmission-zone p {
    color: var(--dim);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.transmission-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.transmission-links a {
    color: var(--nebula);
    text-decoration: none;
    font-size: 0.9rem;
}

.station-copy {
    margin-top: 28px;
    color: var(--dim);
    font-size: 0.85rem;
}

.airlock {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.airlock.cycled {
    display: none;
}

.airlock-pod {
    background: linear-gradient(145deg, var(--deep), var(--void));
    padding: 52px 42px;
    border-radius: 24px;
    text-align: center;
    max-width: 460px;
    margin: 20px;
    border: 2px solid var(--cosmic);
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.3);
}

.airlock-icon {
    font-size: 4.5rem;
    margin-bottom: 22px;
}

.airlock-pod h2 {
    font-size: 1.9rem;
    margin-bottom: 16px;
    color: var(--nebula);
}

.airlock-pod p {
    color: var(--dim);
    margin-bottom: 28px;
}

.airlock-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cosmic {
    padding: 15px 38px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    border: none;
}

.btn-launch {
    background: linear-gradient(135deg, var(--cosmic), var(--nebula));
    color: white;
}

.btn-launch:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-abort {
    background: transparent;
    border: 2px solid var(--dim);
    color: var(--dim);
}

.btn-abort:hover {
    border-color: var(--mist);
    color: var(--mist);
}

.sector-header {
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, var(--void) 70%);
    padding: 135px 28px 58px;
    text-align: center;
}

.sector-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(90deg, var(--nebula), var(--star));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.log-content {
    padding: 55px 28px;
    max-width: 900px;
    margin: 0 auto;
}

.log-content h2 {
    color: var(--nebula);
    margin: 38px 0 18px;
    font-size: 1.45rem;
}

.log-content p {
    color: var(--dim);
    margin-bottom: 18px;
}

.log-content ul {
    color: var(--dim);
    margin: 18px 0 18px 28px;
}

.log-content li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .space-links {
        display: none;
    }
    
    .orbit-toggle {
        display: block;
    }
    
    .launch-frame iframe {
        height: 385px;
    }
    
    .nebula-hero {
        padding: 70px 20px 55px;
    }
    
    .signal-beacons {
        flex-direction: column;
        align-items: center;
    }
    
    .airlock-controls {
        flex-direction: column;
    }
}
