:root {
    --bg: #f7faf8;
    --surface: #ffffff;
    --surface-soft: #eef7f2;
    --text: #142019;
    --muted: #637169;
    --line: #dfe8e3;
    --green: #45bd83;
    --green-dark: #238e5c;
    --green-soft: #dff5e9;
    --dark: #17231d;
    --container: min(1120px, calc(100vw - 48px));
    --font: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --shadow: 0 18px 50px rgba(31, 77, 54, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    color: inherit;
    font: inherit;
}

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

img,
svg {
    display: block;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 99;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    color: #fff;
    background: var(--dark);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 72px;
    border-bottom: 1px solid rgba(223, 232, 227, 0.9);
    background: rgba(247, 250, 248, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 7px 20px rgba(48, 156, 106, 0.18);
}

.brand span {
    display: grid;
    line-height: 1.1;
}

.brand strong {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.brand small {
    margin-top: 5px;
    color: #7a8a81;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 70px;
}

.main-nav a {
    position: relative;
    color: #45534b;
    font-size: 14px;
    transition: color 160ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--green);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform 160ms ease;
}

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

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-download {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 16px;
    color: #fff;
    background: var(--dark);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

.header-download svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-download:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
}

.hero {
    padding: 82px 0 72px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    justify-items: center;
    text-align: center;
}

.app-mark {
    position: relative;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
}

.app-mark img {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border: 5px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(45, 136, 94, 0.24);
    animation: float 4.5s ease-in-out infinite;
}

.ring {
    position: absolute;
    border: 1px solid rgba(69, 189, 131, 0.2);
    border-radius: 50%;
}

.ring-one {
    width: 104px;
    height: 104px;
}

.ring-two {
    width: 150px;
    height: 150px;
    border-color: rgba(69, 189, 131, 0.09);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--green-dark);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(69, 189, 131, 0.12);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 780;
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.hero h1 em {
    color: var(--green-dark);
    font-style: normal;
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 720;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

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

.button-primary {
    min-width: 210px;
    color: #fff;
    background: var(--green-dark);
    box-shadow: 0 12px 30px rgba(35, 142, 92, 0.2);
}

.button-primary:hover {
    background: #197b4d;
    box-shadow: 0 16px 36px rgba(35, 142, 92, 0.25);
}

.button-ghost {
    min-width: 138px;
    color: #324138;
    background: var(--surface);
    border: 1px solid var(--line);
}

.button-ghost:hover {
    background: var(--surface-soft);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
}

.hero-meta span {
    display: grid;
    color: #85928b;
    font-size: 11px;
}

.hero-meta strong {
    margin-bottom: 1px;
    color: #344239;
    font-size: 12px;
    font-weight: 720;
}

.hero-meta i {
    width: 1px;
    height: 25px;
    background: var(--line);
}

.features {
    padding: 72px 0 78px;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 48px;
    text-align: center;
}

.section-heading p,
.version-label {
    margin: 0 0 7px;
    color: var(--green-dark);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading h2,
.download-panel h2 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

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

.feature-item {
    padding: 8px 46px 4px;
    text-align: center;
}

.feature-item + .feature-item {
    border-left: 1px solid var(--line);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 17px;
}

.feature-icon svg {
    width: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.feature-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 740;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.download-section {
    padding: 64px 0;
}

.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 42px 48px;
    background: var(--green-soft);
    border: 1px solid #c9ead8;
    border-radius: 24px;
}

.download-panel > div:first-child > p:last-child {
    margin: 10px 0 0;
    color: #56665d;
    font-size: 14px;
}

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

.button-dark {
    min-width: 154px;
    color: #fff;
    background: var(--dark);
}

.button-dark:hover {
    background: var(--green-dark);
}

.hash-button {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 12px;
    padding: 7px 40px 7px 14px;
    position: relative;
    color: #344239;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(74, 123, 97, 0.16);
    border-radius: 11px;
    cursor: pointer;
    text-align: left;
}

.hash-button span {
    grid-column: 1 / -1;
    color: #748079;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.hash-button strong {
    font-family: var(--mono);
    font-size: 11px;
}

.hash-button svg {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.notes {
    padding: 34px 0 76px;
}

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

.note-list {
    max-width: 860px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
}

.note-list details {
    border-bottom: 1px solid var(--line);
}

.note-list summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 680;
}

.note-list summary::-webkit-details-marker {
    display: none;
}

.note-list summary svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #7a8981;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
}

.note-list details[open] summary svg {
    transform: rotate(180deg);
}

.note-list details > p {
    margin: -4px 52px 22px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.note-list details a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.note-list code {
    padding: 2px 5px;
    color: #1c6f49;
    background: var(--green-soft);
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 12px;
}

.site-footer {
    padding: 30px 0;
    color: #718078;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-brand span {
    display: grid;
    line-height: 1.3;
}

.footer-brand strong {
    color: var(--text);
    font-size: 13px;
}

.footer-brand small {
    font-size: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a,
.site-footer p {
    margin: 0;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--green-dark);
}

.toast {
    position: fixed;
    z-index: 50;
    right: 22px;
    bottom: 22px;
    padding: 10px 15px;
    color: #fff;
    background: var(--dark);
    border-radius: 9px;
    box-shadow: var(--shadow);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
    opacity: 1;
    transform: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
    .main-nav {
        gap: 22px;
        margin-left: 38px;
    }

    .feature-item {
        padding-inline: 28px;
    }

    .download-panel {
        padding: 36px;
    }

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

@media (max-width: 720px) {
    :root {
        --container: calc(100vw - 32px);
    }

    html {
        scroll-padding-top: 72px;
    }

    .site-header {
        height: 64px;
    }

    .brand img {
        width: 35px;
        height: 35px;
    }

    .brand strong {
        font-size: 14px;
    }

    .header-download {
        display: none;
    }

    .menu-button {
        width: 38px;
        height: 38px;
        display: grid;
        place-content: center;
        gap: 6px;
        margin-left: auto;
        padding: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .menu-button span {
        width: 17px;
        height: 1px;
        background: var(--text);
        transition: transform 160ms ease;
    }

    .menu-button[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-button[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        background: var(--surface-soft);
    }

    .hero {
        padding: 62px 0 54px;
    }

    .app-mark {
        width: 86px;
        height: 86px;
        margin-bottom: 22px;
    }

    .app-mark img {
        width: 66px;
        height: 66px;
        border-radius: 20px;
    }

    .ring-one {
        width: 86px;
        height: 86px;
    }

    .ring-two {
        width: 124px;
        height: 124px;
    }

    .hero h1 {
        margin-top: 16px;
        font-size: clamp(40px, 12vw, 54px);
    }

    .hero-lead {
        max-width: 480px;
        font-size: 15px;
    }

    .hero-lead br {
        display: none;
    }

    .hero-actions {
        width: 100%;
        max-width: 420px;
        display: grid;
    }

    .button-primary,
    .button-ghost {
        width: 100%;
    }

    .hero-meta {
        gap: 14px;
        margin-top: 26px;
    }

    .hero-meta span {
        font-size: 9px;
    }

    .hero-meta strong {
        font-size: 10px;
    }

    .features {
        padding: 56px 0 28px;
    }

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

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

    .feature-item {
        max-width: 500px;
        margin-inline: auto;
        padding: 24px 12px 30px;
    }

    .feature-item + .feature-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .download-section {
        padding: 44px 0;
    }

    .download-panel {
        display: grid;
        gap: 28px;
        padding: 28px 22px;
        text-align: center;
        border-radius: 19px;
    }

    .download-actions {
        width: 100%;
    }

    .hash-button {
        text-align: left;
    }

    .notes {
        padding: 24px 0 54px;
    }

    .note-list summary {
        font-size: 14px;
    }

    .note-list details > p {
        margin-right: 0;
        font-size: 13px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 40px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .hero-meta {
        gap: 10px;
    }

    .hero-meta i {
        height: 22px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
