*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --site-bg: #0b0e10;
    --site-bg-2: #0f1416;
    --site-surface: #141a1d;
    --site-surface-2: #171f22;
    --site-surface-3: #0a0d0f;
    --site-text: #eef5f0;
    --site-heading: #fbfdf7;
    --site-muted: rgba(238, 245, 240, 0.64);
    --site-muted-strong: rgba(238, 245, 240, 0.8);
    --site-border: rgba(255, 255, 255, 0.1);
    --site-border-strong: rgba(255, 255, 255, 0.18);
    --site-nav-bg: rgba(11, 14, 16, 0.78);
    --site-nav-link: rgba(238, 245, 240, 0.68);
    --site-hover: rgba(255, 255, 255, 0.07);
    --site-brand-bg: #134e4a;
    --site-primary: #2dd4bf;
    --site-primary-text: #031311;
    --site-blue: #7dd3fc;
    --site-amber: #fbbf24;
    --site-rose: #fb7185;
    --site-soft: rgba(11, 14, 16, 0.56);
    --site-hero-title: #fff;
    --site-hero-copy: rgba(238, 245, 240, 0.8);
    --site-hero-scrim:
        linear-gradient(90deg, rgba(11, 14, 16, 0.95) 0%, rgba(11, 14, 16, 0.78) 46%, rgba(11, 14, 16, 0.32) 100%),
        linear-gradient(0deg, rgba(11, 14, 16, 0.96) 0%, rgba(11, 14, 16, 0.14) 62%, rgba(11, 14, 16, 0.54) 100%);
    --site-hero-scrim-mobile:
        linear-gradient(90deg, rgba(11, 14, 16, 0.97) 0%, rgba(11, 14, 16, 0.82) 72%, rgba(11, 14, 16, 0.46) 100%),
        linear-gradient(0deg, rgba(11, 14, 16, 0.96) 0%, rgba(11, 14, 16, 0.22) 64%, rgba(11, 14, 16, 0.62) 100%);
    --site-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
}

[data-site-theme="light"] {
    --site-bg: #f6f7f2;
    --site-bg-2: #eef3f0;
    --site-surface: #ffffff;
    --site-surface-2: #fbfcf8;
    --site-surface-3: #eef3f0;
    --site-text: #16201d;
    --site-heading: #0f1715;
    --site-muted: rgba(22, 32, 29, 0.62);
    --site-muted-strong: rgba(22, 32, 29, 0.78);
    --site-border: rgba(15, 23, 21, 0.11);
    --site-border-strong: rgba(15, 23, 21, 0.18);
    --site-nav-bg: rgba(255, 255, 255, 0.8);
    --site-nav-link: rgba(22, 32, 29, 0.66);
    --site-hover: rgba(15, 23, 21, 0.06);
    --site-brand-bg: #0f766e;
    --site-primary: #0f766e;
    --site-primary-text: #ffffff;
    --site-blue: #0369a1;
    --site-amber: #b45309;
    --site-rose: #be123c;
    --site-soft: rgba(255, 255, 255, 0.72);
    --site-hero-title: #0f1715;
    --site-hero-copy: rgba(22, 32, 29, 0.76);
    --site-hero-scrim:
        linear-gradient(90deg, rgba(246, 247, 242, 0.95) 0%, rgba(246, 247, 242, 0.82) 48%, rgba(246, 247, 242, 0.28) 100%),
        linear-gradient(0deg, rgba(246, 247, 242, 0.98) 0%, rgba(246, 247, 242, 0.16) 64%, rgba(246, 247, 242, 0.6) 100%);
    --site-hero-scrim-mobile:
        linear-gradient(90deg, rgba(246, 247, 242, 0.98) 0%, rgba(246, 247, 242, 0.86) 72%, rgba(246, 247, 242, 0.5) 100%),
        linear-gradient(0deg, rgba(246, 247, 242, 0.98) 0%, rgba(246, 247, 242, 0.24) 64%, rgba(246, 247, 242, 0.7) 100%);
    --site-shadow: 0 18px 48px rgba(15, 23, 21, 0.1);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--site-text);
    background:
        linear-gradient(180deg, var(--site-bg) 0%, var(--site-bg-2) 48%, var(--site-bg) 100%);
    transition: background 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-nav-bg);
    backdrop-filter: blur(18px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--site-brand-bg);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.site-brand b,
.site-brand small {
    display: block;
    line-height: 1.05;
}

.site-brand b {
    font-size: 0.98rem;
    font-weight: 900;
}

