/* -------------------------
   General
------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #202020;
    color: white;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* -------------------------
   Top Bar
------------------------- */

.topbar {
    height: 76px;

    background: #181818;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    border-bottom: 1px solid #333;
}


/* Logo + Name */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    color: white;
    text-decoration: none;

    font-size: 23px;
    font-weight: 700;
}

.brand img {
    width: 44px;
    height: 44px;

    object-fit: cover;

    border-radius: 10px;
}


/* Menu Button */

.menu-button {
    background: #E30000;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 11px 18px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.menu-button:hover {
    background: #9C0000;
}


/* -------------------------
   Main
------------------------- */

main {
    min-height: calc(100vh - 76px - 150px);
}


/* Hero */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 24px;
}

.hero-content {
    width: 100%;
    max-width: 850px;

    text-align: center;
}


/* Heading */

.hero h1 {
    margin: 0 0 28px;

    font-size: clamp(48px, 8vw, 88px);
    line-height: 1;

    font-weight: 800;
}


/* Summary */

.summary {
    max-width: 700px;

    margin: 0 auto 40px;

    color: #d0d0d0;

    font-size: 19px;
    line-height: 1.7;
}


/* Get Button */

.get-button {
    display: inline-block;

    background: #D60000;
    color: white;

    text-decoration: none;

    padding: 15px 42px;

    border-radius: 9px;

    font-size: 19px;
    font-weight: 700;
}

.get-button:hover {
    background: #840000;
}


/* -------------------------
   Footer
------------------------- */

footer {
    background: #181818;

    border-top: 1px solid #333;

    padding: 35px 24px;

    text-align: center;
}

.footer-links {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 26px;

    margin-bottom: 22px;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
}

.footer-links a:hover {
    color: #d62828;
}

.copyright {
    margin: 0;

    color: #777;

    font-size: 13px;
}


/* -------------------------
   Menu Panel
------------------------- */

.menu-panel {
    position: fixed;

    inset: 0;

    background: #181818;

    display: none;

    z-index: 100;
}

.menu-panel.open {
    display: block;
}

.menu-content {
    min-height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 24px;

    position: relative;
}

.menu-content a {
    color: white;

    text-decoration: none;

    font-size: 28px;
    font-weight: 700;
}

.menu-content a:hover {
    color: #d60000;
}

.close-button {
    position: absolute;

    top: 25px;
    right: 32px;

    background: transparent;

    border: none;

    color: white;

    font-size: 40px;

    cursor: pointer;
}


/* -------------------------
   Mobile
------------------------- */

@media (max-width: 600px) {

    .topbar {
        padding: 0 18px;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: 550px;

        padding: 60px 20px;
    }

    .summary {
        font-size: 17px;
    }

    .footer-links {
        gap: 18px;
    }

}

/* -------------------------
 Listings Page
 ------------------------- */

.listings-main {
    width: 100%;
    max-width: 1000px;
    
    margin: 0 auto;
    
    padding: 80px 24px 100px;
}


/* Page Heading */

.page-heading {
    text-align: center;
    
    margin-bottom: 65px;
}

.page-heading h1 {
    margin: 0 0 18px;
    
    font-size: clamp(42px, 7vw, 70px);
}

.page-heading p {
    margin: 0;
    
    color: #bdbdbd;
    
    font-size: 18px;
    line-height: 1.6;
}


/* Sections */

.listing-section,
.info-section {
    margin-bottom: 70px;
}

.info-section h2 {
    margin: 0 0 24px;
    
    font-size: 30px;
}


/* Listing Card */

.listing-card {
    background: #181818;
    
    border: 1px solid #333;
    
    border-radius: 12px;
    
    padding: 32px;
}

.listing-card h2 {
    margin: 0 0 10px;
    
    font-size: 28px;
}

.listing-card p {
    color: #bdbdbd;
    
    line-height: 1.6;
}

.listing-card .version {
    color: white;
}


/* Download Buttons */

.listing-buttons {
    display: flex;
    
    flex-wrap: wrap;
    
    gap: 12px;
    
    margin-top: 28px;
}

.download-button {
    display: inline-block;
    
    background: #d60000;
    
    color: white;
    
    text-decoration: none;
    
    border-radius: 8px;
    
    padding: 13px 22px;
    
    font-weight: 700;
}

