:root {
    color-scheme: dark;
    font-family:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Microsoft YaHei", sans-serif;
    font-synthesis: none;
    --background: #080b12;
    --surface-border: rgba(255, 255, 255, 0.11);
    --text: #f6f7fb;
    --muted: #a5acbb;
    --quiet: #767e8f;
    --accent-strong: #a9c4ff;
}

html:lang(zh-CN) {
    font-family:
        -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", ui-sans-serif, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 28% 46%, rgba(40, 87, 172, 0.17), transparent 32rem),
        radial-gradient(circle at 81% 18%, rgba(64, 91, 151, 0.12), transparent 28rem),
        linear-gradient(145deg, #090c13 0%, #0b0f18 48%, #070a10 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 4px;
}

.page-shell {
    width: min(1760px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 72px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    font-size: 18px;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.site-nav {
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a {
    transition: color 160ms ease;
}

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

.github-star {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.github-star:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.github-star svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.star-count {
    padding-left: 7px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    border-left: 1px solid var(--surface-border);
}

.language-toggle {
    width: 44px;
    height: 34px;
    padding: 0;
    color: var(--text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(400px, 0.75fr);
    gap: clamp(44px, 5vw, 96px);
    align-items: start;
    min-height: calc(100vh - 154px);
    padding: clamp(72px, 10vh, 150px) 0 clamp(60px, 9vh, 120px);
}

.product-visual {
    position: relative;
    min-width: 0;
    isolation: isolate;
}

.product-visual::after {
    position: absolute;
    right: 8%;
    bottom: -8%;
    left: 8%;
    z-index: -1;
    height: 18%;
    content: "";
    background: #05070c;
    filter: blur(34px);
    opacity: 0.9;
}

.visual-glow {
    position: absolute;
    inset: 18% 14%;
    z-index: -2;
    background: rgba(65, 116, 220, 0.38);
    filter: blur(90px);
    border-radius: 50%;
}

.product-frame {
    position: relative;
    overflow: hidden;
    background: #171719;
    border-radius: clamp(10px, 1vw, 16px);
    box-shadow:
        0 44px 110px rgba(0, 0, 0, 0.62),
        0 12px 32px rgba(0, 0, 0, 0.44);
}

.product-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.hero-copy {
    max-width: 500px;
}

.hero-title {
    display: grid;
    gap: 0.06em;
    margin: 0;
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-title > span {
    display: block;
    white-space: nowrap;
}

.hero-title-surfaces {
    margin: 0.28em 0 0.22em;
    color: var(--accent-strong);
    font-size: 0.4em;
    font-weight: 740;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html:lang(zh-CN) .hero-title {
    font-size: clamp(40px, 3.2vw, 52px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

html:lang(zh-CN) .hero-title-surfaces {
    font-size: 0.38em;
    letter-spacing: 0.035em;
}

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

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 54px;
    padding: 0 28px;
    color: #0a0d14;
    font-size: 16px;
    font-weight: 720;
    background: #f5f7fb;
    border: 1px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.download-button:hover {
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
}

.surface-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 460px;
    margin-top: 24px;
}

.surface-card {
    min-width: 0;
    min-height: 78px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.surface-card h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.surface-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.site-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    color: var(--quiet);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.download-dialog {
    width: min(470px, calc(100% - 32px));
    padding: 36px;
    overflow: visible;
    color: var(--text);
    background:
        radial-gradient(circle at 90% 4%, rgba(84, 128, 220, 0.18), transparent 13rem),
        #10141d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65);
}

.download-dialog::backdrop {
    background: rgba(3, 5, 9, 0.72);
    backdrop-filter: blur(9px);
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 9px;
}

.dialog-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.dialog-kicker {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.download-dialog h2 {
    max-width: 14ch;
    margin: 0;
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.dialog-description {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.68;
}

.detected-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 0;
    padding: 12px 14px;
    color: var(--quiet);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--surface-border);
    border-radius: 11px;
}

.detected-platform strong {
    color: var(--text);
    font-weight: 680;
}

.dialog-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.dialog-primary,
.dialog-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
}

.dialog-primary {
    gap: 9px;
    color: #0a0d14;
    background: #f5f7fb;
}

.dialog-primary:hover {
    background: #ffffff;
}

.dialog-primary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.dialog-secondary {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--surface-border);
}

.dialog-secondary:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.9fr);
        gap: 42px;
    }
}

@media (max-width: 820px) {
    .page-shell {
        padding: 0 20px;
    }

    .site-header {
        min-height: 76px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 54px;
        min-height: auto;
        padding: 72px 0 76px;
    }

    .hero-copy {
        grid-row: 1;
        max-width: 620px;
    }

    .product-visual {
        grid-row: 2;
    }

    .hero-title,
    html:lang(zh-CN) .hero-title {
        font-size: clamp(40px, 8vw, 56px);
    }

}

@media (max-width: 600px) {
    .github-star {
        padding: 0 10px;
    }

    .star-count {
        display: none;
    }

    .download-button {
        width: 100%;
    }

    .download-dialog {
        padding: 30px 22px 22px;
    }

    .hero-title,
    html:lang(zh-CN) .hero-title {
        font-size: 36px;
    }

    .surface-card {
        min-height: 74px;
        padding: 12px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
