:root {
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(243, 247, 252, 0.94);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --ink: #182133;
  --ink-soft: #5f687b;
  --brand: #1b66d1;
  --brand-strong: #1556b5;
  --mint: #13a67e;
  --shadow-soft: 0 18px 44px rgba(20, 38, 70, 0.07);
  --shadow-card: 0 28px 64px rgba(18, 34, 64, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(27, 102, 209, 0.11), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(19, 166, 126, 0.08), transparent 18%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 55%, #f2f5fa 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(340px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(27, 102, 209, 0.08), transparent 48%),
    radial-gradient(280px circle at calc(var(--pointer-x, 50%) - 14%) calc(var(--pointer-y, 50%) + 10%), rgba(19, 166, 126, 0.04), transparent 52%);
}

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

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

button {
  font: inherit;
}

pre,
code {
  font-family: "IBM Plex Mono", monospace;
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #4fa7ff);
}

.cursor-aura {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(27, 102, 209, 0.14);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: var(--container);
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 253, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.nav-links,
.nav-actions,
.hero-actions,
.footer-links,
.notes-head,
.install-tabs,
.status-points {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button-solid {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 16px 34px rgba(27, 102, 209, 0.2);
}

.button-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(27, 102, 209, 0.24);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
}

.button-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 38px;
  align-items: center;
  padding-top: 80px;
}

.eyebrow,
.card-label,
.story-tag,
.compare-title,
.flow-index {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.section-head h2 {
  margin: 18px 0 0;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.display-line {
  display: block;
}

.hero h1,
.section-head h2,
.signal-item h3,
.story-item h3,
.flow-step h3,
.docs-summary h3,
.docs-link strong,
.visual-card h3 {
  text-wrap: balance;
}

.hero-lede,
.visual-intro p,
.story-item p,
.quick-notes p,
.docs-summary p {
  text-wrap: pretty;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  max-width: 9.5ch;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  max-width: 12ch;
}

.hero-lede,
.section-head p,
.signal-item p,
.story-item p,
.compare-row span,
.compare-row strong,
.flow-step p,
.quick-notes p,
.docs-summary p,
.docs-link span,
.footer-brand span,
.visual-intro p,
.visual-card h3 {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span,
.status-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hero-visual {
  display: grid;
}

.visual-stage {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 18%, rgba(27, 102, 209, 0.14), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(19, 166, 126, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 252, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.visual-intro {
  display: grid;
  gap: 16px;
  max-width: 60ch;
}

.mascot-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mascot-emoji {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(27, 102, 209, 0.09);
  font-size: 1.4rem;
}

.mascot-chip strong,
.signal-item h3,
.story-item h3,
.flow-step h3,
.docs-summary h3,
.docs-link strong,
.visual-card h3 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.mascot-chip span:last-child {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.82fr);
  gap: 16px;
}

.visual-card {
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(20, 36, 68, 0.06);
}

.visual-card-primary {
  grid-row: span 2;
  padding: 24px;
}

.surface-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.surface-list div {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
}

.surface-list span {
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.surface-list strong {
  font-size: 0.93rem;
  line-height: 1.6;
}

.visual-card-dark {
  padding: 22px;
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.06);
  color: #eef5ff;
}

.visual-card-dark .card-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(238, 245, 255, 0.68);
}

.visual-card-dark pre {
  margin: 18px 0 0;
  white-space: pre-wrap;
  line-height: 1.8;
}

.visual-card-soft {
  padding: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.visual-card-soft h3 {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.55;
}

.status-points {
  margin-top: 18px;
  flex-wrap: wrap;
}

.signal-section {
  padding-top: 18px;
}

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

.signal-item,
.flow-step {
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.signal-item span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-head {
  max-width: 680px;
}

.story-list {
  margin-top: 40px;
  display: grid;
}

.story-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.story-item:last-child {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.story-item p,
.flow-step p,
.signal-item p,
.docs-summary p {
  max-width: 34ch;
}

.quick-notes p {
  max-width: 44ch;
}


.story-tag {
  background: transparent;
}

.compare-shell,
.quick-shell,
.docs-zone {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

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

.compare-column,
.install-block,
.quick-notes,
.docs-zone {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.9));
  box-shadow: var(--shadow-card);
}

.compare-column {
  padding: 26px;
}

.compare-column.active {
  background:
    radial-gradient(circle at 82% 18%, rgba(27, 102, 209, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.92));
}

.compare-column.muted {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
}

.compare-title {
  margin-bottom: 18px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.compare-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.compare-row strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.flow-rail {
  margin-top: 38px;
}

.flow-step::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: -23px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.quick-shell {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.install-block,
.quick-notes,
.docs-zone {
  padding: 26px;
}

.install-tabs {
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.install-tab {
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.install-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.command-shell,
.quick-notes pre {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.96);
  color: #eef5ff;
}

.shell-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shell-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.shell-code {
  display: none;
  margin: 18px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
}

.shell-code.is-active {
  display: block;
}

.install-actions {
  margin-top: 18px;
}

.notes-head {
  justify-content: space-between;
  gap: 12px;
}

.notes-head span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.quick-notes pre {
  margin-bottom: 0;
}

.quick-notes p {
  margin-top: 18px;
}

.docs-zone {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.docs-summary {
  max-width: 34ch;
}

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

.docs-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.docs-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-brand strong,
.footer-links a {
  display: block;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a,
.footer-brand span {
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lang-switch .lang-zh {
  display: none;
}

.lang-switch.is-zh .lang-en {
  display: none;
}

.lang-switch.is-zh .lang-zh {
  display: inline;
}

.lang-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 180ms ease;
}

.lang-toggle-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

@media (max-width: 1140px) {
  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .quick-shell,
  .docs-zone,
  .visual-grid,
  .compare-shell,
  .signal-grid,
  .flow-rail,
  .docs-list {
    grid-template-columns: 1fr;
  }

  .visual-card-primary {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100vw - 24px);
    margin-top: 12px;
    padding: 12px;
    border-radius: 24px;
  }

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

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar.is-open .nav-links,
  .topbar.is-open .nav-actions {
    display: flex;
  }

  .nav-links a,
  .button {
    width: 100%;
  }

  .section,
  .footer {
    width: calc(100vw - 24px);
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 58px;
    gap: 30px;
  }

  .hero h1,
  .section-head h2 {
    max-width: none;
    letter-spacing: -0.05em;
  }

  .visual-stage {
    padding: 20px;
  }

  .mascot-chip {
    width: 100%;
  }

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

  .notes-head,
  .footer,
  .status-points {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-tabs {
    width: 100%;
    flex-wrap: wrap;
  }
}

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

  .reveal,
  .button,
  .cursor-aura,
  .docs-link,
  .visual-stage,
  .visual-card,
  .mascot-chip {
    transition: none;
  }
}