.download-button:hover {
    background: #b80000;
}


/* Installation */

.info-block {
    display: flex;
    flex-direction: column;
    
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    
    gap: 18px;
    
    background: #181818;
    
    border: 1px solid #333;
    
    border-radius: 10px;
    
    padding: 20px;
}

.step span {
    flex-shrink: 0;
    
    width: 38px;
    height: 38px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: #d62828;
    
    border-radius: 50%;
    
    font-weight: 700;
}

.step p {
    margin: 0;
    
    color: #d0d0d0;
    
    line-height: 1.5;
}


/* Tested Devices */

.device-card {
    display: flex;
    align-items: center;
    
    gap: 18px;
    
    background: #181818;
    
    border: 1px solid #333;
    
    border-radius: 10px;
    
    padding: 24px;
}

.device-status {
    width: 42px;
    height: 42px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: #8F0000;
    
    border-radius: 50%;
    
    font-size: 20px;
    font-weight: 700;
}

.device-card h3 {
    margin: 0 0 5px;
    
    font-size: 21px;
}

.device-card p {
    margin: 0;
    
    color: #aaa;
}


/* Mobile */

@media (max-width: 600px) {
    
    .listings-main {
        padding: 55px 18px 70px;
    }
    
    .page-heading {
        margin-bottom: 45px;
    }
    
    .listing-card {
        padding: 24px;
    }
    
    .info-section {
        margin-bottom: 55px;
    }
    
    .step {
        align-items: flex-start;
    }
    
}

/* -------------------------
 Updates Page
 ------------------------- */

.updates-main,
.about-main {
    width: 100%;
    max-width: 950px;
    
    margin: 0 auto;
    
    padding: 80px 24px 100px;
}


/* Update Card */

.update-card {
    background: #181818;
    
    border: 1px solid #333;
    
    border-radius: 12px;
    
    padding: 32px;
    
    margin-bottom: 28px;
}

.update-header {
    display: flex;
    
    align-items: flex-start;
    justify-content: space-between;
    
    gap: 20px;
    
    padding-bottom: 24px;
    
    border-bottom: 1px solid #333;
}

.update-label {
    margin: 0 0 7px;
    
    color: #d60000;
    
    font-size: 13px;
    font-weight: 700;
    
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-header h2 {
    margin: 0;
    
    font-size: 28px;
}

.update-date {
    color: #888;
    
    font-size: 14px;
    
    white-space: nowrap;
}


/* Update Content */

.update-content {
    padding-top: 24px;
    
    color: #c8c8c8;
    
    line-height: 1.7;
}

.update-content h3 {
    margin-top: 28px;
    
    color: white;
    
    font-size: 19px;
}

.update-content ul {
    padding-left: 22px;
}

.update-content li {
    margin-bottom: 8px;
}


/* -------------------------
 About Page
 ------------------------- */

.about-section {
    background: #181818;
    
    border: 1px solid #333;
    
    border-radius: 12px;
    
    padding: 32px;
    
    margin-bottom: 24px;
}

.about-section h2 {
    margin: 0 0 18px;
    
    font-size: 27px;
}

.about-section p {
    margin: 0 0 16px;
    
    color: #c8c8c8;
    
    font-size: 17px;
    
    line-height: 1.7;
}

.about-section p:last-child {
    margin-bottom: 0;
}


/* -------------------------
 Updates + About Mobile
 ------------------------- */

@media (max-width: 600px) {
    
    .updates-main,
    .about-main {
        padding: 55px 18px 70px;
    }
    
    .update-card,
    .about-section {
        padding: 24px;
    }
    
    .update-header {
        flex-direction: column;
    }
    
    .update-date {
        white-space: normal;
    }
    
}


/* Map Gallery */

.map-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.map-dropdown {
    border: 1px solid #383838;
    background: #171717;
    border-radius: 6px;
    overflow: hidden;
}

.map-dropdown summary {
    padding: 16px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-dropdown summary::-webkit-details-marker {
    display: none;
}

.map-dropdown summary::after {
    content: "+";
    color: #aaa;
    font-size: 20px;
}

.map-dropdown[open] summary::after {
    content: "−";
}

.map-dropdown summary:hover {
    background: #222;
}

.map-content {
    padding: 0 16px 16px;
}

/* Multiple screenshots */

.map-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.map-images img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    background: #101010;
}
