:root {
  --ink: #070d09;
  --ink-2: #0c140f;
  --panel: #101a13;
  --panel-2: #142018;
  --paper: #e8eee8;
  --text: #e9f0ea;
  --text-2: #b6c4b9;
  --muted: #7f9385;
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .06);
  --green: #55b889;
  --green-2: #2f7d5b;
  --green-3: #8bddb2;
  --amber: #d9a05d;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(85, 184, 137, .32); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
code, .mono { font-family: var(--mono); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2b3b30; border-radius: 10px; border: 2px solid var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 34px;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(7, 13, 9, .78);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 29px; height: 29px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.brand-word { font-size: 14px; font-weight: 900; letter-spacing: 2.5px; color: #fff; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .8px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(85, 184, 137, .4);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-cta span { opacity: .65; }
.nav-cta:hover { background: rgba(85, 184, 137, .13); border-color: var(--green); color: #fff; }

/* ---------- shared ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 34px; }
.section-head { display: flex; align-items: flex-end; gap: 50px; margin-bottom: 44px; }
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.6px;
  color: var(--green);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.5px;
}
.section-lede {
  max-width: 390px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(85,184,137,.13); margin-right: 9px; animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(85,184,137,0); } }

.btn {
  height: 48px;
  padding: 0 21px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--green-2);
  border-color: rgba(139, 221, 178, .28);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover { background: #368f68; box-shadow: 0 14px 36px rgba(0,0,0,.35); transform: translateY(-1px); }
.btn-quiet { border-color: var(--line); color: var(--text-2); background: rgba(255,255,255,.02); }
.btn-quiet:hover { border-color: rgba(85,184,137,.45); color: #fff; background: rgba(85,184,137,.06); }
.btn-version { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.6); font-weight: 500; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.btn span { font-size: 15px; opacity: .8; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 34px 90px;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.02);
  z-index: -3;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,10,7,.99) 0%, rgba(5,10,7,.88) 32%, rgba(5,10,7,.32) 68%, rgba(5,10,7,.52) 100%),
    linear-gradient(0deg, rgba(5,10,7,.98) 0%, rgba(5,10,7,.12) 46%, rgba(5,10,7,.65) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(700px 500px at 30% 45%, #000, transparent 82%);
  opacity: .55;
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: end;
  gap: 60px;
}
.hero-copy { padding-top: 30px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2.5px;
  color: #b7cfbf;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(92px, 15.5vw, 218px);
  line-height: .78;
  font-weight: 900;
  letter-spacing: -9px;
  color: #f2f7f3;
  margin-left: -8px;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .4);
}
.accent-dot { color: var(--green); letter-spacing: 0; }
.hero-title { font-size: 21px; font-weight: 700; letter-spacing: 7px; color: var(--green-3); margin-top: 18px; }
.hero-desc { color: #b3c3b7; font-size: 14px; line-height: 2; margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 10.5px; color: #889d8f; font-family: var(--mono); }
.hero-note b { color: #d8e6dc; font-weight: 600; }
.hero-note .sep { margin: 0 9px; color: #4b5c50; }

.terminal {
  align-self: end;
  margin-bottom: 8px;
  border: 1px solid rgba(155, 196, 171, .22);
  border-radius: 12px;
  background: rgba(8, 15, 10, .68);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  transform: rotate(-.6deg);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a4a3e; }
.terminal-bar i:first-child { background: #8f5b58; }
.terminal-bar i:nth-child(2) { background: #a28a54; }
.terminal-bar i:nth-child(3) { background: #4d8b68; }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 8.5px; color: #63796a; letter-spacing: .5px; }
.terminal-body { padding: 18px 17px 16px; font-family: var(--mono); font-size: 10px; line-height: 2; color: #b9cbbd; }
.terminal-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-body .prompt { color: var(--green); }
.terminal-body .dim { color: #5f7467; font-size: 9px; }
.terminal-body .ok { color: var(--green-3); }
.terminal-body .status { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.1); color: #8fcba8; }
.terminal-foot { padding: 8px 16px; border-top: 1px solid rgba(255,255,255,.07); font-family: var(--mono); font-size: 7.5px; letter-spacing: 1.2px; color: #5f7467; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: 2px; color: #6d8173; }
.hero-scroll i { width: 1px; height: 26px; background: linear-gradient(var(--green), transparent); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #09110c; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; color: #64796b; font-family: var(--mono); font-size: 9px; letter-spacing: 2px; animation: marquee 34s linear infinite; }
.marquee-track b { color: #2f4436; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { position: relative; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.feature {
  position: relative;
  padding: 31px 27px 27px;
  background: var(--ink);
  min-height: 245px;
  transition: background .25s;
}
.feature:hover { background: #0c1610; }
.feature-icon { font-family: var(--mono); font-size: 21px; color: var(--green); height: 30px; margin-bottom: 23px; }
.feature-no { position: absolute; right: 25px; top: 28px; font-family: var(--mono); font-size: 9px; color: #46594c; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; letter-spacing: .2px; }
.feature p { color: var(--muted); font-size: 11.5px; line-height: 1.9; max-width: 330px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.feature-tags span { font-family: var(--mono); font-size: 8px; color: #7d9a87; border: 1px solid rgba(125,154,135,.2); border-radius: 3px; padding: 3px 6px; letter-spacing: .4px; }

/* ---------- screens ---------- */
.screens { padding-top: 80px; }
.screen-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.screen { margin: 0; }
.screen-frame { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 70px rgba(0,0,0,.28); transition: transform .5s, border-color .3s; }
.screen:hover .screen-frame { transform: translateY(-4px); border-color: rgba(85,184,137,.3); }
.screen-top { height: 27px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #0c1510; border-bottom: 1px solid var(--line-soft); }
.screen-top i { width: 5px; height: 5px; border-radius: 50%; background: #33463a; }
.screen-top span { margin-left: auto; font-family: var(--mono); font-size: 7px; letter-spacing: 1px; color: #52665a; }
.screen img { width: 100%; height: auto; }
.screen:first-child { margin-top: 38px; }
.screen figcaption { display: flex; gap: 12px; align-items: baseline; padding: 13px 2px 0; }
.screen figcaption b { font-size: 12px; color: #dfe9e1; }
.screen figcaption span { font-size: 10px; color: var(--muted); }

/* ---------- download ---------- */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #101b14, #0a120d);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.download-copy { padding: 48px 46px 44px; }
.download-copy h2 { font-size: clamp(34px, 4.5vw, 55px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.download-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.9; max-width: 520px; margin-top: 19px; }
.download-desc code, .download-hint code { font-family: var(--mono); color: var(--green-3); background: rgba(85,184,137,.08); padding: 1px 5px; border-radius: 3px; font-size: .92em; }
.download-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); margin-top: 27px; border: 1px solid var(--line-soft); }
.download-meta div { background: #0b140e; padding: 12px 13px; }
.download-meta span { display: block; font-size: 8.5px; color: #6e8275; font-family: var(--mono); letter-spacing: .5px; }
.download-meta b { display: block; font-size: 12px; margin-top: 3px; }
.download-actions { display: flex; gap: 9px; margin-top: 25px; flex-wrap: wrap; }
.download-sha { margin-top: 16px; font-family: var(--mono); font-size: 8.5px; color: #607569; word-break: break-all; line-height: 1.8; }
.download-sha code { color: #92b6a0; }
.download-hint { margin-top: 17px; font-size: 10px; color: #6f8175; line-height: 1.8; }
.download-aside { border-left: 1px solid var(--line-soft); padding: 36px 30px; background: url("assets/hero.jpg") center 50% / cover; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 450px; isolation: isolate; }
.download-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,12,8,.98), rgba(6,12,8,.55) 55%, rgba(6,12,8,.78)); z-index: -1; }
.download-badge { font-size: 74px; line-height: .9; font-weight: 900; letter-spacing: -4px; color: rgba(255,255,255,.9); margin-bottom: auto; }
.download-badge span { color: var(--green); }
.download-list p { display: flex; gap: 12px; align-items: baseline; font-size: 10.5px; color: #c4d2c8; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.download-list p span { font-family: var(--mono); font-size: 8px; color: var(--green); }
.download-version-line { margin-top: 18px; font-family: var(--mono); font-size: 8.5px; color: #8fb9a0; }

/* ---------- changelog ---------- */
.timeline { border-top: 1px solid var(--line-soft); }
.release { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.release-version b { display: block; font-family: var(--mono); font-size: 21px; color: var(--green-3); letter-spacing: .5px; }
.release-version span { font-family: var(--mono); font-size: 8.5px; color: #64786b; }
.release-body h3 { font-size: 17px; margin-bottom: 10px; }
.release-body ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11.5px; line-height: 2; }
.release-body li::marker { color: var(--green); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 2px; font-size: 13px; font-weight: 600; color: #dbe6de; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--green); font-size: 15px; width: 14px; }
.faq details[open] summary::before { content: "−"; }
.faq details p { padding: 0 0 22px 30px; color: var(--muted); font-size: 11.5px; line-height: 1.9; max-width: 780px; }
.faq details p code { color: var(--green-3); background: rgba(85,184,137,.08); padding: 1px 5px; border-radius: 3px; }

/* ---------- cta / footer ---------- */
.cta { max-width: var(--max); margin: 0 auto; padding: 10px 34px 120px; }
.cta-inner { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0 76px; text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.22; letter-spacing: -1px; font-weight: 800; }
.cta-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.footer { max-width: var(--max); margin: 0 auto; padding: 28px 34px 38px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand span:last-child { font-size: 10px; color: var(--muted); }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 8.5px; color: #5f7366; font-family: var(--mono); }
.footer-links { margin-left: auto; display: flex; gap: 16px; font-size: 9px; color: #718577; }
.footer-links a:hover { color: var(--green-3); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  z-index: 100;
  padding: 10px 16px;
  border: 1px solid rgba(85,184,137,.35);
  border-radius: 7px;
  background: rgba(10,18,12,.94);
  color: #d9e8dd;
  font-size: 11px;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding: 118px 20px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .terminal { max-width: 420px; transform: none; }
  .hero h1 { font-size: clamp(88px, 22vw, 160px); letter-spacing: -6px; }
  .section { padding: 76px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-lede { margin-left: 0; max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .screen-stage { grid-template-columns: 1fr; }
  .screen:first-child { margin-top: 0; }
  .download-panel { grid-template-columns: 1fr; }
  .download-aside { min-height: 320px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .download-copy { padding: 34px 24px; }
  .download-meta { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; gap: 10px; }
  .footer { padding: 24px 20px 30px; }
  .footer-meta, .footer-links { margin-left: 0; }
}
@media (max-width: 600px) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 96px; letter-spacing: -4px; }
  .hero-title { font-size: 15px; letter-spacing: 4px; }
  .hero-desc { font-size: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .terminal-body { font-size: 9px; }
  .download-badge { font-size: 54px; }
  .cta { padding: 0 20px 84px; }
  .cta-inner { padding: 55px 0; }
  .download-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .pulse { animation: none; }
}
