:root {
    color-scheme: dark;
    --bg: #11110f;
    --surface: #191916;
    --surface-high: #22221e;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f5f1e8;
    --muted: #aaa69d;
    --accent: #efb45f;
    --accent-strong: #ffd28c;
    --accent-ink: #241604;
    --radius: 24px;
    --content: 920px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -15%, rgba(239, 180, 95, 0.11), transparent 34rem),
        var(--bg);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    width: min(calc(100% - 40px), var(--content));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(239, 180, 95, 0.45);
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #242017;
}

.brand-mark span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--accent);
}

.platform {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 160ms ease, color 160ms ease;
}

.platform:hover,
.platform:focus-visible {
    border-color: rgba(246, 183, 82, 0.48);
    color: var(--accent);
}

main {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}

.hero {
    padding: 86px 0 54px;
    text-align: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 18px;
    margin-left: auto;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 3.5vw, 34px);
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.hero-copy {
    max-width: 610px;
    margin-right: auto;
    margin-bottom: 26px;
    margin-left: auto;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
}

.version-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.version-row span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #cbc6bc;
    background: rgba(255, 255, 255, 0.025);
    font-size: 13px;
}

.download-card,
.about-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(25, 25, 22, 0.94);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.download-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
    overflow: hidden;
}

.qr-panel {
    padding: 44px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
        var(--surface);
}

.qr-frame {
    width: 248px;
    height: 248px;
    padding: 12px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

#page-qr {
    display: block;
    width: 224px;
    height: 224px;
}

.qr-title {
    margin: 22px 0 2px;
    font-size: 18px;
    font-weight: 750;
}

.download-summary,
.safety-note,
.muted {
    color: var(--muted);
}

.download-panel {
    padding: 48px;
}

.download-summary {
    margin-bottom: 24px;
    font-size: 14px;
}

.download-list {
    display: grid;
    gap: 12px;
}

.download-button {
    min-height: 70px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    display: grid;
    grid-template-columns: 38px 1fr 22px;
    gap: 12px;
    align-items: center;
    color: var(--text);
    background: var(--surface-high);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-button:first-child {
    color: var(--accent-ink);
    border-color: transparent;
    background: var(--accent);
}

.download-button:hover {
    border-color: rgba(239, 180, 95, 0.5);
    background: #29271f;
    transform: translateY(-2px);
}

.download-button:first-child:hover {
    background: var(--accent-strong);
}

.download-button:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(255, 210, 140, 0.42);
    outline-offset: 3px;
}

.button-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    background: var(--accent);
    font-size: 21px;
    font-weight: 800;
}

.download-button:first-child .button-icon {
    background: rgba(36, 22, 4, 0.12);
}

.button-copy {
    display: flex;
    flex-direction: column;
}

.button-copy strong {
    font-size: 15px;
}

.button-copy small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.download-button:first-child .button-copy small {
    color: rgba(36, 22, 4, 0.65);
}

.button-arrow {
    font-size: 28px;
    font-weight: 300;
}

.safety-note {
    margin: 18px 0 0;
    font-size: 12px;
}

.status-message {
    padding: 18px;
    border: 1px solid rgba(255, 180, 171, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 180, 171, 0.06);
}

.status-message span {
    color: var(--muted);
    font-size: 13px;
}

.status-message.closed {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.status-message.closed strong {
    color: var(--accent-strong);
}

.about-section {
    margin-top: 22px;
    padding: 38px 42px;
}

.about-section {
    background: transparent;
    box-shadow: none;
}

.about-copy {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--muted);
}

.feature-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
}

.feature-list li {
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.feature-list strong {
    color: var(--text);
    font-size: 15px;
}

.feature-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

footer {
    width: min(calc(100% - 40px), var(--content));
    margin: 46px auto 0;
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #747168;
    font-size: 12px;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #a9a59b;
    text-underline-offset: 3px;
}

footer a:hover {
    color: var(--accent-strong);
}

@media (max-width: 760px) {
    :root {
        --radius: 20px;
    }

    .site-header,
    main,
    footer {
        width: min(calc(100% - 28px), var(--content));
    }

    .site-header {
        height: 68px;
    }

    .hero {
        padding: 64px 4px 38px;
        text-align: left;
    }

    .hero-copy {
        margin-left: 0;
    }

    .version-row {
        justify-content: flex-start;
    }

    .download-card {
        display: block;
    }

    .qr-panel {
        display: none;
    }

    .download-panel {
        padding: 28px 20px 22px;
    }

    .download-button {
        min-height: 74px;
    }

    .about-section {
        padding: 28px 22px;
    }

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

    .feature-list li {
        min-height: 0;
    }

    footer {
        display: block;
    }

    footer p + p {
        margin-top: 6px;
    }
}

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

    .download-button {
        transition: none;
    }
}

.handoff-body {
    min-height: 100vh;
}

.handoff-main {
    width: min(calc(100% - 32px), 560px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.handoff-card {
    width: 100%;
    padding: clamp(30px, 7vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 60px rgb(0 0 0 / 8%);
}

.handoff-mark {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 18px;
    background: var(--accent);
}

.handoff-mark span {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--surface);
}

.handoff-card h1 {
    margin: 8px 0 26px;
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -0.04em;
}

.handoff-video {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.handoff-progress {
    margin: 8px 0 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.handoff-copy {
    margin: 24px 0 30px;
    color: var(--muted);
    line-height: 1.75;
}

.handoff-open,
.handoff-download {
    display: grid;
    min-height: 54px;
    place-items: center;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
}

.handoff-open {
    background: var(--accent);
    color: var(--accent-ink);
}

.handoff-download {
    margin-top: 12px;
    border: 1px solid var(--line);
    color: var(--text);
}

.handoff-fallback {
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.handoff-fallback:hover {
    color: var(--text);
}
