:root {
    --nx-bg: #070b14;
    --nx-bg-alt: #0c1220;
    --nx-surface: rgba(255, 255, 255, 0.04);
    --nx-primary: #009ef7;
    --nx-primary-rgb: 0, 158, 247;
    --nx-rocket: #cc1848;
    --nx-rocket-rgb: 204, 24, 72;
    --nx-mint: #78b4a8;
    --nx-launch: #fcc060;
    --nx-text: #f5f8fc;
    --nx-muted: #9aa8bc;
    --nx-radius: 1.25rem;
    --nx-font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--nx-font);
    background: var(--nx-bg);
    color: var(--nx-text);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--nx-primary);
    text-decoration: none;
}

a:hover {
    color: #3cb6ff;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--nx-primary);
    color: #041018;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.skip-link:focus {
    top: 1rem;
    color: #041018;
}

.space-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.nebula--cyan {
    width: min(55vw, 640px);
    height: min(55vw, 640px);
    right: -12%;
    top: -8%;
    background: rgba(var(--nx-primary-rgb), 0.45);
}

.nebula--magenta {
    width: min(50vw, 560px);
    height: min(50vw, 560px);
    left: -10%;
    bottom: 10%;
    background: rgba(var(--nx-rocket-rgb), 0.32);
}

.stars {
    position: absolute;
    inset: -20% 0;
    will-change: transform;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.star--cyan {
    background: var(--nx-primary);
    box-shadow: 0 0 8px rgba(var(--nx-primary-rgb), 0.9);
}

.star--gold {
    background: var(--nx-launch);
    box-shadow: 0 0 8px rgba(252, 192, 96, 0.8);
}

nav,
header,
main,
footer {
    position: relative;
    z-index: 1;
}

.nx-nav {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: transparent;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.nx-nav.is-scrolled {
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.nx-logo {
    height: 40px;
    width: auto;
}

.nx-logo--footer {
    height: 32px;
}

.nx-nav .nav-link {
    color: rgba(245, 248, 252, 0.82);
    font-weight: 500;
    font-size: 0.92rem;
}

.nx-nav .nav-link:hover,
.nx-nav .nav-link:focus {
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--nx-primary-rgb), 0.35);
}

.btn-launch {
    --bs-btn-color: #1a1208;
    --bs-btn-bg: var(--nx-launch);
    --bs-btn-border-color: var(--nx-launch);
    --bs-btn-hover-color: #1a1208;
    --bs-btn-hover-bg: #ffd27a;
    --bs-btn-hover-border-color: #ffd27a;
    --bs-btn-active-color: #1a1208;
    --bs-btn-active-bg: #e0ab50;
    --bs-btn-active-border-color: #e0ab50;
    font-weight: 700;
    border-radius: 999px;
}

.btn-orbit {
    --bs-btn-color: var(--nx-primary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--nx-primary);
    --bs-btn-hover-color: #041018;
    --bs-btn-hover-bg: var(--nx-primary);
    --bs-btn-hover-border-color: var(--nx-primary);
    --bs-btn-active-color: #041018;
    --bs-btn-active-bg: #008ee0;
    --bs-btn-active-border-color: #008ee0;
    font-weight: 600;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 100vh;
}

.hero-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.hero-lead {
    max-width: 36rem;
    color: var(--nx-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-parallax {
    display: inline-block;
    will-change: transform;
}

.hero-astronaut {
    width: min(420px, 88vw);
    height: auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
    animation: float-y 5.5s ease-in-out infinite;
    will-change: transform;
}

.hero-caption {
    color: var(--nx-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.5rem;
    animation: bob 2s ease-in-out infinite;
}

.hero-scroll:hover {
    color: #fff;
}

.nx-kicker {
    color: var(--nx-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.nx-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nx-subtitle {
    max-width: 36rem;
    color: var(--nx-muted);
}

.nx-section {
    padding: 5.5rem 0;
}

.nx-section--alt {
    background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.7), transparent);
}

.nx-card {
    position: relative;
    background: var(--nx-surface);
    border: 1px solid rgba(var(--nx-primary-rgb), 0.16);
    border-radius: var(--nx-radius);
    padding: 1.6rem 1.45rem 1.45rem;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nx-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.nx-card p {
    color: var(--nx-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.nx-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--nx-primary-rgb), 0.55);
    box-shadow: 0 16px 40px rgba(var(--nx-primary-rgb), 0.16);
}

.nx-card--module .nx-icon {
    margin-bottom: 1rem;
}

.nx-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(var(--nx-primary-rgb), 0.12);
    color: var(--nx-primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.nx-icon--launch {
    background: rgba(252, 192, 96, 0.14);
    color: var(--nx-launch);
}

.nx-icon--orbit {
    background: rgba(120, 180, 168, 0.16);
    color: var(--nx-mint);
}

.nx-step {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.28);
}

.mission-track {
    position: relative;
}

.nx-cta-panel {
    background: linear-gradient(135deg, rgba(var(--nx-primary-rgb), 0.12), rgba(var(--nx-rocket-rgb), 0.1));
    border: 1px solid rgba(var(--nx-primary-rgb), 0.22);
    border-radius: 1.6rem;
    padding: 2.4rem 2rem;
}

.nx-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.nx-contact-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: var(--nx-muted);
}

.nx-contact-list i {
    color: var(--nx-primary);
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.nx-contact-list a {
    color: var(--nx-text);
}

.nx-contact-list a:hover {
    color: var(--nx-primary);
}

.nx-sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.nx-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--nx-muted);
    font-size: 0.9rem;
}

.nx-footer-link {
    color: var(--nx-muted);
    font-weight: 600;
}

.nx-footer-link:hover {
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

@media (max-width: 991.98px) {
    .nx-nav {
        background: rgba(7, 11, 20, 0.92);
    }

    .navbar-collapse {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .hero {
        padding-top: 5.5rem;
    }

    .hero-scroll {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-astronaut,
    .hero-scroll,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}