.site-brand small {
    margin-top: 3px;
    color: var(--site-muted);
    font-size: 0.64rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.site-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    color: var(--site-nav-link);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 850;
    border-radius: 8px;
}

.site-links a:hover {
    color: var(--site-heading);
    background: var(--site-hover);
}

.site-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta,
.download-cta,
.theme-switch,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 900;
}

.nav-cta {
    min-height: 36px;
    padding: 0 13px;
    background: var(--site-primary);
    color: var(--site-primary-text);
    font-size: 0.8rem;
}

.download-cta,
.theme-switch {
    min-height: 36px;
    border: 1px solid var(--site-border);
    color: var(--site-text);
    background: var(--site-surface);
    font-size: 0.8rem;
}

.download-cta {
    padding: 0 12px;
}

.theme-switch {
    width: 36px;
    padding: 0;
    cursor: pointer;
}

.theme-switch .ri-sun-line {
    display: none;
}

.theme-switch .ri-moon-line {
    display: block;
}

[data-site-theme="light"] .theme-switch .ri-sun-line {
    display: block;
}

[data-site-theme="light"] .theme-switch .ri-moon-line {
    display: none;
}

.download-cta:hover,
.theme-switch:hover {
    border-color: var(--site-border-strong);
    background: var(--site-hover);
}

.hero {
    position: relative;
    min-height: 78svh;
    display: flex;
    align-items: flex-end;
    padding: 120px 28px 58px;
    background-color: var(--site-surface);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: var(--site-hero-scrim);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--site-blue);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--site-hero-title);
    font-size: 4.8rem;
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.46);
}

.hero-copy {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--site-hero-copy);
    font-size: 1.08rem;
    line-height: 1.74;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn.primary {
    background: var(--site-heading);
    color: var(--site-bg);
}

.btn.primary:hover {
    background: var(--site-primary);
    color: var(--site-primary-text);
}

.btn.ghost {
    color: var(--site-heading);
    background: var(--site-hover);
    border-color: var(--site-border-strong);
}

.btn.ghost:hover {
    background: var(--site-surface);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.hero-points span,
.download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--site-border-strong);
    border-radius: 8px;
    background: var(--site-soft);
    color: var(--site-muted-strong);
    font-size: 0.76rem;
    font-weight: 850;
}

.hero-points i {
    color: var(--site-primary);
}

.release-band,
.system-band,
.components-band,
.scenarios-band,
.download-band,
.files-band,
.roadmap-band {
    width: min(1120px, calc(100% - 56px));
    margin: 0 auto;
}

.release-band {
    padding: 70px 0 36px;
}

.section-head {
    max-width: 740px;
}

.section-head.compact {
    max-width: 650px;
}

.section-head h2,
.system-copy h2,
.scenario-copy h2,
.download-copy h2 {
    margin: 0;
    color: var(--site-heading);
    font-size: 2.35rem;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}

.section-head p,
.system-copy p,
.scenario-copy p,
.download-copy p {
    margin: 14px 0 0;
    color: var(--site-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 650;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.release-card,
.component-matrix a,
.scenario-grid article,
.roadmap-item,
.file-grid div {
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-surface-2);
    box-shadow: var(--site-shadow);
}

.release-card {
    min-height: 196px;
    padding: 18px;
}

.release-card i,
.scenario-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--site-primary);
    font-size: 1.1rem;
}

.release-card:nth-child(2) i,
.scenario-grid article:nth-child(2) i {
    background: rgba(125, 211, 252, 0.14);
    color: var(--site-blue);
}

.release-card:nth-child(3) i,
.scenario-grid article:nth-child(3) i {
    background: rgba(251, 191, 36, 0.14);
    color: var(--site-amber);
}

.release-card:nth-child(4) i,
.scenario-grid article:nth-child(4) i {
    background: rgba(251, 113, 133, 0.14);
    color: var(--site-rose);
}

.release-card h3,
.scenario-grid h3 {
    margin: 0 0 8px;
    color: var(--site-heading);
    font-size: 1rem;
    font-weight: 900;
}

.release-card p,
.scenario-grid p {
    margin: 0;
    color: var(--site-muted);
    font-size: 0.82rem;
    line-height: 1.62;
    font-weight: 650;
}

.system-band {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 34px;
    align-items: center;
    padding: 54px 0;
}

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

.signal-strip div {
    min-height: 114px;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-surface);
}

.signal-strip b,
.roadmap-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--site-hover);
    color: var(--site-muted-strong);
    font-size: 0.78rem;
    font-weight: 900;
}

