:root {
  --background-deep: #020203;
  --background-base: #050506;
  --background-elevated: #0a0a0c;
  --background-card: rgba(255, 255, 255, 0.05);
  --background-card-strong: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --foreground: #edecef;
  --foreground-muted: #8a8f98;
  --foreground-subtle: rgba(255, 255, 255, 0.6);
  --accent: #5e6ad2;
  --accent-bright: #6872d9;
  --accent-glow: rgba(94, 106, 210, 0.28);
  --accent-cyan: rgba(94, 213, 255, 0.18);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(94, 106, 210, 0.28);
  --shadow-card:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 22px 64px rgba(0, 0, 0, 0.48),
    0 0 64px rgba(0, 0, 0, 0.18);
  --shadow-card-hover:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 28px 80px rgba(0, 0, 0, 0.56),
    0 0 96px rgba(94, 106, 210, 0.16);
  --shadow-button:
    0 0 0 1px rgba(94, 106, 210, 0.42),
    0 12px 32px rgba(94, 106, 210, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1260px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-progress: 0;
  --font-sans: "Inter", "Geist Sans", "IBM Plex Sans", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(10, 10, 15, 0.92), transparent 38%),
    radial-gradient(circle at bottom, rgba(2, 2, 3, 0.96), transparent 48%),
    linear-gradient(180deg, #050506 0%, #040406 52%, #020203 100%);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(94, 106, 210, 0.3);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.5), 0 0 0 6px rgba(5, 5, 6, 0.9);
}

[hidden] {
  display: none !important;
}

.page-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.page-background__grid,
.page-background__noise,
.page-background__blob {
  position: absolute;
  inset: 0;
}

.page-background__grid {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.page-background__noise {
  opacity: 0.018;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px);
  background-size: 180px 180px;
}

.page-background__blob {
  filter: blur(140px);
  opacity: 0.65;
  transform-origin: center;
  animation: float 10s ease-in-out infinite;
}

.page-background__blob--one {
  top: -18%;
  left: 50%;
  width: 52rem;
  height: 76rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(94, 106, 210, 0.24) 0%, transparent 68%);
}

.page-background__blob--two {
  top: 18%;
  left: -10%;
  width: 38rem;
  height: 52rem;
  background: radial-gradient(circle, rgba(113, 91, 255, 0.14) 0%, transparent 70%);
  animation-duration: 13s;
}

.page-background__blob--three {
  top: 22%;
  right: -12%;
  width: 32rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(76, 140, 255, 0.14) 0%, transparent 70%);
  animation-duration: 11s;
}

.page-background__blob--four {
  bottom: -18%;
  left: 28%;
  width: 42rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.12) 0%, transparent 74%);
  animation: pulse 8.5s ease-in-out infinite;
}

.site-shell {
  position: relative;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

.surface-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: var(--shadow-card);
  transition:
    transform 240ms var(--easing),
    border-color 240ms var(--easing),
    box-shadow 240ms var(--easing),
    background-color 240ms var(--easing);
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(94, 106, 210, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.surface-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.surface-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.surface-card:hover::before,
.surface-card:focus-within::before {
  opacity: 1;
}

.surface-card--glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(22px);
}

.surface-subtle {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.24);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-bright), #8f98ff 55%, rgba(255, 255, 255, 0.82));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 32px rgba(94, 106, 210, 0.3);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

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

.brand-copy span {
  color: var(--foreground-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.site-nav a,
.section-links a,
.mobile-menu__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--foreground-muted);
  transition:
    transform 220ms var(--easing),
    color 220ms var(--easing),
    background-color 220ms var(--easing);
}

.site-nav a:hover,
.section-links a:hover,
.mobile-menu__links a:hover {
  transform: translateY(-2px);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.language-button {
  min-width: 48px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--foreground-muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition:
    background-color 200ms var(--easing),
    color 200ms var(--easing),
    transform 200ms var(--easing);
}

.language-button:hover {
  transform: translateY(-1px);
  color: var(--foreground);
}

.language-button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(104, 114, 217, 0.95), rgba(94, 106, 210, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(94, 106, 210, 0.28);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 220ms var(--easing),
    box-shadow 220ms var(--easing),
    border-color 220ms var(--easing),
    background-color 220ms var(--easing),
    color 220ms var(--easing);
}

.button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.18), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

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

.button:active {
  transform: scale(0.98);
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-button);
}

