:root {
    --green: #316531;
    --green-hover: #3f7741;
    --green-light: #a4cba5;
    --bg: #0f120f;
    --bg-muted: #121612;
    --panel: #171c18;
    --panel-raised: #1b221c;
    --text: #edf1ed;
    --muted: #a2aca3;
    --subtle: #788279;
    --border: #2a342b;
    --border-strong: #435946;
    --radius: 10px;
    --radius-small: 7px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.intro-active {
    overflow: hidden;
}

a {
    color: inherit;
}

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

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 18, 15, 0.94);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(15, 18, 15, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    object-fit: cover;
}

.brand-name {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-name em {
    color: var(--green-light);
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a,
.header-back {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-back:hover,
.header-back:focus-visible {
    border-color: var(--border);
    background: var(--panel);
    color: var(--text);
    outline: none;
}

.site-nav .repo-link {
    color: var(--green-light);
}

.site-nav .icon {
    width: 15px;
    height: 15px;
}

.header-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: var(--radius-small);
    padding: 0 14px;
    background: var(--green);
    color: #f1f8f1;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
    border-color: var(--green-hover);
    background: var(--green-hover);
    outline: none;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--bg);
    opacity: 1;
    transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}

.intro::after {
    position: absolute;
    bottom: 32px;
    left: 50%;
    width: 64px;
    height: 1px;
    background: var(--green);
    content: "";
    transform: translateX(-50%);
}

.intro.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.intro-sequence {
    position: relative;
    display: grid;
    min-width: min(90vw, 580px);
    min-height: 1.25em;
    place-items: center;
    color: var(--text);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    text-align: center;
}

.intro-step {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(1.32);
    transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

.intro-step.is-visible {
    opacity: 1;
    transform: scale(1);
}

.intro-step.is-leaving {
    opacity: 0;
    transform: scale(0.84);
}

.intro-step-number,
.intro-step-full em {
    color: var(--green-light);
    font-style: normal;
}

.intro-step-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
}

.intro-skip {
    position: absolute;
    right: 24px;
    bottom: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 7px 11px;
    background: transparent;
    color: var(--subtle);
    cursor: pointer;
    font-size: 0.78rem;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.intro-skip:hover,
.intro-skip:focus-visible {
    border-color: var(--border-strong);
    background: var(--panel);
    color: var(--text);
    outline: none;
}

.hero {
    border-bottom: 1px solid var(--border);
    padding: 148px 0 92px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(40px, 8vw, 108px);
}

.eyebrow {
    margin: 0 0 20px;
    border-left: 3px solid var(--green);
    padding-left: 10px;
    color: var(--green-light);
    font-size: 0.8rem;
    font-weight: 650;
}

.hero h1 {
    max-width: 680px;
    margin: 0 0 20px;
    font-size: clamp(3.1rem, 6vw, 5.2rem);
    font-weight: 650;
    letter-spacing: -0.075em;
    line-height: 1.02;
}

.hero h1 span,
.download-intro h1 span {
    color: var(--green-light);
}

.hero-lede {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    padding: 0 15px;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:focus-visible {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

.button-primary {
    border-color: var(--green);
    background: var(--green);
    color: #f1f8f1;
}

.button-primary:hover {
    border-color: var(--green-hover);
    background: var(--green-hover);
}

.button-secondary {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--green);
    background: var(--panel);
}

.hero-actions .icon,
.button .icon {
    width: 16px;
    height: 16px;
}

.hero-facts,
.download-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.hero-facts div,
.download-facts div {
    min-width: 0;
}

.hero-facts dt,
.download-facts dt {
    color: var(--subtle);
    font-size: 0.72rem;
}

.hero-facts dd,
.download-facts dd {
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    color: var(--text);
    font-size: 0.8rem;
}

.hero-card {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-card-head,
.download-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hero-card-head {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.hero-card-head img {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    object-fit: cover;
}

.hero-card-head strong,
.hero-card-head span {
    display: block;
}

.hero-card-head strong {
    font-size: 1.05rem;
    font-weight: 650;
}

.hero-card-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.quick-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 4px 20px;
    list-style: none;
}

.quick-list li {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.86rem;
}

.quick-list li:last-child {
    border-bottom: 0;
}

.quick-list .icon {
    width: 16px;
    height: 16px;
    color: var(--green-light);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-light);
    font-size: 0.82rem;
    text-decoration: none;
}

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

.text-link .icon {
    width: 15px;
    height: 15px;
}

.section {
    padding: 88px 0;
}

.section-muted {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-kicker {
    margin: 0 0 9px;
    color: var(--green-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-heading h2,
.project-grid h2,
.cta h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 1.1;
}

.section-heading > p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.feature-grid {
    display: grid;
    gap: 12px;
}

.feature-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
}

.feature-card {
    position: relative;
    min-height: 240px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--panel);
    transition: border-color 160ms ease, background 160ms ease;
}

.feature-card:hover {
    border-color: var(--border-strong);
    background: var(--panel-raised);
}

.feature-number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: var(--subtle);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.75rem;
}

.feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 35px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    color: var(--green-light);
}

.feature-icon .icon {
    width: 18px;
    height: 18px;
}

.feature-card h3 {
    margin: 0 0 9px;
    font-size: 1.1rem;
    font-weight: 650;
}

.feature-card p,
.project-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    align-items: start;
    gap: clamp(40px, 9vw, 120px);
}

