

:root {
    --space-bg:       #030614;
    --brand:          #f76e4f;
    --brand-dark:     #e05a3c;
    --brand-glow:     rgba(247, 110, 79, 0.38);

    --star-near:      rgba(255, 255, 255, 0.95);
    --star-mid:       rgba(210, 225, 255, 0.60);
    --star-far:       rgba(180, 200, 255, 0.28);

    --planet-giant-a: #5a7cff;
    --planet-giant-b: #182890;
    --planet-giant-c: #040b32;
    --planet-rust-a:  #bfed8e;
    --planet-rust-b:  #1e9535;
    --planet-rust-c:  #9ee344;
    --planet-icy-a:   #62b4cc;
    --planet-icy-b:   #1a4255;
    --planet-icy-c:   #050f18;
    --ring:           rgba(195, 162, 72, 0.40);
    --ring-bright:    rgba(215, 182, 88, 0.55);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    background: var(--space-bg);
}

.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    
    background:
        radial-gradient(ellipse at 10% 92%, rgba(18, 28, 110, 0.85) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 5%,  rgba(55, 12, 100, 0.35) 0%, transparent 40%),
        var(--space-bg);
}

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

.stars--distant {
    z-index: 1;
    background-image:
        radial-gradient(circle, var(--star-far) 0.5px, transparent 0.5px),
        radial-gradient(circle, var(--star-far) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(180,200,255,0.18) 0.5px, transparent 0.5px);
    background-size: 29px 29px, 43px 43px, 17px 17px;
    background-position: 0 0, 13px 8px, 6px 15px;
}

.stars--mid {
    z-index: 2;
    background-image:
        radial-gradient(circle, var(--star-mid) 1px, transparent 1px),
        radial-gradient(circle, var(--star-mid) 0.8px, transparent 0.8px);
    background-size: 67px 67px, 53px 53px;
    background-position: 22px 18px, 38px 50px;
    animation: twinkle-mid 6s ease-in-out infinite alternate;
}

.stars--near {
    z-index: 4;
    background-image:
        radial-gradient(circle, var(--star-near) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(220,235,255,0.80) 1px, transparent 1px);
    background-size: 157px 157px, 113px 113px;
    background-position: 62px 48px, 18px 88px;
    animation: twinkle-near 3.8s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle-mid {
    from { opacity: 0.75; }
    to   { opacity: 1; }
}

@keyframes twinkle-near {
    0%   { opacity: 0.65; }
    50%  { opacity: 1; }
    100% { opacity: 0.80; }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.nebula--violet {
    width: 720px;
    height: 360px;
    background: radial-gradient(ellipse, rgba(75, 35, 190, 0.13), transparent 70%);
    top: -8%;
    right: -2%;
    filter: blur(65px);
}

.nebula--coral {
    width: 550px;
    height: 550px;
    background: radial-gradient(ellipse, rgba(247, 110, 79, 0.06), transparent 70%);
    bottom: 8%;
    left: 18%;
    filter: blur(75px);
}

.nebula--teal {
    width: 420px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(18, 145, 170, 0.09), transparent 70%);
    top: 38%;
    left: -4%;
    filter: blur(55px);
}

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

.planet--far {
    filter: blur(1.5px);
    opacity: 0.42;
    z-index: 4;
}

.planet--icy {
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 38% 32%,
        var(--planet-icy-a),
        var(--planet-icy-b) 52%,
        var(--planet-icy-c) 100%
    );
    box-shadow:
        inset -8px -7px 18px rgba(0,0,0,0.55),
        0 0 18px rgba(55, 160, 200, 0.18);
    top: 19%;
    left: 14%;
    animation: float-far 24s ease-in-out infinite;
}

.planet--tiny {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 35%,
        #aaaacc,
        #3d3d62 60%,
        #0f0f22 100%
    );
    box-shadow: inset -3px -3px 8px rgba(0,0,0,0.65);
    top: 36%;
    right: 17%;
    animation: float-far 30s ease-in-out infinite reverse;
}

.planet--mid {
    filter: blur(0.4px);
    opacity: 0.70;
    z-index: 5;
    animation: float-mid 15s ease-in-out infinite;
}

.planet--rust {
    width: 88px;
    height: 88px;
    background: radial-gradient(circle at 36% 30%,
        var(--planet-rust-a),
        var(--planet-rust-b) 55%,
        var(--planet-rust-c) 100%
    );
    box-shadow:
        inset -14px -12px 28px rgba(0,0,0,0.58),
        inset  6px  5px 14px rgba(220, 95, 50, 0.07),
        0 0 28px rgba(170, 210, 38, 0.18);
    top: 10%;
    right: 11%;
}

.planet__surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        158deg,
        transparent 38%,
        rgba(166, 222, 52, 0.2) 52%,
        transparent 63%
    );
}

.planet--near {
    opacity: 1;
    filter: none;
    z-index: 7;
}

.planet--giant {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 36% 30%,
        var(--planet-giant-a),
        #2840d8 30%,
        var(--planet-giant-b) 62%,
        var(--planet-giant-c) 100%
    );
    box-shadow:
        inset -42px -34px 75px rgba(0, 0, 0, 0.68),
        inset  16px  13px 38px rgba(100, 148, 255, 0.11),
        0 0 90px  rgba(45, 78, 230, 0.38),
        0 0 180px rgba(45, 78, 230, 0.12);
    bottom: -68px;
    left:   -55px;
    animation: float-near 9s ease-in-out infinite;
}