.button--primary:hover {
  background: linear-gradient(180deg, #7380f1 0%, #6571df 100%);
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.52),
    0 18px 36px rgba(94, 106, 210, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--secondary,
.button--ghost,
.copy-button {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.button--secondary:hover,
.button--ghost:hover,
.copy-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-github {
  min-width: 112px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.04);
}

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

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  margin-top: 12px;
  padding: 16px;
}

.mobile-menu__links {
  display: grid;
  gap: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
  transform: translateY(calc(var(--hero-progress) * 40px)) scale(calc(1 - var(--hero-progress) * 0.035));
  opacity: calc(1 - var(--hero-progress) * 0.18);
  transition: transform 160ms linear, opacity 160ms linear;
}

.hero-panel {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9b2ff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 0;
  max-width: 11ch;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="zh-CN"] .hero-title {
  max-width: none;
  font-size: clamp(1.7rem, 3.9vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.hero-subtitle {
  margin: 12px 0 0;
  max-width: 18ch;
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.025em;
  background-image: linear-gradient(90deg, #b2bbff 0%, #7c89ff 40%, #d7dbff 72%, #8a94ff 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

html[lang="zh-CN"] .hero-subtitle {
  max-width: 12ch;
  font-size: clamp(1.02rem, 2.2vw, 1.42rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-text,
.section-head p,
.feature-card p,
.install-card__footnote,
.step-card p,
.support-card p,
.faq-item p,
.metric-card__label,
.site-footer p,
.site-footer span {
  color: var(--foreground-muted);
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.85;
}

.hero-actions,
.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.metric-card {
  padding: 18px;
}

.metric-card__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-card__label {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.hero-panel--demo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
}

.demo-window {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    rgba(10, 10, 12, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.36);
}

.demo-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-window__dots {
  display: flex;
  gap: 8px;
}

.demo-window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.demo-window__dots i:nth-child(1) {
  background: rgba(255, 255, 255, 0.18);
}

.demo-window__dots i:nth-child(2) {
  background: rgba(104, 114, 217, 0.56);
}

.demo-window__dots i:nth-child(3) {
  background: rgba(137, 148, 255, 0.82);
}

.demo-window__title {
  color: var(--foreground-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-window__content {
  padding: 20px;
}

.demo-node {
  padding: 22px;
}

.demo-node__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.demo-pill,
.demo-badge,
.demo-chip,
.feature-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-pill {
  color: #fff;
  background: linear-gradient(180deg, rgba(104, 114, 217, 0.9), rgba(94, 106, 210, 0.82));
  border-color: rgba(94, 106, 210, 0.38);
}

.demo-badge {
  color: #cfd4ff;
}

.demo-node h2 {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 1.58rem;
  letter-spacing: -0.03em;
}

.demo-node p {
  margin: 12px 0 0;
  color: var(--foreground-muted);
}

.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-chip {
  color: var(--foreground-subtle);
}

.demo-code {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 3, 5, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-code code,
.install-card__shell code,
.snippet-panel code,
.metric-card__value {
  font-family: var(--font-mono);
}

.demo-code code,
.snippet-panel code,
.install-card__shell code {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.8;
}

.install-card__shell code {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}

.hero-note {
  padding: 20px;
}

.hero-note h3 {
  margin: 12px 0 0;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

.hero-note p {
  margin: 12px 0 0;
}

.section-links,
.section-block,
.cta-panel {
  margin-top: 24px;
  padding: 28px;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

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

.section-head h2,
.support-card h2,
.cta-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

html[lang="zh-CN"] .cta-panel h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-wrap: nowrap;
}

html[lang="zh-CN"] #faq .section-head h2 {
  font-size: clamp(1.34rem, 2.45vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-wrap: nowrap;
}

html[lang="zh-CN"] #features .section-head h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.76rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.section-head p {
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: 1rem;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  min-height: 220px;
}

.feature-card--large {
  grid-column: span 3;
  min-height: 280px;
}

.feature-card--wide {
  grid-column: span 3;
}

.feature-card:not(.feature-card--large):not(.feature-card--wide) {
  grid-column: span 3;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(104, 114, 217, 1), rgba(94, 106, 210, 0.78));
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.24),
    0 14px 30px rgba(94, 106, 210, 0.24);
}

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

.feature-card h3,
.snippet-panel h3,
.step-card h3,
.faq-item summary span:first-child {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.feature-card p,
.support-card p {
  margin: 0;
  font-size: 0.98rem;
}

.feature-card__copy {
  display: grid;
  gap: 12px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.install-card,
.snippet-shell,
.support-card,
.step-card,
.faq-item {
  border-radius: var(--radius-xl);
}

.install-card,
.snippet-shell,
.support-card {
  padding: 22px;
}

.install-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.install-card__label {
  margin: 0;
  color: #a9b2ff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.install-card__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 5, 0.74);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 40px;
  min-width: 112px;
  padding: 0 14px;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
}

.copy-button--subtle {
  background: rgba(255, 255, 255, 0.05);
}

.copy-button.is-copied {
  color: #fff;
  border-color: rgba(104, 114, 217, 0.4);
  background: linear-gradient(180deg, rgba(104, 114, 217, 0.92), rgba(94, 106, 210, 0.84));
}

.copy-button.is-error {
  color: #fff;
  background: rgba(180, 53, 78, 0.8);
  border-color: rgba(180, 53, 78, 0.9);
}

.snippet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.snippet-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--foreground-muted);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 200ms var(--easing),
    border-color 200ms var(--easing),
    color 200ms var(--easing),
    background-color 200ms var(--easing);
}

.snippet-tab:hover {
  transform: translateY(-1px);
  color: var(--foreground);
}

.snippet-tab.is-active {
  color: #fff;
  border-color: rgba(94, 106, 210, 0.36);
  background: linear-gradient(180deg, rgba(104, 114, 217, 0.92), rgba(94, 106, 210, 0.84));
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.18),
    0 12px 26px rgba(94, 106, 210, 0.24);
}

.snippet-panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(3, 4, 6, 0.88);
}

.snippet-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.snippet-panel__head .copy-button {
  align-self: flex-start;
}

.snippet-panel pre {
  margin: 18px 0 0;
  padding: 20px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 3, 5, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workflow-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px;
  align-items: start;
}

.step-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(104, 114, 217, 0.92), rgba(94, 106, 210, 0.82));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}

.step-card p {
  margin: 10px 0 0;
}

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

.support-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--foreground-muted);
}

.support-list li + li {
  margin-top: 10px;
}

.support-card--accent {
  background:
    linear-gradient(180deg, rgba(94, 106, 210, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}

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

.faq-item__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(94, 106, 210, 0.16);
  color: #cdd2ff;
  font-size: 1.18rem;
  font-weight: 700;
  transition: transform 220ms var(--easing);
}

.faq-item[open] .faq-item__mark {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-panel p {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--foreground-muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 8px 2px 0;
  font-size: 0.92rem;
}

.site-footer__origin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-footer__origin a {
  color: #cdd2ff;
  font-weight: 600;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -20px, 0) rotate(1deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.78;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

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

  .feature-card--large,
  .feature-card--wide,
  .feature-card:not(.feature-card--large):not(.feature-card--wide) {
    grid-column: span 6;
  }

  .cta-panel,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .header-github {
    display: none;
  }

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

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-bottom: 56px;
  }

  .site-header,
  .hero-panel,
  .section-block,
  .section-links,
  .cta-panel {
    padding: 18px;
  }

  .site-header {
    gap: 12px;
  }

  .brand-copy span {
    display: none;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.35rem, 10.4vw, 3.9rem);
  }

  html[lang="zh-CN"] .hero-title {
    font-size: clamp(1.26rem, 5.4vw, 1.72rem);
  }

  .hero-subtitle {
    max-width: none;
    font-size: clamp(1rem, 4.8vw, 1.28rem);
  }

  html[lang="zh-CN"] .hero-subtitle {
    font-size: clamp(0.96rem, 4.2vw, 1.14rem);
  }

  html[lang="zh-CN"] .cta-panel h2 {
    font-size: clamp(0.98rem, 4.05vw, 1.16rem);
  }

  html[lang="zh-CN"] #faq .section-head h2 {
    font-size: clamp(0.92rem, 3.65vw, 1.08rem);
  }

  html[lang="zh-CN"] #features .section-head h2 {
    font-size: clamp(0.84rem, 3.15vw, 0.98rem);
  }

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

  .demo-node__meta,
  .snippet-panel__head,
  .cta-panel__actions,
  .site-footer,
  .site-footer__origin {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .feature-card--large,
  .feature-card--wide,
  .feature-card:not(.feature-card--large):not(.feature-card--wide) {
    grid-column: auto;
  }

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

  .section-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
