:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #121519;
  --surface-soft: #171b20;
  --ink: #eef1f3;
  --muted: #9aa3ab;
  --line: #23282f;
  --line-soft: #1a1e23;
  --accent: #e0a83a;
  --accent-strong: #f5c563;
  --accent-soft: rgba(224, 168, 58, 0.15);
  --warning: #e0a83a;
  --warning-soft: rgba(224, 168, 58, 0.12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --code: #0e1013;
  --code-ink: #e8eef2;
  --radius: 14px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --serif: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(120deg, rgba(20, 108, 67, 0.07), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
.button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0 17px;
  background: var(--accent);
  color: #1a1505;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.secondary,
button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover,
button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.button.danger,
button.danger {
  background: var(--danger-soft);
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--danger);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #1a1505;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #1a1505;
  font: 800 14px/1 var(--mono);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--accent);
  color: #1a1505 !important;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.hero {
  min-height: min(720px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: 54px 0 70px;
}

.hero-copy {
  max-width: 730px;
}

.hero-copy .lede {
  max-width: 58ch;
  margin-bottom: 28px;
}

.landing-page .hero-copy .lede {
  max-width: 53ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration: none;
}

.text-link span {
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.first-request {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code);
  color: var(--code-ink);
  box-shadow: 0 26px 70px rgba(0,0,0,0.5);
}

.request-heading,
.request-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
}

.request-heading {
  border-bottom: 1px solid var(--line);
}

.request-heading strong,
.request-kicker {
  display: block;
}

.request-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.first-request pre {
  margin: 0;
  padding: 22px 18px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.7;
}

.request-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.request-footer a {
  color: var(--code-ink);
  font-weight: 750;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip > div {
  min-width: 0;
  padding: 22px 22px 22px 0;
}

.proof-strip > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-panel,
.info-card,
.metric-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.status-badge,
.plan-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.warning,
.plan-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.plan-pill.pro,
.plan-pill.high,
.plan-pill.max,
.plan-pill.max_5pack {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.plan-pill.free,
.plan-pill.free_verified {
  background: var(--surface-soft);
  color: var(--ink);
}

.status-badge.danger,
.plan-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.endpoint-row {
  padding: 22px 17px;
  border-bottom: 1px solid var(--line);
}

.endpoint-row span,
.detail-label,
.metric-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

code,
pre {
  font-family: var(--mono);
}

.endpoint-row code {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.panel-list {
  display: grid;
}

.panel-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-list div:last-child {
  border-bottom: 0;
}

.panel-list span {
  color: var(--muted);
}

.panel-list strong {
  text-align: right;
}

.section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.model-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.model-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.model-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.22;
}

.model-card code,
.model-band code,
.model-table code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  padding: 3px 7px;
}

.featured-model {
  border-color: rgba(224, 168, 58, 0.4);
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
}

.model-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.model-band span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.models-note {
  max-width: 78ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.model-use-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-use-case {
  min-width: 0;
  padding: 25px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.model-use-case-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 108, 67, 0.12), transparent 15rem),
    var(--surface);
}

.model-purpose {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.model-use-case h3 {
  max-width: 25ch;
  font-size: clamp(21px, 2.5vw, 28px);
}

.model-use-case p {
  max-width: 58ch;
  margin-bottom: 24px;
  color: var(--muted);
}

.model-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-options code {
  max-width: 100%;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
}

.model-use-case-hot {
  position: relative;
  border: 1px solid rgba(240, 120, 40, 0.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 120, 40, 0.18), transparent 16rem),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(240, 120, 40, 0.12), var(--shadow);
}

.model-purpose-hot {
  color: #e2622a;
}

.model-options code.code-hot {
  border: 1px solid rgba(240, 120, 40, 0.5);
  background: rgba(240, 120, 40, 0.12);
  color: #c2521f;
  font-weight: 700;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(50px, 9vw, 120px);
}

.journey-heading {
  position: sticky;
  top: 28px;
  align-self: start;
}

.journey {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.journey li:last-child {
  border-bottom: 1px solid var(--line);
}

.journey li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 800 13px/1 var(--mono);
}

.journey h3 {
  margin-bottom: 6px;
}

.journey p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
}

.plan-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
}

.payment-note {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-summary {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0,0,0,0.5);
}

.plan-price {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-price span,
.plan-price small {
  color: var(--muted);
}

.plan-price strong {
  margin: 0 9px 0 5px;
  font-size: clamp(50px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.plan-summary dl {
  margin: 0;
  padding: 12px 25px 20px;
}

.plan-summary dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-summary dl div:last-child {
  border-bottom: 0;
}

.plan-summary dt {
  color: var(--muted);
}

.plan-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 720;
}

.account-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.account-invite p {
  color: var(--muted);
}

.account-invite .button {
  display: inline-flex;
  align-items: center;
}

.faq-section .section-intro {
  max-width: 560px;
}

.info-card {
  min-width: 0;
  padding: 23px;
}

.info-card .index {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font: 800 12px/1 var(--mono);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  min-width: 0;
  padding: 24px 22px 0 0;
}

.step + .step {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.step strong {
  display: block;
  margin-bottom: 9px;
}

.step p {
  color: var(--muted);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 50px;
  align-items: start;
}

.trust-list {
  border-top: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.trust-item strong {
  font-size: 15px;
}

.trust-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 20px 0;
  font-weight: 780;
  cursor: pointer;
}

details p {
  max-width: 72ch;
  padding: 0 0 20px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 90px);
  padding: 54px 0 90px;
  min-width: 0;
}

.docs-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 4px;
}

.docs-nav strong {
  margin-bottom: 9px;
  font-size: 13px;
}

.docs-nav a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--accent);
}

