:root {
  --bg: #f4f7fb;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #07111f;
  --text: #081120;
  --muted: #5d6a7c;
  --accent: #2f6df6;
  --accent-2: #1db3a6;
  --accent-3: #f4a524;
  --accent-ink: #0f3ea8;
  --border: rgba(8, 17, 32, 0.08);
  --shadow: 0 22px 70px rgba(17, 33, 74, 0.12);
  --shadow-soft: 0 12px 32px rgba(17, 33, 74, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 0% 15%, rgba(47, 109, 246, 0.12), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(29, 179, 166, 0.18), transparent 32%),
    radial-gradient(circle at 100% 85%, rgba(244, 165, 36, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 34%, #eef3fb 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.page-noise,
.page-grid,
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page-noise {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(8, 17, 32, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 32, 0.7) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 90%);
  z-index: -3;
}

.page-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 55%);
  z-index: -2;
}

.page-glow {
  filter: blur(80px);
  opacity: 0.9;
  z-index: -4;
}

.glow-a {
  top: 120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: rgba(47, 109, 246, 0.22);
}

.glow-b {
  right: -160px;
  bottom: 120px;
  width: 460px;
  height: 460px;
  background: rgba(29, 179, 166, 0.16);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0 0;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(22px) saturate(150%);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(47, 109, 246, 0.12);
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.08);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav-link {
  padding: 11px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(8, 17, 32, 0.04);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1f53ca 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(47, 109, 246, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--text);
}

.button-ghost {
  background: rgba(8, 17, 32, 0.04);
  color: var(--text);
  padding-inline: 18px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 28px;
}

.hero-copy,
.hero-stage,
.feature-grid > *,
.quickstart-grid > *,
.workflow-grid > *,
.support-grid > * {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 32, 0.04);
  border: 1px solid rgba(8, 17, 32, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 20px 0 16px;
  display: grid;
  gap: 10px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-body,
.section-summary,
.footer-note {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(8, 17, 32, 0.06);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.trust-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(47, 109, 246, 0.1);
}

.endpoint-card,
.terminal-card,
.spotlight-card,
.feature-card,
.quickstart-card,
.workflow-card,
.support-card {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.endpoint-card {
  padding: 18px 20px;
}

.endpoint-card-head,
.spotlight-card-head,
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.endpoint-card-head span,
.spotlight-card-head span,
.terminal-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.endpoint-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 16px 0 10px;
}

.endpoint-base {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: -0.03em;
  word-break: break-all;
}

.endpoint-path {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-weight: 600;
}

.endpoint-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.copy-feedback {
  min-height: 1.3em;
  color: var(--accent-ink);
  font-weight: 700;
}

.icon-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(8, 17, 32, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-stat-value {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  height: 100%;
  padding-top: 24px;
}

.terminal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 18, 37, 0.96) 0%, rgba(7, 14, 29, 0.92) 100%);
  color: #dce8ff;
  padding: 20px 22px 22px;
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.28), transparent 70%);
  filter: blur(20px);
}

.terminal-dots {
  display: inline-flex;
  gap: 7px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-dots span:first-child {
  background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
  background: #febc2e;
}

.terminal-dots span:last-child {
  background: #2aca44;
}

.terminal-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.7;
}

.terminal-comment {
  color: rgba(220, 232, 255, 0.5);
}

.code-keyword {
  color: #7dd3fc;
}

.code-arg {
  color: #c4b5fd;
}

.code-string {
  color: #86efac;
}

.code-prompt {
  color: #f9a8d4;
}

.code-command {
  color: #fde68a;
}

.code-ok {
  color: #34d399;
  font-weight: 700;
}

.terminal-response {
  color: rgba(220, 232, 255, 0.78);
}

.spotlight-card {
  align-self: end;
  padding: 18px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compatibility-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(8, 17, 32, 0.06);
}

.compatibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.16), rgba(29, 179, 166, 0.18));
  color: var(--accent-ink);
  font-weight: 800;
}

.compatibility-copy strong {
  display: block;
  font-size: 0.96rem;
}

.compatibility-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 38px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title {
  margin: 14px 0 0;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-summary {
  max-width: 440px;
}

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

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

.feature-card,
.workflow-card,
.quickstart-card,
.support-card {
  padding: 22px;
}

.feature-card {
  min-height: 100%;
}

.card-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-topline::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.card-title {
  margin: 0 0 10px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.card-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.quickstart-card {
  display: grid;
  gap: 16px;
}

.quickstart-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.quickstart-code {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(7, 14, 29, 0.96);
  color: #dce8ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow: auto;
}

.quickstart-description {
  color: var(--muted);
  line-height: 1.7;
}

.workflow-card {
  display: grid;
  gap: 16px;
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.16), rgba(29, 179, 166, 0.18));
  color: var(--accent-ink);
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.support-card-label {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.support-card-value {
  display: block;
  margin-top: 10px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.support-card-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 30px 0 42px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(8, 17, 32, 0.08);
}

.footer-brand {
  margin: 0 0 8px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.footer-note {
  margin: 0;
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

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

.is-hidden {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .support-panel,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-rows: none;
    height: auto;
    padding-top: 0;
  }

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

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

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

  .section-summary {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 14px;
  }

  .shell-header {
    border-radius: 28px;
    align-items: start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
  }

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

  .nav-link,
  .button-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats,
  .feature-grid,
  .workflow-grid,
  .support-grid,
  .compatibility-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 22px, 1180px);
  }

  .hero-title {
    font-size: clamp(2.2rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .support-actions {
    flex-direction: column;
  }

  .endpoint-card-foot {
    flex-direction: column;
    align-items: start;
  }

  .feature-card,
  .quickstart-card,
  .workflow-card,
  .support-card,
  .endpoint-card,
  .terminal-card,
  .spotlight-card {
    border-radius: 24px;
  }
}
