:root {
  --bg: #fbfbfc;
  --bg-elev: #ffffff;
  --surface: #f4f4f5;
  --surface-hover: #efeff1;
  --border: #e6e6e9;
  --border-strong: #d6d6db;
  --text: #18181b;
  --text-dim: #6b6b76;
  --text-faint: #a0a0ab;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .08);
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05);
  --shadow-md: 0 2px 4px rgba(16, 16, 24, .04), 0 12px 28px rgba(16, 16, 24, .08);
  --topbar-h: 60px;
  --maxw: 1120px;
}

html[data-theme="dark"] {
  --bg: #09090b;
  --bg-elev: #111113;
  --surface: #18181b;
  --surface-hover: #1f1f23;
  --border: #26262a;
  --border-strong: #3a3a40;
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-faint: #6b6b76;
  --accent: #6ea8fe;
  --accent-soft: rgba(110, 168, 254, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #09090b;
    --bg-elev: #111113;
    --surface: #18181b;
    --surface-hover: #1f1f23;
    --border: #26262a;
    --border-strong: #3a3a40;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --text-faint: #6b6b76;
    --accent: #6ea8fe;
    --accent-soft: rgba(110, 168, 254, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .45);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; display: inline-block; }

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { display: flex; width: 28px; height: 28px; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.brand-tag {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  padding: 1px 7px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { font-size: 13px; color: var(--text-dim); transition: color .14s; }
.nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s;
}
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12px; background: var(--surface); color: var(--text-dim); }
.btn-sm:hover { background: var(--surface-hover); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #0b1220; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .btn-primary { color: #0b1220; } }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); opacity: .88; }
.btn-ghost { background: var(--bg-elev); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* hero */
.hero { border-bottom: 1px solid var(--border); padding: 84px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow, .kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.18; letter-spacing: -2px; font-weight: 720; margin: 20px 0 22px; }
h1 span { color: var(--text-dim); }
.hero-lead { font-size: 15px; color: var(--text-dim); max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 28px; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; }
.meta-check { color: var(--accent); font-weight: 700; margin-right: 4px; }

/* console card */
.console {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 12px;
}
.console-top {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.console-title { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.console-led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.console-badge { font-size: 10px; letter-spacing: .8px; color: var(--accent); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; font-family: ui-monospace, monospace; }
.console-body { padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.console-row { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; align-items: center; }
.console-label { color: var(--text-dim); font-size: 12px; }
.console-value { justify-self: end; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.console-value small { font-size: 10px; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; opacity: .85; }
.console-log {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.log-t { color: var(--text-faint); margin-right: 8px; }
.log-ok { color: var(--accent); margin-right: 5px; }
.console-foot { border-top: 1px solid var(--border); padding: 10px 14px; color: var(--text-faint); font-size: 10px; font-family: ui-monospace, monospace; background: var(--surface); }

/* sections */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-elev); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -1.2px; line-height: 1.3; font-weight: 680; margin-top: 12px; }
.section-head > p { color: var(--text-dim); font-size: 13px; max-width: 400px; line-height: 1.8; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 304px;
  transition: border-color .14s, background .14s;
}
.card:hover { border-color: var(--border-strong); }
.section-alt .card { background: var(--bg); }
.card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card h3 { font-size: 16px; font-weight: 650; letter-spacing: -.3px; margin-bottom: 9px; }
.card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }
.card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.card li { font-size: 12px; color: var(--text-dim); padding-left: 14px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  font-family: ui-monospace, monospace;
  letter-spacing: .8px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
}
.section-note { margin-top: 22px; font-size: 12.5px; color: var(--text-dim); }
.section-note a { color: var(--accent); border-bottom: 1px solid var(--border-strong); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { border-left: 1px solid var(--border); padding-left: 18px; }
.feature-num { font-size: 11px; font-family: ui-monospace, monospace; color: var(--accent); letter-spacing: 1px; }
.feature h3 { font-size: 15px; font-weight: 650; margin: 8px 0 8px; }
.feature p { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.step-num { font-size: 11px; font-family: ui-monospace, monospace; color: var(--text-faint); letter-spacing: 1px; }
.steps h3 { font-size: 15px; font-weight: 650; margin: 12px 0 8px; }
.steps p { font-size: 12.5px; color: var(--text-dim); }
.stack { display: flex; align-items: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.stack-label { font-size: 11px; color: var(--text-faint); margin-right: 6px; }
.chip { font-size: 11px; font-family: ui-monospace, monospace; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 3px 9px; }

/* about */
.about-box { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.about-box h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.35; letter-spacing: -1.2px; margin: 12px 0 18px; font-weight: 680; }
.about-box p { color: var(--text-dim); font-size: 13px; line-height: 1.85; max-width: 540px; }
.about-sub { margin-top: 12px; color: var(--text-faint) !important; font-size: 12px !important; }
.about-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 18px; box-shadow: var(--shadow-sm); }
.about-card-top { font-size: 10px; font-family: ui-monospace, monospace; color: var(--text-faint); margin-bottom: 18px; letter-spacing: .6px; }
.about-node { border: 1px solid var(--border); background: var(--bg-elev); border-radius: 7px; padding: 10px 14px; font-size: 12px; color: var(--text-dim); text-align: center; }
.about-node.main { font-weight: 650; font-size: 14px; color: var(--text); }
.about-node.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.about-line { width: 1px; height: 24px; background: var(--border-strong); margin: 0 auto; }
.about-branches { display: flex; flex-direction: column; gap: 8px; }
.about-branches .about-node:first-child, .about-branches .about-node:last-child { margin: 0 32px; }
.about-card-foot { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; font-size: 10px; font-family: ui-monospace, monospace; color: var(--text-faint); }

/* footer */
.footer { background: var(--bg); }
.footer-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left strong { color: var(--text); font-weight: 650; }
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .nav { gap: 14px; }
  .hero-grid { gap: 40px; }
}
@media (max-width: 780px) {
  .brand-tag { display: none; }
  .nav { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .about-box { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head > p { max-width: 100%; }
}
@media (max-width: 560px) {
  .container, .topbar-inner { padding: 0 16px; }
  .cards, .features, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  h1 { letter-spacing: -1.4px; }
  .footer-right { gap: 7px; flex-wrap: wrap; }
}