.planet__band {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background:
        linear-gradient(
            178deg,
            transparent 33%,
            rgba(90, 130, 255, 0.16) 43%,
            rgba(110, 150, 255, 0.09) 51%,
            transparent 60%
        ),
        linear-gradient(
            175deg,
            transparent 58%,
            rgba(60, 100, 200, 0.10) 65%,
            transparent 72%
        );
}

.planet__atmo {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    box-shadow: 0 0 35px 10px rgba(80, 125, 255, 0.20);
    animation: pulse-atmo 5s ease-in-out infinite alternate;
}

@keyframes pulse-atmo {
    from { box-shadow: 0 0 35px 10px rgba(80, 125, 255, 0.20); }
    to   { box-shadow: 0 0 55px 16px rgba(80, 125, 255, 0.32); }
}

.planet-ring {
    position: absolute;
    width: 430px;
    height: 58px;
    border-radius: 50%;
    border: 8px solid var(--ring);
    left:   -130px;
    bottom:  43px;
    pointer-events: none;
}

.ring--back {
    z-index: 5;
    box-shadow: 0 0 18px rgba(195, 162, 72, 0.10);
}

.ring--front {
    z-index: 8;
    border-color: var(--ring-bright);
    
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    box-shadow: 0 -4px 18px rgba(215, 182, 88, 0.18);
}

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

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

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

.comet-track {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 6;
}

.ct--1 { top: 22%; transform: rotate(12deg); }
.ct--2 { top: 48%; transform: rotate(18deg); }
.ct--3 { top:  9%; transform: rotate( 7deg); }
.ct--4 { top: 68%; transform: rotate(25deg); }
.ct--5 { top: 33%; transform: rotate(-4deg); }

.comet {
    position: relative;
    border-radius: 50%;
    background: #fff;
    animation: comet-fly linear infinite;
}

.comet::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(to left, rgba(255,255,255,0.75), transparent);
    border-radius: 2px;
    filter: blur(0.5px);
}

.c--large  { width: 5px; height: 5px; box-shadow: 0 0 5px 2px #fff, 0 0 12px 4px rgba(255,255,255,0.45); }
.c--large::before  { width: 260px; }

.c--medium { width: 3px; height: 3px; box-shadow: 0 0 4px 2px #fff, 0 0 8px 3px rgba(255,255,255,0.35); }
.c--medium::before { width: 160px; }

.c--small  { width: 2px; height: 2px; box-shadow: 0 0 3px 1px #fff; }
.c--small::before  { width: 100px; }

.c--tiny   { width: 1.5px; height: 1.5px; box-shadow: 0 0 2px 1px rgba(255,255,255,0.65); opacity: 0.65; }
.c--tiny::before   { width: 60px; }

.ct--1 .comet { animation-duration: 10s; animation-delay:   0s; }
.ct--2 .comet { animation-duration: 15s; animation-delay:  -5s; }
.ct--3 .comet { animation-duration:  8s; animation-delay:  -3s; }
.ct--4 .comet { animation-duration: 21s; animation-delay: -12s; }
.ct--5 .comet { animation-duration: 17s; animation-delay:  -8s; }

@keyframes comet-fly {
    0%   { transform: translateX(-550px); opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 550px)); opacity: 0; }
}

.space-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    
    margin-top: -30px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.brand__logo {
    width: 250px;
    height: 150px;
    filter:
        drop-shadow(0 0 22px var(--brand-glow))
        drop-shadow(0 0 50px rgba(247, 110, 79, 0.20));
    animation: logo-pulse 4.5s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
    from {
        filter:
            drop-shadow(0 0 18px var(--brand-glow))
            drop-shadow(0 0 40px rgba(247, 110, 79, 0.14));
    }
    to {
        filter:
            drop-shadow(0 0 32px var(--brand-glow))
            drop-shadow(0 0 70px rgba(247, 110, 79, 0.30));
    }
}

.brand__name {
    font-size: 68px;
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1;
    
    background: linear-gradient(135deg, #ffffff 0%, #c8d8ff 45%, #88aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand__tagline {
    font-size: 17px;
    font-weight: 300;
    color: rgba(200, 218, 255, 0.72);
    letter-spacing: 0.4px;
    margin-bottom: 44px;
}

.brand__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 34px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    border: none;
    cursor: pointer;
}

.btn:hover { transform: translateY(-3px); }

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 22px var(--brand-glow), 0 2px 8px rgba(0,0,0,0.30);
}

.btn--primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 35px var(--brand-glow), 0 4px 14px rgba(0,0,0,0.40);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 4px 22px rgba(255,255,255,0.07);
}

.back-link {
    position: absolute;
    top: 26px;
    left: 30px;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    z-index: 11;
    transition: color 0.22s ease;
}

.back-link:hover { color: rgba(255, 255, 255, 0.88); }

@media (max-width: 680px) {
    .brand__name {
        font-size: 44px;
        letter-spacing: -1.5px;
    }

    .brand__logo {
        width: 62px;
        height: 62px;
    }

    .brand__tagline {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .brand__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    
    .planet--giant {
        width: 190px;
        height: 190px;
        bottom: -48px;
        left: -45px;
    }

    
    .planet-ring {
        width: 300px;
        height: 42px;
        left:   -100px;
        bottom:  26px;
    }

    
    .nebula--violet { width: 380px; height: 200px; }
    .nebula--coral  { width: 320px; height: 320px; }
    .nebula--teal   { width: 260px; height: 200px; }

    
    .planet--rust { width: 64px; height: 64px; }
    .planet--icy  { width: 38px; height: 38px; }
}
