:root {
  color-scheme: light;
  --page: #f8f8f6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-muted: rgba(244, 243, 240, 0.72);
  --surface-elevated: #ffffff;
  --ink: #1a1a1d;
  --ink-soft: #55555f;
  --ink-faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-strong: #005bb8;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --coral: #e8516a;
  --coral-soft: rgba(232, 81, 106, 0.08);
  --gold: #c8862c;
  --gold-soft: rgba(200, 134, 44, 0.08);
  --teal: #0a9b8a;
  --teal-soft: rgba(10, 155, 138, 0.08);
  --mint: var(--accent);
  --code: #1a1a1d;
  --code-ink: #f5f5f7;
  --header-surface: rgba(248, 248, 246, 0.78);
  --canvas-line: rgba(0, 113, 227, 0.1);
  --canvas-line-strong: rgba(232, 81, 106, 0.2);
  --canvas-node: rgba(29, 29, 31, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.7);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px rgba(255, 255, 255, 0.7);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.08);
  --gradient-warm: linear-gradient(135deg, #e8516a 0%, #f0a050 100%);
  --gradient-cool: linear-gradient(135deg, #0071e3 0%, #0a9b8a 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 113, 227, 0.06) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 30% 80%, rgba(232, 81, 106, 0.05) 0%, transparent 55%);
  --content: 1180px;
  --header-height: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c0c0f;
  --surface: rgba(28, 28, 32, 0.76);
  --surface-solid: #1c1c20;
  --surface-muted: rgba(38, 38, 42, 0.68);
  --surface-elevated: #242428;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a6;
  --ink-faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #2997ff;
  --accent-strong: #64b5ff;
  --accent-soft: rgba(41, 151, 255, 0.1);
  --coral: #ff6b7e;
  --coral-soft: rgba(255, 107, 126, 0.1);
  --gold: #e0a84a;
  --gold-soft: rgba(224, 168, 74, 0.1);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.1);
  --mint: var(--accent);
  --header-surface: rgba(12, 12, 15, 0.76);
  --canvas-line: rgba(41, 151, 255, 0.14);
  --canvas-line-strong: rgba(255, 107, 126, 0.22);
  --canvas-node: rgba(245, 245, 247, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.28);
  --gradient-warm: linear-gradient(135deg, #ff6b7e 0%, #f0a050 100%);
  --gradient-cool: linear-gradient(135deg, #2997ff 0%, #2dd4bf 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(41, 151, 255, 0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 30% 80%, rgba(255, 107, 126, 0.06) 0%, transparent 55%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--page);
  transition: background-color 360ms ease, color 360ms ease;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  transition: background-color 360ms ease, color 360ms ease;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: #fff;
  background: var(--accent);
}

.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;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: none;
}

:root[data-theme="dark"] .icon {
  filter: invert(1);
}

.icon--small {
  width: 14px;
  height: 14px;
}

.section-wrap {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header-surface);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.guide-page .site-header,
.library-page .site-header {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--header-shadow);
}

:root[data-theme="dark"] .site-header {
  background: var(--header-surface);
}

