@font-face {
  font-family: "WenYuan Serif Home";
  src: url("/front/WenYuanSerifSC-Home.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE10-FE19, U+FE30-FE6F, U+FF00-FFEF;
}

@font-face {
  font-family: "WenYuan Serif SC";
  src: url("/front/WenYuanSerifSC-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE10-FE19, U+FE30-FE6F, U+FF00-FFEF;
}

@font-face {
  font-family: "WenYuan Sans Home";
  src: url("/front/WenYuanSansSC-Home.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE10-FE19, U+FE30-FE6F, U+FF00-FFEF;
}

@font-face {
  font-family: "WenYuan Sans SC";
  src: url("/front/WenYuanSansSC-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE10-FE19, U+FE30-FE6F, U+FF00-FFEF;
}

@font-face {
  font-family: "Castoro String AI";
  src: url("/front/Castoro-StringAI.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0041, U+0049, U+0053, U+0067, U+0069, U+006E, U+0072, U+0074;
}

@font-face {
  font-family: "Castoro";
  src: url("/front/Castoro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F;
}

:root {
  --canvas: #f8f8f4;
  --page-background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 244, 0.94) 42%),
    radial-gradient(circle at 82% 12%, rgba(82, 103, 255, 0.08), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(22, 163, 111, 0.06), transparent 24%);
  --surface: #ffffff;
  --surface-soft: #f1f1ec;
  --ink: #0c0d12;
  --ink-2: #52545d;
  --ink-3: #8d8f98;
  --line: rgba(12, 13, 18, 0.1);
  --line-strong: rgba(12, 13, 18, 0.18);
  --blue: #5267ff;
  --blue-soft: rgba(82, 103, 255, 0.12);
  --blue-glow: rgba(82, 103, 255, 0.18);
  --green: #16a36f;
  --mobius-line-a: #0c0d12;
  --mobius-line-b: #08090d;
  --mobius-line-c: #1c1f2d;
  --mobius-line-d: #07080c;
  --mobius-rim-shadow: #05060a;
  --mobius-rim-light: #ffffff;
  --mobius-rim-blue: #5267ff;
  --mobius-flow-blue: #5267ff;
  --mobius-flow-soft: #8b98ff;
  --shadow: 0 20px 60px rgba(12, 13, 18, 0.08);
  --max: 1440px;
  --system-font: "WenYuan Sans Home", "WenYuan Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --wenyuan-serif: "Castoro", "WenYuan Serif Home", "WenYuan Serif SC", "Kaiti SC", "KaiTi", "STKaiti", "BiauKai", serif;
  --display-font: var(--wenyuan-serif);
  --sans: var(--system-font);
  --serif: var(--display-font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --ui: var(--system-font);
  --header-x: 24px;
  --header-y: 12px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #07080d;
  --page-background:
    linear-gradient(180deg, rgba(8, 9, 15, 0.98), rgba(7, 8, 13, 0.96) 46%),
    radial-gradient(circle at 74% 16%, rgba(143, 160, 255, 0.13), transparent 30%),
    radial-gradient(circle at 18% 24%, rgba(66, 210, 154, 0.08), transparent 24%);
  --surface: #10121a;
  --surface-soft: #151826;
  --ink: #f5f7ff;
  --ink-2: #c5cad8;
  --ink-3: #858da1;
  --line: rgba(235, 239, 255, 0.12);
  --line-strong: rgba(235, 239, 255, 0.22);
  --blue: #8fa0ff;
  --blue-soft: rgba(143, 160, 255, 0.14);
  --blue-glow: rgba(143, 160, 255, 0.24);
  --green: #42d29a;
  --mobius-line-a: #d7dbe7;
  --mobius-line-b: #f1f3f8;
  --mobius-line-c: #aeb8d4;
  --mobius-line-d: #eef0f5;
  --mobius-rim-shadow: #69728e;
  --mobius-rim-light: #fbfcff;
  --mobius-rim-blue: #9aa9ff;
  --mobius-flow-blue: #93a4ff;
  --mobius-flow-soft: #eef1ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

html.has-mobile-menu,
html.has-mobile-menu body {
  overflow: hidden;
}

html.has-mobile-menu astro-dev-toolbar {
  display: none !important;
}

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

img,
svg,
canvas {
  display: block;
}

button {
  cursor: pointer;
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-background);
}

.site-header,
.subpage-topbar {
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(12, 13, 18, 0.09);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 16px 44px rgba(12, 13, 18, 0.045);
  backdrop-filter: blur(18px) saturate(150%);
  transition:
    opacity 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease;
  user-select: none;
  -webkit-user-select: none;
}

.site-header {
  position: fixed;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 460px) minmax(414px, 1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  width: 100%;
  margin: 0;
  padding: var(--header-y) var(--header-x);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-scrolled,
.subpage-topbar.is-scrolled {
  opacity: 0.96;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 14px 38px rgba(12, 13, 18, 0.06);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 650;
}

.site-header-inner > .brand {
  grid-column: 1;
  justify-self: start;
}

.brand-mark {
  display: block;
  width: 72px;
  aspect-ratio: 790 / 372;
  flex: none;
  overflow: visible;
}

.brand-mark img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.brand-text {
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-nav,
.subpage-nav {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, 92px);
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--ink-2);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.top-nav a,
.subpage-nav a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.top-nav a,
.text-link,
.footer-links a {
  transition: color 0.18s ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"],
.subpage-nav a:hover,
.subpage-nav a[aria-current="page"],
.text-link:hover,
.footer-links a:hover {
  color: var(--ink);
}

.header-actions {
  grid-column: 3;
  display: grid;
  grid-template-columns: 118px 92px 146px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 414px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  justify-self: end;
}

.header-actions > .header-toggles,
.header-actions > .text-link,
.header-actions > .button-small {
  justify-self: end;
}

.header-actions > .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-height: 40px;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.header-actions > .button-small {
  width: 146px;
  padding-right: 0;
  padding-left: 0;
}

.header-actions > .text-link,
.header-actions > .button-small,
.mobile-menu-actions > .text-link,
.mobile-menu-actions > .button-small {
  font-family: var(--wenyuan-serif);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
}

.header-toggles {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.language-switch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.language-switch.is-open {
  z-index: 30;
}

.language-select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-select {
  --language-select-fill: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 32px;
  padding: 0 22px 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--language-select-fill);
  color: var(--ink-2);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.language-select::after {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: translateY(-62%) rotate(45deg);
  transition: transform 0.18s ease;
}

.language-switch.is-open .language-select::after,
.mobile-language-switch.is-open .language-select::after {
  transform: translateY(-36%) rotate(225deg);
}

.language-select:hover,
.language-select:focus-visible,
.language-switch.is-open .language-select,
.mobile-language-switch.is-open .language-select {
  --language-select-fill: var(--blue-soft);
  color: var(--ink);
  border-color: rgba(82, 103, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  width: 98px;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(82, 103, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 16px 38px rgba(12, 13, 18, 0.12);
  backdrop-filter: blur(14px);
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.language-options button:hover,
.language-options button:focus-visible,
.language-options button.is-active {
  color: var(--ink);
  background: var(--blue-soft);
  outline: none;
}

.language-options button.is-active::after {
  width: 5px;
  height: 9px;
  margin-left: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

.mobile-menu-button {
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.mobile-menu-button span {
  grid-area: 1 / 1;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toggle-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.toggle-button:hover {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: rgba(82, 103, 255, 0.22);
  transform: translateY(-1px);
}

.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-icon {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.78) rotate(-8deg);
}

.theme-wipe {
  position: fixed;
  top: var(--theme-wipe-y);
  left: var(--theme-wipe-x);
  z-index: 2147483647;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--theme-wipe-color);
  pointer-events: none;
  opacity: 1;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease;
  will-change: transform, opacity;
}

.theme-wipe.is-expanding {
  transform: translate(-50%, -50%) scale(var(--theme-wipe-radius));
}

.theme-wipe.is-fading {
  opacity: 0;
}

html.is-theme-wiping::view-transition-old(root),
html.is-theme-wiping::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.is-theme-wiping::view-transition-old(root) {
  z-index: 1;
}

html.is-theme-wiping::view-transition-new(root) {
  z-index: 2;
}

.toggle-button[data-theme-state="dark"] .theme-icon-sun,
.mobile-theme-button[data-theme-state="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.78) rotate(8deg);
}

.toggle-button[data-theme-state="dark"] .theme-icon-moon,
.mobile-theme-button[data-theme-state="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 12px 26px rgba(12, 13, 18, 0.16);
}

.button-dark:hover {
  background: #252733;
  border-color: #252733;
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.button-light:hover {
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(12, 13, 18, 0.08);
}

.button-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}

.button-ghost:hover {
  color: var(--ink);
  border-color: var(--line);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 118px 18px 54px;
  cursor: default;
  overflow: visible;
  place-items: stretch;
  user-select: none;
  -webkit-user-select: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background:
    linear-gradient(90deg, rgba(248, 248, 244, 0.92) 0%, rgba(248, 248, 244, 0.76) 44%, rgba(248, 248, 244, 0.2) 82%),
    linear-gradient(180deg, rgba(248, 248, 244, 0.26), rgba(248, 248, 244, 0.62));
  content: "";
  pointer-events: none;
}

.orbital-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.64;
  pointer-events: none;
}

.orbital-field canvas {
  width: 100%;
  height: 100%;
}

.hero-splash-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

.splash-cursor-canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  pointer-events: none;
}

.hero-logo-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100svh - 172px);
  text-align: left;
  perspective: 1100px;
}

.hero-logo-stage > :not(.hero-three-backdrop) {
  max-width: 860px;
  pointer-events: auto;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-2);
  backdrop-filter: blur(12px);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.live-dot::after {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: currentColor;
  color: var(--green);
  content: "";
  opacity: 0.14;
  animation: pulse 2.4s ease-out infinite;
}

.mobius-logo {
  --logo-gap: clamp(22px, 3.4vw, 42px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--logo-gap);
  width: min(780px, 58vw);
  min-height: auto;
  margin: 0 0 clamp(28px, 4vw, 42px);
  isolation: isolate;
  transform-style: preserve-3d;
  animation: logo-float 8s ease-in-out infinite;
  will-change: transform;
}

.mobius-logo::before {
  position: absolute;
  inset: -52% -16%;
  z-index: -1;
  background:
    radial-gradient(circle at 32% 50%, rgba(82, 103, 255, 0.11), transparent 24%),
    radial-gradient(circle at 62% 54%, rgba(12, 13, 18, 0.055), transparent 34%);
  content: "";
  filter: blur(18px);
}

.mobius-mark-wrap {
  position: relative;
  width: clamp(230px, 28vw, 350px);
  flex: 0 0 auto;
  transform-style: preserve-3d;
}

.mobius-three-stage {
  width: clamp(270px, 32vw, 420px);
  aspect-ratio: 2 / 1;
  overflow: visible;
}

.hero-three-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 100%;
  overflow: visible;
  opacity: 0.94;
  pointer-events: none;
}

.hero-three-backdrop::before {
  inset: auto 0 0 auto;
  width: min(64vw, 900px);
  height: min(52vh, 520px);
  opacity: 0.72;
}

.hero-three-canvas {
  position: absolute;
  right: clamp(-260px, -10vw, -120px);
  bottom: -10vh;
  width: clamp(1180px, 68vw, 1540px);
  height: 100svh;
  overflow: visible;
  pointer-events: auto;
}

.mobius-mark-wrap::before {
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 78% 48%, rgba(82, 103, 255, 0.2), transparent 16%),
    radial-gradient(ellipse at 50% 54%, rgba(12, 13, 18, 0.13), transparent 64%);
  content: "";
  filter: blur(18px);
  transform: translateZ(-60px);
}

.mobius-three-stage > div {
  position: absolute !important;
  overflow: visible;
  inset: -18% -18%;
  width: 136% !important;
  height: 136% !important;
  z-index: 1;
}

.hero-three-canvas > div {
  position: absolute !important;
  overflow: visible;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.mobius-three-stage canvas,
.hero-three-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.mobius-three-stage canvas.is-dragging,
.hero-three-canvas canvas.is-dragging {
  cursor: grabbing;
}

.mobius-three-fallback {
  position: absolute;
  inset: 12% 8%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 50%, rgba(82, 103, 255, 0.14), transparent 28%),
    radial-gradient(ellipse at 50% 52%, rgba(12, 13, 18, 0.06), transparent 70%);
  opacity: 0.72;
  filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobius-logo.is-three-ready .mobius-three-fallback,
.mobius-three-stage.is-three-ready .mobius-three-fallback,
.hero-three-canvas.is-three-ready .mobius-three-fallback {
  opacity: 0;
}

.mobius-mark {
  width: 100%;
  height: auto;
  filter: contrast(1.04) drop-shadow(0 20px 30px rgba(12, 13, 18, 0.14));
  overflow: visible;
}

.mobius-band {
  transform-box: fill-box;
  transform-origin: center;
  animation: mobius-band-breathe 9.2s ease-in-out infinite;
}

.mobius-depth,
.mobius-track,
.mobius-rim {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobius-depth {
  stroke: rgba(12, 13, 18, 0.24);
  stroke-width: 42;
  transform: translate3d(9px, 13px, -1px);
  filter: blur(1px);
  opacity: 0.52;
}

.mobius-track {
  stroke: url("#mobiusLine");
  stroke-width: 32;
}

.mobius-rim {
  pointer-events: none;
}

.mobius-rim-top {
  stroke: url("#mobiusRim");
  stroke-width: 8;
  stroke-dasharray: 260 120 180 440;
  stroke-dashoffset: 0;
  animation: mobius-rim-glide 9.2s ease-in-out infinite;
}

.mobius-rim-shadow {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
  stroke-dasharray: 160 840;
  stroke-dashoffset: -220;
  filter: blur(0.4px);
  animation: mobius-rim-glide 7.8s linear infinite reverse;
}

.mobius-flow {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobius-flow-soft {
  stroke: rgba(82, 103, 255, 0.18);
  stroke-width: 42;
  stroke-dasharray: 76 924;
  stroke-dashoffset: 0;
  filter: blur(5px);
  animation: mobius-current 6.8s linear infinite;
}

.mobius-flow-core {
  stroke: url("#mobiusFlow");
  stroke-width: 15;
  stroke-dasharray: 104 896;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px rgba(82, 103, 255, 0.38));
  animation: mobius-current 6.8s linear infinite;
}

.mobius-node circle {
  fill: var(--canvas);
  stroke: var(--ink);
  stroke-width: 24;
}

.mobius-node-fallback {
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.mobius-logo.is-motion-ready .mobius-node-fallback {
  opacity: 0;
}

.mobius-node-fallback-small,
.mobius-node-fallback-outer {
  fill: var(--canvas);
  stroke: var(--ink);
  stroke-width: 24;
}

.mobius-node-fallback-inner {
  fill: var(--blue);
  stroke: none;
}

.mobius-node-accent .node-inner {
  fill: var(--blue);
  stroke: none;
}

.mobius-node {
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.mobius-logo.is-motion-ready .mobius-node {
  opacity: 1;
}

.hero-wordmark {
  display: block;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  color: var(--ink);
  font-family: "Castoro String AI", var(--serif);
  font-size: clamp(86px, 10.2vw, 154px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
  white-space: nowrap;
  filter: drop-shadow(0 18px 34px rgba(12, 13, 18, 0.05));
  transform: none;
}

.split-parent {
  overflow: hidden;
}

.split-parent.hero-wordmark {
  padding: 0.16em 0 0.18em;
  margin-block: -0.16em -0.18em;
}

.split-char {
  display: inline-block;
  transform-origin: 50% 72%;
  will-change: transform, opacity, filter;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .split-char {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.8vw, 82px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

html[lang="en"] .hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 5vw, 70px);
}

.hero-copy {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  line-height: 1.36;
}

html[lang="en"] .hero-copy {
  width: min(100%, 920px);
  max-width: 920px;
  font-size: clamp(21px, 1.9vw, 29px);
}

@media (min-width: 760px) {
  html[lang="en"] .hero-copy span {
    white-space: nowrap;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 38px;
}

.hero-actions .button {
  min-width: 168px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.channel-entry {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: rgba(82, 84, 93, 0.48);
  font-size: 13px;
  font-weight: 700;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.channel-entry:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes mobius-current {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes mobius-band-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) skewX(0deg);
  }

  35% {
    transform: translate3d(0, -2px, 0) rotateX(5deg) rotateY(-8deg) skewX(-1.8deg);
  }

  70% {
    transform: translate3d(0, 2px, 0) rotateX(-4deg) rotateY(7deg) skewX(1.4deg);
  }
}

@keyframes mobius-rim-glide {
  0% {
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dashoffset: -380;
  }

  100% {
    stroke-dashoffset: -1000;
  }
}

.trust-strip li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.home-capabilities {
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  padding: 28px 0 104px;
}

.home-capabilities::before {
  position: absolute;
  inset: 10% auto auto 50%;
  width: min(620px, 70vw);
  height: min(620px, 70vw);
  border: 1px solid rgba(82, 103, 255, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(82, 103, 255, 0.07), transparent 62%),
    radial-gradient(circle at 28% 20%, rgba(12, 13, 18, 0.06), transparent 26%);
  content: "";
  transform: translateX(-18%);
  pointer-events: none;
}

.home-capabilities-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
  width: min(100% - 36px, 1120px);
  margin: 0 auto;
}

.home-capabilities-head {
  position: sticky;
  top: 112px;
  padding: 4px 0 12px;
}

.home-capabilities-head h2 {
  max-width: 500px;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-capabilities-lead {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.75;
}

.capability-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 460px;
  margin-top: 28px;
}

.capability-proof span {
  padding: 8px 13px;
  border: 1px solid rgba(12, 13, 18, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 12px 36px rgba(12, 13, 18, 0.05);
}

.capability-list {
  position: relative;
  display: grid;
  gap: 0;
  padding: 6px 28px;
  border: 1px solid rgba(12, 13, 18, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 247, 243, 0.5)),
    linear-gradient(90deg, rgba(82, 103, 255, 0.05), transparent 34%);
  box-shadow:
    0 28px 80px rgba(12, 13, 18, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(16px) saturate(145%);
}

.capability-list::before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 56px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(82, 103, 255, 0.26), transparent);
  content: "";
}

.capability-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  min-height: 118px;
  padding: 22px 2px 22px 0;
  border-bottom: 1px solid rgba(12, 13, 18, 0.08);
}

.capability-item:last-child {
  border-bottom: 0;
}

.capability-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: start;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 24px;
  margin-top: 2px;
  border: 1px solid rgba(82, 103, 255, 0.16);
  border-radius: 999px;
  background: var(--canvas);
  color: rgba(82, 103, 255, 0.86);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(82, 103, 255, 0.08);
}

.capability-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.05vw, 27px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: 0;
}

.capability-item p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.68;
}

.gateway-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(12, 13, 18, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 248, 244, 0.76)),
    radial-gradient(circle at 90% 0%, rgba(82, 103, 255, 0.1), transparent 34%);
  box-shadow:
    0 24px 70px rgba(12, 13, 18, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(18px) saturate(150%);
}

.gateway-panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(12, 13, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 13, 18, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
  pointer-events: none;
}

.panel-head,
.endpoint-box,
.gateway-routes {
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head span,
.endpoint-box span {
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-head em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.endpoint-box {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.endpoint-box code {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-routes {
  display: grid;
  gap: 8px;
}

.gateway-routes a {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.gateway-routes a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.gateway-routes strong {
  color: var(--ink);
  font-size: 15px;
}

.gateway-routes span {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-tight {
  padding-top: 82px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.status-band h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.78;
}

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

.route-card {
  min-height: 214px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.route-index {
  display: block;
  margin-bottom: 54px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.route-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.route-card span:last-child {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.model-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.model-list,
.metric-board,
.code-shell,
.status-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.model-list {
  padding: 8px;
}

.model-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 0 18px;
  border-radius: 6px;
  color: var(--ink-2);
}

.model-row + .model-row {
  border-top: 1px solid var(--line);
}

.model-row span {
  color: var(--ink);
  font-weight: 650;
}

.model-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-row em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 111, 0.1);
  color: #087348;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.metric-board {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
}

.metric-board div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 18px;
  border-radius: 6px;
}

.metric-board div + div {
  border-top: 1px solid var(--line);
}

.metric-value {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 13px;
}

.quickstart-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 32px;
  align-items: start;
}

.quickstart-section .section-head {
  margin-bottom: 0;
}

.code-shell {
  overflow: hidden;
  background: #0b0c12;
  box-shadow: 0 24px 70px rgba(12, 13, 18, 0.18);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #151721;
}

.code-tab,
.copy-code {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background 0.16s ease;
}

.code-tab {
  padding: 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.code-tab:hover,
.code-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.copy-code {
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.copy-code:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.code-block {
  min-height: 310px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #f1f4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.status-section {
  padding-bottom: 76px;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.status-band h2 {
  max-width: 600px;
  font-size: clamp(26px, 3.8vw, 42px);
}

.status-list {
  display: grid;
  gap: 8px;
}

.status-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(248, 248, 244, 0.75);
  font-size: 13px;
}

.status-item em {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--ink-2);
  font-size: 13px;
}

.footer-brand img {
  width: 64px;
  height: auto;
}

.footer-brand span {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a[href^="/legal/"] {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.78;
}

.footer-links a[href^="/legal/"]:hover {
  color: var(--ink-2);
  opacity: 0.9;
}

.copyright {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink-3);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.14;
  }

  50% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes mobile-menu-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mobile-menu-panel-in {
  from {
    transform: translateX(-102%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 960px) {
  :root {
    --header-x: 22px;
    --header-y: 10px;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
    gap: 14px 18px;
  }

  .top-nav,
  .subpage-nav {
    grid-column: 1 / -1;
    order: 3;
    grid-template-columns: repeat(5, minmax(72px, 92px));
    gap: 0;
    justify-content: start;
    font-size: 15px;
  }

  .header-actions {
    grid-column: 2;
    min-width: 0;
  }

  .hero-inner {
    width: min(100% - 28px, 720px);
    text-align: center;
  }

  .hero::after {
    display: block;
    background:
      linear-gradient(90deg, rgba(248, 248, 244, 0.94) 0%, rgba(248, 248, 244, 0.82) 52%, rgba(248, 248, 244, 0.28) 100%),
      linear-gradient(180deg, rgba(248, 248, 244, 0.22), rgba(248, 248, 244, 0.5));
  }

  .hero-actions,
  .trust-strip {
    justify-content: center;
  }

  .hero-three-canvas {
    right: clamp(-260px, -20vw, -96px);
    bottom: -10vh;
    width: min(132vw, 1240px);
    height: 100svh;
  }

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

  .model-panel,
  .quickstart-section,
  .status-band {
    grid-template-columns: 1fr;
  }

  .status-band {
    align-items: stretch;
  }
}

@media (min-width: 681px) and (max-width: 1232px) {
  .hero-three-canvas {
    right: clamp(-420px, -28vw, -190px);
    bottom: -10vh;
    width: min(142vw, 1580px);
    height: 100svh;
  }
}

@media (min-width: 1233px) and (max-width: 1440px) {
  .hero-three-canvas {
    right: clamp(-340px, -18vw, -180px);
    bottom: -10vh;
    width: min(122vw, 1500px);
    height: 100svh;
  }
}

@media (max-width: 680px) {
  :root {
    --header-x: 14px;
    --header-y: 10px;
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    width: 100%;
    margin-top: 0;
    gap: 12px;
    padding: var(--header-y) var(--header-x);
    border-radius: 0;
  }

  .subpage-topbar {
    min-height: auto;
  }

  .brand-mark {
    width: 54px;
  }

  .brand-text {
    font-size: 14px;
  }

  .button-small {
    min-height: 34px;
    padding: 0 13px;
  }

  .top-nav,
  .subpage-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-button {
    grid-column: 2;
    display: inline-grid;
    justify-self: end;
  }

  .mobile-menu-button span:nth-child(1) {
    transform: translateY(-7px);
  }

  .mobile-menu-button span:nth-child(3) {
    transform: translateY(7px);
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    color: var(--ink);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 13, 18, 0.66);
    animation: mobile-menu-backdrop-in 0.2s ease both;
    backdrop-filter: blur(8px);
  }

  .mobile-menu-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: none;
    max-height: calc(100svh - 12px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    font-family: var(--sans);
    box-shadow:
      1px 0 0 rgba(255, 255, 255, 0.82) inset,
      26px 0 70px rgba(12, 13, 18, 0.22);
    animation: mobile-menu-panel-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-brand {
    gap: 9px;
  }

  .mobile-menu-brand .brand-mark {
    width: 58px;
  }

  .mobile-menu-brand .brand-text {
    font-size: 16px;
  }

  .mobile-menu-close {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
  }

  .mobile-menu-close span {
    grid-area: 1 / 1;
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-close span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 26px;
    overflow-y: auto;
    padding: 40px 24px 22px;
  }

  .mobile-menu-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 25px;
    padding: 0;
    font-family: var(--display-font);
    font-size: 17px;
    font-weight: 750;
    text-align: center;
  }

  .mobile-menu-nav a[aria-current="page"] {
    color: var(--blue);
  }

  .mobile-menu-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
  }

  .mobile-menu-actions .text-link,
  .mobile-menu-actions .button {
    min-height: 40px;
    font-family: var(--wenyuan-serif);
    font-size: 15px;
    font-weight: 760;
    line-height: 1;
  }

  .mobile-menu-actions .text-link {
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
  }

  .mobile-menu-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px max(28px, env(safe-area-inset-bottom));
  }

  .mobile-language-switch {
    position: relative;
    z-index: 4;
    display: inline-flex;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
  }

  .mobile-language-switch .language-select {
    --language-select-fill: var(--surface-soft);
    width: 88px;
    min-width: 88px;
    height: 38px;
    min-height: 38px;
    padding: 0 28px 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
  }

  .mobile-language-switch .language-select::after {
    right: 13px;
  }

  .mobile-language-switch .language-options {
    top: auto;
    right: 50%;
    bottom: calc(100% + 8px);
    width: 112px;
    transform: translateX(50%);
  }

  .mobile-theme-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-theme-button:hover,
  .mobile-theme-button:focus-visible {
    background: var(--blue-soft);
    color: var(--ink);
    outline: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-menu-backdrop,
    .mobile-menu-panel {
      animation: none;
    }
  }

  .hero {
    min-height: auto;
    overflow: visible;
    padding: 112px 16px 18px;
  }

  .hero-inner {
    width: 100%;
    min-width: 0;
  }

  .hero-logo-stage {
    min-height: auto;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .orbital-field,
  .hero-splash-layer,
  .hero-three-backdrop {
    display: none;
  }

  .hero-three-backdrop {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100svh;
    opacity: 0.58;
  }

  .hero-splash-layer {
    opacity: 0.24;
  }

  html.is-theme-wiping .splash-cursor-canvas,
  html.is-theme-wiping .hero-three-canvas canvas {
    pointer-events: none;
  }

  .hero::after {
    background: rgba(248, 248, 244, 0.58);
  }

  .hero-three-canvas {
    right: -64vw;
    bottom: -4vh;
    width: 168vw;
    height: 100svh !important;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-copy span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: min(100%, 260px);
    min-width: 0;
  }

  .eyebrow {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: center;
    max-width: 100%;
    min-height: auto;
    padding: 8px 13px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
  }

  .mobius-logo {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: min(100%, 330px);
    min-height: auto;
    margin: 12px auto 24px;
  }

  .mobius-mark-wrap {
    width: clamp(168px, 58vw, 230px);
  }

  .mobius-three-stage {
    width: clamp(206px, 72vw, 260px);
    aspect-ratio: 1.82 / 1;
  }

  .mobius-three-fallback {
    inset: 16% 10%;
  }

  .hero-wordmark {
    width: auto;
    max-width: 100%;
    font-size: clamp(46px, 13vw, 58px);
    line-height: 0.94;
  }

  .hero h1 {
    width: min(100%, 340px);
    max-width: 100%;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.18;
    text-align: center;
  }

  .hero-copy {
    width: min(100%, 330px);
    max-width: 100%;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.45;
  }

  .hero-actions {
    width: min(100%, 300px);
    max-width: 100%;
    justify-content: center;
    margin-top: 56px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .trust-strip {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  .trust-strip li {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
  }

  .home-capabilities {
    padding: 20px 0 72px;
  }

  .home-capabilities::before {
    inset: 6% auto auto 24%;
    width: 420px;
    height: 420px;
  }

  .home-capabilities-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    width: calc(100% - 32px);
  }

  .home-capabilities-head {
    position: static;
  }

  .home-capabilities-head h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 42px);
  }

  .home-capabilities-lead {
    max-width: 100%;
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.72;
  }

  .capability-proof {
    margin-top: 22px;
  }

  .capability-proof span {
    padding: 7px 11px;
    font-size: 12px;
  }

  .capability-list {
    gap: 0;
    padding: 4px 18px;
    border-radius: 8px;
  }

  .capability-list::before {
    display: none;
  }

  .capability-item {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 20px 0;
  }

  .capability-index {
    width: 48px;
    height: 23px;
    font-size: 11px;
  }

  .capability-item h3 {
    font-size: clamp(22px, 6.2vw, 29px);
  }

  .capability-item p {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .section {
    width: calc(100% - 32px);
    padding: 58px 0;
  }

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

  .route-card {
    min-height: 166px;
  }

  .route-index {
    margin-bottom: 28px;
  }

  .model-row {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 16px 10px;
  }

  .model-row span {
    grid-column: 1 / -1;
  }

  .model-row strong {
    white-space: normal;
  }

  .code-tabs {
    flex-wrap: wrap;
  }

  .copy-code {
    flex-basis: 100%;
    margin-left: 0;
  }

  .code-block {
    min-height: 260px;
    padding: 18px;
    font-size: 11.5px;
  }

  .status-band {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 32px);
  }

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

.subpage-shell {
  min-height: 100vh;
  background: var(--page-background);
  color: var(--ink);
}

.blog-page {
  display: flex;
  flex-direction: column;
}

.blog-page > main {
  flex: 1 0 auto;
}

.subpage-topbar {
  position: sticky;
  min-height: auto;
}

.page-hero {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 78px 0 42px;
}

.page-hero-narrow {
  max-width: 760px;
}

.page-hero h1 {
  max-width: 840px;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.8vw, 70px);
  font-weight: 700;
  line-height: 1.08;
}

.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto 56px;
}

.model-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto 18px;
}

.model-overview article {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
}

.model-overview span {
  display: block;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-overview strong {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.model-overview p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.model-card {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.model-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
}

.model-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 111, 0.1);
  color: #087348;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.model-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.model-tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
}

.pricing-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 247, 243, 0.96) 36%),
    radial-gradient(circle at 84% 8%, rgba(166, 75, 6, 0.045), transparent 30%),
    radial-gradient(circle at 16% 14%, rgba(22, 163, 111, 0.045), transparent 24%);
}

.pricing-shell {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 56px 0 54px;
  font-family: var(--sans);
}

.pricing-switch-page {
  --pricing-accent: #5267ff;
  --pricing-accent-strong: #2738c8;
  --pricing-accent-soft: #f3f5ff;
  --pricing-border: rgba(14, 22, 36, 0.12);
  --pricing-muted: #697386;
}

.pricing-page-title {
  margin-bottom: 22px;
}

.pricing-page-title h1 {
  margin: 0;
  color: #101828;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 820;
  line-height: 1.08;
}

.pricing-page-title p {
  margin: 12px 0 0;
  color: #596273;
  font-size: 16px;
  line-height: 1.6;
}

.pricing-product-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--pricing-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 28px rgba(14, 22, 36, 0.045);
}

.pricing-product-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #697386;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.pricing-product-tab:hover {
  color: #273244;
  background: rgba(14, 22, 36, 0.035);
}

.pricing-product-tab.is-active {
  border-color: rgba(82, 103, 255, 0.78);
  background: var(--pricing-accent-soft);
  color: var(--pricing-accent-strong);
}

.pricing-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.pricing-rule-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  padding: 13px 18px;
  border: 1px solid var(--pricing-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(14, 22, 36, 0.035);
  color: #596273;
  font-size: 14px;
}

.pricing-rule-bar > div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: wrap;
}

.pricing-rule-label {
  color: #101828;
  font-weight: 780;
}

.pricing-rule-label::before {
  content: "▧";
  margin-right: 7px;
  color: var(--pricing-accent);
  font-size: 12px;
}

.pricing-rule-bar p {
  margin: 0;
  color: #7a8394;
  white-space: nowrap;
}

.pricing-list-card {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--pricing-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 32px rgba(14, 22, 36, 0.045);
}

.pricing-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(14, 22, 36, 0.1);
}