.docs-content {
  min-width: 0;
}

.docs-hero {
  padding-bottom: 40px;
  min-width: 0;
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-width: 0;
}

.docs-hero-grid > * {
  min-width: 0;
}

.docs-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 5vw, 64px);
}

.docs-hero .code-block {
  margin: 0;
}

.docs-section {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

.docs-section h2 {
  font-size: clamp(27px, 3.5vw, 40px);
}

.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.code-block {
  margin: 18px 0 24px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code);
  color: var(--code-ink);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.copy-btn {
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--code-ink);
  font-size: 12px;
}

.code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  white-space: pre;
  font-size: 13px;
  line-height: 1.65;
}

.code-block code {
  background: transparent;
}

.response-grid,
.error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.error-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.error-item code {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.error-item p {
  margin: 7px 0 0;
  color: var(--muted);
}

.model-table-wrap {
  max-width: 100%;
  margin: 20px 0 24px;
  overflow-x: auto;
}

.model-table td:nth-child(2) {
  min-width: 260px;
}

.model-table td:nth-child(2) code {
  margin: 0 5px 7px 0;
}

.auth-layout {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  padding: 54px 0 80px;
}

.auth-copy h1 {
  max-width: 720px;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.auth-point {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.auth-point strong,
.auth-point span {
  display: block;
}

.auth-point span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.auth-card {
  padding: 26px;
}

.auth-card h2 {
  font-size: 30px;
}

.form-group {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 108, 67, 0.18);
  border-color: var(--accent);
}

.form-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-actions .button,
.auth-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.message {
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px;
}

.message.error,
.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.message.success,
.success {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.message.info,
.info {
  background: var(--surface-soft);
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 44px;
  padding: 44px 0 90px;
}

.account-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.account-identity {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.account-identity h2 {
  margin: 5px 0 3px;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.account-identity p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.account-meta {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.meta-row span:first-child {
  color: var(--muted);
}

.meta-row span:last-child {
  text-align: right;
  font-weight: 760;
}

.account-nav {
  display: grid;
  padding: 12px 0;
}

.account-nav a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
  text-decoration: none;
}

.account-nav a:hover {
  color: var(--accent);
}

.account-main {
  min-width: 0;
}

.account-section {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.account-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.metric-card {
  min-width: 0;
  padding: 18px;
}

.metric-value {
  overflow-wrap: anywhere;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 820;
  line-height: 1.1;
}

.metric-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.model-usage-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255, 200, 120, 0.35));
  border-left: 3px solid #f0a830;
  border-radius: 8px;
  background: rgba(240, 168, 48, 0.08);
  color: var(--text, inherit);
  font-size: 13px;
  line-height: 1.5;
}

.model-usage-note code {
  font-size: 12px;
}

.meter {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.state-item {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.state-item strong {
  display: block;
}

.state-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.state-item.ok {
  border-color: rgba(127, 174, 143, 0.4);
  background: rgba(127, 174, 143, 0.1);
}

.state-item.warn {
  border-color: #e4c182;
  background: #fff9e9;
}

.state-item.block {
  border-color: #e2aaa5;
  background: #fff4f2;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.code-box {
  min-height: 74px;
  padding: 15px;
  overflow-x: auto;
  border-radius: 11px;
  background: var(--code);
  color: var(--code-ink);
}

.code-box pre {
  margin: 0;
  white-space: pre-wrap;
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-pill {
  min-height: 34px;
  padding: 0 10px;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 12px var(--mono);
}

.loading-state,
.empty-state,
.error-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
}

.skeleton-row {
  height: 13px;
  margin: 8px 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #e4e9e5 25%, #f5f7f5 50%, #e4e9e5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-row.short {
  width: 62%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.renewal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 17px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.renewal-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero,
  .auth-layout,
  .trust-layout,
  .docs-hero-grid,
  .journey-section,
  .plan-section,
  .account-invite {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 70px;
  }

  .feature-grid,
  .model-showcase,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .journey-heading {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .docs-layout,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .docs-nav,
  .account-sidebar {
    position: static;
  }

  .docs-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .docs-nav strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .site-nav a {
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    padding: 50px 0 60px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .model-showcase,
  .model-use-cases,
  .steps,
  .response-grid,
  .error-grid,
  .summary-grid,
  .state-grid,
  .split,
  .auth-points {
    grid-template-columns: 1fr;
  }

  .model-use-case-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip > div,
  .proof-strip > div + div,
  .proof-strip > div:nth-child(3),
  .proof-strip > div:nth-child(4) {
    padding: 17px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-strip > div:first-child {
    border-top: 0;
  }

  .request-heading,
  .request-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .first-request pre {
    font-size: 11px;
  }

  .plan-summary dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .plan-summary dd {
    text-align: left;
  }

  .step,
  .step + .step,
  .step:nth-child(3) {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .docs-layout {
    padding-top: 36px;
  }

  .docs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer,
  .section-title,
  .renewal-box {
    align-items: stretch;
    flex-direction: column;
  }

  .account-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
