:root {
  --ink: #0a0e14;
  --ink-raised: #0e141d;
  --panel: #121a26;
  --panel-strong: #172231;
  --line: #273446;
  --line-soft: rgba(139, 163, 196, 0.16);
  --text: #f3f6fb;
  --muted: #9ba9ba;
  --faint: #8293a6;
  --blue: #6f9dff;
  --blue-strong: #8bb2ff;
  --blue-soft: rgba(91, 140, 255, 0.14);
  --green: #42d6a4;
  --amber: #f2b861;
  --red: #ff7d83;
  --shell: min(1180px, calc(100vw - 48px));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-panel: 0 20px 54px rgba(0, 0, 0, 0.24);
  --sans: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(111, 157, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 157, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 74% 0%, rgba(69, 111, 206, 0.18), transparent 36%),
    var(--ink);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

:focus-visible {
  outline: 3px solid rgba(111, 157, 255, 0.62);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 14px;
  display: grid;
  width: min(1220px, calc(100vw - 32px));
  min-height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 14px auto 0;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(151, 172, 201, 0.2);
  border-radius: 18px;
  background: rgba(13, 19, 28, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-shell {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(111, 157, 255, 0.26);
  border-radius: 11px;
  background: #18233a;
}

.brand-logo-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.14) saturate(1.06);
  transform: scale(1.55);
}

.brand-wordmark {
  display: inline-flex;
  gap: 4px;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.brand-wordmark b {
  font-weight: 670;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.header-login {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding-inline: 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.desktop-nav a:hover,
.header-login:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button-primary {
  border-color: #8cb3ff;
  background: #f2f6ff;
  box-shadow: 0 8px 24px rgba(44, 83, 154, 0.2);
  color: #0c1421;
}

.button-primary:hover {
  background: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(139, 178, 255, 0.42);
  background: rgba(111, 157, 255, 0.08);
}

.button-compact {
  min-height: 44px;
  padding-inline: 16px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
  padding-block: 94px 84px;
}

.hero-copy {
  min-width: 0;
}

.service-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(17, 26, 38, 0.76);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 184, 97, 0.08);
}

.service-status[data-state="loading"] .status-dot {
  animation: status-pulse 1.2s ease-in-out infinite;
}

.service-status[data-state="success"] {
  border-color: rgba(66, 214, 164, 0.24);
  color: #bfeeda;
}

.service-status[data-state="success"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(66, 214, 164, 0.09);
}

.service-status[data-state="error"] {
  border-color: rgba(255, 125, 131, 0.22);
  color: #ffc0c3;
}

.service-status[data-state="error"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 125, 131, 0.08);
}

@keyframes status-pulse {
  50% {
    opacity: 0.45;
  }
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 72px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.75;
}

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

.endpoint-field {
  display: grid;
  max-width: 540px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 11px 11px 11px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 22, 32, 0.78);
}

.endpoint-field > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.endpoint-field > div > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.endpoint-field code {
  overflow: hidden;
  color: #cfdbeb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-field button,
.console-footer button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.endpoint-field button:hover,
.console-footer button:hover {
  border-color: rgba(111, 157, 255, 0.38);
  color: var(--text);
}

.endpoint-field button:disabled,
.console-footer button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.endpoint-field .ui-icon,
.console-footer .ui-icon {
  width: 16px;
  height: 16px;
}

.request-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2b3a4e;
  border-radius: var(--radius-lg);
  background: #0d131c;
  box-shadow:
    var(--shadow-panel),
    0 0 0 1px rgba(111, 157, 255, 0.04) inset;
  animation: console-enter 420ms ease both;
}

@keyframes console-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.console-topbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #121a25;
}

.console-topbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.console-topbar strong {
  margin-left: 8px;
  color: #c6d0de;
  font-size: 12px;
  font-weight: 620;
}

.window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c495a;
}

.window-dot:nth-child(1) {
  background: #ff7d83;
}

.window-dot:nth-child(2) {
  background: #f2b861;
}

.window-dot:nth-child(3) {
  background: #42d6a4;
}

.console-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.console-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.protocol-tabs {
  display: flex;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.protocol-tabs button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #9dacc0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.protocol-tabs button:hover {
  color: var(--text);
}

.protocol-tabs button.is-active {
  border-color: color-mix(in srgb, var(--tab-accent) 38%, transparent);
  background: color-mix(in srgb, var(--tab-accent) 13%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tab-accent) 78%, transparent);
  color: #f2f6fc;
}

.protocol-tabs button[data-code-tab="openai"] {
  --tab-accent: #6ee7b7;
}

.protocol-tabs button[data-code-tab="anthropic"] {
  --tab-accent: #e38768;
}

.protocol-tabs button[data-code-tab="gemini"] {
  --tab-accent: #7ba9ff;
}