.pricing-list-title,
.pricing-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-list-title h2 {
  margin: 0;
  color: #101828;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 790;
}

.pricing-title-icon {
  color: #101828;
  font-size: 22px;
}

.pricing-list-meta {
  color: #697386;
  font-size: 13px;
}

.pricing-panel {
  padding: 20px;
}

.pricing-panel[hidden] {
  display: none;
}

.pricing-group-grid-codex {
  grid-template-columns: repeat(2, minmax(0, 312px));
  width: 100%;
  margin: 0;
}

.pricing-switch-table {
  min-width: 920px;
}

.pricing-switch-table th,
.pricing-switch-table td {
  padding: 18px 22px;
}

.pricing-switch-table .model-id-cell span {
  display: none;
}

.pricing-empty-state {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px dashed rgba(105, 115, 134, 0.32);
  border-radius: 8px;
  color: #697386;
  font-size: 15px;
}

.pricing-switch-disclaimer {
  margin-top: 16px;
}

.pricing-hero {
  padding-bottom: 30px;
}

.pricing-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 16px;
}

.pricing-hero-card > div,
.pricing-snapshot,
.codex-pricing-panel,
.codex-disclaimer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 18px 54px rgba(12, 13, 18, 0.04);
}

.pricing-hero-card > div {
  min-width: 0;
  padding: 34px 36px;
}