.site-header__inner {
  width: min(calc(100% - 32px), 1380px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: inset 0 1px var(--glass-highlight);
  object-fit: cover;
  transition: background-color 280ms ease, border-color 280ms ease;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 580;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-button,
.icon-button,
.button {
  border: 0;
  cursor: pointer;
}

.header-button,
.icon-button {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px var(--glass-highlight);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-button:hover,
.icon-button:hover {
  background: var(--surface-solid);
}

.header-button:focus-visible,
.icon-button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

.header-button {
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.header-button kbd {
  min-width: 28px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-faint);
  background: var(--surface-muted);
  font-family: inherit;
  font-size: 11px;
  text-align: center;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.theme-toggle__auto,
.theme-toggle__light,
.theme-toggle__dark {
  display: none;
}

:root[data-theme-mode="auto"] .theme-toggle__auto,
:root[data-theme-mode="light"] .theme-toggle__light,
:root[data-theme-mode="dark"] .theme-toggle__dark {
  display: block;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 160;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 12, 18, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu__panel {
  position: absolute;
  top: 8px;
  right: 8px;
  width: min(360px, calc(100% - 16px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: saturate(170%) blur(30px);
  -webkit-backdrop-filter: saturate(170%) blur(30px);
  transform: translateY(-12px) scale(0.98);
  transform-origin: top right;
  transition: transform 220ms ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0) scale(1);
}

.mobile-menu__header {
  min-height: 44px;
  padding: 0 4px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu__panel > a {
  min-height: 52px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--gradient-hero), var(--page);
}

.hero__canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: calc(var(--header-height) + 88px) 0 96px;
}

.hero__content .eyebrow {
  opacity: 0;
  animation: hero-enter 700ms 80ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 80px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-enter 760ms 130ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__summary {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 760ms 190ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-enter 760ms 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button--primary .icon {
  filter: invert(1);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--glass,
.button--secondary {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px var(--glass-highlight), 0 8px 22px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Path Section (cards) ─── */

.path-section {
  padding-block: 108px 124px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-heading--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2,
.recommendation-section h2,
.final-section h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 730;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

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

.path-item {
  position: relative;
  padding: 32px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
}

.path-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cool);
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.path-item:hover::before {
  opacity: 1;
}

.path-item__number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-cool);
}

.path-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.path-item strong,
.path-item small {
  display: block;
}

.path-item strong {
  font-size: 20px;
  font-weight: 680;
  line-height: 1.3;
}

.path-item small {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.path-item > .icon {
  align-self: flex-end;
  color: var(--ink-faint);
  transition: color 200ms ease, transform 200ms ease;
}

.path-item:hover > .icon {
  color: var(--accent);
  transform: translateX(4px);
}

/* ─── Recommendation Section ─── */

.recommendation-section {
  border-block: 1px solid var(--line-strong);
  background: var(--surface-muted);
}

.recommendation-section__inner {
  padding-block: 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 96px;
}

.recommendation-section__copy {
  max-width: 470px;
}

.recommendation-section__copy > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.deployment-list {
  display: grid;
  gap: 16px;
}

.deployment-link {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.deployment-link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.deployment-link__index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-warm);
}

.deployment-link strong,
.deployment-link small {
  display: block;
}

.deployment-link strong {
  font-size: 19px;
  font-weight: 680;
}

.deployment-link small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.deployment-link > .icon {
  color: var(--ink-faint);
  transition: color 200ms ease, transform 200ms ease;
}

.deployment-link:hover > .icon {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─── Client Section ─── */

.client-section {
  padding-block: 126px 110px;
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 680;
}

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

.client-row {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
}

.client-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.client-row:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.client-row:hover::before {
  opacity: 1;
}

.client-row__platform {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
  background: var(--accent-soft);
}

.client-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.client-row strong,
.client-row small {
  display: block;
}

.client-row strong {
  font-size: 17px;
  font-weight: 680;
}

.client-row small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.client-row > .icon {
  align-self: flex-end;
  color: var(--ink-faint);
  transition: color 200ms ease, transform 200ms ease;
}

.client-row:hover > .icon {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─── Final Section ─── */

.final-section {
  padding-block: 90px 116px;
  border-top: 1px solid var(--line-strong);
  text-align: center;
}

.final-section h2 {
  max-width: 720px;
  margin-inline: auto;
}

.final-section .button {
  margin-top: 30px;
}

/* ─── Library Page ─── */

.library-hero {
  padding-top: calc(var(--header-height) + 92px);
  padding-bottom: 52px;
}

.breadcrumb {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 13px;
}

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

.library-hero h1,
.not-found h1 {
  max-width: 800px;
  margin: 0;
  font-size: 64px;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.library-hero > p:last-of-type,
.not-found > p:last-of-type {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.library-toolbar {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.segmented-control {
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  scrollbar-width: none;
}

.segmented-control::-webkit-scrollbar {
  display: none;
}

.segmented-control a {
  min-width: max-content;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 620;
  transition: color 160ms ease, background 160ms ease;
}

.segmented-control a.is-active {
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: 0 2px 8px rgba(24, 40, 60, 0.11);
}

.library-content {
  padding-bottom: 120px;
}

.library-section-title {
  margin: 64px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 720;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.library-section-title--sub {
  margin-top: 40px;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.library-section-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
  text-transform: none;
}

.library-row {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 90px 24px;
  align-items: center;
  gap: 22px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.library-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.library-row__index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  background: var(--accent-soft);
}

.library-row__main {
  min-width: 0;
}

.library-row__title,
.library-row__summary {
  display: block;
}

.library-row__title {
  font-size: 18px;
  font-weight: 680;
}

.library-row__summary {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-row__platform {
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.library-empty {
  padding: 56px 0;
  color: var(--ink-soft);
  text-align: center;
}

/* ─── Reading Progress & Guide Layout ─── */

.reading-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-cool);
  transform: scaleX(0);
  transform-origin: left center;
}

.guide-shell {
  width: min(calc(100% - 40px), 1420px);
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 44px);
  display: grid;
  grid-template-columns: 232px minmax(0, 780px) 194px;
  justify-content: center;
  gap: 52px;
}

.guide-sidebar,
.guide-toc {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  height: calc(100svh - var(--header-height) - 54px);
  align-self: start;
  overflow-y: auto;
  scrollbar-width: thin;
}

.guide-sidebar__back {
  min-height: 36px;
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.guide-sidebar__label {
  margin: 26px 0 7px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.guide-sidebar nav a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.guide-sidebar nav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.guide-sidebar nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 680;
}

.guide-article {
  min-width: 0;
  padding-bottom: 100px;
}

.article-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-strong);
}

.article-header .breadcrumb {
  margin-bottom: 22px;
}

.article-meta {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-meta span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 11px;
  font-weight: 680;
}

.article-header h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-header > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.article-resources {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-resources a {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease;
}

.article-resources a:hover {
  border-color: var(--accent);
  background: var(--surface-solid);
}

.article-resources small {
  color: var(--ink-faint);
  font-size: 10px;
}

.article-body {
  padding-top: 34px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  scroll-margin-top: calc(var(--header-height) + 26px);
  letter-spacing: 0;
  text-wrap: balance;
}

.article-body h1 {
  margin: 58px 0 18px;
  font-size: 34px;
  line-height: 1.2;
}

.article-body h2 {
  margin: 56px 0 18px;
  padding-top: 8px;
  font-size: 29px;
  line-height: 1.24;
}

.article-body h3 {
  margin: 42px 0 14px;
  font-size: 22px;
  line-height: 1.35;
}

.article-body h4,
.article-body h5 {
  margin: 34px 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table,
.article-body .code-block {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
  text-underline-offset: 3px;
}

.article-body strong {
  font-weight: 720;
}

.article-body blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  background: var(--coral-soft);
}

.article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-body img:not(.code-copy__icon) {
  width: auto;
  max-width: 100%;
  max-height: 760px;
  margin: 26px auto 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(25, 38, 53, 0.1);
  cursor: zoom-in;
}

.article-body img:not(.code-copy__icon):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.article-body hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.code-block {
  position: relative;
  isolation: isolate;
}

.article-body pre {
  margin: 0;
  padding: 20px 58px 20px 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--code-ink);
  background: var(--code);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.article-body :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: color-mix(in srgb, var(--coral) 82%, var(--ink));
  background: var(--coral-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.code-copy {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(240, 246, 252, 0.16);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #f5f5f7;
  background: rgba(110, 118, 129, 0.16);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.code-copy__icon {
  display: block;
  width: 17px;
  height: 17px;
  max-width: none;
  opacity: 0.88;
  filter: invert(1);
  transition: opacity 160ms ease, transform 160ms ease;
}

.code-copy:hover {
  border-color: rgba(240, 246, 252, 0.28);
  background: rgba(177, 186, 196, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.code-copy:focus {
  outline: none;
}

.code-copy:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 1px;
}

.code-copy:active {
  transform: scale(0.94);
}

.code-copy[aria-busy="true"] {
  cursor: progress;
}

.code-copy.is-copying .code-copy__icon {
  opacity: 0.52;
}

.code-copy.is-copied {
  border-color: rgba(63, 185, 80, 0.34);
  background: rgba(110, 118, 129, 0.18);
}

.code-copy.is-copied .code-copy__icon {
  opacity: 1;
  transform: scale(1.04);
  filter: invert(72%) sepia(25%) saturate(1185%) hue-rotate(75deg) brightness(92%) contrast(91%);
}

.code-copy.is-copy-error {
  border-color: rgba(248, 81, 73, 0.42);
  background: rgba(248, 81, 73, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .code-copy {
    opacity: 0.76;
  }

  .code-block:hover .code-copy,
  .code-copy:focus-visible,
  .code-copy.is-copying,
  .code-copy.is-copied,
  .code-copy.is-copy-error {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .code-copy {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--surface-muted);
}

.guide-toc > p {
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.guide-toc nav,
.mobile-toc nav {
  border-left: 1px solid var(--line);
}

.toc-link {
  padding: 5px 0 5px 13px;
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
  transition: color 160ms ease, border 160ms ease;
}

.toc-link--h3 {
  padding-left: 25px;
}

.toc-link:hover,
.toc-link.is-active {
  color: var(--accent);
}

.toc-link.is-active {
  margin-left: -1px;
  border-left: 2px solid var(--accent);
}

.toc-empty {
  padding-left: 13px;
  color: var(--ink-faint);
  font-size: 12px;
}

.mobile-toc {
  display: none;
}

.article-pagination {
  margin-top: 76px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.article-pagination a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-pagination__next {
  justify-content: flex-end;
  text-align: right;
}

.article-pagination a span {
  min-width: 0;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.4;
}

.article-pagination small {
  margin-bottom: 4px;
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

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

/* ─── Footer ─── */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(calc(100% - 48px), var(--content));
  min-height: 180px;
  margin-inline: auto;
  padding-block: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand--footer {
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  font-weight: 650;
}

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

/* ─── Search & Image Dialogs ─── */

.search-dialog,
.image-dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.search-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(680px, calc(100svh - 32px));
}

.search-dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(8, 12, 18, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-dialog__surface {
  max-height: min(680px, calc(100svh - 32px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(7, 13, 22, 0.28), inset 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
}

.search-dialog__bar {
  min-height: 66px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
}

.search-dialog__bar input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-dialog__bar input::placeholder {
  color: var(--ink-faint);
}

.search-dialog__status {
  padding: 13px 20px 8px;
  color: var(--ink-faint);
  font-size: 12px;
}

.search-results {
  max-height: 540px;
  padding: 4px 10px 12px;
  overflow-y: auto;
}

.search-result {
  position: relative;
  min-height: 82px;
  padding: 13px 44px 13px 12px;
  border-bottom: 1px solid var(--line);
  display: block;
  border-radius: 8px;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-muted);
}

.search-result__meta,
.search-result strong,
.search-result small {
  display: block;
}

.search-result__meta {
  color: var(--mint);
  font-size: 10px;
  font-weight: 720;
}

.search-result strong {
  margin-top: 2px;
  font-size: 15px;
}

.search-result small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result > .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.image-dialog {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  overflow: hidden;
}

.image-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

.image-dialog__close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 18px;
  color: #fff;
  background: rgba(18, 24, 32, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.image-dialog__close .icon {
  filter: invert(1);
}

.not-found {
  min-height: 78svh;
  padding-top: calc(var(--header-height) + 120px);
  padding-bottom: 90px;
}

.not-found > div {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── Reveal Animations ─── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── Responsive ─── */

@media (max-width: 1180px) {
  .guide-shell {
    grid-template-columns: 220px minmax(0, 760px);
    gap: 42px;
  }

  .guide-toc {
    display: none;
  }
}

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

  .desktop-nav {
    display: none;
  }

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

  .recommendation-section__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .recommendation-section__copy {
    max-width: 680px;
  }

  .guide-shell {
    width: min(calc(100% - 40px), 780px);
    display: block;
  }

  .guide-sidebar {
    display: none;
  }

  .mobile-toc {
    margin: 28px 0 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    background: var(--surface-muted);
  }

  .mobile-toc summary {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 680;
    list-style: none;
  }

  .mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc nav {
    margin: 0 14px 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  .section-wrap,
  .site-footer__inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header__inner {
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand__text {
    font-size: 14px;
  }

  .header-button--search span,
  .header-button kbd {
    display: none;
  }

  .header-button--search {
    width: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .hero {
    min-height: 78svh;
    align-items: center;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: calc(var(--header-height) + 64px) 0 72px;
  }

  .hero h1 {
    max-width: 460px;
    font-size: 52px;
    line-height: 1;
  }

  .hero__summary {
    max-width: 420px;
    margin-top: 18px;
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .path-section {
    padding-block: 82px 92px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row .text-link {
    margin-top: 18px;
  }

  .section-heading h2,
  .recommendation-section h2,
  .final-section h2 {
    font-size: 34px;
  }

  .section-heading > p:last-child {
    font-size: 16px;
  }

  .path-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .path-item {
    padding: 22px 20px 20px;
  }

  .path-item strong {
    font-size: 18px;
  }

  .path-item small {
    font-size: 12px;
  }

  .recommendation-section__inner {
    padding-block: 76px;
    gap: 40px;
  }

  .recommendation-section__copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .deployment-link {
    padding: 18px 20px;
  }

  .deployment-link strong {
    font-size: 17px;
  }

  .client-section {
    padding-block: 90px 76px;
  }

  .client-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .final-section {
    padding-block: 72px 86px;
  }

  .library-hero {
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 34px;
  }

  .library-hero h1,
  .not-found h1 {
    font-size: 44px;
  }

  .library-toolbar {
    margin-top: 34px;
    display: block;
  }

  .library-toolbar .button {
    width: 100%;
    margin-top: 12px;
  }

  .segmented-control {
    width: 100%;
  }

  .library-content {
    padding-bottom: 84px;
  }

  .library-section-title {
    margin-top: 46px;
  }

  .library-row {
    padding: 14px 16px;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 14px;
  }

  .library-row__platform {
    display: none;
  }

  .library-row__title {
    font-size: 16px;
  }

  .library-row__summary {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .guide-shell {
    width: calc(100% - 32px);
    padding-top: calc(var(--header-height) + 28px);
  }

  .article-header {
    padding-bottom: 36px;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .article-header > p {
    font-size: 16px;
  }

  .article-resources {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-resources a {
    width: 100%;
  }

  .article-body {
    padding-top: 26px;
    font-size: 15px;
  }

  .article-body h1 {
    font-size: 28px;
  }

  .article-body h2 {
    margin-top: 48px;
    font-size: 25px;
  }

  .article-body h3 {
    font-size: 20px;
  }

  .article-body pre {
    padding: 18px 52px 18px 14px;
    font-size: 12px;
  }

  .code-copy {
    top: 10px;
    right: 10px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination__next {
    justify-content: flex-start;
    text-align: left;
  }

  .article-pagination__next span {
    order: 2;
  }

  .article-pagination__next .icon {
    order: 1;
    transform: rotate(180deg);
  }

  .site-footer__inner {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .search-dialog {
    width: calc(100% - 16px);
  }

  .search-dialog__bar {
    padding-left: 14px;
  }

  .image-dialog img {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
