/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #010208;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================
   PAGE
========================================= */

.solar-page {

    position: relative;

    min-height: 100vh;

    padding:
        65px 20px 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(90,120,255,.16),
            transparent 42%
        ),
        radial-gradient(
            circle at 15% 65%,
            rgba(70,90,220,.07),
            transparent 35%
        ),
        #010208;
}


/* =========================================
   STARS
========================================= */

.stars,
.stars-small {

    position: fixed;

    inset: -25%;

    pointer-events: none;

    z-index: 0;
}

.stars {

    opacity: .4;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.9) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    transition:
        transform 1.5s ease;
}

.stars-small {

    opacity: .18;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    transition:
        transform 2s ease;
}


/* =========================================
   HEADER
========================================= */

.header {

    position: relative;

    z-index: 5;

    max-width: 950px;

    margin: auto;

    text-align: center;
}


.return {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        12px 20px;

    margin-bottom: 40px;

    color:
        rgba(255,255,255,.7);

    border:
        1px solid
        rgba(255,255,255,.22);

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    transition: .35s ease;
}


.return:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


.label {

    margin-bottom: 18px;

    color:
        rgba(170,190,255,.55);

    font-size: 10px;

    letter-spacing: 5px;
}


h1 {

    margin: 0;

    font-size:
        clamp(43px,8vw,85px);

    line-height: .9;

    letter-spacing: 6px;
}


.subtitle {

    max-width: 760px;

    margin:
        28px auto 0;

    color:
        rgba(255,255,255,.52);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   QUICK NAVIGATION
========================================= */

.quick-nav {

    position: relative;

    z-index: 5;

    width:
        min(1050px,100%);

    margin:
        55px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 10px;
}


.quick-button {

    min-height: 70px;

    padding:
        15px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color:
        rgba(255,255,255,.68);

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.025);

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 2px;

    transition:
        .35s ease;
}


.quick-icon {

    font-size: 20px;

    line-height: 1;
}


.quick-button:hover {

    color: white;

    background:
        rgba(100,130,255,.08);

    border-color:
        rgba(150,180,255,.45);

    transform:
        translateY(-5px);
}


/* =========================================
   MAIN
========================================= */

.system-section {

    position: relative;

    z-index: 5;

    width:
        min(1100px,100%);

    margin:
        80px auto 0;
}


/* =========================================
   SECTION TITLE
========================================= */

.section-title {

    margin:
        70px 0 30px;

    text-align: center;

    color:
        rgba(255,255,255,.78);

    font-size: 10px;

    letter-spacing: 5px;
}


/* =========================================
   SUN
========================================= */

.sun-card {

    position: relative;

    overflow: hidden;

    min-height: 500px;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        radial-gradient(
            circle at center,
            rgba(255,160,50,.12),
            transparent 60%
        );

    display: flex;

    align-items: center;

    justify-content: center;
}


.sun-photo {

    width:
        min(330px,70vw);

    height:
        min(330px,70vw);

    object-fit: cover;

    border-radius: 50%;

    box-shadow:
        0 0 35px
        rgba(255,170,50,.75),

        0 0 90px
        rgba(255,100,20,.4),

        0 0 160px
        rgba(255,70,10,.18);

    animation:
        sunFloat 5s ease-in-out infinite;
}


@keyframes sunFloat {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.035);
    }
}


.sun-caption {

    position: absolute;

    bottom: 25px;

    left: 20px;

    right: 20px;

    text-align: center;
}


.sun-caption h2 {

    margin:
        0 0 8px;

    font-size: 28px;

    letter-spacing: 5px;
}


.sun-caption p {

    max-width: 650px;

    margin: auto;

    color:
        rgba(255,255,255,.45);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================
   BUTTON
========================================= */

.explore-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 18px;

    padding:
        13px 23px;

    color:
        rgba(255,255,255,.72);

    border:
        1px solid
        rgba(255,255,255,.2);

    background:
        transparent;

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 3px;

    transition:
        .35s ease;
}


.explore-button:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-3px);
}


/* =========================================
   PLANETS
========================================= */

.planets {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 15px;
}


.planet-card {

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);

    transition:
        .45s ease;
}


.planet-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(150,180,255,.42);

    box-shadow:
        0 20px 50px
        rgba(30,50,150,.15);
}


.planet-photo {

    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;

    transition:
        .6s ease;
}


.planet-card:hover .planet-photo {

    transform:
        scale(1.08);
}


.planet-content {

    padding:
        22px 20px 24px;
}


.planet-number {

    color:
        rgba(170,190,255,.45);

    font-size: 8px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}


.planet-name {

    margin:
        0 0 7px;

    font-size: 20px;

    letter-spacing: 3px;
}


.planet-type {

    color:
        rgba(255,255,255,.38);

    font-size: 8px;

    letter-spacing: 2px;

    margin-bottom: 13px;
}


.planet-description {

    color:
        rgba(255,255,255,.47);

    font-size: 11px;

    line-height: 1.75;

    min-height: 75px;
}


/* =========================================
   DWARF PLANETS
========================================= */

.dwarf-section {

    padding:
        55px 25px;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        radial-gradient(
            circle at center,
            rgba(100,120,255,.09),
            transparent 65%
        );

    text-align: center;

    transition:
        .4s ease;
}