.signal-strip span {
    display: block;
    color: var(--site-muted);
    font-size: 0.82rem;
    line-height: 1.58;
    font-weight: 700;
}

.components-band {
    padding: 54px 0;
}

.component-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.component-matrix a {
    min-height: 150px;
    padding: 18px;
    color: var(--site-text);
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.component-matrix a:hover {
    border-color: rgba(45, 212, 191, 0.38);
    background: var(--site-surface);
    transform: translateY(-2px);
}

.component-matrix i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--site-hover);
    color: var(--site-blue);
    font-size: 1.05rem;
}

.component-matrix a:nth-child(2n) i {
    color: var(--site-primary);
}

.component-matrix a:nth-child(3n) i {
    color: var(--site-amber);
}

.component-matrix b,
.component-matrix span {
    display: block;
}

.component-matrix b {
    color: var(--site-heading);
    font-size: 0.94rem;
    font-weight: 900;
}

.component-matrix span {
    margin-top: 7px;
    color: var(--site-muted);
    font-size: 0.78rem;
    line-height: 1.58;
    font-weight: 700;
}

.scenarios-band {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 34px;
    align-items: start;
    padding: 54px 0;
}

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

.scenario-grid article {
    min-height: 190px;
    padding: 18px;
}

.download-band {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    gap: 30px;
    align-items: stretch;
    padding: 58px 0 34px;
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.download-meta i {
    color: var(--site-primary);
}

.code-window {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: var(--site-surface-3);
    box-shadow: var(--site-shadow);
}

.code-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid var(--site-border);
}

.code-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
}

.code-bar span:nth-child(2) {
    background: #f59e0b;
}

.code-bar span:nth-child(3) {
    background: #10b981;
}

.code-window pre {
    min-height: 160px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-window code {
    color: var(--site-muted-strong);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.86;
}

.files-band {
    padding: 0 0 40px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.file-grid div {
    min-height: 104px;
    padding: 14px;
}

.file-grid b,
.file-grid span {
    display: block;
}

.file-grid b {
    color: var(--site-heading);
    font-size: 0.82rem;
    line-height: 1.45;
}

.file-grid span {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 0.75rem;
    line-height: 1.55;
    font-weight: 700;
}

.roadmap-band {
    padding: 44px 0 76px;
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.roadmap-item {
    min-height: 188px;
    padding: 16px;
    position: relative;
}

.roadmap-item.done span {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.roadmap-item.active {
    border-color: rgba(125, 211, 252, 0.35);
}

.roadmap-item.active span {
    background: rgba(14, 165, 233, 0.16);
    color: var(--site-blue);
}

.roadmap-item b {
    display: block;
    color: var(--site-heading);
    font-size: 0.95rem;
    line-height: 1.4;
}

.roadmap-item p {
    margin: 8px 0 0;
    color: var(--site-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    font-weight: 650;
}

.site-footer {
    width: min(1120px, calc(100% - 56px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.site-footer a {
    color: var(--site-muted-strong);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--site-heading);
}

@media (max-width: 980px) {
    .site-nav {
        padding: 0 16px;
    }

    .site-links {
        display: none;
    }

    .hero {
        min-height: 80svh;
        padding: 108px 20px 52px;
        background-position: 62% top;
    }

    .hero-scrim {
        background: var(--site-hero-scrim-mobile);
    }

    .hero h1 {
        font-size: 3.35rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .release-band,
    .system-band,
    .components-band,
    .scenarios-band,
    .download-band,
    .files-band,
    .roadmap-band,
    .site-footer {
        width: min(100% - 32px, 720px);
    }

    .release-grid,
    .system-band,
    .component-matrix,
    .scenarios-band,
    .download-band,
    .file-grid,
    .roadmap {
        grid-template-columns: 1fr;
    }

    .signal-strip,
    .scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-nav {
        height: 62px;
        gap: 10px;
    }

    .site-brand small {
        display: none;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }

    .nav-cta {
        min-height: 34px;
        padding: 0 11px;
    }

    .download-cta span {
        display: none;
    }

    .download-cta {
        width: 36px;
        padding: 0;
    }

    .hero {
        min-height: 82svh;
        padding: 94px 16px 42px;
    }

    .hero h1 {
        font-size: 2.62rem;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .section-head h2,
    .system-copy h2,
    .scenario-copy h2,
    .download-copy h2 {
        font-size: 1.9rem;
    }

    .signal-strip,
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .code-window pre {
        padding: 16px;
    }

    .site-footer {
        flex-wrap: wrap;
        align-content: center;
        padding: 18px 0;
    }
}
