:root {
  --brand: #2f6bff;
  --brand-dark: #1b46d6;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fe;
  --border: #e6ecf6;
  --shadow: 0 10px 30px rgba(20, 40, 90, 0.08);
  --radius: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 16px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.32);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(47, 107, 255, 0.08);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-alt);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

.nav .nav-doc {
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.repo-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.repo-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.18s ease;
}

.repo-link:hover {
  border-color: rgba(47, 107, 255, 0.4);
  background: var(--bg-alt);
  transform: translateY(-1px);
}

.repo-link img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background: radial-gradient(1100px 460px at 15% -10%, #e5edff 0%, rgba(229, 237, 255, 0) 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.18;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

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

.hero .lead strong {
  color: var(--ink);
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-badges li {
  position: relative;
  padding-left: 20px;
}

.hero-badges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 40, 90, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Stats */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 24px;
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

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

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.compare-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.compare-col ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.compare-col li {
  margin-bottom: 10px;
}

.compare-old {
  background: #fbfbfc;
}

.compare-old h3 {
  color: #8a94a6;
}

.compare-new {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: var(--shadow);
}

.compare-new h3 {
  color: var(--brand-dark);
}

/* Capability cards */
.cap {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(20, 40, 90, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  scroll-margin-top: 84px;
}

.cap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cap-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf0ff, #dbe6ff);
  color: var(--brand-dark);
}

.cap-icon svg {
  width: 32px;
  height: 32px;
}

.cap-body h3 {
  margin: 0 0 2px;
  font-size: 22px;
}

.cap-sub {
  margin: 0 0 14px;
  color: #9aa6b8;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cap-body ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.cap-body li {
  margin-bottom: 7px;
}

.cap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cap-links a {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
}

.cap-links a:hover {
  background: rgba(47, 107, 255, 0.16);
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.pipe-node {
  min-width: 140px;
  text-align: center;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(20, 40, 90, 0.05);
}

.pipe-node b {
  display: block;
  font-size: 17px;
}

.pipe-node span {
  color: var(--muted);
  font-size: 13px;
}

.pipe-arrow {
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.showcase figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 40, 90, 0.06);
}

.showcase img {
  width: 100%;
}

.showcase figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Quickstart */
.quickstart {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.quickstart h2 {
  font-size: 30px;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.quickstart p {
  color: var(--muted);
  margin: 0 0 18px;
}

.check {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
  color: var(--ink);
}

.check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.12);
  box-shadow: inset 0 0 0 4px var(--brand);
}

.qs-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qs-code pre {
  margin: 0;
  background: #0f1b2d;
  color: #d8e2f2;
  border-radius: var(--radius);
  padding: 26px 28px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: 0 18px 40px rgba(15, 27, 45, 0.28);
}

.qs-code code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  white-space: pre;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 18px rgba(20, 40, 90, 0.04);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.contact-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.contact-mail {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.08);
  word-break: break-all;
}

.contact-qr {
  width: 200px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* CTA */
.cta {
  padding: 64px 0;
  background: linear-gradient(120deg, #2f6bff 0%, #1b46d6 60%, #163bb8 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.cta p {
  margin: 0;
  opacity: 0.86;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .compare,
  .showcase,
  .contact,
  .quickstart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

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

  .hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .cap {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .pipe-arrow {
    transform: rotate(90deg);
  }

  .pipe-node {
    width: 100%;
  }
}