.dwarf-section:hover {

    border-color:
        rgba(150,180,255,.4);

    transform:
        translateY(-5px);

    box-shadow:
        0 25px 70px
        rgba(40,60,180,.12);
}


.dwarf-symbol {

    font-size: 42px;

    margin-bottom: 15px;

    opacity: .7;
}


.dwarf-title {

    margin: 0 0 12px;

    font-size: 28px;

    letter-spacing: 5px;
}


.dwarf-description {

    max-width: 650px;

    margin: auto;

    color:
        rgba(255,255,255,.45);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================
   PLANET X
========================================= */

.planet-x {

    min-height: 360px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(80,90,255,.12),
            transparent 65%
        );
}


.planet-x-inner {

    padding: 30px;

    max-width: 700px;
}


.planet-x-symbol {

    font-size: 55px;

    margin-bottom: 18px;

    opacity: .7;

    animation:
        planetXFloat 4s ease-in-out infinite;
}


@keyframes planetXFloat {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.planet-x h2 {

    margin:
        0 0 12px;

    font-size: 30px;

    letter-spacing: 6px;
}


.planet-x p {

    color:
        rgba(255,255,255,.45);

    font-size: 11px;

    line-height: 1.9;
}


.warning {

    display: inline-block;

    margin-top: 15px;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(255,190,80,.25);

    color:
        rgba(255,210,120,.65);

    font-size: 7px;

    letter-spacing: 2px;
}


/* =========================================
   SIMULATION GRID
========================================= */

.simulation-grid {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}


.sim-card {

    position: relative;

    min-height: 380px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        #02030a;

    transition:
        .45s ease;
}


.sim-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(150,180,255,.45);

    box-shadow:
        0 25px 70px
        rgba(30,50,150,.2);
}


.sim-card canvas {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;
}


.sim-overlay {

    position: absolute;

    inset: 0;

    padding: 25px;

    pointer-events: none;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.9),
            rgba(0,0,0,.1) 60%,
            transparent
        );
}


/* Buttons must remain clickable */

.sim-overlay .explore-button {

    pointer-events: auto;
}


.sim-label {

    color:
        rgba(170,190,255,.55);

    font-size: 8px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}


.sim-title {

    margin:
        0 0 8px;

    font-size: 24px;

    letter-spacing: 4px;
}


.sim-text {

    margin: 0;

    color:
        rgba(255,255,255,.5);

    font-size: 10px;

    line-height: 1.7;

    max-width: 520px;
}


/* =========================================
   OORT CLOUD
========================================= */

.oort-card {

    grid-column:
        1 / -1;

    min-height: 500px;
}


/* =========================================
   INFO
========================================= */

.info-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.info-card {

    min-height: 210px;

    padding:
        30px 25px;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);

    transition:
        .4s ease;
}


.info-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(150,180,255,.35);
}


.info-icon {

    font-size: 27px;

    margin-bottom: 18px;
}


.info-card h3 {

    margin:
        0 0 12px;

    font-size: 14px;

    letter-spacing: 2px;
}


.info-card p {

    margin: 0;

    color:
        rgba(255,255,255,.44);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================
   SCALE
========================================= */

.scale {

    margin-top: 75px;

    padding:
        50px 30px;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        radial-gradient(
            circle,
            rgba(90,120,255,.08),
            transparent 65%
        );
}


.scale h2 {

    margin:
        0 0 15px;

    font-size: 24px;

    letter-spacing: 4px;
}


.scale p {

    max-width: 700px;

    margin: auto;

    color:
        rgba(255,255,255,.45);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================
   FINAL NAVIGATION
========================================= */

.final-navigation {

    position: relative;

    z-index: 5;

    width:
        min(1000px,100%);

    margin:
        70px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;
}


.final-button {

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        12px;

    color:
        rgba(255,255,255,.68);

    border:
        1px solid
        rgba(255,255,255,.18);

    background:
        transparent;

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 2px;

    text-align: center;

    transition:
        .35s ease;
}


.final-button:hover {

    color: #010208;

    background: white;

    border-color: white;

    transform:
        translateY(-4px);
}


/* =========================================
   FOOTER
========================================= */

.footer {

    position: relative;

    z-index: 5;

    margin-top: 45px;

    text-align: center;

    color:
        rgba(255,255,255,.25);

    font-size: 9px;

    letter-spacing: 4px;
}


/* =========================================
   MOBILE
========================================= */

@media(max-width:900px) {

    .quick-nav {
        grid-template-columns:
            repeat(2,1fr);
    }

    .planets {
        grid-template-columns:
            repeat(2,1fr);
    }

    .info-grid {
        grid-template-columns:
            1fr;
    }

    .final-navigation {
        grid-template-columns:
            repeat(2,1fr);
    }

    .simulation-grid {
        grid-template-columns:
            1fr;
    }
}


@media(max-width:600px) {

    .solar-page {
        padding:
            50px 15px 80px;
    }

    .quick-nav {
        grid-template-columns:
            repeat(2,1fr);
    }

    .planets {
        grid-template-columns:
            1fr;
    }

    .final-navigation {
        grid-template-columns:
            1fr;
    }

    .sun-card {
        min-height: 420px;
    }

    .planet-photo {
        height: 240px;
    }

    .sim-card {
        min-height: 360px;
    }

}
