:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1117;
  --surface: #111820;
  --surface-2: #151d28;
  --surface-3: #1b2532;
  --text: #eff6ff;
  --muted: #9aa8b8;
  --soft: #6f8092;
  --line: rgba(175, 198, 218, 0.16);
  --line-strong: rgba(186, 212, 232, 0.28);
  --cyan: #64d9ff;
  --blue: #3d77ff;
  --violet: #9b7cff;
  --mint: #7cf5cf;
  --amber: #f4c46b;
  --danger: #ff7a90;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(61, 119, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 78% 0%, rgba(124, 245, 207, 0.14), transparent 26rem),
    linear-gradient(180deg, #07090d 0%, #091019 48%, #07090d 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 78%);
}

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

code,
pre {
  font-family:
    "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  max-width: 100%;
  margin: 14px 0 0;
  overflow-x: auto;
  border: 1px solid rgba(124, 245, 207, 0.14);
  border-radius: var(--radius);
  background: #081018;
  color: #d9f7ff;
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 14px 16px;
  scrollbar-color: rgba(100, 217, 255, 0.35) rgba(255, 255, 255, 0.05);
}

code {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9f7ff;
  font-size: 0.9em;
  padding: 0.14em 0.32em;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 14px;
  backdrop-filter: blur(18px);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 217, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 48%, rgba(100, 217, 255, 0.18), transparent 60%),
    rgba(7, 13, 21, 0.82);
  box-shadow: 0 14px 44px rgba(44, 110, 255, 0.24);
}

.brand-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.03rem;
  font-weight: 720;
}

.brand small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.72);
  padding: 5px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 8px 12px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.top-action,
.button,
.copy-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.top-action {
  min-width: fit-content;
  border: 1px solid rgba(100, 217, 255, 0.3);
  border-radius: 999px;
  background: rgba(100, 217, 255, 0.1);
  color: #dff8ff;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 10px 14px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.top-action:hover,
.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.06fr) minmax(500px, 0.94fr);
  gap: 56px;
  min-height: 620px;
  align-items: center;
  padding: 78px 0 54px;
}

.hero-copy,
.endpoint-panel,
.steps article,
.agent-card,
.usage-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.4rem, 5.7vw, 5rem);
  font-weight: 820;
  line-height: 0.96;
  overflow-wrap: normal;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: #b6c4d2;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hero-lead span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 720;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06101b;
}

.button.ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.endpoint-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #0c121a;
  box-shadow: var(--shadow);
  padding: 22px;
}

.endpoint-panel::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(124, 245, 207, 0.56), transparent);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #dff8ff;
  font-size: 0.84rem;
  font-weight: 760;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(124, 245, 207, 0.12);
}

.endpoint-row {
  display: grid;
  grid-template-columns: 118px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.17);
  padding: 14px;
}

.endpoint-row + .endpoint-row {
  margin-top: 10px;
}

.endpoint-row span {
  color: var(--soft);
  font-size: 0.82rem;
}

.endpoint-row code {
  background: transparent;
  color: #f2fbff;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.copy-button {
  border: 1px solid rgba(100, 217, 255, 0.28);
  border-radius: 7px;
  background: rgba(100, 217, 255, 0.1);
  color: #dff8ff;
  font-size: 0.78rem;
  font-weight: 720;
  padding: 7px 9px;
}

.panel-note {
  margin: 16px 2px 0;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  margin-bottom: 68px;
}

.trust-strip div {
  min-width: 0;
  background: rgba(10, 15, 23, 0.76);
  padding: 20px;
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.section {
  padding: 58px 0;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

.steps article,
.agent-card,
.usage-panel,
.callout,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 18, 26, 0.82);
}

.steps article {
  min-height: 250px;
  padding: 24px;
}

.step-index {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.steps h3,
.agent-card h3,
.usage-panel h3 {
  margin: 16px 0 10px;
  color: #ffffff;
  font-size: 1.16rem;
}

.steps p,
.agent-card p,
.usage-panel p,
.callout p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.setup-cheatsheet {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  margin-bottom: 18px;
}

.setup-cheatsheet div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  background: rgba(9, 15, 23, 0.78);
  padding: 16px;
}

.setup-cheatsheet strong {
  grid-column: 1 / -1;
  color: #ffffff;
  font-size: 0.92rem;
}

.setup-cheatsheet span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.setup-cheatsheet code {
  min-width: 0;
  background: transparent;
  color: #edfaff;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.mini-copy {
  min-width: 54px;
  padding: 6px 8px;
}

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

.agent-card {
  min-height: 220px;
  overflow: hidden;
  padding: 0;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.agent-card.featured {
  grid-column: span 2;
  border-color: rgba(100, 217, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(100, 217, 255, 0.14), rgba(155, 124, 255, 0.09)),
    rgba(12, 18, 26, 0.94);
}

.agent-card:hover {
  border-color: rgba(100, 217, 255, 0.34);
  transform: translateY(-2px);
}

.agent-card-trigger {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 20px;
  text-align: left;
}

.agent-card-trigger:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.agent-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.agent-logo {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 217, 255, 0.24);
  border-radius: 10px;
  background: rgba(100, 217, 255, 0.1);
  color: #dff8ff;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 3px;
}