.protocol-tabs img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.protocol-tabs img[src$="/openai.svg"],
.model-card img[src$="/openai.svg"],
.guide-provider img[src$="/openai.svg"] {
  filter: invert(1);
  opacity: 0.86;
}

.console-code {
  min-height: 342px;
  overflow-x: auto;
  outline: none;
  background:
    linear-gradient(90deg, rgba(111, 157, 255, 0.035) 1px, transparent 1px),
    #0d131c;
  background-size: 32px 100%;
}

.console-code pre {
  min-width: 560px;
  margin: 0;
  padding: 27px 26px 34px;
}

.console-code code {
  color: #c7d3e3;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre;
}

.syntax-string {
  color: #a9e4c8;
}

.syntax-flag {
  color: #f0bb75;
}

.syntax-key {
  color: #98b9ff;
}

.console-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 18px;
  border-top: 1px solid var(--line-soft);
  background: #111925;
}

.console-footer > code {
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protocols,
.models,
.setup,
.guides,
.faq {
  padding-block: 88px;
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}

.section-heading > div {
  max-width: 680px;
}

.section-heading-narrow > div {
  max-width: 780px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--blue-strong) !important;
  font-family: var(--mono);
  font-size: 10px !important;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p:not(.section-label) {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.text-action {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #c9d8f1;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.text-action .ui-icon {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.text-action:hover {
  color: #fff;
}

.text-action:hover .ui-icon {
  transform: translateX(3px);
}

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

.protocol-card {
  position: relative;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.protocol-card::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.018);
  content: "";
}

.protocol-card:hover {
  border-color: rgba(126, 163, 229, 0.42);
  background: var(--panel-strong);
  transform: translateY(-3px);
}

.protocol-openai {
  --protocol-accent: #6ee7b7;
}

.protocol-anthropic {
  --protocol-accent: #d97757;
}

.protocol-gemini {
  --protocol-accent: #73a7ff;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.provider-mark,
.guide-provider {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--protocol-accent, var(--blue)) 34%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--protocol-accent, var(--blue)) 10%, transparent);
}

.provider-mark img,
.guide-provider img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.card-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.card-arrow .ui-icon {
  width: 16px;
  height: 16px;
}

.protocol-card:hover .card-arrow {
  border-color: rgba(111, 157, 255, 0.4);
  color: #fff;
}

.protocol-card h3 {
  margin: 38px 0 22px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.protocol-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.protocol-card dl > div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.protocol-card dt {
  color: var(--faint);
  font-size: 11px;
}

.protocol-card dd {
  min-width: 0;
  margin: 0;
}

.protocol-card code {
  display: block;
  overflow: hidden;
  color: #bdc9d9;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.model-card {
  display: grid;
  min-width: 0;
  min-height: 84px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(17, 26, 38, 0.74);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.model-card:hover {
  border-color: rgba(111, 157, 255, 0.36);
  background: var(--panel);
}

.model-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--model-accent) 34%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--model-accent) 10%, transparent);
}

.model-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.model-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.model-card strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card small {
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card > .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--faint);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.model-card:hover > .ui-icon {
  color: var(--blue-strong);
  transform: translateX(2px);
}

.model-catalog-card {
  display: grid;
  min-height: 94px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border: 1px dashed rgba(111, 157, 255, 0.32);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(91, 140, 255, 0.085), transparent 64%),
    rgba(17, 26, 38, 0.56);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.model-catalog-card:hover {
  border-color: rgba(111, 157, 255, 0.56);
  background:
    linear-gradient(90deg, rgba(91, 140, 255, 0.13), transparent 68%),
    var(--panel);
}

.model-catalog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(111, 157, 255, 0.27);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.model-catalog-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.model-catalog-card strong {
  font-size: 16px;
  font-weight: 720;
}

.model-catalog-card small {
  color: #9dadc1;
  font-size: 13px;
}

.model-catalog-card > .ui-icon {
  color: var(--blue-strong);
}

.model-state {
  display: grid;
  min-height: 160px;
  grid-column: 1 / -1;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.model-state .ui-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: var(--faint);
}

.model-state a {
  margin-top: 6px;
  color: var(--blue-strong);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.setup-grid li {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(111, 157, 255, 0.055), transparent 46%),
    var(--panel);
}

.step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 38px;
  border: 1px solid rgba(111, 157, 255, 0.22);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-strong);
}

