:root {
    --bg: #0a0c12;
    --panel: #10141d;
    --panel-2: #131a26;
    --border: #1e2430;
    --border-strong: #2c3547;
    --text: #f0f2f6;
    --muted: #98a0b0;
    --faint: #5f6878;
    --red: #ff3341;
    --red-dark: #d6202e;
    --blue: #4d7cfe;
    --radius: 12px;
    --max: 1000px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mono {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: "Bricolage Grotesque", sans-serif;
}

.brand-name {
    font-weight: 700;
    font-size: 15.5px;
    font-family: "Bricolage Grotesque", sans-serif;
}

.site-nav {
    display: flex;
    gap: 26px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
    border-bottom: 2px solid var(--red);
    padding-bottom: 3px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(700px 380px at 88% -10%, rgba(255, 51, 65, 0.13), transparent 62%),
        radial-gradient(700px 380px at 0% 115%, rgba(77, 124, 254, 0.12), transparent 62%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

h1 {
    font-size: clamp(44px, 7.5vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

h1 .line {
    display: block;
}

h1 .accent {
    color: var(--red);
    text-shadow: 4px 4px 0 rgba(77, 124, 254, 0.35);
}

.lede {
    color: var(--muted);
    font-size: 15.5px;
    max-width: 48ch;
    margin-top: 24px;
}

.lede a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.chip {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 5px 11px;
}

.chip.stable {
    color: var(--red);
    border-color: rgba(255, 51, 65, 0.45);
}

.chip.blue {
    color: var(--blue);
    border-color: rgba(77, 124, 254, 0.45);
}

/* ---------- Art stage ---------- */

.art-stage {
    position: relative;
}

.art-glow {
    position: absolute;
    inset: -40px -30px;
    background:
        radial-gradient(60% 60% at 30% 40%, rgba(255, 51, 65, 0.22), transparent 70%),
        radial-gradient(60% 60% at 70% 60%, rgba(77, 124, 254, 0.22), transparent 70%);
    filter: blur(10px);
    z-index: 0;
}

.art-frame {
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.art-frame:hover {
    transform: rotate(0deg);
}

.art-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Stripes divider ---------- */

.stripes {
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--red) 0 16px, var(--blue) 16px 32px);
}

/* ---------- Sections ---------- */

.section {
    padding: 72px 0 80px;
}

.section + .section {
    border-top: 1px solid var(--border);
}

h2 {
    font-size: 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---------- Download row ---------- */

.download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dl-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.dl-name .ext {
    color: var(--red);
    font-weight: 700;
}

.dl-meta {
    color: var(--faint);
    font-size: 12.5px;
    margin-top: 4px;
}

.dl-meta .stable {
    color: var(--red);
}

.dl-note {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 6px;
    max-width: 56ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9px;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn .arrow {
    font-size: 17px;
}

/* ---------- Module list ---------- */

.mod-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    max-width: 72ch;
}

.mod-item:first-child {
    padding-top: 0;
}

.mod-item:last-child {
    border-bottom: none;
}

.mod-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.mod-item h3 .mnum {
    color: var(--red);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    margin-right: 8px;
    font-weight: 600;
}

.mod-item p {
    color: var(--muted);
    font-size: 14.5px;
}

.mod-item code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9em;
    color: var(--blue);
}

/* ---------- Changelog ---------- */

.changelog .ver {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.changelog .ver:first-child {
    margin-top: 0;
}

.changelog .ver .vnum {
    color: var(--red);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13.5px;
}

.changelog .ver .date {
    color: var(--faint);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 400;
}

.changelog p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 10px;
    max-width: 62ch;
}

/* ---------- FAQ ---------- */

.faq p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 26px;
    max-width: 62ch;
}

.faq p strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 3px;
}

.faq p strong::before {
    content: "▸ ";
    color: var(--red);
}

.faq p a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--faint);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--faint);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--text);
}

/* ---------- Redirect ---------- */

.redirect-note {
    text-align: center;
    padding: 48px;
    font-size: 14px;
}

.redirect-note a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Focus & selection ---------- */

::selection {
    background: var(--red);
    color: #fff;
}

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .site-nav {
        display: none;
    }

    .hero {
        padding: 56px 0 56px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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