:root {
    --paper: #f8f1df;
    --paper-soft: #fff9eb;
    --paper-deep: #efe2c2;
    --ink: #201a13;
    --ink-muted: #6d5f4d;
    --ink-blue: #1f3b91;
    --seal: #b83a2f;
    --moss: #477b53;
    --line: rgba(83, 65, 39, 0.18);
    --shadow: rgba(49, 35, 18, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 5%, rgba(184, 58, 47, 0.11), transparent 28rem),
        radial-gradient(circle at 90% 15%, rgba(71, 123, 83, 0.12), transparent 24rem),
        linear-gradient(180deg, #fbf4e4 0%, #f5ead0 46%, #fff9eb 100%);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(32, 26, 19, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 26, 19, 0.018) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    background: rgba(255, 249, 235, 0.78);
    box-shadow: 0 18px 48px -32px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    border-radius: 12px;
    box-shadow: 0 10px 22px -16px #000;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink-blue);
    background: rgba(31, 59, 145, 0.08);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
    align-items: center;
    gap: clamp(32px, 6vw, 92px);
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100dvh - 98px);
    margin: 0 auto;
    padding: clamp(46px, 8vw, 104px) 0 72px;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--seal);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

h1 {
    margin-bottom: 20px;
    font-size: clamp(3.2rem, 7.2vw, 5.8rem);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.16;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.25;
}

.hero-lede {
    max-width: 34rem;
    margin-bottom: 28px;
    color: var(--ink-muted);
    font-size: clamp(1.06rem, 1.6vw, 1.25rem);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.store-button {
    display: inline-flex;
    min-width: 164px;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px 11px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-button:hover,
.store-button:focus-visible,
.apk-download:hover,
.apk-download:focus-visible {
    transform: translateY(-2px);
}

.store-button:active,
.apk-download:active {
    transform: translateY(0) scale(0.98);
}

.store-button.primary {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 22px 38px -24px rgba(32, 26, 19, 0.72);
}

.store-button.dark {
    color: #fff;
    background: var(--ink-blue);
    box-shadow: 0 22px 38px -24px rgba(31, 59, 145, 0.72);
}

.store-kicker {
    display: block;
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.72;
}

.store-button strong {
    font-size: 1.12rem;
    line-height: 1.25;
}

.apk-note {
    max-width: 40rem;
    margin: 18px 0 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.apk-note a {
    color: var(--ink-blue);
    font-weight: 800;
    text-underline-offset: 3px;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 690px;
    place-items: center;
}

.phone-frame {
    margin: 0;
    border: 10px solid #211b14;
    border-radius: 42px;
    background: #211b14;
    box-shadow: 0 36px 80px -46px rgba(32, 26, 19, 0.88);
    overflow: hidden;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-main {
    width: min(340px, 58vw);
    aspect-ratio: 9 / 16;
    transform: rotate(2deg) translateX(32px);
}

.phone-secondary {
    position: absolute;
    left: 0;
    bottom: 36px;
    width: min(238px, 38vw);
    aspect-ratio: 2 / 3;
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    transform: rotate(-7deg);
}

.phone-secondary img {
    border-radius: 18px;
    object-fit: cover;
    transform: scale(1.22);
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(64px, 10vw, 118px) 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading h2 {
    white-space: nowrap;
}

.value-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.value-item {
    min-height: 245px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 249, 235, 0.64);
    box-shadow: 0 20px 70px -54px var(--shadow);
}

.value-item.wide {
    grid-row: span 2;
    min-height: 390px;
    background:
        linear-gradient(135deg, rgba(255, 249, 235, 0.9), rgba(248, 241, 223, 0.58)),
        repeating-linear-gradient(0deg, transparent 0 58px, rgba(71, 123, 83, 0.16) 59px 60px);
}

.value-item.calm {
    background: rgba(31, 59, 145, 0.08);
}

.value-index {
    display: block;
    margin-bottom: 32px;
    color: var(--seal);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
}

.value-item p,
.audience-list p,
.download-section p,
.faq-list p {
    color: var(--ink-muted);
}

.screenshot-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: 0;
    overflow: hidden;
}

.screenshot-section .section-heading {
    width: min(760px, calc(100% - 40px));
}

.screenshot-rail {
    display: flex;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px max(20px, calc((100vw - 1180px) / 2)) 16px 0;
    scroll-snap-type: x mandatory;
}

.screenshot-rail figure {
    flex: 0 0 270px;
    margin: 0;
    scroll-snap-align: start;
}

.screenshot-rail img {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    border: 8px solid #211b14;
    border-radius: 32px;
    background: #211b14;
    box-shadow: 0 22px 46px -30px rgba(32, 26, 19, 0.8);
}

.screenshot-rail figcaption {
    padding: 12px 4px 0;
    color: var(--ink-muted);
    font-weight: 800;
    text-align: center;
}

.audience-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.audience-list article {
    min-height: 220px;
    padding: 28px 24px;
    border-right: 1px solid var(--line);
}

.audience-list article:last-child {
    border-right: 0;
}

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

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 249, 235, 0.72);
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 24px;
    color: var(--ink);
    font-weight: 800;
}

.faq-list p {
    margin: -4px 24px 22px;
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 80px;
    padding: clamp(34px, 6vw, 62px);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(32, 26, 19, 0.91), rgba(31, 59, 145, 0.9)),
        linear-gradient(180deg, var(--paper-soft), var(--paper));
    color: #fff;
    box-shadow: 0 28px 80px -52px rgba(32, 26, 19, 0.92);
}

