* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #030303;
    --panel: #090909;
    --panel-light: #100b0c;
    --red: #ff173d;
    --dark-red: #8c0019;
    --text: #f7f4f5;
    --muted: #9e9598;
    --border: rgba(255, 23, 61, 0.22);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 10%,
            rgba(150, 0, 25, 0.17),
            transparent 30%),
        radial-gradient(circle at 15% 60%,
            rgba(100, 0, 20, 0.08),
            transparent 35%),
        var(--black);

    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}


/* ================= HEADER ================= */

header {
    height: 76px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(3, 3, 3, 0.95);
}

.logo {
    display: flex;
    align-items: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 600;
}


/* THIN CRESCENT MOON */

.logo-icon {
    position: relative;

    width: 30px;
    height: 30px;

    display: inline-block;

    margin-right: 14px;

    border: 2px solid var(--red);
    border-radius: 50%;

    font-size: 0;

    box-shadow:
        0 0 10px rgba(255, 23, 61, 0.35);
}

.logo-icon::after {
    content: "";

    position: absolute;

    width: 28px;
    height: 28px;

    left: 8px;
    top: -4px;

    border-radius: 50%;

    background: #030303;
}


.status {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #aaa1a4;

    font-size: 13px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--red);

    box-shadow:
        0 0 5px var(--red),
        0 0 14px var(--red);
}


/* ================= MAIN ================= */

main {
    width: min(1400px, 90%);
    margin: auto;
}


/* ================= HERO ================= */

.hero {
    padding: 85px 0 65px;

    max-width: 900px;
}

.eyebrow,
.panel-label {
    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 14px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(48px, 7vw, 88px);

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--red);

    text-shadow:
        0 0 25px rgba(255, 23, 61, 0.18);
}

.hero-text {
    margin-top: 28px;

    max-width: 680px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.75;
}


/* ================= MISSION CONTROL ================= */

.mission-panel {
    padding: 27px 30px;

    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background:
        linear-gradient(
            110deg,
            rgba(70, 0, 13, 0.12),
            rgba(7, 7, 7, 0.96)
        );
}

.mission-panel h2,
.space-header h2,
.mission-data h2,
.technical-section h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;

    font-weight: 500;
}

.controls {
    display: flex;

    align-items: flex-end;

    gap: 16px;
}

.control {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.control label,
.speed-control label {
    color: var(--muted);

    font-size: 11px;

    font-weight: 700;
}

select {
    width: 155px;
    height: 46px;

    padding: 0 13px;

    color: white;

    background: #090909;

    border: 1px solid rgba(255,255,255,0.13);

    border-radius: 8px;

    outline: none;
}

select:focus,
select:hover {
    border-color: var(--red);
}

.arrow {
    color: var(--red);

    font-size: 23px;

    margin-bottom: 11px;
}


/* ================= BUTTON ================= */

button {
    height: 46px;

    padding: 0 23px;

    border: 1px solid var(--red);

    border-radius: 8px;

    color: white;

    background:
        linear-gradient(
            120deg,
            #c10a2c,
            #670012
        );

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(255,23,61,0.14);

    transition: 0.2s ease;
}

button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            120deg,
            #ed123b,
            #8b001b
        );

    box-shadow:
        0 0 28px rgba(255,23,61,0.30);
}


/* ================= SIMULATION LAYOUT ================= */

.simulation-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        315px;

    gap: 22px;
}

.space-card,
.mission-data {
    border: 1px solid var(--border);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(20,8,10,0.85),
            rgba(5,5,5,0.97)
        );
}

.space-card {
    overflow: hidden;
}


/* ================= SPACE HEADER ================= */

.space-header {
    min-height: 85px;

    padding: 21px 27px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.speed-control {
    width: 210px;
}

.speed-control label {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;
}

#speedValue {
    color: white;
}

.speed-control input {
    width: 100%;

    accent-color: var(--red);
}


/* ================= SOLAR SYSTEM ================= */

#solarSystem {
    height: 650px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(140,0,25,0.13),
            transparent 30%
        ),
        #010101;
}


/* ================= STARS ================= */

#stars {
    position: absolute;

    inset: 0;

    z-index: 0;
}

.star {
    position: absolute;

    border-radius: 50%;

    background: white;

    opacity: 0.65;

    box-shadow:
        0 0 4px rgba(255,255,255,0.6);
}


/* ================= SUN ================= */

.sun {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 64px;
    height: 64px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 35%,
            #fff5bd,
            #ffad24 28%,
            #ff4c16 60%,
            #b40014
        );

    box-shadow:
        0 0 18px rgba(255,80,20,1),
        0 0 50px rgba(255,30,30,0.65),
        0 0 95px rgba(170,0,20,0.35);

    z-index: 5;
}

.sun-core {
    position: absolute;

    inset: 10px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,0.35);
}


/* ================= ORBITS ================= */

.orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid rgba(255,70,90,0.18);

    border-radius: 50%;

    pointer-events: none;
}


/* ================= PLANETS ================= */