.pricing-hero-card h1 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 780;
  line-height: 1.08;
}

.pricing-hero-card p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.72;
}

.pricing-snapshot {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}

.pricing-snapshot span {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-snapshot strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 780;
  line-height: 1.1;
}

.pricing-snapshot em {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(22, 163, 111, 0.1);
  color: #087348;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.pricing-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pricing-metric-grid article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.pricing-metric-grid span {
  display: block;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-metric-grid strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 760;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.pricing-metric-grid p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.58;
}

.codex-pricing-panel {
  overflow: hidden;
  margin-top: 0;
  padding: 0;
}

.codex-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.codex-panel-head > div {
  min-width: 0;
}

.codex-panel-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 780;
  line-height: 1.12;
}

.codex-panel-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.68;
}

.codex-table-wrap {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.codex-pricing-table {
  min-width: 900px;
}

.codex-pricing-table th,
.codex-pricing-table td {
  padding: 18px 22px;
}

.codex-pricing-table th {
  background: rgba(12, 13, 18, 0.03);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.codex-pricing-table .model-id-cell {
  min-width: 300px;
}

.codex-pricing-table .model-id-cell span {
  max-width: 280px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}

.codex-image-prices {
  width: 100%;
  margin-top: 14px;
}

.image-price-table-wrap {
  margin-top: 16px;
}

.image-price-table {
  min-width: 720px;
}

.image-price-table th,
.image-price-table td {
  padding: 16px 22px;
}

.image-price-cell strong {
  color: var(--pricing-accent-strong);
}

.official-price-cell strong {
  color: #182033;
}

.model-desc-cell {
  min-width: 320px;
  color: #596273;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-official-note {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(82, 103, 255, 0.18);
  border-radius: 7px;
  background: rgba(243, 245, 255, 0.6);
  color: #596273;
  font-size: 14px;
  line-height: 1.65;
}

[data-pricing-mode-panel][hidden] {
  display: none;
}

.codex-disclaimer {
  margin-top: 14px;
}

.pricing-rule-grid,
.pricing-content {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.pricing-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-rule-grid article {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.pricing-rule-grid span,
.pricing-group-card span,
.model-id-cell span,
.pricing-family-rate {
  color: var(--ink-3);
  font-family: var(--sans);
}

.pricing-rule-grid span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-rule-grid strong {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.12;
}

.pricing-rule-grid p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.pricing-content {
  padding: 18px 0 24px;
}

.pricing-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.pricing-toolbar > div:first-child,
.pricing-family-head > div {
  min-width: 0;
}

.pricing-toolbar h2,
.pricing-family h3,
.pricing-disclaimer h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
}

.pricing-toolbar p,
.pricing-family-head p,
.pricing-disclaimer p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.pricing-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.04);
}

.pricing-mode button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pricing-mode .is-active {
  background: #fff;
  color: var(--pricing-accent-strong);
  box-shadow: 0 8px 20px rgba(12, 13, 18, 0.08);
}

.pricing-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-group-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.pricing-group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 103, 255, 0.72);
  box-shadow: 0 14px 34px rgba(12, 13, 18, 0.07);
}