.download-section .eyebrow,
.download-section p {
    color: rgba(255, 255, 255, 0.72);
}

.download-section h2 {
    color: #fff;
}

.download-panel {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.download-panel .store-button.primary {
    background: #fff;
    color: var(--ink);
}

.download-panel .store-button.dark {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.apk-download {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

.apk-download:hover,
.apk-download:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.checksum {
    margin: 0;
    font-size: 0.84rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 52px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--ink-blue);
}

:focus-visible {
    outline: 3px solid rgba(31, 59, 145, 0.32);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        border-radius: 24px;
    }

    .site-nav {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 56px;
    }

    .hero-visual {
        min-height: 570px;
        overflow: hidden;
    }

    .phone-main {
        transform: rotate(2deg) translateX(42px);
    }

    .phone-secondary {
        left: max(0px, 8vw);
    }

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

    .value-item.wide {
        grid-row: auto;
        min-height: 280px;
    }

    .audience-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience-list article:nth-child(2) {
        border-right: 0;
    }

    .audience-list article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 620px) {
    .site-header {
        position: static;
        width: min(100% - 24px, 1180px);
        margin-top: 12px;
    }

    .brand span {
        display: none;
    }

    .site-nav a {
        padding: 7px 8px;
        font-size: 0.86rem;
    }

    .hero,
    .section,
    .download-section,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding-top: 42px;
        gap: 16px;
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 3.8rem);
    }

    h2 {
        font-size: clamp(1.22rem, 6vw, 2.1rem);
    }

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

    .store-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 455px;
    }

    .phone-main {
        width: min(270px, 72vw);
        transform: rotate(2deg) translateX(38px);
    }

    .phone-secondary {
        width: min(182px, 45vw);
        bottom: 22px;
        left: 0;
    }

    .value-grid,
    .faq-list {
        gap: 10px;
    }

    .value-item {
        min-height: auto;
        border-radius: 22px;
    }

    .screenshot-section {
        padding-left: 12px;
    }

    .screenshot-rail {
        padding-right: 12px;
    }

    .screenshot-rail figure {
        flex-basis: min(184px, 72vw);
    }

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

    .audience-list article,
    .audience-list article:nth-child(2) {
        border-right: 0;
    }

    .audience-list article {
        min-height: auto;
        border-bottom: 1px solid var(--line);
    }

    .audience-list article:last-child {
        border-bottom: 0;
    }

    .download-section {
        padding: 28px 18px;
        border-radius: 26px;
    }

    .site-footer {
        flex-direction: column;
    }
}
