:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #111419;
  --panel-2: #171b22;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a9b1bf;
  --soft: #d9dee8;
  --cyan: #54d2ff;
  --green: #47e3a4;
  --amber: #ffcf67;
  --red: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

textarea,
select {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(8, 9, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.top-actions,
.hero-actions,
.hero-metrics,
.trust-strip,
.section-head,
.filters,
.routing-controls,
.docs-band,
.footer,
.range-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(84, 210, 255, 0.42);
  background: linear-gradient(145deg, #111923, #0b0d10);
  color: var(--cyan);
  font-size: 12px;
  border-radius: 8px;
}

.desktop-nav {
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a:hover,
.ghost-link:hover {
  color: var(--text);
}

.top-actions {
  gap: 14px;
}

.ghost-link {
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(84, 210, 255, 0.5);
  border-radius: 8px;
  background: #eafaff;
  color: #061016;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(84, 210, 255, 0.2);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: #0b0f14;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.97) 0%, rgba(8, 9, 11, 0.78) 38%, rgba(8, 9, 11, 0.28) 72%, rgba(8, 9, 11, 0.72) 100%),
    linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, 0.15) 38%, rgba(8, 9, 11, 0.55) 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 142px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text,
.routing-copy p,
.console-copy p {
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 30px;
}

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

.hero-metrics {
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics span {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 16px;
}

.status-panel,
.model-card,
.route-board,
.pricing-tool,
.code-window,
.result-panel,
.ops-panel {
  border: 1px solid var(--line);
  background: rgba(17, 20, 25, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-panel {
  padding: 16px;
  border-radius: 8px;
}

.status-head,
.route-row,
.model-card-head,
.model-stats,
.route-item,
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-head {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.live-dot {
  color: var(--green);
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.route-row {
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.route-row span,
.route-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.route-row strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-strip {
  width: min(1180px, calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.trust-strip span {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 116px) 0;
}

.section-head {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head > div:first-child {
  max-width: 690px;
}

.filters,
.routing-controls {
  gap: 8px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter,
.route-option {
  border: 0;
  border-radius: 6px;
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.filter.active,
.route-option.active {
  background: #f5fbff;
  color: #071016;
}

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

.market-toolbar,
.dashboard-key-row,
.param-grid {
  display: grid;
  gap: 12px;
}

.market-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 16px;
}

.market-toolbar input,
.market-toolbar select,
.dashboard-key-row input,
.param-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.compare-list,
.stats-grid,
.feature-grid,
.mini-metrics {
  display: grid;
  gap: 14px;
}

.compare-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.compare-list article,
.stats-grid article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
  padding: 18px;
}

.compare-list strong,
.compare-list span,
.stats-grid span,
.stats-grid small,
.feature-grid span {
  display: block;
}

.compare-list span,
.stats-grid span,
.stats-grid small,
.feature-grid span {
  color: var(--muted);
  line-height: 1.55;
}

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

.stats-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

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

.feature-grid strong {
  display: block;
  margin-bottom: 10px;
}

.dashboard-key-row {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 760px;
  margin: 20px 0 10px;
}

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

.auth-gate {
  padding-top: 112px;
}

.login-form {
  max-width: 520px;
}

.row-actions,
.usage-filters,
.wallet-actions,
.inline-form,
.compare-output,
.form-actions {
  display: flex;
  gap: 10px;
}

.row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button.danger,
.danger {
  border-color: rgba(255, 107, 107, 0.45);
  color: #ffd3d3;
}

.wallet-actions,
.inline-form {
  flex-wrap: wrap;
  align-items: end;
}

.inline-form label,
.usage-filters input,
.usage-filters select {
  min-width: 180px;
}

.inline-form input,
.usage-filters input,
.usage-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 12px;
}

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

.mini-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.mini-metrics strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.bar-chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 5px;
  padding-top: 20px;
}

.bar-chart span {
  flex: 1;
  min-width: 4px;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.pie-list {
  display: grid;
  gap: 10px;
}

.compact-features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compare-output {
  align-items: stretch;
  overflow-x: auto;
}

.compare-output article {
  flex: 1 0 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.compare-output pre {
  white-space: pre-wrap;
  color: var(--soft);
  font-family: inherit;
}

.api-key-box {
  max-height: 320px;
  overflow: auto;
}

.compact-form {
  align-content: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.market-card .compare-button {
  margin-top: 14px;
  width: 100%;
}

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

.model-card {
  min-height: 232px;
  padding: 18px;
  border-radius: 8px;
  display: grid;
  align-content: space-between;
}

.model-card-head {
  align-items: flex-start;
}

.model-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(84, 210, 255, 0.12);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.model-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.model-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.badge {
  min-width: 70px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(71, 227, 164, 0.12);
  color: var(--green);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.model-stats {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.model-stats strong {
  color: var(--text);
  font-size: 14px;
}

.routing-section,
.console-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.api-section {
  padding-top: 0;
}

.playground {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.playground label,
.check-row {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.playground input,
.playground select,
.playground textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.playground textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.playground input:focus,
.playground select:focus,
.playground textarea:focus {
  border-color: rgba(84, 210, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(84, 210, 255, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
}

.response-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.result-panel,
.ops-panel {
  border-radius: 8px;
  overflow: hidden;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

#assistant-output {
  min-height: 210px;
  white-space: pre-wrap;
}

.usage-section {
  border-top: 1px solid var(--line);
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 14px;
}

.ops-panel {
  padding: 18px;
}

.ops-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ops-row:first-child {
  border-top: 0;
}

.ops-row div {
  min-width: 0;
}

.ops-row strong,
.ops-row span {
  display: block;
}

.ops-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-row span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.ops-row em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 999px;
}

.ops-row .good {
  color: var(--green);
  background: rgba(71, 227, 164, 0.1);
}

.ops-row .warn {
  color: var(--amber);
  background: rgba(255, 207, 103, 0.1);
}

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

.endpoint-grid article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  align-content: center;
  gap: 8px;
}

.endpoint-grid strong {
  color: var(--green);
  font-size: 12px;
}

.endpoint-grid span {
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.docs-code {
  box-shadow: none;
}

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

.price-plan-grid article {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.price-plan-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.price-plan-grid h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.16;
}

.price-plan-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
  margin-bottom: 16px;
}

.pricing-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

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

.pricing-table th {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.pricing-table td {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

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

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 72px;
}

.admin-layout {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(84, 210, 255, 0.12);
  color: var(--text);
}

.admin-main {
  min-width: 0;
}

.docs-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 72px;
}

.admin-hero,
.docs-hero {
  padding: clamp(42px, 8vw, 86px) 0 28px;
  border-bottom: 1px solid var(--line);
}

.admin-hero h1,
.docs-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
}

.admin-hero p,
.docs-hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}

.admin-section {
  width: 100%;
}

.compact-admin-hero {
  padding: 26px 0 22px;
}

.compact-admin-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.admin-stats {
  margin-bottom: 14px;
}

.admin-grid-wide {
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 12px;
}

.admin-table {
  overflow-x: auto;
}

.admin-link {
  color: var(--cyan);
  font-weight: 800;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(24, minmax(8px, 1fr));
  gap: 4px;
}

.heatmap span {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(84, 210, 255, var(--alpha));
}

.docs-section {
  width: 100%;
}

.doc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.doc-steps article,
.doc-note,
.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
  padding: 18px;
}

.doc-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(84, 210, 255, 0.12);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
}

.doc-steps h3,
.faq-list h3 {
  margin: 14px 0 8px;
}

.doc-steps p,
.doc-note p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.doc-steps a {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

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

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

.admin-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.86);
}

.form-grid,
.key-grid {
  display: grid;
  gap: 14px;
}

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

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

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.admin-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.admin-form small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.advanced-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.advanced-config summary {
  cursor: pointer;
  color: var(--soft);
  font-weight: 800;
}

.advanced-config .form-grid {
  margin-top: 14px;
}

.check-panel {
  box-shadow: none;
}

.api-key-box {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08090b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.routing-copy p,
.console-copy p {
  margin: 22px 0 26px;
}

.route-board {
  padding: 18px;
  border-radius: 8px;
}

.route-item {
  position: relative;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 8px;
  overflow: hidden;
}

.route-item + .route-item {
  margin-top: 12px;
}

.route-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  max-width: 100%;
  background: linear-gradient(90deg, rgba(84, 210, 255, 0.2), transparent);
  pointer-events: none;
}

.route-item > * {
  position: relative;
}

.route-item span {
  color: var(--muted);
  font-size: 12px;
}

.route-item strong {
  display: block;
  margin-top: 5px;
}

.latency {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.pricing-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact {
  margin-bottom: 24px;
}

.pill {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 207, 103, 0.35);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 207, 103, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.pricing-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
}

.export-tool {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.export-tool article {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.export-tool span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.export-tool strong {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.export-tool small {
  color: var(--muted);
  line-height: 1.55;
}

.slider-group label {
  display: block;
  margin-bottom: 14px;
  color: var(--soft);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.range-meta {
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.estimate {
  padding: 18px;
  background: #f5fbff;
  color: #071016;
  border-radius: 8px;
}

.estimate span,
.estimate small {
  display: block;
  color: #53606b;
}

.estimate strong {
  display: block;
  margin: 8px 0;
  font-size: 42px;
  line-height: 1;
}

.code-window {
  border-radius: 8px;
  overflow: hidden;
}

.window-bar {
  min-height: 42px;
  justify-content: flex-start;
  padding: 0 13px;
  background: #0c0f14;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar button {
  margin-left: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #d6f6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
}

.docs-band {
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(34px, 5vw, 58px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(84, 210, 255, 0.16), rgba(71, 227, 164, 0.08)),
    #111419;
}

.docs-band h2 {
  max-width: 760px;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .desktop-nav,
  .ghost-link,
  .status-panel {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner,
  .routing-section,
  .console-section,
  .pricing-tool,
  .export-tool,
  .price-plan-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .section-head,
  .docs-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .routing-section,
  .console-section,
  .ops-grid {
    gap: 24px;
  }

  .ops-grid,
  .endpoint-grid,
  .form-grid,
  .key-grid,
  .doc-steps,
  .doc-code-grid,
  .price-plan-grid,
  .market-toolbar,
  .compare-list,
  .stats-grid,
  .feature-grid,
  .compact-features,
  .mini-metrics,
  .dashboard-key-row,
  .param-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
  }

  .top-actions .button {
    display: none;
  }

  .hero-inner {
    width: min(1180px, calc(100% - 28px));
    padding-bottom: 36px;
  }

  h1 {
    max-width: 100%;
    font-size: 39px;
    line-height: 1;
  }

  .hero-text,
  .routing-copy p,
  .console-copy p {
    font-size: 16px;
  }

  .hero-metrics span {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .trust-strip,
  .section,
  .docs-band {
    width: min(1180px, calc(100% - 28px));
  }

  .trust-strip {
    flex-wrap: wrap;
    align-content: center;
    overflow: visible;
    padding: 18px 0;
  }

  .filters,
  .routing-controls {
    width: 100%;
    overflow-x: auto;
  }

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

  .model-card {
    min-height: 218px;
  }

  pre {
    font-size: 12px;
    padding: 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
