/* ============================================
   Neshama — Soul Engine for Game NPCs
   Light-first Design System v1.0
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F8;
  --bg-tertiary: #F0F0F2;
  --bg-card: #FAFAFA;
  --bg-code: #F5F5F7;

  /* Accent */
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-dim: #D1FAE5;
  --accent-text: #065F46;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --text-code-keyword: #9333EA;
  --text-code-string: #16A34A;
  --text-code-fn: #C2410C;
  --text-code-type: #BE185D;
  --text-code-comment: #A3A3A3;
  --text-code-number: #D97706;

  /* Borders */
  --border: #E5E5E7;
  --border-strong: #D1D1D4;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', monospace;

  /* Spacing */
  --container-max: 1120px;
  --container-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent-dim);
  color: var(--accent-text);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav__logo:hover {
  color: var(--text-primary);
}

.nav__logo-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-mono);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 450;
  transition: color 0.15s var(--ease-out);
}

.nav__links a:hover {
  color: var(--text-primary);
}

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

.nav__github {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s var(--ease-out);
}

.nav__github:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-secondary);
}

.nav__github svg {
  width: 16px;
  height: 16px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.btn--large {
  font-size: 14px;
  padding: 12px 24px;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  background: var(--bg-secondary);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 680px;
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero__code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
  box-shadow: var(--shadow-sm);
}

.hero__code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.hero__code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__code-dot--red { background: #EF4444; }
.hero__code-dot--yellow { background: #F59E0B; }
.hero__code-dot--green { background: #10B981; }

.hero__code-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.hero__code pre {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 0;
}

.hero__code .kw { color: var(--text-code-keyword); }
.hero__code .var { color: #2563EB; }
.hero__code .str { color: var(--text-code-string); }
.hero__code .fn { color: var(--text-code-fn); }
.hero__code .cm { color: var(--text-code-comment); }
.hero__code .type { color: var(--text-code-type); }
.hero__code .num { color: var(--text-code-number); }

/* --- Section --- */
.section {
  position: relative;
  padding: 80px 0;
}

.section--bordered {
  border-top: 1px solid var(--border);
}

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

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 640px;
}

.section__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

/* --- Claims --- */
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.claim {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.claim:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.claim__metric {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.claim__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.claim__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.claim__code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
  overflow-x: auto;
}

/* --- Compare --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.compare__panel {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

.compare__panel--with {
  border-color: var(--accent);
  border-width: 1px;
  position: relative;
}

.compare__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare__tag--without {
  color: var(--text-tertiary);
}

.compare__tag--with {
  color: var(--accent);
}

.compare__dialogue {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialogue__msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dialogue__sender {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dialogue__sender--player {
  color: #2563EB;
}

.dialogue__sender--npc-without {
  color: var(--text-tertiary);
}

.dialogue__sender--npc-with {
  color: var(--accent);
}

.dialogue__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--bg-secondary);
}

.dialogue__text--highlight {
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent-text);
}

.dialogue__emotion {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}

/* --- Integration --- */
.integrations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease-out);
}

.integration:hover {
  opacity: 1;
}

.integration__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.integration__name {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* --- Architecture --- */
.arch {
  margin-top: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.arch__diagram {
  padding: 36px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.arch__diagram .arch-label {
  color: var(--accent);
  font-weight: 600;
}

.arch__diagram .arch-dim {
  color: var(--text-tertiary);
}

.arch__diagram .arch-highlight {
  color: #D97706;
  font-weight: 500;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pricing-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-card__price .price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pricing-card__desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card__features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '';
  width: 4px;
  height: 4px;
  min-width: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

.pricing-card__btn {
  margin-top: auto;
}

.pricing-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.pricing-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.pricing-rate-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0 100px;
}

.cta-section__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-section__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-secondary);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.footer__brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s var(--ease-out);
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--text-tertiary);
  transition: color 0.15s var(--ease-out);
}

.footer__social a:hover {
  color: var(--text-primary);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* --- Docs Page --- */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

.docs-sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  padding: 72px 0 32px;
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
  background: var(--bg-primary);
}

.docs-sidebar__search {
  padding: 0 16px;
  margin-bottom: 20px;
}

.docs-sidebar__search input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s var(--ease-out);
}

.docs-sidebar__search input::placeholder {
  color: var(--text-tertiary);
}

.docs-sidebar__search input:focus {
  border-color: var(--accent);
}

.docs-nav-group {
  padding: 0 16px;
  margin-bottom: 24px;
}

.docs-nav-group__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.docs-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-group a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.1s var(--ease-out);
}

.docs-nav-group a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.docs-nav-group a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.docs-content {
  margin-left: 260px;
  padding: 88px 48px 80px;
  max-width: 820px;
  width: 100%;
  background: var(--bg-primary);
}

.docs-content h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.docs-content h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 8px;
}

.docs-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-code-fn);
}

.docs-content pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.docs-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* --- Pricing Page --- */
.pricing-page__header {
  padding: 120px 0 40px;
  text-align: center;
}

.pricing-page__header .section__title {
  max-width: none;
  margin: 0 auto 12px;
}

.pricing-page__header .section__desc {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-faq {
  max-width: 680px;
  margin: 64px auto 0;
}

.pricing-faq__item {
  border-bottom: 1px solid var(--border);
}

.pricing-faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
}

.pricing-faq__q:hover {
  color: var(--accent);
}

.pricing-faq__q svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease-out);
}

.pricing-faq__q[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.pricing-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease-out);
}

.pricing-faq__a[aria-hidden="false"] {
  max-height: 200px;
}

.pricing-faq__a p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

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

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

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    gap: 40px;
    flex-wrap: wrap;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 88px 24px 80px;
  }
}

@media (max-width: 680px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero__title {
    font-size: 32px;
  }

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

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

  .cta-section__actions {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .integrations {
    gap: 32px;
  }
}

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-dim { color: var(--text-tertiary); }
.font-mono { font-family: var(--font-mono); }

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* --- Language Toggle --- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.lang-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}

/* --- Chinese Typography --- */
[lang="zh"] body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
}

[lang="zh"] .hero__title {
  line-height: 1.2;
}

[lang="zh"] code,
[lang="zh"] pre {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", monospace;
}

[lang="zh"] .claim__code {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", monospace;
}

[lang="zh"] .section__label,
[lang="zh"] .compare__tag,
[lang="zh"] .docs-nav-group__title {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", monospace;
}

[lang="zh"] .nav__links a,
[lang="zh"] .nav__actions .btn,
[lang="zh"] .footer__col h4 {
  letter-spacing: 0.02em;
}

/* Mobile: ensure lang toggle is visible */
@media (max-width: 680px) {
  .nav__actions .lang-toggle {
    display: inline-flex;
  }
}
