:root {
    --bg: #060606;
    --bg-soft: #101010;
    --text: #f5f5f5;
    --muted: #b3b3b3;
    --line: #2a2a2a;
    --card: #0b0b0b;
    --accent: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-image:
        radial-gradient(
            circle at 12% 0%,
            rgba(255, 255, 255, 0.09),
            transparent 35%
        ),
        radial-gradient(
            circle at 88% 100%,
            rgba(255, 255, 255, 0.06),
            transparent 32%
        ),
        linear-gradient(180deg, #070707, #040404 60%);
}

.shell {
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(7px);
    background: rgba(8, 8, 8, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.26em;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
}

.nav-links {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.48rem 0.86rem;
    border-radius: 999px;
    font-size: 0.86rem;
    line-height: 1;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.nav-links a:hover {
    border-color: #767676;
    background: rgba(255, 255, 255, 0.04);
}

.hero {
    padding: 5.6rem 0 3.2rem;
}

.eyebrow {
    font-family: "IBM Plex Mono", monospace;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.73rem;
    margin-bottom: 0.95rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1.02;
    max-width: 13ch;
}

.hero p {
    max-width: 62ch;
    color: #cdcdcd;
    font-size: clamp(1rem, 2vw, 1.16rem);
    margin: 1.2rem 0 0;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-weight: 500;
    border: 1px solid #444;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.btn {
    color: #070707;
    background: var(--accent);
    border-color: transparent;
}

.btn-outline {
    color: var(--text);
    border-color: #444;
    background: transparent;
}

.btn:hover,
.btn-outline:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.section {
    padding: 2rem 0 0.4rem;
    scroll-margin-top: 5.2rem;
}

h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    margin: 0 0 0.9rem;
}

.section-copy {
    color: var(--muted);
    max-width: 70ch;
    margin: 0;
}

.downloads-meta {
    margin-top: 0.75rem;
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.44rem 0.72rem;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.02);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.source-pill:hover {
    border-color: #707070;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.source-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.9;
}

.download-grid,
.feature-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.01)
    );
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
}

.download-grid .card {
    display: flex;
    flex-direction: column;
    min-height: 188px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.platform-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.platform-icon img {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    opacity: 0.8;
    filter: grayscale(1) brightness(1.5);
    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

.card:hover .platform-icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.card:hover .platform-icon img {
    opacity: 1;
    filter: grayscale(0) brightness(1.1);
}

.card h3 {
    margin: 0;
    font-size: 1.02rem;
}

.card p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.45;
}

.download-grid .card p {
    margin-bottom: 1rem;
}

.card .btn,
.card .btn-outline {
    margin-top: 0.85rem;
    width: 100%;
    font-size: 0.92rem;
    padding: 0.64rem 0.88rem;
}

.download-grid .card .btn {
    margin-top: auto;
}

code {
    background: #111;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 0.15rem 0.42rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.84rem;
    color: #e5e5e5;
    word-break: break-all;
}

.footer {
    padding: 2.5rem 0;
    color: #9c9c9c;
    font-size: 0.87rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2.4rem;
}

@media (max-width: 700px) {
    .topbar-inner {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
    }

    .hero {
        padding-top: 4.25rem;
    }

    .nav-links {
        width: 100%;
        display: grid;
        gap: 0.5rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .cta-row .btn,
    .cta-row .btn-outline {
        width: 100%;
    }
}
