/* Apidoc static site
   Shape system: cards 20px, code panels 16px, buttons and chips pill. */

:root {
  --bg: #f7f6fc;
  --bg-soft: #eeedfb;
  --surface: #fdfcff;
  --surface-2: #f8f6fe;
  --ink: #2e2a4a;
  --ink-2: #4b4668;
  --muted: #6c6788;
  --line: #ddd8f3;
  --line-strong: #c9c1e9;
  --purple: #5b4bd6;
  --purple-dark: #4b3cc4;
  --purple-bright: #6c5ce7;
  --purple-soft: #e9e4ff;
  --green: #4fbf7a;
  --green-dark: #277a4e;
  --green-soft: #dcf6e6;
  --pink: #ff9fba;
  --pink-soft: #ffe3ec;
  --yellow: #f5c84c;
  --ink-dark: #24213b;
  --ink-dark-2: #1c1930;
  --shadow-sm: 0 2px 8px rgba(46, 42, 74, 0.06);
  --shadow-md: 0 18px 40px -24px rgba(46, 42, 74, 0.35);
  --shadow-lg: 0 44px 90px -46px rgba(46, 42, 74, 0.45);
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: clip;
}

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

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

button {
  font: inherit;
}

::selection {
  background: var(--purple-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(91, 75, 214, 0.42);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin-top: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-xs {
  width: 13px;
  height: 13px;
}

.wrap {
  width: min(100% - 40px, 1180px);
  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: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfcff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--purple);
  color: #fdfcff;
  box-shadow: 0 16px 30px -18px rgba(91, 75, 214, 0.85);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 20px 36px -18px rgba(91, 75, 214, 0.9);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.btn-light {
  background: #fdfcff;
  color: var(--ink);
}

.btn-light:hover {
  background: #ffffff;
}

.btn-outline-light {
  background: transparent;
  color: #fdfcff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple-dark);
  font-size: 13.5px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--purple);
}

.text-link:hover .icon {
  transform: translate(1px, -1px);
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.copy-btn {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9d3ef;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.copy-btn.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: #10261a;
}

.copy-btn--light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.copy-btn--light:hover {
  background: var(--purple-soft);
  border-color: var(--line-strong);
  color: var(--purple-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 252, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header {
    background: var(--bg);
  }
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px -28px rgba(46, 42, 74, 0.5);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.08rem;
}

.brand-tag {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.nav-mobile-only {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfcff;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.header-cta:hover {
  background: var(--ink-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.8px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 74px) 0 clamp(20px, 4vw, 40px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 58% at 78% 28%, rgba(108, 92, 231, 0.18), transparent 70%),
    radial-gradient(48% 48% at 12% 12%, rgba(126, 217, 160, 0.16), transparent 70%),
    radial-gradient(44% 44% at 86% 82%, rgba(255, 179, 199, 0.16), transparent 70%),
    linear-gradient(180deg, #f7f6fc 0%, #f2effb 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59, 54, 99, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 52% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 52% 38%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 246, 252, 0.96) 0%, rgba(247, 246, 252, 0.8) 36%, rgba(247, 246, 252, 0.1) 72%, transparent 100%);
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  min-height: min(720px, calc(100svh - var(--header-h) - 76px));
}

.hero-copy {
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.78);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.hero-kicker .icon {
  color: var(--purple);
}

.hero h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mark {
  padding: 0 0.06em;
  background: linear-gradient(transparent 63%, var(--purple-soft) 63%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  max-width: 33rem;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fffdfa 0%, #ece7ff 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 50px 100px -50px rgba(59, 54, 99, 0.48);
}

.hero-pet {
  position: relative;
  z-index: 3;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 28px 30px rgba(59, 54, 99, 0.18));
  animation: float 6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(91, 75, 214, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  inset: 14%;
  animation: spin 42s linear infinite;
}

.orbit-2 {
  inset: 2%;
  border-color: rgba(79, 191, 122, 0.34);
  animation: spin 62s linear infinite reverse;
}

.orbit-1::after,
.orbit-2::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.orbit-2::after {
  top: 12%;
  left: auto;
  right: 12%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 191, 122, 0.12);
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.9);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}

.chip-code {
  top: 7%;
  left: 0;
  animation-delay: -1s;
}

.chip-ok {
  top: 27%;
  right: 1%;
  animation-delay: -3s;
}

.chip-ts {
  right: 5%;
  bottom: 15%;
  animation-delay: -5s;
}

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

.float-pet {
  position: absolute;
  z-index: 4;
  width: 58px;
  height: 58px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: float 8s ease-in-out infinite;
}

.pet-a {
  left: 4%;
  bottom: 15%;
  animation-delay: -2s;
}

.pet-b {
  top: 5%;
  right: 0;
  animation-delay: -4s;
}

/* Stats */
.stats-band {
  position: relative;
  z-index: 3;
  padding: 0 0 clamp(40px, 6vw, 68px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 21px 18px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 12.5px;
}

/* Sections */
.section {
  padding-block: clamp(72px, 9vw, 112px);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.about-copy,
.about-figure,
.install-copy,
.install-code,
.eco-card,
.usage-cat,
.bento-card,
.download-copy,
.download-links,
.footer-grid > * {
  min-width: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: reveal-in 0.7s var(--ease) both;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about-copy p {
  max-width: 58ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.about-source {
  margin-top: 20px !important;
  padding-left: 15px;
  border-left: 3px solid var(--green);
  font-size: 13.5px !important;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 0.6s var(--ease);
}

.about-figure:hover img {
  transform: rotate(0) translateY(-4px);
}

.about-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Features */
.section-features {
  background: linear-gradient(180deg, transparent 0%, #f1eefb 10%, #f1eefb 90%, transparent 100%);
}

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

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 222px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.bento-card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.bento-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.bento-icon--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fdfcff;
}

.card-wide {
  grid-column: span 7;
}

.card-debug {
  grid-column: span 5;
  background: linear-gradient(135deg, #f4f1ff 0%, #eef7f1 100%);
}

.card-mock {
  grid-column: span 4;
}

.card-versions {
  grid-column: span 5;
  background: #f1f9f4;
}

.card-ts {
  grid-column: span 3;
  background: var(--ink-dark);
  border-color: transparent;
}

.card-md {
  grid-column: span 3;
}

.card-gen {
  grid-column: span 5;
}

.card-security {
  grid-column: span 4;
  background: #fff4f7;
}

.card-share {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(140px, 0.75fr);
  align-items: center;
  min-height: 196px;
  background: linear-gradient(120deg, #2b2745 0%, #37315a 100%);
  border-color: transparent;
}

.card-ts h3,
.card-share h3 {
  color: #fdfcff;
}

.card-ts p,
.card-share p {
  color: #c9c3e4;
}

.card-ts .mini-code code {
  color: #e9e5ff;
}

.card-pet {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.92;
  pointer-events: none;
}

.mini-code {
  min-width: 0;
  margin-top: auto;
  padding-top: 20px;
}

.mini-code pre {
  margin: 0;
  padding: 15px 17px;
  overflow: auto;
  border-radius: 14px;
  background: var(--ink-dark);
  color: #e9e5ff;
}

.mini-code code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
}

.card-ts .mini-code {
  padding-top: 16px;
}

.mini-code--dark pre,
.card-ts .mini-code pre {
  padding: 0;
  background: transparent;
}

.response-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.response-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.response-time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.mini-json {
  padding: 11px 13px;
  border: 1px solid rgba(91, 75, 214, 0.12);
  border-radius: 12px;
  background: rgba(253, 252, 255, 0.68);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow: auto;
  white-space: nowrap;
}

.mock-list {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.mock-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.mock-list code {
  color: var(--purple-dark);
}

.mock-list span {
  color: var(--muted);
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.version-list span {
  padding: 5px 10px;
  border: 1px solid rgba(79, 191, 122, 0.22);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.76);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.version-list b {
  color: var(--green-dark);
}

.file-badge {
  display: inline-block;
  width: max-content;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1.2;
}

.gen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.gen-list span,
.share-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 159, 186, 0.32);
  border-radius: 10px;
  background: rgba(253, 252, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.security-row code {
  color: #a24162;
}

.security-row span {
  color: var(--muted);
  letter-spacing: 0.18em;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.card-share .share-tags span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ded9f2;
}

.share-pet {
  justify-self: center;
  width: min(150px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.28));
}

.iteration {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.iteration-item {
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.iteration-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.iteration-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Framework band */
.framework-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(91, 75, 214, 0.14);
  border-radius: 28px;
  background: linear-gradient(120deg, #eee9ff 0%, #e6f6ec 100%);
}

.framework-copy h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.framework-copy p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.framework-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(91, 75, 214, 0.12);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.76);
}

.framework-list span {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.framework-list small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Ecosystem */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.eco-php {
  grid-column: span 7;
  background: linear-gradient(135deg, #f4f1ff 0%, #fbfaff 100%);
}

.eco-go {
  grid-column: span 5;
  background: linear-gradient(135deg, #effaf3 0%, #fbfefc 100%);
}

.eco-rust {
  grid-column: span 5;
  background: linear-gradient(135deg, #fff6f2 0%, #fffbfa 100%);
}

.eco-ui {
  grid-column: span 7;
  background: linear-gradient(135deg, #fff4f8 0%, #fbfaff 100%);
}

.eco-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fdfcff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.version-pill {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.eco-card h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.eco-card p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.eco-command {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 20px;
}

.eco-command code {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(253, 252, 255, 0.8);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.eco-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 12.5px;
}

.eco-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--purple-dark);
  font-weight: 700;
}

.eco-links a:hover {
  color: var(--purple);
}

.eco-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.install-copy h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.install-copy > p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

.install-steps {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.install-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.install-steps strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
}

.install-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.install-steps code,
.install-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 0.92em;
  word-break: break-word;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.install-code {
  display: grid;
  gap: 14px;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-dark);
  box-shadow: var(--shadow-md);
}

.code-window--flush {
  box-shadow: none;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #b8b1d0;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.code-bar > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-dots {
  display: flex;
  flex: none;
  gap: 5px;
}

.code-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b557a;
}

.code-dots i:first-child {
  background: #ff9fba;
}

.code-dots i:nth-child(2) {
  background: #f5c84c;
}

.code-dots i:nth-child(3) {
  background: #7ed9a0;
}

.code-bar .copy-btn {
  margin-left: auto;
}

.code-window pre {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  color: #e9e5ff;
}

.code-window pre code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
}

.tok-key {
  color: #c9b6ff;
}

.tok-str {
  color: #a5e6b8;
}

.tok-fn {
  color: #8fb8ff;
}

.tok-num {
  color: #ffb08a;
}

.tok-com {
  color: #8f88ad;
}

.framework-table {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.framework-table summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.framework-table summary::-webkit-details-marker {
  display: none;
}

.framework-table summary::after {
  content: "+";
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.framework-table[open] summary::after {
  content: "-";
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

td {
  color: var(--muted);
  line-height: 1.75;
}

td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

td code,
.docs-article td code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 0.92em;
  word-break: break-word;
}

.install-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Usage */
.usage-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.usage-code-panel,
.usage-code-panel .code-window,
.usage-code-panel pre {
  min-width: 0;
}

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

.usage-cat {
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.usage-cat:nth-child(1) {
  grid-column: span 5;
}

.usage-cat:nth-child(2) {
  grid-column: span 7;
}

.usage-cat:nth-child(3) {
  grid-column: span 7;
}

.usage-cat:nth-child(4) {
  grid-column: span 5;
}

.usage-cat h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.usage-cat p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chips span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.usage-code-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.usage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.usage-cta p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* Changelog */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 169px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  padding: 20px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 164px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-item.is-latest::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(79, 191, 122, 0.12);
}

.timeline-meta {
  padding-top: 1px;
  text-align: right;
}

.timeline-meta .version {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
}

.timeline-meta time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.latest-badge {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9.5px;
  font-weight: 700;
}

.timeline-body {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child .timeline-body {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-body h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.timeline-body p {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.changelog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.changelog-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Pets */
.section-pets {
  background: linear-gradient(180deg, transparent 0%, #efecfa 10%, #efecfa 90%, transparent 100%);
}

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

.pet-card {
  margin: 0;
  padding: 13px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pet-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}

.pet-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.pet-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.pet-card strong {
  color: var(--ink);
  font-size: 12.5px;
}

.pet-card code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.pet-license {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.pet-license a {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Download */
.section-download {
  padding-top: clamp(24px, 4vw, 40px);
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(50% 70% at 88% 10%, rgba(108, 92, 231, 0.34), transparent 70%),
    radial-gradient(40% 55% at 8% 100%, rgba(126, 217, 160, 0.18), transparent 70%),
    linear-gradient(135deg, #292544 0%, #3a3460 100%);
  box-shadow: var(--shadow-lg);
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 75%);
  opacity: 0.32;
  pointer-events: none;
}

.download-copy,
.download-links {
  position: relative;
  z-index: 2;
}

.download-copy h2 {
  margin: 0 0 10px;
  color: #fdfcff;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.download-copy > p {
  max-width: 54ch;
  margin: 0;
  color: #c9c3e4;
  font-size: 14.5px;
  text-wrap: pretty;
}

.download-command {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 24px 0;
  padding: 7px 8px 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.download-command code {
  flex: 1;
  min-width: 0;
  overflow: auto;
  color: #f0edff;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-pet {
  position: absolute;
  left: clamp(22px, 4vw, 56px);
  bottom: 8px;
  z-index: 1;
  width: 66px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

.download-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.download-links a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f6f3ff;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.download-links a:last-child {
  border-bottom: 0;
}

.download-links a:hover {
  padding-left: 4px;
  color: #ffffff;
}

.download-links span {
  margin-left: auto;
  color: #b9b2d6;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
}

/* Footer */
.site-footer {
  padding: clamp(52px, 7vw, 76px) 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 44px);
}

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

.footer-brand img {
  width: 60px;
  height: 60px;
  flex: none;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  max-width: 28ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--purple-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
}

.footer-info b {
  color: var(--ink-2);
}

.footer-info .dot {
  color: var(--line-strong);
}

/* Donation */
.donate {
  margin-top: clamp(32px, 4vw, 48px);
}

.donate-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.donate-kicker {
  margin: 0 0 3px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-copy h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.donate-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.donate-codes {
  display: flex;
  align-items: center;
  gap: 14px;
}

.donate-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.donate-code img {
  width: auto;
  height: 92px;
  max-width: 100%;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.donate-code span {
  font-weight: 600;
}

.donate-code:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.donate-wechat:hover {
  border-color: var(--green);
}

.donate-alipay:hover {
  border-color: #1677ff;
}

.donate-dialog {
  width: min(92vw, 420px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.donate-dialog::backdrop {
  background: rgba(28, 25, 48, 0.58);
  backdrop-filter: blur(6px);
}

.donate-dialog-card {
  position: relative;
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 26px 24px 22px;
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.donate-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.donate-dialog-close:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.donate-dialog-kicker {
  margin: 0;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-dialog-card h2 {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.donate-dialog-img {
  width: auto;
  height: auto;
  max-width: min(76vw, 300px);
  max-height: 56vh;
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.donate-dialog-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .donate-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }

  .donate-copy p {
    max-width: 36ch;
    margin-inline: auto;
  }

  .donate-codes {
    justify-content: center;
  }

  .donate-code img {
    height: 84px;
  }

  .donate-dialog-card {
    padding: 22px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate-code {
    transition: none;
  }
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-block: 48px;
  text-align: center;
}

.not-found img {
  margin-bottom: 10px;
}

.not-found-code {
  margin: 0;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.not-found h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Back to top pet */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top-ring circle {
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: calc(188.5 - (188.5 * var(--progress, 0)));
  transition: stroke-dashoffset 0.1s linear;
}

.to-top-pet {
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.to-top:hover .to-top-pet,
.to-top:focus-visible .to-top-pet {
  transform: translateY(-3px) rotate(-6deg);
}

.to-top:active .to-top-pet {
  transform: scale(0.94);
}

.to-top::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  font-size: 10.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(4px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.to-top:hover::after,
.to-top:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Motion */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 24px;
  }

  .float-chip {
    font-size: 9.5px;
  }

  .chip-ts {
    display: none;
  }

  .bento-card {
    min-height: 208px;
  }

  .eco-command {
    align-items: flex-start;
  }

  .eco-command code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
    font-size: 10.5px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .nav-mobile-only {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-visual {
    width: min(100%, 460px);
    justify-self: center;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(247, 246, 252, 0.96) 0%, rgba(247, 246, 252, 0.78) 50%, rgba(247, 246, 252, 0.16) 100%);
  }

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

  .about-figure {
    max-width: 680px;
  }

  .framework-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .eco-php,
  .eco-go,
  .eco-rust,
  .eco-ui {
    grid-column: span 6;
  }

  .eco-card {
    min-height: 300px;
  }

  .usage-cat:nth-child(1),
  .usage-cat:nth-child(2),
  .usage-cat:nth-child(3),
  .usage-cat:nth-child(4) {
    grid-column: span 6;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .card-wide,
  .card-debug,
  .card-mock,
  .card-versions,
  .card-ts,
  .card-md,
  .card-gen,
  .card-security,
  .card-share {
    grid-column: span 12;
  }

  .card-share {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-pet {
    justify-self: end;
    width: 110px;
    margin-top: -22px;
  }

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

  .eco-command,
  .download-command {
    align-items: flex-start;
  }

  .eco-command code,
  .download-command code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  .download-pet {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 3.3rem);
    letter-spacing: -0.025em;
  }

  .code-window pre code {
    font-size: 10.5px;
  }

  .eco-command {
    align-items: flex-start;
  }

  .eco-command code,
  .download-command code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  .eco-command code {
    font-size: 10.5px;
  }

  .download-command {
    align-items: flex-start;
  }

  .usage-cta p {
    width: 100%;
  }

  .usage-code-panel pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .docs-article pre code {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .hero-visual {
    width: min(100%, 390px);
  }

  .float-chip {
    font-size: 9px;
    padding: 7px 10px;
  }

  .chip-code {
    top: 2%;
    left: 0;
  }

  .chip-ok {
    top: 26%;
    right: 0;
  }

  .pet-a {
    left: 1%;
    bottom: 12%;
  }

  .pet-b {
    top: 2%;
    right: 0;
    width: 48px;
    height: 48px;
  }

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

  .stat {
    padding: 18px 14px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding-block: 64px;
  }

  .bento {
    gap: 12px;
  }

  .card-wide,
  .card-debug,
  .card-mock,
  .card-versions,
  .card-ts,
  .card-md,
  .card-gen,
  .card-security,
  .card-share {
    grid-column: span 12;
  }

  .card-share {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-pet {
    justify-self: end;
    width: 110px;
    margin-top: -22px;
  }

  .iteration {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .eco-php,
  .eco-go,
  .eco-rust,
  .eco-ui {
    grid-column: span 12;
    min-height: 0;
  }

  .usage-cats {
    gap: 12px;
  }

  .usage-cat:nth-child(1),
  .usage-cat:nth-child(2),
  .usage-cat:nth-child(3),
  .usage-cat:nth-child(4) {
    grid-column: span 12;
  }

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

  .timeline::before {
    left: 5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0 18px 24px;
  }

  .timeline-item::before {
    top: 28px;
    left: 0;
  }

  .timeline-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-align: left;
  }

  .timeline-meta time {
    margin-top: 0;
  }

  .latest-badge {
    margin-top: 0;
  }

  .timeline-body {
    padding-bottom: 16px;
  }

  .changelog-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .pet-card {
    padding: 10px 7px 9px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .download-links {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .to-top {
    right: 12px;
    bottom: 12px;
    width: 62px;
    height: 62px;
  }

  .to-top-pet {
    width: 44px;
    height: 44px;
  }

  .to-top::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-visual {
    width: min(100%, 330px);
  }

  .float-chip {
    font-size: 8.5px;
    padding: 6px 8px;
  }

  .float-pet {
    width: 44px;
    height: 44px;
  }

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

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 3.2rem);
  }

  .section-head h2,
  .about-copy h2,
  .install-copy h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .download-actions .btn {
    flex: 1 1 100%;
  }

  .download-copy h2 {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .hero-kicker {
    padding: 5px 9px;
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .hero-kicker .icon {
    width: 11px;
    height: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.is-visible {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-pet,
  .float-chip,
  .float-pet,
  .orbit {
    animation: none !important;
  }
}

/* Documentation page */
.docs-hero {
  padding: clamp(38px, 6vw, 64px) 0 26px;
  background:
    radial-gradient(50% 70% at 82% 0%, rgba(108, 92, 231, 0.14), transparent 70%),
    radial-gradient(40% 60% at 12% 10%, rgba(126, 217, 160, 0.12), transparent 70%),
    linear-gradient(180deg, #f7f6fc 0%, #f2effb 100%);
  border-bottom: 1px solid var(--line);
}

.docs-breadcrumb {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.docs-breadcrumb a {
  color: var(--purple-dark);
}

.docs-breadcrumb span {
  margin-inline: 6px;
  color: var(--line-strong);
}

.docs-hero h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.docs-hero > .wrap > p:not(.docs-breadcrumb):not(.docs-meta) {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.docs-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.docs-meta span {
  margin-inline: 6px;
  color: var(--line-strong);
}

.docs-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 56px) clamp(64px, 8vw, 96px);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding-right: 8px;
}

.docs-sidebar-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.docs-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-sidebar li {
  margin: 0;
}

.docs-sidebar a {
  display: block;
  padding: 5px 9px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.docs-sidebar a:hover {
  border-left-color: var(--purple);
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.docs-sidebar li.is-sub a,
.docs-toc-mobile li.is-sub a {
  padding-left: 22px;
  font-size: 11.5px;
}

.docs-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--purple-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.docs-end-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.docs-article {
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
}

.docs-article h2 {
  margin: 54px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.docs-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.docs-article h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
}

.docs-article p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.docs-article li {
  margin: 4px 0;
}

.docs-article strong {
  color: var(--ink);
}

.docs-article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.docs-article pre {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 14px;
  background: var(--ink-dark);
  color: #e9e5ff;
}

.docs-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.75;
}

.doc-pre {
  position: relative;
  margin: 18px 0;
}

.doc-pre .copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.doc-pre:hover .copy-btn,
.doc-pre:focus-within .copy-btn {
  opacity: 1;
}

.docs-article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--purple);
  border-radius: 0 10px 10px 0;
  background: var(--purple-soft);
  color: var(--ink-2);
}

.docs-article blockquote p:last-child {
  margin-bottom: 0;
}

.docs-article hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.docs-article table {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.docs-article .table-scroll {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.docs-article .table-scroll table {
  margin: 0;
  border: 0;
}

.docs-article a {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-article img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.docs-toc-mobile {
  display: none;
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.docs-toc-mobile summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.docs-toc-mobile ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}

.docs-toc-mobile a {
  display: inline-block;
  padding: 3px 0;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}

.docs-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.docs-end p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* Pygments tokens */
.highlight .c,
.highlight .c1,
.highlight .cm {
  color: #8f88ad;
  font-style: italic;
}

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kr,
.highlight .kt {
  color: #c9b6ff;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd {
  color: #a5e6b8;
}

.highlight .nf,
.highlight .fm {
  color: #8fb8ff;
}

.highlight .nc,
.highlight .nn {
  color: #ffd28a;
}

.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .il {
  color: #ffb08a;
}

.highlight .o,
.highlight .p {
  color: #d6d2ea;
}

.highlight .nx,
.highlight .nv,
.highlight .na {
  color: #e9e5ff;
}

.highlight .nt {
  color: #ff9fba;
}

.highlight .cp {
  color: #ff9fba;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-toc-mobile {
    display: block;
  }
}

@media (max-width: 760px) {
  .docs-hero {
    padding-top: 34px;
  }

  .docs-article {
    font-size: 14.5px;
  }

  .docs-article h2 {
    margin-top: 42px;
    padding-top: 20px;
  }

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

  .doc-pre .copy-btn {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .to-top-ring circle {
    transition: stroke-dashoffset 0.1s linear;
  }
}

/* ------------------------------------------------------------------
   Multi-language / bilingual additions
   ------------------------------------------------------------------ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  margin-left: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 252, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
}

.lang-switch span,
.lang-switch a {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-switch .is-active {
  background: var(--ink);
  color: #fdfcff;
}

.lang-switch a:hover {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.chip-php { top: 5%; left: 0; animation-delay: -1s; }
.chip-go { top: 24%; right: 0; animation-delay: -2.6s; }
.chip-rust { right: 4%; bottom: 14%; animation-delay: -4.1s; }
.chip-ui { left: 2%; bottom: 20%; animation-delay: -5.4s; }

.section-languages {
  background: linear-gradient(180deg, transparent 0%, #f1eefb 10%, #f1eefb 90%, transparent 100%);
}

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

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.track-php { background: linear-gradient(135deg, #f4f1ff 0%, #fbfaff 100%); }
.track-go { background: linear-gradient(135deg, #effaf3 0%, #fbfefc 100%); }
.track-rust { background: linear-gradient(135deg, #fff6f2 0%, #fffbfa 100%); }

.track-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-pet {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.92;
  pointer-events: none;
}

.track-card h3 {
  margin: 18px 0 4px;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.track-tagline {
  margin: 0 0 10px !important;
  color: var(--purple-dark) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.track-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.track-facts {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.track-facts li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.track-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.command-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding: 6px 7px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(253, 252, 255, 0.82);
}

.command-box code {
  flex: 1;
  min-width: 0;
  overflow: auto;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.track-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
}

.track-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--purple-dark);
  font-weight: 700;
}

.track-links a:hover { color: var(--purple); }

.ui-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  min-width: 0;
  margin-top: 16px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, #fff4f8 0%, #f6f2ff 100%);
  overflow: hidden;
}

.ui-band-copy { min-width: 0; }

.ui-band h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.ui-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.ui-note {
  margin-top: 8px !important;
  color: var(--ink-2) !important;
  font-family: var(--font-mono);
  font-size: 10.5px !important;
}

.ui-shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

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

.compare-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.compare-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--purple-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.compare-head a:hover { color: var(--purple); }

.compare-card .code-window { box-shadow: none; }

.compare-card .code-window pre {
  max-height: 330px;
}

.card-ts .gen-list span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ded9f2;
}

.ui-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ui-mini img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.pipeline-step {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ded9f2;
  font-family: var(--font-mono);
  font-size: 10px;
}

.pipeline-arrow { color: #8f88ad; font-size: 11px; }

.section-docs-home {
  background: linear-gradient(180deg, transparent 0%, #f1eefb 10%, #f1eefb 90%, transparent 100%);
}

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

.docs-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.docs-home-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.docs-home-card--large { padding: clamp(24px, 3vw, 32px); }

.docs-home-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-home-card h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.docs-home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.docs-home-card ul {
  margin: 14px 0 18px;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}

.docs-home-card .text-link { margin-top: auto; font-size: 12.5px; }

.docs-home-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

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

.adapter-group {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.adapter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.adapter-head h3 { margin: 0; color: var(--ink); font-size: 1.1rem; }
.adapter-head span { color: var(--purple-dark); font-family: var(--font-mono); font-size: 12px; }

.adapter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.adapter-chips span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

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

.install-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.install-card h3 { margin: 16px 0 12px; color: var(--ink); font-size: 1.08rem; }
.install-card .command-box { margin-bottom: 16px; }
.install-card .text-link { margin-top: auto; font-size: 12.5px; }

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

.version-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.version-card .track-top { justify-content: space-between; }
.version-card strong { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.version-card h3 { margin: 14px 0 8px; color: var(--ink); font-size: 1rem; }

.version-card ul {
  margin: 0 0 16px;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.version-card .text-link { font-size: 12px; }

/* Docs hub */
.docs-hub-body {
  padding-block: clamp(30px, 5vw, 52px) 0;
}

.docs-hub-grid { margin-bottom: 0; }

.workflow-section,
.compare-section {
  padding-block: clamp(48px, 7vw, 78px) 0;
}

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

.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.workflow-index {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.workflow-step strong { color: var(--ink); font-size: 13px; }

.compare-table th:first-child,
.compare-table td:first-child { width: 20%; }

.faq-section { padding-block: clamp(48px, 7vw, 78px) 0; }

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

.faq-item {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--purple-dark);
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .faq-list { grid-template-columns: 1fr; }
}

.docs-hub-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-block: clamp(40px, 6vw, 64px);
}

/* Docs page additions */
.docs-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.docs-actions .text-link { font-size: 12px; }

.doc-figure { margin: 24px 0; }

.doc-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.doc-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.docs-end > div { flex: 1; min-width: 0; }
.docs-end .command-box { margin-top: 8px; }

.docs-next {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.docs-next h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.3rem;
}

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

.docs-next-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
}

.docs-next-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.docs-next-link strong { color: var(--ink); font-size: 13px; }
.docs-next-link .icon { margin-left: auto; }

.docs-help { margin-top: 18px; }

/* Bilingual responsive */
@media (max-width: 1100px) {
  .chip-ui { display: none; }
  .track-card { min-height: 460px; }
}

@media (max-width: 960px) {
  .lang-switch { font-size: 9.5px; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 0; }
  .ui-band { grid-template-columns: 1fr; }
  .ui-shot { max-width: 620px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card .code-window pre { max-height: 360px; }
  .adapter-groups { grid-template-columns: 1fr; }
  .install-cards { grid-template-columns: 1fr; }
  .version-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .chip-rust { display: none; }
  .track-pet { width: 52px; height: 52px; top: 16px; right: 14px; }
  .track-grid { gap: 12px; }
  .track-card { padding: 22px; }
  .command-box { align-items: flex-start; }
  .command-box code { white-space: normal; overflow-wrap: anywhere; }
  .compare-grid { gap: 12px; }
  .docs-home-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .docs-hub-body { padding-top: 28px; }
  .docs-hub-cta { padding-block: 36px; }
  .docs-badges { margin-bottom: 12px; }
  .docs-actions { gap: 12px; }
  .docs-next { margin-top: 40px; padding-top: 24px; }
  .docs-next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .chip-go { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch span, .lang-switch a { padding: 4px 6px; }
  .track-card h3 { font-size: 1.3rem; }
  .workflow { grid-template-columns: 1fr; }
  .ui-band { padding: 22px; }
  .install-card, .version-card, .adapter-group { padding: 20px; }
  .docs-home-card, .docs-home-card--large { padding: 20px; }
}

.docs-badges .version-pill { margin-left: 0; }
.command-box code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.compare-card .code-window pre code { font-size: 10.5px; }

.download-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.footer-col a { display: flex; align-items: center; gap: 4px; }
.footer-col a .icon { flex: none; }

@media (max-width: 760px) {
  .compare-card .code-window pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .chip-go { display: inline-flex; }
}

@media (max-width: 360px) {
  .chip-go { display: none; }
}

.br-mobile { display: none; }

@media (max-width: 760px) {
  .br-mobile { display: inline; }
  .compare-card .code-window pre { max-height: none; }
}

@media (max-width: 520px) {
  html[lang="en"] .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    line-height: 1.08;
  }
}

.about-copy p a {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-copy p a:hover { color: var(--purple); }