.pricing-group-card.is-active {
  border-color: rgba(82, 103, 255, 0.86);
  background: var(--pricing-accent-soft);
}

.pricing-group-card strong {
  display: block;
  color: #101828;
  font-size: 16px;
  line-height: 1.25;
}

.pricing-group-card span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.pricing-group-card em {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 111, 0.1);
  color: #087348;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.pricing-note-band {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(82, 103, 255, 0.22);
  border-radius: 7px;
  background: rgba(243, 245, 255, 0.78);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pricing-note-band strong {
  flex: none;
  color: var(--pricing-accent-strong);
}

.pricing-table-wrap[hidden],
.pricing-note-band[hidden] {
  display: none;
}

.pricing-family {
  scroll-margin-top: 96px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.pricing-family + .pricing-family {
  margin-top: 18px;
}

.pricing-family-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.pricing-family h3 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.pricing-family-rate {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.pricing-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  scrollbar-color: rgba(12, 13, 18, 0.24) transparent;
  scrollbar-width: thin;
}

.pricing-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 14px;
  font-family: var(--sans);
}

.pricing-table th,
.pricing-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: rgba(12, 13, 18, 0.035);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.model-id-cell {
  min-width: 220px;
}

.model-id-cell code {
  display: inline-block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.model-id-cell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(248, 248, 244, 0.78);
  color: var(--ink-2);
  font-size: 12px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.model-id-cell button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.model-id-cell span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.price-cell {
  white-space: nowrap;
}

.price-cell strong {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 760;
}

.price-cell span {
  margin-left: 5px;
  color: var(--ink-3);
  font-size: 12px;
}

.price-cell small {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  text-decoration: line-through;
}

.price-cell.is-muted {
  color: var(--ink-3);
  font-size: 18px;
}

.saving-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 163, 111, 0.1);
  color: #087348;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.image-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-price-grid article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(248, 248, 244, 0.74);
}

.image-price-grid span {
  display: block;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.image-price-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 760;
}

.pricing-disclaimer {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.pricing-disclaimer h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-family: var(--serif);
  font-weight: 780;
}

.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 24px 0 88px;
  align-items: start;
}

.docs-page {
  background: var(--page-background);
}

.docs-hero {
  padding-bottom: 24px;
}

.docs-reader {
  grid-template-columns: 272px minmax(0, 1fr);
  justify-content: center;
  gap: 44px;
  padding-top: 18px;
}

.docs-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 6px;
}

.docs-reader-sidebar {
  gap: 10px;
  padding: 8px 0 0;
}

.docs-sidebar-label {
  margin: 0 0 4px;
  padding: 0 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-reader-sidebar nav {
  display: grid;
  gap: 4px;
}

.docs-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 18px;
}

.docs-reader-sidebar a {
  position: relative;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  line-height: 1.5;
}

.docs-sidebar a:hover,
.docs-sidebar a.is-active {
  background: rgba(12, 13, 18, 0.06);
  color: var(--ink);
}

.docs-reader-sidebar a.is-active {
  border-left-color: var(--ink);
  background: rgba(12, 13, 18, 0.08);
  font-weight: 700;
}

.docs-content {
  min-width: 0;
}

.docs-markdown {
  padding-bottom: 48px;
}

.docs-markdown h1,
.docs-markdown h2,
.docs-markdown h3,
.docs-markdown h4,
.docs-markdown h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.docs-markdown h1 {
  font-size: clamp(36px, 4.8vw, 56px);
}

.docs-markdown h2 {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 30px;
}

.docs-markdown h3 {
  margin-top: 30px;
  font-size: 26px;
}

.docs-markdown h4 {
  margin-top: 24px;
  font-size: 24px;
}

.docs-markdown p,
.docs-markdown li,
.docs-markdown blockquote {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.86;
}

.docs-markdown p {
  margin: 14px 0 0;
}

.docs-markdown h1 + p,
.docs-markdown h2 + p,
.docs-markdown h3 + p,
.docs-markdown h4 + p {
  margin-top: 12px;
}

.docs-markdown ul,
.docs-markdown ol {
  margin: 14px 0 0;
  padding-left: 24px;
}

.docs-markdown li + li {
  margin-top: 7px;
}

.docs-markdown a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.docs-markdown code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.36em;
}

.docs-markdown blockquote {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.52);
}

.docs-table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  scrollbar-color: rgba(12, 13, 18, 0.24) transparent;
  scrollbar-width: thin;
}

.docs-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.docs-table-wrap th,
.docs-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.62;
  text-align: left;
  vertical-align: top;
}

.docs-table-wrap th {
  background: rgba(12, 13, 18, 0.035);
  color: var(--ink);
  font-weight: 800;
}

.docs-table-wrap tr:last-child td {
  border-bottom: 0;
}

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

.docs-tab-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 13, 18, 0.04);
}

.docs-tab-button {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.docs-tab-button:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.docs-tab-button.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(12, 13, 18, 0.08);
}

.docs-tab-panel[hidden] {
  display: none;
}

.docs-markdown [data-doc-panel][hidden] {
  display: none;
}

.docs-tab-panel > *:first-child {
  margin-top: 0;
}

.docs-code-block {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 18px 44px rgba(12, 13, 18, 0.06);
}

.docs-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 244, 0.72);
}

.docs-code-bar-rich {
  min-height: 48px;
}

.docs-code-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.docs-code-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.docs-code-kind,
.docs-code-language {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-code-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.docs-code-select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.docs-code-menu .docs-code-language {
  position: relative;
  min-width: 82px;
  height: 30px;
  padding: 0 25px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 12px) 12px / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 7px) 12px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.56);
  color: var(--ink-2);
  cursor: pointer;
}

.docs-code-menu .docs-code-language:hover,
.docs-code-menu.is-open .docs-code-language {
  border-color: var(--line-strong);
  color: var(--ink);
}

.docs-code-menu .docs-code-language:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.docs-code-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: grid;
  min-width: 112px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 42px rgba(12, 13, 18, 0.14);
  transform-origin: top right;
}

.docs-code-options[hidden] {
  display: none;
}

.docs-code-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.docs-code-options button:hover,
.docs-code-options button:focus-visible,
.docs-code-options button.is-active {
  background: var(--blue-soft);
  color: var(--ink);
  outline: none;
}

.docs-code-options button.is-active::after {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.docs-code-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-code-kind::after,
.docs-code-title::after {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0 2px 8px;
  border-radius: 999px;
  background: var(--line-strong);
  content: "";
}

.docs-copy-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-2);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.docs-copy-button:hover {
  background: var(--ink);
  color: var(--canvas);
}

.docs-copy-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.docs-copy-button.is-copied {
  border-color: rgba(22, 163, 111, 0.28);
  background: rgba(22, 163, 111, 0.12);
  color: var(--green);
}

.docs-copy-button.is-error {
  border-color: rgba(202, 57, 45, 0.24);
  background: rgba(202, 57, 45, 0.1);
  color: #ca392d;
}

.docs-copy-button svg {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.docs-copy-button .docs-check-icon {
  opacity: 0;
  transform: scale(0.78);
}

.docs-copy-button.is-copied .docs-copy-icon {
  opacity: 0;
  transform: scale(0.78);
}

.docs-copy-button.is-copied .docs-check-icon {
  opacity: 1;
  transform: scale(1);
}

.docs-code-block pre {
  max-height: 560px;
  margin: 0;
  padding: 20px 22px;
  overflow: auto;
  scrollbar-color: rgba(12, 13, 18, 0.24) transparent;
  scrollbar-width: thin;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
}

.docs-code-block pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.docs-code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

.docs-code-block pre::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.24);
}

.docs-code-block pre::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 13, 18, 0.38);
}

.docs-code-block pre::-webkit-scrollbar-corner {
  background: transparent;
}

.docs-code-block code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: pre;
}

.code-token {
  font: inherit;
}

.code-command,
.code-section {
  color: #244eea;
  font-weight: 760;
}

.code-flag,
.code-key {
  color: #8a4f00;
  font-weight: 720;
}

.code-string {
  color: #087348;
}

.code-url,
.code-variable {
  color: #0f55e8;
}

.code-literal,
.code-number {
  color: #9b2d7f;
}

.docs-empty-state {
  display: grid;
  gap: 14px;
  min-height: 360px;
  align-content: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.docs-empty-state span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-empty-state h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.docs-empty-state p {
  max-width: 620px;
  margin: 0;
}

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

.docs-card,
.article-card,
.contact-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.docs-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
}

.docs-card h2,
.article-card h2,
.legal-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
}

.docs-card p,
.article-card p,
.legal-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.api-reference-page .docs-hero {
  display: grid;
  gap: 14px;
  align-items: start;
  padding-bottom: 34px;
}

.api-reference-page .docs-hero[hidden] {
  display: none !important;
}

.api-hero-copy {
  display: grid;
  gap: 0;
}

.api-reference-hero h1 {
  max-width: 980px;
}

.api-reference-hero p code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.12em 0.36em;
}

.api-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
  justify-content: flex-end;
  margin-top: 22px;
}

.api-mobile-nav-toggle,
.api-mobile-nav-backdrop,
.docs-mobile-toc-toggle,
.docs-mobile-toc-backdrop {
  display: none;
}

.api-reference-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(330px, 430px);
  gap: 24px;
  align-items: start;
  width: min(100% - 36px, var(--max));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 18px 0 94px;
}

html.has-docs-example-panel .api-reference-shell {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(330px, 430px);
}

html.has-docs-toc-panel .api-reference-shell {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(160px, 220px);
}

html.is-docs-tool-panel .api-reference-shell {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
}

.api-reference-nav,
.api-example-panel {
  position: sticky;
  top: 86px;
  min-width: 0;
}

.api-reference-nav {
  display: grid;
  gap: 18px;
  padding: 8px 0 0;
}

.api-reference-nav .docs-sidebar-label {
  padding: 0;
}

.api-nav-group {
  display: grid;
  gap: 8px;
}

.api-nav-group > span,
.api-tool-card span,
.api-param-row span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.api-nav-group nav {
  display: grid;
  gap: 3px;
}

.api-nav-group a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 26px 0 11px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.12s ease;
}

.api-nav-group a:hover,
.api-nav-group a:focus-visible {
  border-left-color: var(--ink);
  background: rgba(12, 13, 18, 0.06);
  color: var(--ink);
  outline: none;
}

.api-nav-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.api-nav-method-post {
  background: rgba(82, 103, 255, 0.14);
  color: #0f55e8;
}

.api-nav-method-get {
  background: rgba(22, 163, 111, 0.14);
  color: #087348;
}

.api-nav-group a.is-active,
.api-nav-group a[aria-current="true"] {
  border-left-color: var(--blue);
  background:
    linear-gradient(90deg, var(--blue-soft), rgba(255, 255, 255, 0.62));
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 24px rgba(82, 103, 255, 0.08);
}

.api-nav-group a.is-active .api-nav-method-post,
.api-nav-group a[aria-current="true"] .api-nav-method-post {
  background: var(--blue);
  color: #fff;
}

.api-nav-group a.is-active .api-nav-method-get,
.api-nav-group a[aria-current="true"] .api-nav-method-get {
  background: var(--green);
  color: #fff;
}

.api-nav-group a.is-active::after,
.api-nav-group a[aria-current="true"]::after {
  width: 6px;
  height: 6px;
  position: absolute;
  top: 50%;
  right: 11px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  box-shadow: 0 0 0 4px var(--blue-soft);
  transform: translateY(-50%);
}

.api-reference-main {
  min-width: 0;
  padding-top: 8px;
}

.api-example-panel[hidden] {
  display: none;
}

.api-doc-page[hidden],
.api-example-stack[hidden] {
  display: none;
}

.api-doc-page {
  min-height: calc(100svh - 210px);
  animation: apiPanelEnter 0.16s ease-out both;
}

.api-markdown-page {
  padding-bottom: 48px;
}

.api-example-stack {
  display: grid;
  gap: 14px;
  animation: apiPanelEnter 0.16s ease-out both;
}

.docs-page-toc {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 0 0;
  animation: apiPanelEnter 0.16s ease-out both;
}

.docs-page-toc[hidden] {
  display: none;
}

