:root {
    --bg: #f4f1eb;
    --text: #1f232d;
    --muted: #5d6470;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.84);
    --accent-strong: #2e3a4d;
    --shadow: 0 22px 60px rgba(16, 21, 31, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background-color: var(--bg);
    background-image: url("../Graphics/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 50px 10px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.menu a {
    position: relative;
    color: rgba(31, 35, 45, 0.88);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    transition: color 0.25s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--accent-strong);
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

.contact-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.contact-btn {
    padding: 11px 20px;
    border: 1px solid rgba(31, 35, 45, 0.2);
    background: rgba(255, 255, 255, 0.35);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.download-btn {
    padding: 14px 24px;
    border: 1px solid transparent;
}

.contact-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 24, 34, 0.16);
}

.contact-btn:active,
.download-btn:active {
    transform: translateY(0);
}

.menu a:focus-visible,
.contact-btn:focus-visible,
.download-btn:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 4px;
}

.studio-label,
.section-label,
.card-kicker,
.stat-label {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.download-main {
    padding: 16px 50px 90px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.page-hero > :only-child {
    grid-column: 1 / -1;
}

.page-hero-copy,
.hero-stat-card {
    min-height: 100%;
    padding: 20px 34px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.page-hero-copy h1 {
    width: min(100%, 30ch);
    max-width: 30ch;
    margin-bottom: 20px;
    font-size: var(--content-page-h1-size);
    line-height: 0.95;
    text-wrap: pretty;
    color: var(--accent-strong);
}

.page-intro,
.section-copy,
.download-card-copy,
.library-card p,
.release-notes p,
.catalog-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.hero-stat-card strong {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--accent-strong);
}

.hero-stat-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 24px;
    margin-bottom: 30px;
}

.download-card,
.library-card,
.release-item,
.catalog-card {
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius-md);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.download-card,
.library-card {
    padding: 20px 34px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 244, 238, 0.88));
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.card-side-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.card-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 18px;
}

.download-card h2,
.library-card h2,
.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--accent-strong);
}

.status-pill,
.coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(46, 58, 77, 0.08);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-card-copy {
    max-width: 60ch;
    margin-bottom: 0;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.download-btn.primary {
    background: var(--accent-strong);
    color: #ffffff;
}

.download-btn.secondary {
    border-color: rgba(46, 58, 77, 0.12);
    background: rgba(46, 58, 77, 0.07);
    color: var(--accent-strong);
}

.download-btn.small {
    padding: 12px 18px;
    justify-self: start;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.meta-item {
    padding: 18px;
    border: 1px solid rgba(46, 58, 77, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.64);
}

.meta-label,
.catalog-count {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-item strong,
.release-version strong {
    display: block;
    font-size: 1.18rem;
    color: var(--accent-strong);
}

.library-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.library-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.library-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(46, 58, 77, 0.07);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 500;
}

.release-section,
.catalog-section {
    margin-top: 32px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

.release-list {
    display: grid;
    gap: 10px;
}

.release-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.6fr) minmax(120px, 0.8fr) auto;
    gap: 20px;
    align-items: center;
    padding: 6px 28px;
}

.release-item .download-btn {
    justify-self: start;
}

.release-version span,
.release-meta {
    color: var(--muted);
}

.release-notes h3,
.catalog-card h3 {
    margin-bottom: 8px;
    font-size: 1.18rem;
    color: var(--accent-strong);
}

.release-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    justify-self: start;
}

.release-meta .checksum {
    font-size: 0.7rem;
    word-break: break-all;
    opacity: 0.7;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
}

.catalog-card a {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-strong);
}

.active-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 238, 228, 0.88));
}

.placeholder-card {
    background: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1100px) {
    .page-hero,
    .download-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .release-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 820px) {
    body {
        background-attachment: scroll;
    }

    nav,
    .download-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 24px;
    }

    .menu {
        gap: 18px;
    }

    .page-hero-copy h1 {
        line-height: 1;
    }

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

@media (max-width: 560px) {
    .page-hero-copy,
    .hero-stat-card,
    .download-card,
    .library-card,
    .release-item,
    .catalog-card {
        padding: 24px;
    }

    .download-card-header {
        flex-direction: column;
    }

    .download-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn,
    .download-btn.small,
    .contact-btn {
        width: 100%;
    }
}
