:root {
  --bg: #080c10;
  --bg-soft: #0d131a;
  --panel: #111a22;
  --panel-2: #16212b;
  --line: #1e2c38;
  --text: #e7eff5;
  --muted: #8ba0b0;
  --accent: #35d07f;
  --accent-2: #6be3a5;
  --warn: #f2b544;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(53, 208, 127, .16), transparent 62%),
    radial-gradient(700px 420px at 88% 0%, rgba(70, 150, 255, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 16, .78);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; color: var(--text); }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand span { font-size: 17px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, var(--accent), #24b46a);
  color: #04120a !important; border: 0;
}
.nav-cta:hover { filter: brightness(1.08); }

/* ---------------- hero ---------------- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 380px at 50% 20%, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--accent-2);
  border: 1px solid rgba(53,208,127,.35);
  background: rgba(53,208,127,.08);
  padding: 5px 12px; border-radius: 999px; letter-spacing: .3px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

h1 { font-size: 46px; line-height: 1.15; margin: 18px 0 14px; letter-spacing: -1px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 16.5px; max-width: 560px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
  transition: .16s ease;
}
.btn:hover { border-color: #2c3f4f; transform: translateY(-1px); color: #fff; }
.btn.primary { background: linear-gradient(180deg, var(--accent), #22b067); color: #04120a; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn small { font-weight: 500; color: rgba(4,18,10,.65); }

.meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.meta-row b { color: var(--text); font-weight: 600; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img {
  width: 300px; filter: drop-shadow(0 18px 44px rgba(53,208,127,.28));
}
.glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,208,127,.28), transparent 68%);
  filter: blur(6px); z-index: -1;
}

/* ---------------- sections ---------------- */
section { padding: 56px 0; }
.sec-head { margin-bottom: 26px; }
.sec-kicker { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
h2 { font-size: 27px; margin: 8px 0 8px; letter-spacing: -.4px; }
.sec-sub { color: var(--muted); max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel), rgba(17,26,34,.55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 22px; transition: .18s ease;
}
.card:hover { border-color: #2a3d4c; transform: translateY(-2px); }
.card h3 { font-size: 16px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 13.8px; }
.ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(53,208,127,.12); border: 1px solid rgba(53,208,127,.28); color: var(--accent-2);
}

/* code block */
.code {
  background: #070b0f; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-family: var(--mono); font-size: 12.8px; color: #b7c9d6;
  overflow-x: auto; line-height: 1.75;
}
.code .c { color: #5d7180; }
.code .k { color: var(--accent-2); }
.code-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #22313d; display: inline-block; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.step .n {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid rgba(53,208,127,.35); border-radius: 6px; padding: 2px 7px; display: inline-block;
}
.step h3 { font-size: 15.5px; margin: 12px 0 6px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; font-size: 12.5px; letter-spacing: .4px; white-space: nowrap; width: 1%; }
.table td code { font-family: var(--mono); font-size: 12.5px; color: #a8c0d0; }
.badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--accent-2); border-color: rgba(53,208,127,.35); background: rgba(53,208,127,.08); }

/* changelog */
.log-item { border-left: 2px solid var(--line); padding: 4px 0 22px 22px; position: relative; margin-left: 6px; }
.log-item::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(53,208,127,.14);
}
.log-item.dim::before { background: #2b3b48; box-shadow: none; }
.log-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.log-head b { font-size: 16px; }
.log-head time { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.log-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.8px; }
.log-item ul li { margin: 3px 0; }

/* docs */
.qa { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-soft); margin-bottom: 12px; }
.qa b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.qa p { margin: 0; color: var(--muted); font-size: 13.8px; }
.toc { position: sticky; top: 74px; align-self: start; font-size: 13.5px; }
.toc a { display: block; color: var(--muted); padding: 5px 0; }
.toc a:hover { color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 13px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

.note {
  border: 1px solid rgba(242,181,68,.3); background: rgba(242,181,68,.07);
  color: #e8cf9a; border-radius: 12px; padding: 14px 16px; font-size: 13.5px;
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
  h1 { font-size: 34px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .toc { position: static; }
}
