:root {
  --ink: #121826;
  --muted: #5b6475;
  --line: #dfe5ee;
  --soft: #f6f8fb;
  --panel: #ffffff;
  --blue: #e53e3e;
  --blue-dark: #b91c1c;
  --green: #c53030;
  --gold: #b7791f;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 238, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand.active {
  background: #fff1f2;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  font-size: 16px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
  background: #fff1f2;
}

.nav-links a.active {
  color: var(--blue-dark);
  background: #fff1f2;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}

.button.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.hero {
  padding: 76px 0 56px;
  background:
    linear-gradient(180deg, rgba(255, 247, 247, 0.92), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 12% 0%, rgba(229, 62, 62, 0.13), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(197, 48, 48, 0.10), transparent 26%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #415064;
  font-size: 13px;
}

.proof span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.quickstart {
  background: #101828;
  color: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quickstart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe7ff;
  font-size: 13px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #667085;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #e6edf7;
  font-size: 13px;
  line-height: 1.7;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.section {
  padding: 64px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  color: #344054;
  background: #f3f6fa;
  border: 1px solid #e4e9f1;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  background: #f8fafc;
  font-size: 14px;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  padding: 34px;
  color: #fff;
  background: #7f1d1d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.cta-band p {
  margin: 0;
  color: #d5e3f7;
}

.site-footer {
  padding: 34px 0;
  color: #667085;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

.footer-links a {
  color: #475467;
  text-decoration: none;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.side {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 8px;
}

.side a {
  padding: 8px 10px;
  color: #475467;
  text-decoration: none;
  border-radius: 8px;
}

.side a:hover {
  background: #eef4ff;
  color: var(--blue);
}

.doc-content {
  min-width: 0;
}

.doc-content h2 {
  margin-top: 36px;
}

.doc-content h2:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .quickstart {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .side {
    position: static;
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .compare {
    display: block;
    overflow-x: auto;
  }
}
