:root {
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-inset: #eef2f6;
  --border: #d1d9e0;
  --border-strong: #afb8c1;
  --fg: #1f2328;
  --fg-muted: #59636e;
  --fg-subtle: #6e7781;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --accent-soft: #ddf4ff;
  --success: #1a7f37;
  --success-soft: #dafbe1;
  --header: #0d1117;
  --header-line: #30363d;
  --on-accent: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgb(31 35 40 / 0.04);
  --shadow: 0 18px 40px -28px rgb(31 35 40 / 0.35);
  --shadow-soft: 0 10px 28px -22px rgb(31 35 40 / 0.3);
  --max: 1200px;
  --font: "Mona Sans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  font-weight: 650;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

.shell {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--header);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid var(--header-line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-mark {
  width: 34px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #c9d1d9;
  font-size: 0.9rem;
  font-weight: 550;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav > a:hover {
  background: #21262d;
  color: #fff;
  text-decoration: none;
}

.site-nav .nav-repo {
  margin-left: 8px;
  border: 1px solid #3d444d;
  color: #fff;
}

.site-nav .nav-repo svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid #3d444d;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 60% at 80% 0%, rgb(9 105 218 / 0.06), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid #b6e3c8;
  border-radius: 999px;
  background: var(--success-soft);
  color: #116329;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(26 127 55 / 0.14);
}

.hero h1 {
  text-wrap: balance;
}

.hero-lead {
  max-width: 33rem;
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 40px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 16px 40px -12px color-mix(in srgb, var(--accent) 72%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: download-cta-glow 3s ease-in-out infinite;
}

.download-primary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.download-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 52px -12px color-mix(in srgb, var(--accent) 82%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.download-primary:active {
  transform: translateY(0) scale(0.99);
}

.download-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@keyframes download-cta-glow {
  0%,
  100% {
    box-shadow:
      0 16px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent),
      inset 0 1px 0 rgb(255 255 255 / 0.25);
  }
  50% {
    box-shadow:
      0 18px 52px -8px color-mix(in srgb, var(--accent) 88%, transparent),
      inset 0 1px 0 rgb(255 255 255 / 0.25);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
}

.text-link:hover {
  text-decoration: none;
  color: var(--accent-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.hero-meta li strong {
  color: var(--fg);
  font-weight: 650;
}

.hero-visual {
  min-width: 0;
}

.window-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d7de;
}

.window-dot:nth-child(1) {
  background: #ffb3ae;
}

.window-dot:nth-child(2) {
  background: #f5d67a;
}

.window-dot:nth-child(3) {
  background: #9be2a8;
}

.window-title {
  margin-left: 8px;
  color: var(--fg-subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.hero-visual figcaption,
.split-visual figcaption,
.interface-visual figcaption {
  margin-top: 12px;
  color: var(--fg-subtle);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Section primitives */

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head > p:last-child {
  color: var(--fg-muted);
  font-size: 1.02rem;
}

/* Feature cards */

.feature-grid-wrap {
  padding: clamp(54px, 7vw, 88px) 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid #c6e2ff;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

/* Split detail sections */

.split-section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}

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

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.split-grid.reverse .split-copy {
  order: 2;
}

.split-grid.reverse .split-visual {
  order: 1;
}

.split-copy h2 {
  margin-bottom: 16px;
}

.split-lead {
  color: var(--fg-muted);
  font-size: 1.02rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--fg);
  font-size: 0.93rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.66em;
  width: 5px;
  height: 2.5px;
  border-left: 1.6px solid var(--accent-strong);
  border-bottom: 1.6px solid var(--accent-strong);
  transform: rotate(-45deg);
}

.split-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.split-visual.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-visual.duo img {
  border-radius: var(--radius);
}

.split-visual.duo figcaption {
  grid-column: 1 / -1;
}

.detail-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.detail-callout img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.detail-callout h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.detail-callout p {
  color: var(--fg-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.protocol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.protocol-list li {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Interface */

.interface-section {
  padding: clamp(56px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--border);
}

.interface-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 62px);
}

.interface-copy h2 {
  margin-bottom: 16px;
}

.interface-copy > p {
  color: var(--fg-muted);
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.mini-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.mini-card h3 {
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.mini-card p {
  color: var(--fg-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.interface-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* API */

.api-section {
  padding: clamp(54px, 7vw, 88px) 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

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

.api-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.api-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.api-card-head svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.api-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.api-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  font-weight: 650;
}

/* Requirements */

.requirements-section {
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--border);
}

.requirements-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.requirements-grid h2 {
  margin-bottom: 14px;
}

.requirements-grid > div > p {
  color: var(--fg-muted);
  font-size: 0.98rem;
}

.requirements-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.requirements-list > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.requirements-list dt {
  margin-bottom: 5px;
  color: var(--fg-subtle);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.requirements-list dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

/* FAQ */

.faq-section {
  padding: clamp(56px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
}

.faq-intro h2 {
  margin-bottom: 14px;
}

.faq-intro > p:last-child {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 18px 36px 18px 2px;
  color: var(--fg);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  color: var(--fg-subtle);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 36px 20px 2px;
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  background: var(--header);
  color: #c9d1d9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 54px 0 40px;
}

.footer-logo {
  color: #fff;
  font-size: 1rem;
}

.footer-brand > p {
  max-width: 22rem;
  margin-top: 14px;
  color: #8b949e;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-brand .footer-platform {
  margin-top: 8px;
  color: #6e7681;
  font-family: var(--mono);
  font-size: 0.74rem;
}

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

.footer-links h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: #8b949e;
  font-size: 0.85rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--header-line);
  color: #6e7681;
  font-size: 0.78rem;
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-grid,
  .interface-grid,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .feature-grid,
  .api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split-grid.reverse .split-copy,
  .split-grid.reverse .split-visual {
    order: initial;
  }

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

  .faq-intro {
    position: static;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--header);
    border-bottom: 1px solid var(--header-line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 12px 10px;
    font-size: 0.95rem;
  }

  .site-nav .nav-repo {
    margin: 8px 0 0;
    justify-content: center;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions {
    gap: 16px;
  }

  .download-primary {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    font-size: 1.0625rem;
  }

  .hero-meta {
    gap: 8px 18px;
  }

  .feature-grid,
  .api-grid,
  .mini-cards,
  .requirements-list {
    grid-template-columns: 1fr;
  }

  .split-visual.duo {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-primary {
    animation: none;
    transition: none;
  }

  .feature-card {
    transition: none;
  }
}
