:root {
  --ink: #18221d;
  --muted: #607069;
  --paper: #f6f5ef;
  --surface: #fffefa;
  --surface-2: #e9efe9;
  --line: #cad4cc;
  --green: #2d6048;
  --green-dark: #173e2c;
  --lime: #d7ef74;
  --orange: #e9814a;
  --shadow: 0 18px 54px rgba(24, 34, 29, .1);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 30px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(24,34,29,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,34,29,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(202,212,204,.8); background: rgba(246,245,239,.9); backdrop-filter: blur(16px); }
.nav { min-height: 74px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 850; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; font-size: .94rem; font-weight: 650; }
.nav-links a:hover, .footer-links a:hover { color: var(--green); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: .55rem .75rem; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: var(--r-sm); font-weight: 750; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--green-dark); border-color: #bad65b; box-shadow: 0 8px 24px rgba(96,127,32,.16); }
.btn-dark { background: var(--green-dark); color: white; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.tag { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--green-dark); font-size: .82rem; font-weight: 760; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--lime); border-radius: 13px; font-size: 1.15rem; }

.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 1rem 0 1.2rem; font-size: clamp(2.75rem, 6.3vw, 5.9rem); line-height: .98; letter-spacing: -.065em; }
h2 { margin-bottom: .9rem; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin-bottom: .55rem; font-size: 1.18rem; line-height: 1.3; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.micro-stats { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .88rem; }
.micro-stats span { padding-right: .7rem; border-right: 1px solid var(--line); }
.micro-stats span:last-child { border: 0; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -12% 8% 5% -8%; z-index: -1; border-radius: 45% 55% 50% 50%; background: var(--lime); transform: rotate(-5deg); }
.hero-art img { width: 880px; height: auto; aspect-ratio: 880 / 700; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.section { padding: var(--space-5) 0; }
.section.alt { background: var(--green-dark); color: white; }
.section.alt .lead, .section.alt .card p { color: #b8c8bf; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head > div { max-width: 730px; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 6px 24px rgba(24,34,29,.045); }
.card p { margin-bottom: 0; color: var(--muted); }
.card .icon { margin-bottom: 1.1rem; }
.card-link { display: block; transition: .2s ease; }
.card-link:hover { transform: translateY(-4px); border-color: var(--green); }
.alt .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); box-shadow: none; }
.feature-row { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature-row strong { color: var(--green); font-size: 3rem; line-height: 1; letter-spacing: -.05em; }
.platform { text-align: center; }
.platform .icon { margin-inline: auto; }

.page-hero { padding: 4.5rem 0 2.5rem; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.6rem, 6vw, 5rem); }
.download-card { position: relative; overflow: hidden; }
.download-card.recommended { border: 2px solid var(--green); }
.ribbon { position: absolute; top: 1rem; right: -2.2rem; padding: .25rem 2.5rem; background: var(--lime); color: var(--green-dark); transform: rotate(35deg); font-size: .72rem; font-weight: 850; }
.specs { padding: 0; list-style: none; color: var(--muted); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.code { overflow-x: auto; padding: 1rem; border: 1px solid #355b47; border-radius: var(--r-sm); background: #10271b; color: #d7ef74; font: .9rem/1.65 Consolas, monospace; white-space: pre; }
.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--orange); background: #fff1e8; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: #65361d; }
.steps { counter-reset: step; }
.step { position: relative; padding: 0 0 2rem 4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-weight: 900; }
.step::after { content: ""; position: absolute; left: 1.3rem; top: 2.7rem; bottom: .1rem; border-left: 1px dashed var(--line); }
.step:last-child::after { display: none; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.15rem .2rem; font-weight: 760; }
details p { padding: 0 .2rem 1rem; color: var(--muted); }

.cta { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-lg); background: var(--lime); color: var(--green-dark); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta h2 { margin-bottom: .4rem; }
.cta p { margin-bottom: 0; max-width: 640px; }
.site-footer { padding: 4rem 0 1.5rem; background: #10271b; color: #dce7df; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid p { color: #9eb0a5; }
.footer-links { display: grid; gap: .55rem; color: #bdccc3; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #31513f; color: #8fa298; font-size: .8rem; }

@media (max-width: 900px) {
  .hero-grid, .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; inset: 74px 0 auto; padding: 1rem 16px 1.4rem; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.is-open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 660px) {
  .hero-grid, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .section { padding: 3.5rem 0; }
  .section-head, .cta, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .feature-row { grid-template-columns: 70px 1fr; }
  .feature-row strong { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