.step-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.setup-grid small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.setup-grid h3 {
  margin: 8px 0 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.setup-grid p,
.setup-grid code {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.setup-grid code {
  word-break: break-all;
}

.guide-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.guide-list > a {
  display: grid;
  min-height: 104px;
  grid-template-columns: auto minmax(0, 1fr) minmax(170px, auto) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 160ms ease;
}

.guide-list > a + a {
  border-top: 1px solid var(--line-soft);
}

.guide-list > a:hover {
  background: rgba(111, 157, 255, 0.06);
}

.guide-list > a:nth-child(1) {
  --protocol-accent: #6ee7b7;
}

.guide-list > a:nth-child(2) {
  --protocol-accent: #d97757;
}

.guide-list > a:nth-child(3) {
  --protocol-accent: #73a7ff;
}

.guide-list > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.guide-list strong {
  font-size: 16px;
  font-weight: 650;
}

.guide-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-list code {
  color: var(--faint);
  font-size: 10px;
}

.guide-list > a > .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.guide-list > a:hover > .ui-icon {
  color: var(--blue-strong);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 620;
  list-style: none;
}

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

.faq-list summary span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list details code {
  color: #c5d5ed;
}

.final-cta {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-block: 70px 96px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(123, 160, 227, 0.34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(111, 157, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #172334, #111927 68%);
  box-shadow: var(--shadow-panel);
}

.final-cta > div:first-child {
  display: flex;
  align-items: center;
  gap: 20px;
}

.final-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(111, 157, 255, 0.34);
  border-radius: 17px;
  background: rgba(111, 157, 255, 0.12);
  color: var(--blue-strong);
}

.final-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.final-cta p {
  margin: 0 0 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.7vw, 46px);
  font-weight: 630;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.final-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.site-footer {
  display: grid;
  min-height: 130px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer small {
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(66, 214, 164, 0.27);
  border-radius: 12px;
  background: rgba(17, 27, 38, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  color: #d7f6eb;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.toast .ui-icon {
  width: 18px;
  height: 18px;
}

.toast-error {
  display: none;
}

.toast[data-state="error"] {
  border-color: rgba(255, 125, 131, 0.28);
  color: #ffd2d4;
}

.toast[data-state="error"] .toast-success {
  display: none;
}

.toast[data-state="error"] .toast-error {
  display: block;
}

.is-embedded .site-header,
.is-embedded .site-footer {
  display: none;
}

.is-embedded .hero {
  min-height: 640px;
  padding-top: 68px;
}

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

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(14, 20, 29, 0.98);
    box-shadow: var(--shadow-panel);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-header.menu-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
  }

  .mobile-nav a:not(.button):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
  }

  .mobile-nav .button {
    justify-content: center;
    color: var(--ink);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 82px 74px;
  }

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

  .request-console {
    width: 100%;
    max-width: 760px;
  }

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

  .protocol-card {
    min-height: 230px;
  }

  .protocol-card h3 {
    margin-top: 28px;
  }

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

  .setup-grid li:last-child {
    grid-column: 1 / -1;
  }

  .guide-list > a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .guide-list code {
    display: none;
  }

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

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

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  body {
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  .site-header {
    width: calc(100vw - 20px);
    top: 10px;
    min-height: 60px;
    margin-top: 10px;
    padding: 8px 8px 8px 11px;
    border-radius: 15px;
  }

  .brand-logo-shell {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    font-size: 15px;
  }

  .header-login,
  .header-actions > .button {
    display: none;
  }

  .hero {
    gap: 40px;
    padding-block: 66px 60px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .endpoint-field {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 20px;
    padding-left: 12px;
  }

  .endpoint-field code {
    font-size: 10px;
  }

  .endpoint-field button span {
    display: none;
  }

  .endpoint-field button {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .request-console {
    border-radius: 18px;
  }

  .protocol-tabs {
    gap: 4px;
    padding: 10px;
    overflow-x: auto;
  }

  .protocol-tabs button {
    flex: 1 0 auto;
    justify-content: center;
    padding-inline: 10px;
  }

  .console-code {
    min-height: 310px;
  }

  .console-code pre {
    padding: 22px 18px 28px;
  }

  .console-code code {
    font-size: 12px;
  }

  .console-footer {
    padding-left: 13px;
  }

  .console-footer button span {
    display: none;
  }

  .protocols,
  .models,
  .setup,
  .guides,
  .faq {
    padding-block: 66px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .protocol-card {
    min-height: 230px;
    padding: 20px;
  }

  .model-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .model-catalog-card {
    min-height: 128px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .model-catalog-card > .ui-icon {
    display: none;
  }

  .setup-grid li:last-child {
    grid-column: auto;
  }

  .setup-grid li {
    min-height: 215px;
    padding: 20px;
  }

  .step-icon {
    margin-bottom: 26px;
  }

  .guide-list > a {
    min-height: 94px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
  }

  .guide-provider {
    width: 40px;
    height: 40px;
  }

  .guide-list small {
    white-space: normal;
  }

  .faq-list summary {
    min-height: 72px;
    font-size: 15px;
  }

  .final-cta {
    min-height: 300px;
    margin-block: 52px 70px;
    padding: 26px;
  }

  .final-cta > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-actions {
    width: 100%;
    flex-direction: column;
  }

  .final-actions .button {
    width: 100%;
  }

  .site-footer {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    padding-block: 30px;
  }

  .site-footer nav {
    grid-column: auto;
    grid-row: auto;
    gap: 12px 16px;
    padding: 0;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

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

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