:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: #e2e8f0;
  --accent: #0f172a;
  --accent-fg: #ffffff;
  --badge-bg: #f1f5f9;
  --code-bg: #0f172a;
  --code-fg: #f8fafc;
  --shadow-key: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-hero: 0 20px 50px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090d16;
    --surface: #111827;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --line: #1e293b;
    --accent: #f8fafc;
    --accent-fg: #090d16;
    --badge-bg: #1e293b;
    --code-bg: #050810;
    --code-fg: #e2e8f0;
    --shadow-key: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-hero: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.keycap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--shadow-key);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.keycap:hover {
  transform: translateY(-1px);
  border-color: var(--subtle);
}

.keycap.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.hero {
  padding: 68px 0 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  margin: 0 auto 16px;
  max-width: 860px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-row .keycap {
  padding: 11px 20px;
  font-size: 14.5px;
}

.hero-shot {
  margin: 0 auto;
  max-width: 980px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--surface);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.sec-sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-key);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 650;
  background: var(--badge-bg);
}

tr:last-child td {
  border-bottom: none;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 18px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
}

details.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 54px;
  color: var(--subtle);
  font-size: 13.5px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