.planet {
    position: absolute;

    border-radius: 50%;

    z-index: 8;

    transform:
        translate(-50%, -50%);

    box-shadow:
        inset -5px -5px 9px rgba(0,0,0,0.5);
}

.planet::after {
    content: attr(data-name);

    position: absolute;

    left: 50%;

    top: calc(100% + 8px);

    transform:
        translateX(-50%);

    color: #c9c1c3;

    font-size: 9px;

    white-space: nowrap;
}

.planet-mercury {
    background:
        radial-gradient(
            circle at 35% 30%,
            #d1c9c5,
            #746d6a
        );
}

.planet-venus {
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffd08a,
            #b9652c
        );
}

.planet-earth {
    background:
        radial-gradient(
            circle at 35% 30%,
            #66caff,
            #1165a9 55%,
            #123e72
        );

    box-shadow:
        0 0 12px rgba(70,160,255,0.4),
        inset -5px -5px 9px rgba(0,0,0,0.4);
}

.planet-mars {
    background:
        radial-gradient(
            circle at 35% 30%,
            #ff8b61,
            #a82b21
        );

    box-shadow:
        0 0 12px rgba(255,50,45,0.3),
        inset -5px -5px 9px rgba(0,0,0,0.4);
}

.planet-jupiter {
    background:
        linear-gradient(
            #e1bd98 0%,
            #9e6249 20%,
            #ddb58b 40%,
            #95553f 57%,
            #dfbc98 75%,
            #a5684d 100%
        );
}

.planet-saturn {
    background:
        radial-gradient(
            circle at 35% 30%,
            #f0dda7,
            #aa8756
        );
}

.planet-saturn::before {
    content: "";

    position: absolute;

    width: 180%;

    height: 46%;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-18deg);

    border:
        2px solid rgba(220,195,140,0.75);

    border-radius: 50%;
}


/* ================= ROUTE ================= */

#missionPath {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 4;

    pointer-events: none;
}

#routeLine {
    fill: none;

    stroke: var(--red);

    stroke-width: 2;

    stroke-dasharray: 9 7;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 5px rgba(255,23,61,0.8)
        );
}


/* ================= ROCKET ================= */

#rocket {
    position: absolute;

    display: none;

    z-index: 20;

    font-size: 25px;

    transform:
        translate(-50%, -50%)
        rotate(-45deg);

    filter:
        drop-shadow(
            0 0 9px rgba(255,50,70,0.9)
        );
}


/* ================= FLIGHT DATA ================= */

.mission-data {
    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 13px;
}

.data-card {
    padding: 17px;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 9px;

    background:
        linear-gradient(
            100deg,
            rgba(35,13,17,0.9),
            rgba(11,11,11,0.95)
        );
}

.data-card span,
.mission-status span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1.2px;
}

.data-card strong {
    font-size: 19px;
}

#destinationData {
    color: var(--red);
}


/* ================= STATUS ================= */

.mission-status {
    margin-top: 7px;

    padding-top: 19px;

    border-top:
        1px solid rgba(255,23,61,0.25);
}

.mission-status strong {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;
}

.progress-track {
    width: 100%;

    height: 6px;

    margin: 17px 0 11px;

    overflow: hidden;

    border-radius: 20px;

    background: #202020;
}

#missionProgress {
    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #ff173d,
            #8c0019
        );

    box-shadow:
        0 0 12px rgba(255,23,61,0.65);

    transition:
        width 0.15s linear;
}

.mission-status small {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.55;
}


/* ================= TECHNICAL SECTION ================= */

.technical-section {
    margin: 85px 0 65px;
}

.technical-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 28px;
}

.technical-grid article {
    padding: 26px;

    border-top:
        1px solid rgba(255,23,61,0.65);

    background:
        linear-gradient(
            180deg,
            rgba(90,0,16,0.09),
            rgba(8,8,8,0.3)
        );
}

.technical-grid article > span {
    color: var(--red);

    font-size: 11px;
}

.technical-grid h3 {
    margin: 30px 0 11px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;
}

.technical-grid p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}


/* ================= FOOTER ================= */

footer {
    min-height: 82px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid rgba(255,23,61,0.18);

    color: var(--muted);

    font-size: 12px;
}

footer span {
    color: white;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 16px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 950px) {

    .mission-panel {
        flex-direction: column;

        align-items: flex-start;
    }

    .simulation-layout {
        grid-template-columns: 1fr;
    }

    .mission-data {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .mission-data > div:first-child,
    .mission-status {
        grid-column: 1 / -1;
    }
}


@media (max-width: 650px) {

    main {
        width: 92%;
    }

    header {
        padding: 0 4%;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .controls {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }

    .arrow {
        display: none;
    }

    select,
    button {
        width: 100%;
    }

    .space-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 17px;
    }

    .speed-control {
        width: 100%;
    }

    #solarSystem {
        height: 520px;
    }

    .mission-data {
        display: flex;
    }

    .technical-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 22px 4%;

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}