.docs-page-toc > span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-page-toc a {
  display: block;
  min-width: 0;
  padding: 7px 0 7px 10px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.docs-page-toc a:hover,
.docs-page-toc a:focus-visible {
  border-left-color: var(--blue);
  color: var(--ink);
  outline: none;
}

.docs-page-toc a.is-depth-3 {
  padding-left: 22px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
}

.docs-page-toc p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes apiPanelEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.api-section {
  scroll-margin-top: 104px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.api-section:first-child,
.api-doc-page {
  padding-top: 0;
  border-top: 0;
}

.api-section h2,
.api-section h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: 0;
}

.api-markdown-page.docs-markdown h1,
.api-markdown-page.docs-markdown h2,
.api-markdown-page.docs-markdown h3,
.api-markdown-page.docs-markdown h4 {
  font-family: var(--serif);
}

.api-section h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 760;
  line-height: 1.1;
}

.api-section h3 {
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.18;
}

.api-section p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.78;
}

.api-section code {
  font-family: var(--mono);
}

.api-overview {
  padding-bottom: 36px;
}

.api-endpoint-hero {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}

.api-endpoint-kicker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.api-endpoint-hero h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 760;
  line-height: 1.1;
}

.api-endpoint-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.76;
}

.api-endpoint-hero p strong {
  color: var(--ink);
}

.api-request-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.api-request-path {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.api-request-path code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
}

.api-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-method-post {
  border-color: rgba(82, 103, 255, 0.3);
  background: var(--blue-soft);
  color: var(--blue);
}

.api-method-get {
  border-color: rgba(22, 163, 111, 0.22);
  background: rgba(22, 163, 111, 0.09);
  color: var(--green);
}

.api-detail-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.api-detail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.api-detail-heading h3 {
  margin: 0;
  font-family: var(--wenyuan-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 760;
  line-height: 1.1;
}

.api-detail-heading > code {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.api-field-list {
  display: grid;
  gap: 0;
}

.api-field-row {
  display: grid;
  gap: 12px;
  padding: 18px 0;
}

.api-field-row + .api-field-row {
  border-top: 1px solid var(--line);
}

.api-field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.api-field-meta strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}

.api-field-meta span,
.api-field-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(12, 13, 18, 0.04);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.api-field-meta em {
  background: rgba(214, 57, 57, 0.09);
  color: #c43131;
}

.api-field-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
}

.api-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.api-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.api-flow i {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.api-param-list,
.api-debug-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.api-param-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.api-param-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.api-param-row strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.api-param-row p,
.api-param-row code {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.68;
}

.api-param-row code {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.api-callout,
.api-config-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(82, 103, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 248, 244, 0.66)),
    radial-gradient(circle at 100% 0%, rgba(82, 103, 255, 0.08), transparent 38%);
}

.api-callout strong {
  color: var(--ink);
  font-size: 15px;
}

.api-callout p,
.api-config-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.72;
}

.api-config-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.api-table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  scrollbar-color: rgba(12, 13, 18, 0.24) transparent;
  scrollbar-width: thin;
}

