: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: #020a13;
    --surface-border: rgba(151, 196, 255, 0.14);
    --text: #edf5ff;
    --muted: #a9bfd8;
    --quiet: #718daa;
    --accent-strong: #96bdff;
}

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 {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: linear-gradient(180deg, #061522 0%, var(--background) 100%);
}

body::before {
    position: fixed;
    inset: -34%;
    z-index: 0;
    content: "";
    pointer-events: none;
    opacity: 0.78;
    background:
        conic-gradient(
            from 214deg at 46% 48%,
            transparent 0 14%,
            rgba(70, 125, 216, 0.12) 18%,
            rgba(105, 164, 255, 0.4) 22%,
            transparent 29% 53%,
            rgba(69, 142, 215, 0.3) 59%,
            rgba(137, 184, 255, 0.18) 63%,
            transparent 70% 100%
        ),
        radial-gradient(
            ellipse at 32% 38%,
            rgba(75, 141, 229, 0.34),
            transparent 33%
        ),
        radial-gradient(
            ellipse at 72% 58%,
            rgba(38, 111, 187, 0.3),
            transparent 30%
        );
    filter: blur(58px) saturate(1.16);
    animation: harness-current-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(164, 201, 249, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 201, 249, 0.07) 1px, transparent 1px);
    background-position: center;
    background-size: 68px 68px;
    mask-image: radial-gradient(
        ellipse 76% 72% at 49% 42%,
        black 7%,
        transparent 84%
    );
}

.harness-particles {
    position: fixed;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.72;
    mask-image: radial-gradient(
        ellipse 78% 74% at 49% 43%,
        black 5%,
        transparent 86%
    );
}

@keyframes harness-current-drift {
    0% {
        transform: translate3d(-4%, -3%, 0) rotate(-7deg) scale(1.02);
    }

    52% {
        transform: translate3d(3%, 2%, 0) rotate(3deg) scale(1.1);
    }

    100% {
        transform: translate3d(1%, 5%, 0) rotate(8deg) scale(1.05);
    }
}

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 {
    position: relative;
    z-index: 3;
    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(151, 196, 255, 0.09);
}

.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(7, 24, 39, 0.7);
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.github-star:hover {
    background: rgba(16, 43, 64, 0.82);
    border-color: rgba(151, 196, 255, 0.24);
}

.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(7, 24, 39, 0.7);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.language-toggle:hover {
    background: rgba(16, 43, 64, 0.82);
    border-color: rgba(151, 196, 255, 0.24);
}

.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: #01070e;
    filter: blur(34px);
    opacity: 0.9;
}

.visual-glow {
    position: absolute;
    inset: 18% 14%;
    z-index: -2;
    background: rgba(70, 137, 224, 0.42);
    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(7, 24, 39, 0.62);
    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(151, 196, 255, 0.09);
}

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

.download-dialog::backdrop {
    background: rgba(1, 6, 12, 0.76);
    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;
    }

    body::before {
        animation: none;
        transform: rotate(-2deg) scale(1.05);
    }

    .harness-particles {
        opacity: 0.44;
    }
}