.agent-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agent-name {
  display: block;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 790;
  line-height: 1.18;
}

.agent-type {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.agent-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.74rem;
  padding: 5px 8px;
}

.agent-card-copy {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.agent-card-action {
  display: inline-flex;
  align-items: center;
  color: #dff8ff;
  font-size: 0.86rem;
  font-weight: 760;
}

.agent-card-action::after {
  margin-left: 8px;
  content: "→";
  color: var(--cyan);
}

.agent-dialog {
  width: min(1180px, calc(100% - 48px));
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(186, 212, 232, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #0b1119;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.66);
  color: var(--text);
  padding: 0;
}

.agent-dialog::backdrop {
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.agent-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 36px);
}

.agent-dialog-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 20px;
}

.agent-dialog-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 217, 255, 0.26);
  border-radius: 12px;
  background: rgba(100, 217, 255, 0.1);
  color: #dff8ff;
  font-weight: 820;
  padding: 4px;
}

.agent-dialog-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agent-dialog-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.agent-dialog-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.dialog-close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  padding: 8px 11px;
}

.agent-dialog-body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 20px 24px 24px;
  scrollbar-color: rgba(100, 217, 255, 0.36) rgba(255, 255, 255, 0.05);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.guide-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.guide-panel h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.guide-panel ol,
.guide-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
  padding-left: 20px;
}

.value-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px;
}

.value-row dt {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.value-row dd {
  display: contents;
  margin: 0;
}

.value-row code {
  min-width: 0;
  background: transparent;
  color: #edfaff;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.value-note {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.guide-panel pre {
  margin-top: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-list a {
  border: 1px solid rgba(100, 217, 255, 0.2);
  border-radius: 999px;
  background: rgba(100, 217, 255, 0.08);
  color: #dff8ff;
  font-size: 0.82rem;
  font-weight: 720;
  padding: 7px 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 48px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 96px;
}

.model-table-wrap {
  display: grid;
  gap: 16px;
}

.model-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 18, 26, 0.86);
}

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

.model-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 760;
}

.model-table td {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

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

.callout {
  border-color: rgba(244, 196, 107, 0.28);
  padding: 18px;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
}

.usage-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.account-section .section-heading {
  max-width: 520px;
}

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

.policy-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 18, 26, 0.84);
  padding: 20px;
}

.policy-card.highlight {
  grid-column: 1 / -1;
  border-color: rgba(124, 245, 207, 0.26);
  background:
    linear-gradient(135deg, rgba(124, 245, 207, 0.12), rgba(61, 119, 255, 0.08)),
    rgba(12, 18, 26, 0.92);
}

.policy-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.06rem;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.policy-card p {
  margin: 0;
}

.policy-card ol,
.policy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.policy-card pre {
  font-size: 0.78rem;
}

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

.status-list div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.status-list dt {
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 760;
}

.status-list dd {
  margin: 0;
  color: #edfaff;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.config-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.config-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.44fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
}

.config-table div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.config-table strong {
  color: #dff8ff;
  font-size: 0.82rem;
}

.config-table span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.policy-note {
  margin-top: 12px !important;
  color: #bfd0df !important;
}

.usage-panel h3 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 720;
  list-style: none;
  padding: 18px 20px;
}

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

.faq-list summary::after {
  float: right;
  content: "+";
  color: var(--cyan);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  border-top: 1px solid var(--line);
  padding: 0 20px 18px;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  padding: 28px 0 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 750;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
  font-size: 0.88rem;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: 1px solid rgba(124, 245, 207, 0.3);
  border-radius: 8px;
  background: rgba(9, 17, 24, 0.94);
  box-shadow: var(--shadow);
  color: #dff8ff;
  font-size: 0.9rem;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 56px;
  }

  .endpoint-panel {
    max-width: 680px;
  }

  .steps,
  .agent-gallery,
  .setup-cheatsheet,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .agent-card.featured {
    grid-column: auto;
  }

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

  .policy-grid,
  .status-list {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 640px) {
  .topbar,
  main,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .brand small,
  .top-action {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10.6vw, 2.7rem);
    line-height: 0.98;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-actions,
  .usage-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .endpoint-row {
    grid-template-columns: 1fr;
  }

  .endpoint-row span {
    grid-column: auto;
  }

  .endpoint-row code {
    overflow: visible;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  .copy-button {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

  .steps article,
  .agent-card {
    min-height: auto;
  }

  .agent-card-trigger {
    min-height: 190px;
  }

  .setup-cheatsheet div,
  .agent-dialog-head,
  .value-row,
  .config-table div {
    grid-template-columns: 1fr;
  }

  .agent-dialog-head {
    padding: 18px;
  }

  .agent-dialog-body {
    padding: 16px 18px 18px;
  }

  .dialog-close {
    width: 100%;
  }

  .value-row code,
  .setup-cheatsheet code {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  .value-note {
    grid-column: auto;
  }

  .model-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