.project-copy {
    max-width: 600px;
    margin: 18px 0 24px;
}

.project-facts {
    margin: 0;
    border-top: 1px solid var(--border);
}

.project-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    padding: 13px 0;
}

.project-facts dt {
    color: var(--subtle);
    font-size: 0.78rem;
}

.project-facts dd {
    margin: 0;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8rem;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 28px 30px;
    background: var(--panel);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 22px;
    background: #0c0f0c;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 28px;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--subtle);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 7px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    color: var(--subtle);
    font-size: 0.72rem;
}

.footer-bottom p {
    margin: 0;
}

.download-main {
    border-bottom: 1px solid var(--border);
    padding: 138px 0 78px;
}

.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
    gap: clamp(35px, 8vw, 105px);
}

.download-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 650;
    letter-spacing: -0.08em;
    line-height: 1;
}

.download-intro > p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.85;
}

.download-facts {
    margin-top: 26px;
}

.download-intro .text-link {
    margin-top: 22px;
}

.download-card {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.download-card-top {
    margin-bottom: 24px;
}

.download-logo {
    width: 58px;
    height: 58px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    object-fit: cover;
}

.download-card-top h2 {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 650;
}

.download-card-top p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.download-status {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 11px 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.download-status .icon {
    width: 16px;
    height: 16px;
    color: var(--green-light);
}

.download-link {
    width: 100%;
}

.download-card-note {
    margin: 14px 0 0;
    color: var(--subtle);
    font-size: 0.75rem;
    line-height: 1.65;
}

.download-url {
    overflow-wrap: anywhere;
    margin: 19px 0 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    color: var(--subtle);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.68rem;
}

.ads-section {
    padding: 72px 0 88px;
    background: var(--bg-muted);
}

.ads-heading {
    margin-bottom: 25px;
}

.ads-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 650;
    letter-spacing: -0.06em;
}

.ads-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ad-card {
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color 160ms ease, background 160ms ease;
}

.ad-card:hover {
    border-color: var(--border-strong);
    background: var(--panel-raised);
}

.ad-card-placeholder:hover {
    border-color: var(--border);
    background: var(--panel);
}

.ad-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.ad-image {
    height: 170px;
    overflow: hidden;
    background: #1a211b;
}

.ad-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.ad-card:hover .ad-image img {
    transform: scale(1.025);
}

.ad-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
}

.ad-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0 8px;
    color: var(--green-light);
    font-size: 0.67rem;
}

.ad-content h3 {
    margin: 11px 0 7px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
}

.ad-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.6;
}

.ad-placeholder {
    display: grid;
    min-height: 100%;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px 18px;
    text-align: center;
}

.ad-placeholder .icon {
    width: 27px;
    height: 27px;
    color: var(--subtle);
}

.ad-placeholder h3 {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
}

.ad-placeholder p {
    margin: 0;
    color: var(--subtle);
    font-size: 0.76rem;
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .header-action {
        margin-left: auto;
    }

    .hero-grid,
    .download-layout,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 620px;
    }

    .download-intro {
        max-width: 650px;
    }

    .project-facts {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 32px), 560px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 0.94rem;
    }

    .header-action {
        min-height: 36px;
        padding: 0 11px;
        font-size: 0.78rem;
    }

    .hero,
    .download-main {
        padding-top: 118px;
    }

    .hero {
        padding-bottom: 70px;
    }

    .hero h1,
    .download-intro h1 {
        font-size: clamp(2.9rem, 14vw, 4.5rem);
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-facts,
    .download-facts {
        gap: 9px;
    }

    .hero-facts dd,
    .download-facts dd {
        font-size: 0.74rem;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 22px;
    }

    .section-heading > p {
        margin-top: 12px;
    }

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

    .feature-card {
        min-height: 0;
    }

    .cta {
        display: block;
        padding: 24px;
    }

    .cta .button {
        margin-top: 20px;
    }

    .footer-main,
    .footer-bottom {
        display: block;
    }

    .footer-links {
        margin-top: 20px;
    }

    .footer-bottom p + p {
        margin-top: 7px;
    }

    .download-layout {
        gap: 30px;
    }

    .download-card {
        padding: 22px;
    }

    .ad-image {
        height: 200px;
    }
}

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