:root {
    color-scheme: dark;
    --bg: #0b0e13;
    --surface: #141922;
    --surface-2: #1a202b;
    --line: #2a3340;
    --text: #f2f5f8;
    --muted: #929caa;
    --blue: #3498ff;
    --blue-strong: #1687f5;
    --green: #4bd18b;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(42, 51, 64, 0.85);
    background: rgba(11, 14, 19, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: #bac2cc;
    font-size: 14px;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.support-links a:hover,
.support-links a:focus-visible {
    color: #fff;
}

.nav-download {
    padding: 8px 14px;
    border: 1px solid #2f7ac2;
    border-radius: 8px;
    background: #102844;
}

.hero {
    padding: 104px 0 88px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 680px;
    margin: 26px 0 0;
    color: #aab3bf;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #8cc7ff;
    outline-offset: 3px;
}

.button.primary {
    background: var(--blue);
    color: #06111c;
}

.button.primary:hover {
    background: #63afff;
}

.button.secondary {
    border-color: #3a4554;
    background: #171d26;
    color: var(--text);
}

.button.secondary:hover {
    border-color: #566579;
    background: #1d2530;
}

.button.block {
    width: 100%;
}

.compatibility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 24px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    list-style: none;
}

.product-card {
    padding: 34px;
    border: 1px solid #334052;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.product-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border-radius: 20px;
}

.version-badge,
.recommend {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(75, 209, 139, 0.36);
    border-radius: 999px;
    background: rgba(75, 209, 139, 0.1);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.product-card h2 {
    margin: 14px 0 4px;
    font-size: 28px;
}

.product-card p {
    margin: 0;
    color: var(--muted);
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 30px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
}

.product-stats div {
    padding: 14px 10px;
    background: #10151c;
    text-align: center;
}

.product-stats dt {
    color: var(--muted);
    font-size: 11px;
}

.product-stats dd {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.section {
    padding: 92px 0;
}

.section-muted {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #0f131a;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 44px;
}

.section-heading h2,
.support-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.section-heading > p:last-child,
.support-copy > p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feature-grid article,
.download-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.feature-grid article {
    min-height: 220px;
    padding: 24px;
}

.feature-grid article > span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.feature-grid h3 {
    margin: 36px 0 8px;
    font-size: 19px;
}

.feature-grid p,
.download-card p,
.install-steps p,
.license-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.install-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.install-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.install-steps li > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #08121e;
    font-weight: 800;
}

.install-steps h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

code {
    color: #b9dcff;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.license-note {
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(75, 209, 139, 0.35);
    border-radius: 12px;
    background: #121b18;
}

.license-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--green);
}

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

.download-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 30px;
}

.download-card.featured {
    border-color: #386c9d;
}

.recommend.neutral {
    border-color: #3b4654;
    background: #1a2028;
    color: #b8c0ca;
}

.download-card h3 {
    margin: 24px 0 8px;
    font-size: 24px;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    margin: auto 0 20px;
    padding-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

.checksum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #10151c;
}

.checksum div {
    min-width: 0;
}

.checksum span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.checksum code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checksum button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #3a4554;
    border-radius: 7px;
    background: #1b222c;
    color: var(--text);
    cursor: pointer;
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 80px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.support-links a {
    color: #b9dcff;
    font-size: 14px;
}

.qr-card {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
}

.qr-card img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}

.qr-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.qr-card figcaption span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

footer {
    border-top: 1px solid var(--line);
    color: #7f8996;
    font-size: 13px;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    padding: 11px 14px;
    border: 1px solid rgba(75, 209, 139, 0.38);
    border-radius: 8px;
    background: #13241c;
    color: #b9f3d2;
    font-size: 13px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 46px;
    }

    .support-grid {
        gap: 36px;
    }

    .product-card {
        max-width: 560px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-card {
        width: min(300px, 100%);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .site-header nav a:not(.nav-download) {
        display: none;
    }

    .header-inner {
        min-height: 60px;
    }

    .hero {
        padding: 72px 0 64px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .compatibility {
        flex-direction: column;
        gap: 4px;
    }

    .product-card {
        padding: 24px;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .feature-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: 190px;
    }

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

    .checksum code {
        overflow: visible;
        white-space: normal;
        word-break: break-all;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 84px;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
