:root {
  --green: #0bb861;
  --green-dark: #07914b;
  --green-soft: #e9f9f1;
  --ink: #10251c;
  --muted: #5d776b;
  --line: #e3efe8;
  --bg: #f7fbf8;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(9, 80, 45, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 248, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 239, 232, .8);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(140deg, #16c96d, #07914b);
  box-shadow: 0 8px 18px -8px rgba(11, 184, 97, .8);
}

.brand-text { display: flex; align-items: baseline; gap: 6px; font-size: 15px; }
.brand-text em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: #355246; transition: color .2s; }
.nav a:hover { color: var(--green-dark); }
.nav-github {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero-glow-a { width: 460px; height: 460px; background: #b9f4d7; top: -120px; right: -80px; }
.hero-glow-b { width: 360px; height: 360px; background: #d8f3e4; bottom: -140px; left: -120px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--green-dark);
  font-weight: 600;
  text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(11, 184, 97, .14); }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(100deg, #0bb861 10%, #07914b 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { max-width: 520px; margin: 0 0 28px; font-size: 16px; color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #12c46b, #07914b);
  box-shadow: 0 16px 30px -14px rgba(7, 145, 75, .75);
}
.btn-primary:hover { box-shadow: 0 20px 36px -14px rgba(7, 145, 75, .85); }
.btn-ghost { background: #fff; border-color: var(--line); color: #214234; }
.btn-white { background: #fff; color: #0a5a35; }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-block { width: 100%; }

.hero-points { display: flex; gap: 18px; padding: 0; margin: 26px 0 0; list-style: none; font-size: 12px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* App mock */
.hero-visual { position: relative; }
.app-window {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfeee6;
  box-shadow: 0 40px 80px -40px rgba(7, 70, 40, .45);
  transform: rotate(-1.2deg);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #10251c;
  color: #cfe6d9;
}
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: #2d4a3d; }
.app-title { margin-left: 8px; font-size: 11px; letter-spacing: .04em; }
.app-body { display: flex; min-height: 330px; }
.app-side { width: 118px; padding: 16px 10px; background: #0d2c20; color: #c6dfd2; }
.side-item { display: flex; align-items: center; gap: 7px; font-size: 10px; padding: 8px 8px; border-radius: 8px; margin-bottom: 4px; opacity: .72; }
.side-item.active { background: rgba(11, 184, 97, .18); color: #fff; opacity: 1; }
.side-item i {
  width: 16px; height: 16px; display: grid; place-items: center;
  font-style: normal; font-size: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.side-item.active i { background: var(--green); }
.app-main { flex: 1; padding: 16px; background: #f8fcfa; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.mock-head b { display: block; font-size: 13px; }
.mock-head span { font-size: 10px; color: var(--muted); }
.mock-pill { padding: 3px 8px; border-radius: 999px; background: #e4f8ee; color: #078a48 !important; font-size: 10px !important; font-weight: 700; }
.mock-rows { display: grid; gap: 5px; }
.mock-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e8f2ec; border-radius: 8px;
  padding: 7px 9px; font-size: 10.5px; color: #28463a;
}
.mock-row em { margin-left: auto; font-style: normal; color: #93a89b; font-size: 9.5px; }
.ck { width: 11px; height: 11px; border-radius: 3px; border: 1px solid #b9d2c4; flex: 0 0 11px; }
.ck.on { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 2px #fff; }
.ck.lock { background: #dce9e1; border-color: #dce9e1; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 10px; color: var(--muted); }
.mock-btn { padding: 7px 14px; border-radius: 8px; background: linear-gradient(120deg, #12c46b, #07914b); color: #fff; font-weight: 700; }

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e2efe7;
  border-radius: 12px;
  box-shadow: 0 18px 34px -20px rgba(7, 70, 40, .5);
  font-size: 10px;
  color: var(--muted);
}
.float-card b { font-size: 9px; font-weight: 600; color: #7d968a; }
.float-card span { font-size: 14px; font-weight: 800; color: var(--ink); }
.float-a { right: -14px; top: 34px; transform: rotate(2deg); }
.float-b { left: -18px; bottom: 22px; transform: rotate(-2deg); }

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, #f0faf5, #f7fbf8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.kicker { margin: 0 0 10px; font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--green-dark); }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9e8d7; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--green-soft);
  font-size: 18px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 13px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li span { display: block; font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: .08em; margin-bottom: 8px; }
.steps li b { display: block; font-size: 15px; margin-bottom: 4px; }
.steps li p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Download */
.download-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.download-copy h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; }
.download-copy > p { margin: 0 0 18px; color: var(--muted); }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.release-meta span { padding: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.release-meta .version { background: var(--green-soft); border-color: #c9efdc; color: var(--green-dark); font-weight: 700; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.proxy-box { padding: 16px 18px; background: #fff; border: 1px dashed #cfe6d9; border-radius: 14px; margin-bottom: 14px; }
.proxy-box p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.proxy-links { display: flex; flex-wrap: wrap; gap: 8px; }
.proxy-links a {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  transition: background .2s;
}
.proxy-links a:hover { background: #d6f5e5; }
.download-note { font-size: 12px; color: #8aa094; margin: 0; }

.download-card { position: relative; }
.card-glow { position: absolute; inset: 18px -10px -10px; background: radial-gradient(circle at 30% 20%, #b9f4d7, transparent 60%); filter: blur(30px); opacity: .7; }
.download-card-inner {
  position: relative;
  padding: 30px;
  border-radius: 22px;
  color: #eafff3;
  background: linear-gradient(150deg, #0f3a29, #08261b 70%);
  box-shadow: 0 34px 70px -30px rgba(5, 50, 30, .8);
}
.os-badge { display: inline-block; padding: 4px 10px; font-size: 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #b9f4d7; }
.download-card h3 { margin: 16px 0 4px; font-size: 22px; color: #fff; }
.file-name { margin: 0 0 18px; font-size: 11.5px; color: #8fd9b1; word-break: break-all; }
.download-card ul { margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; color: #c8e8d7; }
.download-card li { padding: 4px 0; }
.download-card li::before { content: "✓"; color: #3fe08e; margin-right: 8px; font-weight: 800; }
.card-hint { margin: 12px 0 0; text-align: center; font-size: 11px; color: #79b894; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-wrap details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 10px;
}
.faq-wrap summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; position: absolute; right: 0; top: 13px; color: var(--green); font-size: 18px; }
.faq-wrap details[open] summary::after { content: "−"; }
.faq-wrap details p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }

/* CTA */
.cta { padding: 56px 0; background: linear-gradient(120deg, #0bb861, #067a43); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.cta p { margin: 0; color: #d6f7e6; font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0b2017; color: #b9d4c5; padding: 46px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand b { color: #fff; font-size: 14px; }
.footer-brand p { margin: 4px 0 0; font-size: 12px; color: #86a393; max-width: 360px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 11.5px; color: #6f8d7d; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #10251c;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .download-wrap { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav a:not(.nav-github) { display: none; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 36px; }
  .hero-points { flex-wrap: wrap; gap: 10px 16px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .float-a { right: 0; }
  .float-b { left: 0; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}