.api-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.api-table th,
.api-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.api-table th {
  background: rgba(12, 13, 18, 0.035);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.api-table tr:last-child td {
  border-bottom: 0;
}

.api-table code {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.api-endpoint-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.api-endpoint-line span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.api-endpoint-line code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

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

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

.api-tool-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.api-tool-card h3 {
  margin-top: 18px;
  font-size: 23px;
}

.api-tool-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.api-debug-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.api-debug-item.is-open {
  border-color: rgba(82, 103, 255, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(12, 13, 18, 0.06);
}

.api-debug-trigger {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.api-debug-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.api-debug-trigger i {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.28s ease;
}

.api-debug-trigger i::before,
.api-debug-trigger i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.24s ease;
}

.api-debug-trigger i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.api-debug-item.is-open .api-debug-trigger i {
  border-color: rgba(82, 103, 255, 0.24);
  background: var(--blue-soft);
  color: var(--blue);
  transform: rotate(180deg);
}

.api-debug-item.is-open .api-debug-trigger i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.api-debug-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    height 0.3s ease,
    opacity 0.22s ease,
    transform 0.3s ease;
}

.api-debug-item.is-open .api-debug-panel {
  opacity: 1;
  transform: translateY(0);
}

.api-debug-answer {
  margin: 0 18px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.api-debug-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}

.api-example-panel {
  display: grid;
  gap: 14px;
  max-height: calc(100svh - 104px);
  overflow-y: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.api-example-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.api-example-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 18px 54px rgba(12, 13, 18, 0.045);
}

.api-example-card .docs-code-block,
.api-config-card .docs-code-block {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.api-config-card .docs-code-block {
  margin-top: 14px;
  border-radius: 8px;
}

.api-example-card .docs-code-block pre {
  max-height: 360px;
  font-size: 12px;
}

.article-card,
.legal-card {
  padding: 32px;
}

.legal-document {
  width: min(100% - 56px, 780px);
  padding-bottom: 72px;
}

.legal-hero {
  padding-bottom: 18px;
}

.legal-hero .section-kicker {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.legal-hero h1 {
  color: var(--ink-2);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
}

.legal-hero p {
  max-width: 700px;
  color: var(--ink-3);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.8;
}

.legal-document .legal-card {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.legal-document .legal-card + .legal-card {
  margin-top: 0;
}

.legal-document .legal-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.52;
}

.article-card + .article-card,
.legal-card + .legal-card {
  margin-top: 16px;
}

.article-card ul,
.legal-card ul,
.legal-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.article-card li + li,
.legal-card li + li {
  margin-top: 6px;
}

.article-card > .code-block,
.legal-card > .code-block {
  min-height: auto;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0b0c12;
  color: #f1f4ff;
}

.article-card .code-shell {
  margin-top: 16px;
}

.faq-page .page-hero {
  width: min(100% - 64px, 1180px);
  padding: 58px 0 44px;
}

.faq-page .page-hero-narrow {
  max-width: none;
}

.faq-page .page-hero h1 {
  max-width: 980px;
  padding-left: 28px;
  border-left: 3px solid var(--ink);
}

.faq-accordion {
  display: grid;
  gap: 18px;
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 0 0 90px;
}

.faq-row {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.faq-row[open] {
  border-color: rgba(82, 103, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 98% 0%, rgba(82, 103, 255, 0.08), transparent 36%);
}

.faq-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 0 42px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-row summary span {
  font-family: var(--ui);
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.faq-row summary i {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  justify-self: end;
}

.faq-row summary i::before,
.faq-row summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.faq-row summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.18s ease;
}

.faq-row[open] summary i::after {
  opacity: 0;
}

.faq-answer {
  overflow: hidden;
  transition:
    height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.22s ease;
}

.faq-row:not([open]) .faq-answer {
  height: 0;
  opacity: 0;
}

.faq-row p {
  max-width: 920px;
  margin: -6px 42px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(12, 13, 18, 0.08);
  color: #525b6c;
  font-family: var(--ui);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.78;
}

.about-layout,
.legal-layout,
.model-notes,
.support-detail {
  width: min(100% - 36px, 820px);
  margin: 0 auto;
  padding: 0 0 88px;
}

.about-page .page-hero {
  width: min(100% - 56px, 1120px);
  padding: 78px 0 34px;
}

.about-page .page-hero-narrow {
  max-width: 1120px;
}

.about-page .page-hero h1 {
  max-width: 940px;
  margin-top: 12px;
  font-size: clamp(54px, 6.6vw, 86px);
  line-height: 1.02;
}

.about-page .page-hero p {
  max-width: 840px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.9;
}

.about-page .about-layout {
  display: block;
  width: min(100% - 56px, 1120px);
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}

.about-page .article-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.46fr) minmax(0, 1fr);
  gap: clamp(28px, 4.6vw, 68px);
  min-height: 0;
  overflow: visible;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-page .article-card:first-child {
  grid-column: auto;
  min-height: 0;
  padding-right: 0;
}

.about-page .article-card:first-child::after {
  display: none;
}

.about-page .article-card h2 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.14;
}

.about-page .article-card p,
.about-page .article-card ul {
  position: relative;
  margin-top: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.92;
}

.about-page .article-card ul {
  padding-left: 22px;
}

.about-page .article-card li + li {
  margin-top: 8px;
}

.blog-list {
  width: min(100% - 56px, 960px);
  margin: 0 auto;
  padding: 0 0 96px;
}

.blog-list .article-card {
  --blog-transition-glow: 0;
  position: relative;
  display: block;
  min-height: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.blog-list .article-card::before {
  position: absolute;
  inset: 8px -18px;
  z-index: -1;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 103, 255, calc(0.11 * var(--blog-transition-glow))), transparent 44%),
    rgba(255, 255, 255, calc(0.28 * var(--blog-transition-glow)));
  content: "";
  opacity: var(--blog-transition-glow);
  transform: scaleX(calc(0.96 + 0.04 * var(--blog-transition-glow)));
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.blog-list .article-card:hover {
  border-top-color: rgba(12, 13, 18, 0.3);
}

.blog-list .article-card:hover h2 a {
  color: var(--ink);
  text-shadow: 0 14px 28px rgba(12, 13, 18, 0.08);
}

.blog-list .article-card h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.blog-list .article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-list .article-card p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.8;
}

.blog-dissolve-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.blog-dissolve-space {
  width: 0.32em;
}

.blog-transition-card.is-blog-transitioning {
  pointer-events: none;
}

.blog-transition-card.is-blog-transition-muted {
  opacity: 0.34;
  transform: translateY(4px);
}

.blog-post-article {
  overflow: visible;
}

.blog-post-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 0 24px;
}

.blog-post-topline .section-kicker {
  margin: 0;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 38px;
  min-height: 38px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.blog-back-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.blog-back-link:hover {
  border-color: rgba(12, 13, 18, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transform: translateX(-2px);
}

.blog-post-content {
  display: contents;
}

.model-notes,
.support-detail {
  padding-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 36px, 920px);
  margin: 0 auto 52px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-height: 220px;
}

.contact-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.contact-handle {
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.contact-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.contact-card a {
  margin-top: auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.policy-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto 72px;
}

.policy-links a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-page .page-hero,
  .about-page .about-layout {
    width: calc(100% - 36px);
  }

  .api-reference-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  html.has-docs-example-panel .api-reference-shell {
    grid-template-columns: 1fr;
  }

  html.has-docs-toc-panel .api-reference-shell {
    grid-template-columns: 1fr;
  }

  .api-reference-nav,
  .api-example-panel {
    position: static;
  }

  .api-reference-main {
    padding-top: 0;
  }

  .api-doc-page {
    min-height: auto;
  }

  .api-reference-nav {
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .api-reference-nav .docs-sidebar-label {
    min-width: 100%;
  }

  .api-nav-group {
    min-width: 190px;
  }

  .api-example-panel {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .about-page .about-layout {
    display: block;
  }

  .about-page .article-card:first-child {
    padding-right: 0;
  }

  .about-page .article-card:first-child::after {
    display: none;
  }

  .pricing-product-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .pricing-product-tab {
    flex: 0 0 auto;
  }

  .pricing-rule-bar,
  .pricing-list-head,
  .pricing-list-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-rule-bar p {
    white-space: normal;
  }

  .model-grid,
  .model-overview,
  .pricing-rule-grid,
  .pricing-group-grid,
  .pricing-metric-grid,
  .image-price-grid,
  .contact-grid,
  .policy-links {
    grid-template-columns: 1fr;
  }

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

  .pricing-toolbar,
  .pricing-family-head,
  .pricing-note-band,
  .codex-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-cards {
    grid-template-columns: 1fr;
  }

  .faq-row summary {
    min-height: 76px;
  }
}

@media (max-width: 680px) {
  .page-hero,
  .faq-page .page-hero,
  .about-page .page-hero,
  .about-page .about-layout,
  .model-overview,
  .model-grid,
  .pricing-rule-grid,
  .pricing-content,
  .pricing-shell,
  .docs-shell,
  .api-reference-shell,
  .contact-grid,
  .policy-links {
    width: calc(100% - 32px);
  }

  .page-hero {
    padding: 54px 0 30px;
  }

  .faq-page .page-hero {
    padding: 42px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .article-card,
  .legal-card {
    padding: 24px 20px;
  }

  .about-page .page-hero {
    padding: 50px 0 26px;
  }

  .about-page .article-card,
  .about-page .article-card:first-child {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 26px 0;
  }

  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .api-reference-page .docs-hero {
    padding-bottom: 24px;
  }

  .api-reference-hero p {
    font-size: 15.5px;
    line-height: 1.72;
  }

  .api-hero-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .api-hero-actions .button {
    flex: 1 1 150px;
    min-width: 0;
  }

  .api-reference-shell {
    padding-bottom: 64px;
  }

  .api-reference-nav {
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 12px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .api-reference-nav .docs-sidebar-label {
    min-width: 150px;
    font-size: 16px;
  }

  .api-nav-group {
    min-width: 164px;
  }

  .api-nav-group a {
    min-height: 32px;
    padding: 0 9px;
    font-size: 14px;
  }

  .api-section {
    scroll-margin-top: 76px;
    padding: 26px 0;
  }

  .api-section h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .api-section h3 {
    margin-top: 24px;
    font-size: 22px;
  }

  .api-section p {
    font-size: 15px;
    line-height: 1.72;
  }

  .api-endpoint-hero {
    gap: 11px;
    padding-bottom: 22px;
  }

  .api-endpoint-hero h2 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .api-endpoint-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.72;
  }

  .api-request-line {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px;
  }

  .api-request-path {
    min-height: 46px;
    gap: 10px;
    padding: 0 12px;
  }

  .api-request-path code {
    font-size: 14px;
  }

  .api-detail-block {
    padding: 24px 0;
  }

  .api-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .api-section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .api-method {
    width: fit-content;
  }

  .api-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .api-flow i {
    width: 1px;
    height: 16px;
    margin-left: 18px;
  }

  .api-param-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 15px;
  }

  .api-callout,
  .api-config-card,
  .api-tool-card {
    padding: 16px;
  }

  .api-table {
    min-width: 640px;
  }

  .api-endpoint-line {
    grid-template-columns: 1fr;
    gap: 3px;
    align-items: start;
    padding: 12px 14px;
  }

  .api-endpoint-grid,
  .api-tool-grid {
    grid-template-columns: 1fr;
  }

  .api-tool-card {
    min-height: 0;
  }

  .api-example-card .docs-code-block pre {
    max-height: 320px;
    padding: 18px;
    font-size: 11.5px;
  }

  .faq-accordion {
    width: calc(100% - 32px);
    padding-bottom: 64px;
    gap: 14px;
  }

  .faq-page .page-hero h1 {
    padding-left: 14px;
    border-left-width: 2px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .faq-row summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    min-height: 76px;
    gap: 16px;
    padding: 0 20px;
  }

  .faq-row summary span {
    font-size: 20px;
  }

  .faq-row p {
    max-width: none;
    margin: -2px 20px 24px;
    padding-top: 18px;
    font-size: 15px;
    line-height: 1.78;
    overflow-wrap: anywhere;
  }

  .faq-row summary i {
    width: 26px;
    height: 26px;
  }

  .faq-row summary i::before,
  .faq-row summary i::after {
    width: 22px;
    height: 2px;
  }

  .model-overview strong {
    margin-top: 18px;
  }

  .pricing-family,
  .pricing-disclaimer,
  .pricing-hero-card > div,
  .pricing-snapshot {
    padding: 18px;
  }

  .pricing-shell {
    padding-top: 36px;
  }

  .pricing-product-tabs,
  .pricing-rule-bar,
  .pricing-list-head,
  .pricing-panel {
    padding: 12px;
  }

  .pricing-product-tab {
    min-height: 40px;
    padding: 0 13px;
    font-size: 15px;
  }

  .pricing-list-title h2 {
    font-size: 20px;
  }

  .pricing-note-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-mode {
    width: 100%;
  }

  .pricing-mode button {
    flex: 1;
  }

  .pricing-table {
    min-width: 940px;
  }

  .codex-pricing-table {
    min-width: 780px;
  }
}

@media (max-width: 680px) {
  .api-reference-page .page-hero {
    width: 100%;
    padding: 34px 16px 18px;
  }

  .api-reference-page .docs-hero {
    gap: 10px;
    padding-bottom: 18px;
  }

  .api-reference-hero h1 {
    max-width: none;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.04;
  }

  .api-reference-hero p {
    max-width: none;
    font-size: 14.5px;
    line-height: 1.66;
  }

  .api-reference-hero p code {
    display: inline;
    padding: 0.08em 0.28em;
    font-size: 0.86em;
    overflow-wrap: anywhere;
  }

  .api-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .api-hero-actions .button {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    justify-content: center;
    font-size: 14px;
  }

  .api-reference-shell,
  html.has-docs-example-panel .api-reference-shell,
  html.has-docs-toc-panel .api-reference-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    min-height: auto;
    padding: 0 0 56px;
  }

  .api-mobile-nav-toggle {
    position: fixed;
    top: min(42vh, 360px);
    left: 0;
    z-index: 61;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 9px 0 8px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 999px 999px 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.82) inset,
      0 12px 30px rgba(12, 13, 18, 0.12);
    backdrop-filter: blur(14px) saturate(145%);
  }

  .docs-mobile-toc-toggle {
    position: fixed;
    top: calc(min(42vh, 360px) + 86px);
    right: 0;
    z-index: 61;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 8px 0 9px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.82) inset,
      0 12px 30px rgba(12, 13, 18, 0.12);
    backdrop-filter: blur(14px) saturate(145%);
  }

  .docs-mobile-toc-toggle[hidden] {
    display: none;
  }

  .api-mobile-nav-toggle span:first-child,
  .docs-mobile-toc-toggle span:first-child {
    position: relative;
    width: 15px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .api-mobile-nav-toggle span:first-child::before,
  .docs-mobile-toc-toggle span:first-child::before {
    position: absolute;
    top: 3px;
    left: 0;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .api-mobile-nav-toggle span:last-child,
  .docs-mobile-toc-toggle span:last-child {
    writing-mode: vertical-rl;
    display: inline-block;
    max-height: 62px;
    overflow: hidden;
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-overflow: clip;
  }

  .api-mobile-nav-toggle[aria-expanded="true"] {
    transform: translateX(min(304px, calc(100vw - 52px)));
  }

  .docs-mobile-toc-toggle[aria-expanded="true"] {
    transform: translateX(calc(-1 * min(304px, calc(100vw - 52px))));
  }

  .api-mobile-nav-backdrop,
  .docs-mobile-toc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 58;
    display: block;
    border: 0;
    background: rgba(12, 13, 18, 0.32);
    backdrop-filter: blur(2px);
  }

  .api-mobile-nav-backdrop[hidden],
  .docs-mobile-toc-backdrop[hidden] {
    display: none;
  }

  .api-reference-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    align-content: start;
    width: min(304px, calc(100vw - 52px));
    max-height: none;
    margin: 0;
    padding: 86px 18px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: rgba(248, 248, 244, 0.98);
    box-shadow:
      1px 0 0 rgba(255, 255, 255, 0.72) inset,
      22px 0 58px rgba(12, 13, 18, 0.16);
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: normal;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.is-docs-nav-open .api-reference-nav {
    transform: translateX(0);
  }

  .api-reference-nav::-webkit-scrollbar {
    display: none;
  }

  .api-reference-nav .docs-sidebar-label {
    display: block;
    padding-bottom: 2px;
    font-size: 22px;
  }

  .api-nav-group {
    display: grid;
    width: auto;
    min-width: 0;
    margin-right: 0;
    gap: 8px;
  }

  .api-nav-group > span {
    padding-left: 2px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .api-nav-group nav {
    display: grid;
    gap: 5px;
  }

  .api-nav-group a {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-height: 38px;
    max-width: none;
    padding: 0 30px 0 10px;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.25;
  }

  .api-nav-group a:hover,
  .api-nav-group a:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.86);
  }

  .api-nav-group a.is-active,
  .api-nav-group a[aria-current="true"] {
    border-color: transparent;
    border-left-color: var(--blue);
    background:
      linear-gradient(90deg, var(--blue-soft), rgba(255, 255, 255, 0.62));
    color: var(--ink);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.72) inset,
      0 10px 24px rgba(82, 103, 255, 0.08);
  }

  .api-nav-group a.is-active::after,
  .api-nav-group a[aria-current="true"]::after {
    display: block;
    width: 6px;
    height: 6px;
    right: 11px;
  }

  .api-nav-method {
    min-width: 35px;
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
  }

  .api-nav-group a.is-active .api-nav-method-post,
  .api-nav-group a[aria-current="true"] .api-nav-method-post {
    background: var(--blue);
    color: #fff;
  }

  .api-nav-group a.is-active .api-nav-method-get,
  .api-nav-group a[aria-current="true"] .api-nav-method-get {
    background: var(--green);
    color: #fff;
  }

  .api-reference-main,
  .api-example-panel {
    width: 100%;
    padding: 0 16px;
  }

  .api-reference-main {
    order: 1;
    margin-top: 20px;
    padding-top: 0;
  }

  .api-example-panel {
    order: 2;
    position: static;
    display: block;
    max-height: min(58vh, 520px);
    margin-top: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.has-docs-toc-panel .api-example-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    align-content: start;
    width: min(304px, calc(100vw - 52px));
    max-height: none;
    margin-top: 0;
    padding: 86px 18px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: rgba(248, 248, 244, 0.98);
    box-shadow:
      -1px 0 0 rgba(255, 255, 255, 0.72) inset,
      -22px 0 58px rgba(12, 13, 18, 0.16);
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.has-docs-toc-panel.is-docs-toc-open .api-example-panel {
    transform: translateX(0);
  }

  html.has-docs-toc-panel .api-example-panel::-webkit-scrollbar {
    display: none;
  }

  html.has-docs-toc-panel .docs-page-toc {
    gap: 7px;
    padding: 0;
  }

  html.has-docs-toc-panel .docs-page-toc > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: none;
  }

  html.has-docs-toc-panel .docs-page-toc a {
    position: relative;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.35;
  }

  html.has-docs-toc-panel .docs-page-toc a:hover,
  html.has-docs-toc-panel .docs-page-toc a:focus-visible {
    border-color: var(--line-strong);
    border-left-color: var(--blue);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
  }

  html.has-docs-toc-panel .docs-page-toc a.is-depth-3 {
    padding-left: 22px;
    color: var(--ink-3);
    font-size: 13px;
  }

  .api-example-panel[hidden] {
    display: none;
  }

  .api-example-stack {
    gap: 12px;
  }

  .api-section {
    padding: 0;
    border-top: 0;
    scroll-margin-top: 120px;
  }

  .api-doc-page {
    min-height: auto;
  }

  .api-section h2,
  .api-endpoint-hero h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
  }

  .api-section h3 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.22;
  }

  .api-section p,
  .api-endpoint-hero p {
    max-width: none;
    font-size: 14.5px;
    line-height: 1.72;
  }

  .api-overview {
    padding-bottom: 8px;
  }

  .api-endpoint-hero {
    gap: 10px;
    padding-bottom: 20px;
  }

  .api-endpoint-kicker {
    font-size: 12px;
  }

  .api-request-line {
    min-height: 0;
    padding: 8px;
    border-radius: 9px;
  }

  .api-request-path {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .api-request-path code {
    width: 100%;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
  }

  .api-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .api-method {
    width: fit-content;
    min-height: 25px;
    font-size: 10px;
  }

  .api-detail-block {
    padding: 20px 0;
  }

  .api-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .api-detail-heading h3 {
    font-size: 24px;
    line-height: 1.12;
  }

  .api-detail-heading > code {
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .api-field-row {
    gap: 9px;
    padding: 15px 0;
  }

  .api-field-meta {
    gap: 6px;
  }

  .api-field-meta strong {
    flex: 1 0 100%;
    font-size: 14px;
  }

  .api-field-meta span,
  .api-field-meta em {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
  }

  .api-field-row p {
    font-size: 14px;
    line-height: 1.68;
  }

  .api-flow {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .api-flow span {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    border-radius: 8px;
  }

  .api-flow i {
    width: 1px;
    height: 12px;
    margin: 0 auto;
  }

  .api-param-list,
  .api-debug-list,
  .api-tool-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .api-param-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .api-param-row code {
    font-size: 12px;
  }

  .api-callout,
  .api-config-card,
  .api-tool-card {
    padding: 15px;
    border-radius: 8px;
  }

  .api-config-card h3 {
    font-size: 20px;
  }

  .api-tool-grid,
  .api-endpoint-grid {
    grid-template-columns: 1fr;
  }

  .api-tool-card {
    min-height: 0;
  }

  .api-tool-card h3 {
    margin-top: 10px;
    font-size: 19px;
  }

  .api-debug-trigger {
    min-height: 52px;
    padding: 0 14px;
    font-size: 15px;
  }

  .api-debug-answer {
    margin: 0 14px 14px;
  }

  .api-debug-answer p {
    font-size: 13.5px;
  }

  .api-table-wrap {
    margin-right: -16px;
    border-right: 0;
    border-radius: 9px 0 0 9px;
  }

  .api-table {
    min-width: 560px;
    font-size: 13px;
  }

  .api-table th,
  .api-table td {
    padding: 12px;
  }

  .api-example-card {
    border-radius: 9px;
    box-shadow: 0 12px 34px rgba(12, 13, 18, 0.05);
  }

  .api-example-card + .api-example-card {
    margin-top: 12px;
  }

  .docs-code-block {
    border-radius: 8px;
  }

  .docs-code-bar,
  .docs-code-bar-rich {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 11px;
  }

  .docs-code-meta {
    width: 100%;
    gap: 6px;
  }

  .docs-code-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .docs-code-kind,
  .docs-code-language {
    font-size: 10px;
  }

  .docs-code-title {
    flex: 1 1 auto;
    font-size: 12px;
    white-space: normal;
  }

  .docs-code-kind::after,
  .docs-code-title::after {
    display: none;
  }

  .docs-code-menu {
    flex: 1 1 auto;
  }

  .docs-code-menu .docs-code-language {
    width: 100%;
    min-width: 0;
    height: 34px;
    text-align: left;
  }

  .docs-code-options {
    right: auto;
    left: 0;
    width: min(180px, calc(100vw - 86px));
  }

  .docs-copy-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .docs-code-block pre,
  .api-example-card .docs-code-block pre {
    max-height: 34vh;
    padding: 14px;
    font-size: 11.5px;
    line-height: 1.62;
  }

  .docs-code-block code {
    min-width: max-content;
  }
}

html[data-theme="dark"] body {
  background: var(--canvas);
  color: var(--ink);
}

html[data-theme="dark"] .page-shell {
  background: var(--page-background);
}

html[data-theme="dark"] .subpage-shell,
html[data-theme="dark"] .pricing-page {
  background: var(--page-background);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled,
html[data-theme="dark"] .subpage-topbar {
  border-bottom-color: rgba(235, 239, 255, 0.12);
  background: rgba(9, 10, 16, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 48px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .brand-mark img,
html[data-theme="dark"] .footer-brand img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .trust-strip li,
html[data-theme="dark"] .button-light,
html[data-theme="dark"] .model-overview article,
html[data-theme="dark"] .model-card,
html[data-theme="dark"] .docs-card,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .support-detail article,
html[data-theme="dark"] .pricing-product-tabs,
html[data-theme="dark"] .pricing-rule-bar,
html[data-theme="dark"] .pricing-list-card,
html[data-theme="dark"] .pricing-group-card,
html[data-theme="dark"] .pricing-family,
html[data-theme="dark"] .pricing-disclaimer,
html[data-theme="dark"] .pricing-hero-card > div,
html[data-theme="dark"] .pricing-snapshot,
html[data-theme="dark"] .codex-pricing-panel,
html[data-theme="dark"] .codex-disclaimer,
html[data-theme="dark"] .faq-row {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 18px 56px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .legal-document .legal-card {
  border-color: rgba(235, 238, 248, 0.14);
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .legal-hero h1 {
  color: rgba(235, 238, 248, 0.72);
}

html[data-theme="dark"] .legal-hero p,
html[data-theme="dark"] .legal-document .legal-section-title,
html[data-theme="dark"] .legal-document .legal-card p,
html[data-theme="dark"] .legal-document .legal-card ul,
html[data-theme="dark"] .legal-document .legal-card ol,
html[data-theme="dark"] .footer-links a[href^="/legal/"] {
  color: rgba(235, 238, 248, 0.48);
}

html[data-theme="dark"] .eyebrow {
  color: var(--ink-2);
  background: rgba(16, 18, 26, 0.64);
}

html[data-theme="dark"] .button-dark {
  color: #080910;
  background: #f5f7ff;
  border-color: #f5f7ff;
  box-shadow: 0 14px 30px rgba(143, 160, 255, 0.16);
}

html[data-theme="dark"] .button-dark:hover {
  background: #dfe5ff;
  border-color: #dfe5ff;
}

html[data-theme="dark"] .button-light:hover {
  border-color: rgba(143, 160, 255, 0.7);
  box-shadow: 0 14px 34px rgba(143, 160, 255, 0.12);
}

html[data-theme="dark"] .mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

html[data-theme="dark"] .mobile-menu-panel {
  background: rgba(16, 18, 26, 0.98);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.045) inset,
    26px 0 72px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .language-options {
  border-color: rgba(143, 160, 255, 0.24);
  background: rgba(16, 18, 26, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 18px 44px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .language-options button {
  color: var(--ink-2);
}

html[data-theme="dark"] .language-options button:hover,
html[data-theme="dark"] .language-options button:focus-visible,
html[data-theme="dark"] .language-options button.is-active {
  color: var(--ink);
  background: rgba(143, 160, 255, 0.18);
}

html[data-theme="dark"] .mobile-language-switch .language-select {
  --language-select-fill: rgba(235, 239, 255, 0.08);
}

html[data-theme="dark"] .mobile-theme-button {
  background: rgba(235, 239, 255, 0.08);
}

html[data-theme="dark"] .language-select {
  color: var(--ink-2);
}

html[data-theme="dark"] .language-select:hover,
html[data-theme="dark"] .language-select:focus-visible,
html[data-theme="dark"] .language-switch.is-open .language-select,
html[data-theme="dark"] .mobile-language-switch .language-select:hover,
html[data-theme="dark"] .mobile-language-switch .language-select:focus-visible,
html[data-theme="dark"] .mobile-language-switch.is-open .language-select,
html[data-theme="dark"] .mobile-theme-button:hover,
html[data-theme="dark"] .mobile-theme-button:focus-visible {
  --language-select-fill: rgba(143, 160, 255, 0.18);
  color: var(--ink);
}

html[data-theme="dark"] .mobile-theme-button:hover,
html[data-theme="dark"] .mobile-theme-button:focus-visible {
  background: rgba(143, 160, 255, 0.18);
}

html[data-theme="dark"] .mobius-logo::before {
  background:
    radial-gradient(circle at 31% 50%, rgba(232, 236, 250, 0.14), transparent 25%),
    radial-gradient(circle at 47% 55%, rgba(143, 160, 255, 0.11), transparent 31%),
    radial-gradient(circle at 64% 54%, rgba(255, 255, 255, 0.06), transparent 34%);
  filter: blur(20px);
}

html[data-theme="dark"] .mobius-mark-wrap::before {
  inset: 2% -8%;
  background:
    radial-gradient(circle at 78% 48%, rgba(147, 164, 255, 0.24), transparent 18%),
    radial-gradient(ellipse at 50% 54%, rgba(240, 243, 255, 0.12), transparent 58%),
    radial-gradient(ellipse at 38% 48%, rgba(184, 194, 226, 0.1), transparent 56%);
  filter: blur(20px);
}

html[data-theme="dark"] .mobius-mark {
  filter:
    brightness(0.98)
    contrast(1.02)
    saturate(0.92)
    drop-shadow(0 0 10px rgba(238, 241, 255, 0.16))
    drop-shadow(0 0 24px rgba(143, 160, 255, 0.1))
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.42));
}

html[data-theme="dark"] .mobius-three-fallback {
  background:
    radial-gradient(circle at 28% 50%, rgba(143, 160, 255, 0.2), transparent 30%),
    radial-gradient(ellipse at 50% 52%, rgba(245, 247, 255, 0.1), transparent 68%);
  opacity: 0.7;
}

html[data-theme="dark"] .mobius-depth {
  stroke: rgba(0, 0, 0, 0.54);
  stroke-width: 46;
  opacity: 0.5;
}

html[data-theme="dark"] .mobius-track {
  filter:
    drop-shadow(0 0 5px rgba(245, 247, 255, 0.2))
    drop-shadow(0 0 14px rgba(143, 160, 255, 0.12));
  opacity: 0.94;
}

html[data-theme="dark"] .mobius-flow-soft {
  stroke: rgba(200, 208, 255, 0.22);
  filter: blur(6px);
}

html[data-theme="dark"] .mobius-flow-core {
  stroke-width: 13;
  filter:
    drop-shadow(0 0 8px rgba(238, 241, 255, 0.28))
    drop-shadow(0 0 14px rgba(143, 160, 255, 0.48));
}

html[data-theme="dark"] .mobius-node circle {
  fill: #11131c;
  stroke: #eef1f8;
}

html[data-theme="dark"] .mobius-node-fallback-small,
html[data-theme="dark"] .mobius-node-fallback-outer {
  fill: #11131c;
  stroke: #eef1f8;
}

html[data-theme="dark"] .mobius-node-fallback-inner {
  fill: #8497ff;
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(132, 151, 255, 0.5));
}

html[data-theme="dark"] .mobius-node-accent .node-outer {
  fill: #11131c;
  stroke: #eef1f8;
}

html[data-theme="dark"] .mobius-rim-shadow {
  stroke: rgba(245, 247, 255, 0.34);
}

html[data-theme="dark"] .mobius-node-accent .node-inner {
  fill: #8497ff;
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(132, 151, 255, 0.5));
}

html[data-theme="dark"] .mobius-node-outline circle {
  stroke: #e8ebf4;
}

html[data-theme="dark"] .hero-wordmark,
html[data-theme="dark"] .hero h1 {
  filter: drop-shadow(0 20px 42px rgba(143, 160, 255, 0.08));
}

html[data-theme="dark"] .hero::after {
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.82) 0%, rgba(7, 8, 13, 0.68) 52%, rgba(7, 8, 13, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.16), rgba(7, 8, 13, 0.42));
}

@media (max-width: 680px) {
  html[data-theme="dark"] .hero::after {
    background: rgba(7, 8, 13, 0.54);
  }
}

html[data-theme="dark"] .channel-entry {
  color: rgba(197, 202, 216, 0.52);
}

html[data-theme="dark"] .channel-entry:hover {
  color: var(--ink);
}

html[data-theme="dark"] .orbital-field {
  opacity: 0.5;
}

html[data-theme="dark"] .hero-splash-layer {
  opacity: 0.3;
}

html[data-theme="dark"] .capability-proof span {
  border-color: rgba(235, 239, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

html[data-theme="dark"] .capability-list {
  border-color: rgba(235, 239, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(18, 20, 28, 0.82), rgba(13, 15, 23, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(143, 160, 255, 0.12), transparent 34%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html[data-theme="dark"] .capability-item {
  border-color: rgba(235, 239, 255, 0.1);
}

html[data-theme="dark"] .capability-list::before {
  background: linear-gradient(180deg, transparent, rgba(143, 160, 255, 0.32), transparent);
}

html[data-theme="dark"] .capability-index {
  border-color: rgba(143, 160, 255, 0.28);
  background: var(--canvas);
  color: rgba(200, 208, 255, 0.95);
  box-shadow:
    0 0 0 7px rgba(143, 160, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .pricing-switch-page {
  --pricing-accent: #8fa0ff;
  --pricing-accent-strong: #c8d0ff;
  --pricing-accent-soft: rgba(143, 160, 255, 0.12);
  --pricing-border: rgba(235, 239, 255, 0.13);
  --pricing-muted: #9aa2b6;
}

html[data-theme="dark"] .pricing-page-title h1,
html[data-theme="dark"] .pricing-list-title h2,
html[data-theme="dark"] .pricing-title-icon,
html[data-theme="dark"] .pricing-rule-label,
html[data-theme="dark"] .pricing-group-card strong,
html[data-theme="dark"] .official-price-cell strong {
  color: var(--ink);
}

html[data-theme="dark"] .pricing-page-title p,
html[data-theme="dark"] .pricing-rule-bar,
html[data-theme="dark"] .pricing-rule-bar p,
html[data-theme="dark"] .pricing-list-meta,
html[data-theme="dark"] .model-desc-cell,
html[data-theme="dark"] .pricing-official-note {
  color: var(--ink-2);
}

html[data-theme="dark"] .pricing-product-tab {
  color: var(--ink-3);
}

html[data-theme="dark"] .pricing-product-tab:hover,
html[data-theme="dark"] .pricing-product-tab.is-active {
  color: var(--pricing-accent-strong);
  background: rgba(143, 160, 255, 0.11);
}

html[data-theme="dark"] .pricing-mode {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .pricing-mode .is-active {
  background: rgba(143, 160, 255, 0.16);
  color: var(--pricing-accent-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .pricing-group-card:hover {
  border-color: rgba(143, 160, 255, 0.64);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .pricing-group-card.is-active {
  border-color: rgba(143, 160, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(143, 160, 255, 0.13), rgba(16, 18, 26, 0.82)),
    rgba(16, 18, 26, 0.84);
}

html[data-theme="dark"] .pricing-note-band,
html[data-theme="dark"] .pricing-official-note {
  border-color: rgba(143, 160, 255, 0.22);
  background: rgba(143, 160, 255, 0.095);
}

html[data-theme="dark"] .pricing-table-wrap,
html[data-theme="dark"] .codex-table-wrap {
  border-color: var(--line);
  background: rgba(11, 13, 20, 0.86);
  scrollbar-color: rgba(143, 160, 255, 0.42) transparent;
}

html[data-theme="dark"] .pricing-table th,
html[data-theme="dark"] .codex-pricing-table th {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-2);
}

html[data-theme="dark"] .pricing-table th,
html[data-theme="dark"] .pricing-table td {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .model-id-cell code,
html[data-theme="dark"] .model-id-cell button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

html[data-theme="dark"] .price-cell strong,
html[data-theme="dark"] .image-price-cell strong {
  color: #c8d0ff;
}

html[data-theme="dark"] .save-badge,
html[data-theme="dark"] .pricing-group-card em {
  background: rgba(66, 210, 154, 0.13);
  color: #7df0ba;
}

html[data-theme="dark"] .pricing-empty-state {
  border-color: rgba(235, 239, 255, 0.18);
  color: var(--ink-3);
}

html[data-theme="dark"] .faq-page .page-hero h1 {
  border-left-color: var(--ink);
}

html[data-theme="dark"] .faq-row[open] {
  border-color: rgba(143, 160, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(16, 18, 26, 0.92), rgba(16, 18, 26, 0.78)),
    radial-gradient(circle at 98% 0%, rgba(143, 160, 255, 0.13), transparent 36%);
}

html[data-theme="dark"] .faq-row summary i::before,
html[data-theme="dark"] .faq-row summary i::after {
  background: var(--ink);
}

html[data-theme="dark"] .faq-row p {
  border-top-color: rgba(235, 239, 255, 0.1);
  color: var(--ink-2);
}

html[data-theme="dark"] .about-page .article-card {
  border-bottom-color: rgba(235, 239, 255, 0.11);
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .about-page .article-card:first-child::after {
  border-color: rgba(143, 160, 255, 0.2);
  background:
    radial-gradient(circle, rgba(235, 239, 255, 0.18) 1px, transparent 1.8px),
    radial-gradient(circle at 50% 50%, rgba(143, 160, 255, 0.12), transparent 58%);
  opacity: 0.5;
}

html[data-theme="dark"] .blog-list .article-card::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 160, 255, calc(0.18 * var(--blog-transition-glow))), transparent 44%),
    rgba(255, 255, 255, calc(0.05 * var(--blog-transition-glow)));
}

html[data-theme="dark"] .blog-list .article-card:hover {
  border-top-color: rgba(235, 239, 255, 0.28);
}

html[data-theme="dark"] .blog-back-link {
  border-color: rgba(235, 239, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
}

html[data-theme="dark"] .blog-back-link:hover {
  border-color: rgba(235, 239, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .docs-layout,
html[data-theme="dark"] .docs-sidebar,
html[data-theme="dark"] .docs-content,
html[data-theme="dark"] .docs-empty-state,
html[data-theme="dark"] .code-shell,
html[data-theme="dark"] .code-block {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.72);
  color: var(--ink-2);
}

html[data-theme="dark"] .api-reference-hero p code,
html[data-theme="dark"] .api-reference-nav,
html[data-theme="dark"] .api-flow span,
html[data-theme="dark"] .api-param-row,
html[data-theme="dark"] .api-callout,
html[data-theme="dark"] .api-config-card,
html[data-theme="dark"] .api-table-wrap,
html[data-theme="dark"] .api-endpoint-line,
html[data-theme="dark"] .api-tool-card,
html[data-theme="dark"] .api-debug-item,
html[data-theme="dark"] .api-example-card {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 18px 56px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .api-callout,
html[data-theme="dark"] .api-config-card {
  background:
    linear-gradient(180deg, rgba(16, 18, 26, 0.84), rgba(13, 15, 23, 0.74)),
    radial-gradient(circle at 100% 0%, rgba(143, 160, 255, 0.12), transparent 38%);
}

html[data-theme="dark"] .api-mobile-nav-toggle {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.92);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 12px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .docs-mobile-toc-toggle {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.92);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 12px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .api-mobile-nav-toggle span:last-child,
html[data-theme="dark"] .docs-mobile-toc-toggle span:last-child {
  color: var(--ink-2);
}

html[data-theme="dark"] .api-mobile-nav-backdrop,
html[data-theme="dark"] .docs-mobile-toc-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .api-reference-nav,
html[data-theme="dark"].has-docs-toc-panel .api-example-panel {
  background: var(--canvas);
}

html[data-theme="dark"].has-docs-toc-panel .api-example-panel {
  border-left-color: var(--line);
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.045) inset,
    -22px 0 58px rgba(0, 0, 0, 0.34);
}

@media (max-width: 680px) {
  html[data-theme="dark"] .api-reference-nav {
    border-right-color: var(--line);
    background: rgba(16, 18, 26, 0.76);
    box-shadow:
      1px 0 0 rgba(255, 255, 255, 0.045) inset,
      22px 0 58px rgba(0, 0, 0, 0.34);
  }

  html[data-theme="dark"].has-docs-toc-panel .api-example-panel {
    background: rgba(16, 18, 26, 0.76);
  }
}

html[data-theme="dark"].has-docs-toc-panel .docs-page-toc a:hover,
html[data-theme="dark"].has-docs-toc-panel .docs-page-toc a:focus-visible {
  border-color: var(--line);
  border-left-color: #c8d0ff;
  background: rgba(143, 160, 255, 0.12);
}

html[data-theme="dark"] .api-detail-heading > code {
  border-color: rgba(143, 160, 255, 0.22);
  background: rgba(143, 160, 255, 0.1);
  color: #d7dcff;
}

html[data-theme="dark"] .docs-code-block {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 18px 56px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .docs-code-bar {
  border-bottom-color: var(--line);
  background: rgba(235, 239, 255, 0.045);
}

html[data-theme="dark"] .docs-markdown p code,
html[data-theme="dark"] .docs-markdown li code,
html[data-theme="dark"] .docs-markdown td code,
html[data-theme="dark"] .docs-markdown th code,
html[data-theme="dark"] .docs-markdown blockquote code {
  border-color: rgba(143, 160, 255, 0.22);
  background: rgba(143, 160, 255, 0.1);
  color: #cfd7ff;
}

html[data-theme="dark"] .docs-markdown blockquote {
  border-left-color: rgba(143, 160, 255, 0.34);
  background: rgba(143, 160, 255, 0.07);
  color: var(--ink-2);
}

html[data-theme="dark"] .docs-table-wrap {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset;
}

html[data-theme="dark"] .docs-table-wrap th {
  background: rgba(235, 239, 255, 0.045);
  color: var(--ink);
}

html[data-theme="dark"] .docs-table-wrap th,
html[data-theme="dark"] .docs-table-wrap td {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .docs-code-kind,
html[data-theme="dark"] .docs-code-language {
  color: var(--ink-3);
}

html[data-theme="dark"] .docs-code-menu .docs-code-language {
  border-color: var(--line);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 12px) 12px / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 7px) 12px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.045);
  color: var(--ink-2);
}

html[data-theme="dark"] .docs-code-menu .docs-code-language:hover,
html[data-theme="dark"] .docs-code-menu.is-open .docs-code-language {
  color: var(--ink);
}

html[data-theme="dark"] .docs-code-options {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 18px 42px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .docs-code-options button:hover,
html[data-theme="dark"] .docs-code-options button:focus-visible,
html[data-theme="dark"] .docs-code-options button.is-active {
  background: rgba(143, 160, 255, 0.16);
  color: var(--ink);
}

html[data-theme="dark"] .docs-code-options button.is-active::after {
  background: #c8d0ff;
}

html[data-theme="dark"] .docs-copy-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-2);
}

html[data-theme="dark"] .docs-copy-button:hover {
  background: #f5f7ff;
  color: #080910;
}

html[data-theme="dark"] .docs-copy-button.is-copied {
  border-color: rgba(66, 210, 154, 0.32);
  background: rgba(66, 210, 154, 0.12);
  color: var(--green);
}

html[data-theme="dark"] .docs-code-block pre {
  color: var(--ink);
  scrollbar-color: rgba(143, 160, 255, 0.42) transparent;
}

html[data-theme="dark"] .code-command,
html[data-theme="dark"] .code-section {
  color: #aab7ff;
}

html[data-theme="dark"] .code-flag,
html[data-theme="dark"] .code-key {
  color: #ffd08a;
}

html[data-theme="dark"] .code-string {
  color: #78e0ad;
}

html[data-theme="dark"] .code-url,
html[data-theme="dark"] .code-variable {
  color: #93c5ff;
}

html[data-theme="dark"] .code-literal,
html[data-theme="dark"] .code-number {
  color: #f3a6df;
}

html[data-theme="dark"] .docs-code-block pre::-webkit-scrollbar-thumb {
  border-color: rgba(16, 18, 26, 0.72);
  background: rgba(143, 160, 255, 0.34);
}

html[data-theme="dark"] .docs-code-block pre::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 160, 255, 0.5);
}

html[data-theme="dark"] .api-request-line,
html[data-theme="dark"] .api-request-path {
  border-color: var(--line);
  background: rgba(16, 18, 26, 0.72);
}

html[data-theme="dark"] .api-endpoint-kicker,
html[data-theme="dark"] .api-field-meta strong {
  color: #c8d0ff;
}

html[data-theme="dark"] .api-field-meta span {
  background: rgba(235, 239, 255, 0.08);
  color: var(--ink-2);
}

html[data-theme="dark"] .api-field-meta em {
  background: rgba(255, 99, 99, 0.12);
  color: #ffb0b0;
}

html[data-theme="dark"] .api-nav-group a:hover,
html[data-theme="dark"] .api-nav-group a:focus-visible {
  background: rgba(143, 160, 255, 0.1);
}

html[data-theme="dark"] .api-nav-method-post {
  background: rgba(143, 160, 255, 0.18);
  color: #c8d0ff;
}

html[data-theme="dark"] .api-nav-method-get {
  background: rgba(66, 210, 154, 0.15);
  color: #7df0ba;
}

html[data-theme="dark"] .api-nav-group a.is-active,
html[data-theme="dark"] .api-nav-group a[aria-current="true"] {
  border-left-color: #c8d0ff;
  background:
    linear-gradient(90deg, rgba(143, 160, 255, 0.2), rgba(16, 18, 26, 0.72));
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 12px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .api-nav-group a.is-active .api-nav-method-post,
html[data-theme="dark"] .api-nav-group a[aria-current="true"] .api-nav-method-post {
  background: #c8d0ff;
  color: #080910;
}

html[data-theme="dark"] .api-nav-group a.is-active .api-nav-method-get,
html[data-theme="dark"] .api-nav-group a[aria-current="true"] .api-nav-method-get {
  background: #7df0ba;
  color: #07110c;
}

html[data-theme="dark"] .api-nav-group a.is-active::after,
html[data-theme="dark"] .api-nav-group a[aria-current="true"]::after {
  background: #c8d0ff;
  box-shadow: 0 0 0 4px rgba(143, 160, 255, 0.16);
}

html[data-theme="dark"] .api-method-post {
  border-color: rgba(143, 160, 255, 0.34);
  background: rgba(143, 160, 255, 0.13);
  color: #c8d0ff;
}

html[data-theme="dark"] .api-method-get {
  border-color: rgba(66, 210, 154, 0.26);
  background: rgba(66, 210, 154, 0.1);
  color: #7df0ba;
}

html[data-theme="dark"] .api-table th {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-2);
}

html[data-theme="dark"] .api-table th,
html[data-theme="dark"] .api-table td,
html[data-theme="dark"] .api-debug-answer {
  border-color: var(--line);
}

html[data-theme="dark"] .api-endpoint-line span {
  color: #c8d0ff;
}

html[data-theme="dark"] .site-footer {
  border-top-color: var(--line);
}

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