:root {
  --bg: #0b0e12;
  --bg-soft: #10151b;
  --panel: #141a21;
  --panel-2: #1a222b;
  --border: #25313d;
  --text: #e8edf3;
  --muted: #95a3b3;
  --accent: #5b9cff;
  --accent-soft: #17304f;
  --teal: #3fd0a4;
  --amber: #f0b46b;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 18, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #07101c;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  background: var(--panel-2); color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #222c37; border-color: #354455; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #07101c; }
.btn.primary:hover { background: #7cb0ff; }
.btn.ghost { background: transparent; }
.btn.large { padding: 13px 22px; font-size: 15px; }

.hero { padding: 84px 0 56px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--muted); font-size: 12px; background: var(--panel); }
.pill.teal { color: var(--teal); border-color: #1c5a49; }

.hero-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.hero-card .card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.hero-card pre {
  margin: 0; padding: 14px; border-radius: 10px;
  background: #0a0e13; border: 1px solid var(--border);
  color: #a9c2dd; font-family: var(--mono); font-size: 11.5px;
  line-height: 1.6; overflow: auto; max-height: 210px;
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; font-family: var(--mono); font-size: 12px; }

.section { padding: 62px 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 30px; }
.section-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 680px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.icon-box {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.check-list b { color: var(--text); font-weight: 500; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.callout {
  border: 1px solid #2b4a6b; background: #122033;
  border-radius: var(--radius); padding: 20px 22px;
}
.callout b { color: var(--accent); font-weight: 600; }
.callout p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.download-hero { padding: 72px 0 40px; }
.download-hero h1 { margin: 0 0 12px; font-size: 42px; font-weight: 650; letter-spacing: -0.02em; }
.download-hero p { color: var(--muted); margin: 0; max-width: 640px; font-size: 17px; }
.download-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.download-card h3 { margin: 0 0 4px; font-size: 20px; }
.download-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.code-block {
  background: #0a0e13; border: 1px solid var(--border); border-radius: 9px;
  padding: 12px; font-family: var(--mono); font-size: 11.5px;
  color: #9fb8d2; word-break: break-all; line-height: 1.6;
}
.code-label { color: var(--muted); font-size: 12px; margin: 14px 0 6px; }
.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.spec td:first-child { color: var(--muted); width: 38%; }
.spec tr:last-child td { border-bottom: 0; }

.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero, .grid-2, .download-grid { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 12px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1120px); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 52px; }
}
