
:root {
    --space: #100824;
    --space-light: #1d1038;
    --purple: #8755e8;
    --purple-light: #c5a4ff;
    --white: #ffffff;
    --muted: #c1b5d5;
    --border: rgba(255, 255, 255, .14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--space);
    color: var(--white);
    font-family: "DM Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.galaxy {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 40%, #302052 0%, #1b1034 40%, #100824 80%, #080411 100%);
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .38;
    animation: nebulaFloat 15s ease-in-out infinite alternate;
}

.nebula-a {
    width: 520px;
    height: 520px;
    background: #7939d2;
    top: -230px;
    left: -150px;
}

.nebula-b {
    width: 650px;
    height: 650px;
    background: #51239c;
    right: -280px;
    bottom: -300px;
    animation-delay: -5s;
}

.nebula-c {
    width: 380px;
    height: 380px;
    background: #a044bd;
    left: 40%;
    top: 40%;
    opacity: .16;
    animation-delay: -8s;
}

.star-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 7px rgba(255,255,255,.8);
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    left: -180px;
    top: 15%;
    transform: rotate(-35deg);
    background: linear-gradient(90deg, transparent, white, transparent);
    filter: drop-shadow(0 0 7px #c5a4ff);
    animation: shooting 10s linear infinite;
}

.planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.planet-a {
    width: 160px;
    height: 160px;
    top: 24%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, #e3ccff, #8651d1 48%, #24103e 85%);
    box-shadow: 0 0 60px rgba(152, 91, 255, .35);
    opacity: .45;
    animation: float 9s ease-in-out infinite;
}

.planet-b {
    width: 65px;
    height: 65px;
    bottom: 15%;
    left: 7%;
    background: radial-gradient(circle at 30% 30%, #fff, #a75ee7 55%, #35165e);
    box-shadow: 0 0 35px rgba(185, 105, 255, .35);
    opacity: .4;
    animation: float 7s ease-in-out infinite reverse;
}

.navbar {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 23px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand strong {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: .8px;
    font-size: 15px;
}

.brand small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: #9bffbd;
    box-shadow: 0 0 12px #75ffac;
}

.footer {
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 7%;
    display: flex;
    justify-content: space-between;
    color: rgba(210,195,232,.48);
    font-size: 9px;
    letter-spacing: 1px;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: .15; transform: scale(.7); }
    50% { opacity: 1; transform: scale(1.4); }
}

@keyframes shooting {
    0%, 70% { transform: translate(0,0) rotate(-35deg); opacity: 0; }
    73% { opacity: 1; }
    90%, 100% { transform: translate(120vw,75vh) rotate(-35deg); opacity: 0; }
}

@keyframes nebulaFloat {
    from { transform: translate(0,0) scale(1); }
    to { transform: translate(45px,35px) scale(1.15); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-22px); }
}

@keyframes appear {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .navbar { padding: 18px 6%; }
    .nav-status { display: none; }
    .brand img { width: 38px; height: 38px; }
    .brand strong { font-size: 13px; }
    .footer { font-size: 8px; }
    .planet-a { width: 110px; height: 110px; right: -35px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
