:root {
  color-scheme: dark;
  --bg: #111022;
  --panel: #17162b;
  --panel-2: #0c0b1a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a6b0b9;
  --dim: #7a8090;
  --green: #00ff88;
  --purple: #a855f7;
  --yellow: #f5e642;
  --red: #ff5c7a;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(780px 520px at 10% -4%, rgba(0, 255, 136, 0.11), transparent 60%),
    radial-gradient(660px 560px at 92% 12%, rgba(245, 230, 66, 0.08), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 15px 42px;
  background: rgba(17, 16, 34, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.nav button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #d8dae0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.nav button.active {
  background: var(--green);
  color: #101022;
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.lang-toggle button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #c8d0d8;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.lang-toggle button.active {
  color: #111022;
  background: var(--yellow);
}

.page {
  flex: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 96px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 8, 24, 0.66);
}

.site-footer-inner {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-nav-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--green);
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-nav-link:hover {
  color: var(--yellow);
}

.legal-links .legal-nav-link,
.legal-consent .legal-nav-link {
  color: var(--green);
}

.legal-links .legal-nav-link:hover,
.legal-consent .legal-nav-link:hover {
  color: var(--yellow);
}

.legal-page {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-page-heading {
  margin-bottom: 28px;
}

.legal-page-heading h1 {
  margin-bottom: 10px;
}

.legal-document {
  display: grid;
  gap: 42px;
  padding: clamp(24px, 5vw, 56px);
}

.legal-section {
  scroll-margin-top: 120px;
}

.legal-section h2 {
  display: flex;
  margin: 0 0 18px;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}

.legal-section h2 span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 50%;
  place-items: center;
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.legal-section p,
.legal-section li {
  color: #c8c9d2;
  font-size: 14px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  margin: 14px 0 18px;
  padding-left: 24px;
  gap: 8px;
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--green);
  text-underline-offset: 3px;
}

.legal-back {
  margin-top: 28px;
}

.page > section + section {
  margin-top: 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 5vw, 56px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(34px, 3vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.accent {
  color: var(--yellow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-providers {
  margin-top: 28px;
}

.hero-providers-label {
  display: block;
  margin-bottom: 10px;
  color: #c8d0d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.hero-provider {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-provider > img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 5px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.hero-provider > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-provider strong,
.hero-provider small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-provider strong {
  color: #fff;
  font-size: 11px;
}

.hero-provider small {
  color: var(--muted);
  font-size: 9px;
}

.used-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 18px;
  margin-top: 34px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #c8d0d8;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.used-by a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 4px 0;
  border-radius: 6px;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.used-by a:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.used-by-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.used-by img {
  display: block;
  width: min(200px, 55vw);
  height: auto;
  border-radius: 6px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.primary {
  color: #111022;
  background: var(--yellow);
  border-color: transparent;
}

.btn.green {
  color: #111022;
  background: var(--green);
  border-color: transparent;
}

.btn.danger {
  color: #fff;
  background: rgba(255, 92, 122, 0.14);
  border-color: rgba(255, 92, 122, 0.36);
}

.btn.icon {
  width: 42px;
  padding: 0;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.hero-terminal {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.terminal-inner {
  min-height: 430px;
  border-radius: 8px;
  padding: 22px;
  background: var(--panel-2);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.lights {
  display: flex;
  gap: 8px;
}

.lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dim);
}

.lights span:nth-child(1) {
  background: var(--yellow);
}

.lights span:nth-child(2) {
  background: var(--green);
}

pre {
  margin: 0;
  color: #d6deeb;
  font-family: "Space Grotesk", Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.sdk-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #111022;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.code-method {
  color: #111022;
  background: var(--yellow);
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 900;
}

.code-endpoint {
  color: #8be9fd;
  font-weight: 800;
}

.code-header {
  color: #ffb86c;
}

.code-key {
  color: #00ff88;
  font-weight: 800;
}

.code-value {
  color: var(--yellow);
}

.code-string {
  color: #f5e642;
}

.code-number,
.code-bool {
  color: #bd93f9;
  font-weight: 800;
}

.code-comment {
  color: #7fe7b4;
}

.code-error {
  color: #ff8fa3;
  font-weight: 900;
}

.code-token {
  position: relative;
  color: #111022;
  background: #00ff88;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 900;
  cursor: help;
}

.code-token:hover::after,
.code-token:focus::after {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  content: attr(title);
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text);
  background: #2a263d;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 230, 66, 0.28);
  border-radius: 8px;
  color: #f8ed92;
  background: rgba(245, 230, 66, 0.08);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.dim {
  color: var(--dim);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}

.ai-companies {
  position: relative;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(520px 240px at 0 0, rgba(0, 255, 136, 0.1), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.companies-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 30px;
}

.companies-heading .eyebrow {
  margin-bottom: 12px;
}

.companies-heading h2 {
  max-width: 640px;
}

.companies-heading > p {
  margin: 0;
  color: #c8d0d8;
  font-size: 15px;
  line-height: 1.65;
}

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

.company-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(12, 11, 26, 0.64);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.company-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.company-logo {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
}

.company-logo img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.company-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-copy small {
  color: var(--muted);
  font-size: 12px;
}

.company-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.company-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.companies-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(245, 230, 66, 0.22);
  border-radius: 12px;
  background: rgba(245, 230, 66, 0.07);
}

.companies-cta-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111022;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.companies-cta h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.companies-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 28px;
}

.models-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

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

.checkout-notice {
  margin-bottom: 30px;
}

.token-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.purchase-builder {
  display: grid;
  gap: 26px;
  padding: 32px;
}

.purchase-builder .field > span {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
}

.purchase-builder .field small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.purchase-builder select,
.purchase-builder input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 700;
}

.selected-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.07);
}

.selected-offer strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.selected-offer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.volume-presets {
  display: grid;
  gap: 10px;
}

.volume-presets > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.volume-presets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.volume-chip {
  min-width: 68px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8dae0;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: 800;
}

.volume-chip:hover,
.volume-chip.active {
  border-color: rgba(0, 255, 136, 0.48);
  color: #111022;
  background: var(--green);
}

.purchase-summary {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 24px;
  padding: 30px;
}

.stripe-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #dcd5ff;
  font-size: 13px;
  font-weight: 800;
}

.stripe-mark span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: #635bff;
  font-size: 16px;
  font-weight: 900;
}

.purchase-summary h2 {
  font-size: 28px;
}

.purchase-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.purchase-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-summary dt {
  color: var(--muted);
  font-size: 13px;
}

.purchase-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.purchase-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.purchase-total span {
  color: var(--muted);
  font-size: 13px;
}

.purchase-total strong {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.purchase-button {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

.secure-note,
.signin-note {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.secure-note span {
  margin-right: 7px;
  color: var(--green);
}

.signin-note {
  color: #f8ed92;
}

.legal-consent {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.dash-grid {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.036);
  padding: 28px;
}

.card.highlight {
  border-color: rgba(0, 255, 136, 0.34);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.026));
}

.model-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.model-card h3 {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-family: "Space Grotesk", Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
}

.model-card p {
  margin: 0;
  color: #d8dae0;
  font-size: 16px;
  line-height: 1.5;
}

.model-card .btn {
  margin-top: auto;
  width: fit-content;
}

.model-tier {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.model-tier.free {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.22);
}

.model-tier.paid {
  color: #f3e8ff;
  background: color-mix(in srgb, var(--purple) 24%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--purple) 34%, transparent);
}

.model-fit {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.model-context {
  color: #c8d0d8;
  font-size: 15px;
  line-height: 1.45;
}

.model-fit strong {
  color: var(--text);
}

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

.how-step {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111022;
  background: var(--green);
  font-weight: 900;
}

.how-step h3 {
  font-size: 22px;
}

.how-step code {
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: #f5e642;
  background: rgba(255, 255, 255, 0.055);
  font-family: "Space Grotesk", Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.failover-note {
  display: grid;
  gap: 6px;
  margin-top: auto;
  color: #c8d0d8;
  font-size: 15px;
}

.failover-note strong {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 6px;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.12);
}

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

.faq-item {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.faq-item h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 20px;
}

.faq-item p {
  margin: 0;
  color: #c8d0d8;
  font-size: 17px;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.badge.free {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.22);
}

.badge.paid {
  color: #f3e8ff;
  background: color-mix(in srgb, var(--purple) 24%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--purple) 34%, transparent);
}

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

.metric {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  color: var(--green);
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 255, 136, 0.55);
}

.field.error .input {
  border-color: #ff4444;
}

.field-error {
  color: #ff4444;
  font-size: 11px;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: #111022;
  background: var(--green);
}

.social-auth {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 900;
}

.social-btn span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111022;
  background: var(--text);
  font-size: 13px;
}

.social-btn.google span {
  background: #fbbc05;
}

.social-btn.github span {
  background: #f5f7fa;
}

.social-btn.facebook span {
  color: #ffffff;
  background: #1877f2;
}

.sidebar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.sidebar > .muted {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  text-align: left;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.sidebar button.active {
  color: var(--green);
  background: rgba(0, 255, 136, 0.11);
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.key-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.mono {
  overflow: hidden;
  color: var(--green);
  font-family: "Space Grotesk", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 16px;
}

.pricing-stats {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.model-badge.free {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.model-badge.premium {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.response-box {
  min-height: 264px;
  max-height: 430px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  color: #d8dae0;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 8px;
  background: #101322;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.toast.error {
  border-color: rgba(255, 92, 122, 0.42);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 18, 0.72);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #17162b;
  box-shadow: var(--shadow);
}

.modal h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.modal p {
  margin: 0 0 16px;
  color: #d8dae0;
  line-height: 1.6;
}

.modal .btn {
  width: 100%;
}

.empty {
  padding: 22px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 14px 22px;
  }

  .page > section + section {
    margin-top: 96px;
  }

  .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .auth-layout,
  .dash-grid,
  .playground,
  .token-checkout {
    grid-template-columns: 1fr;
  }

  .purchase-summary {
    position: static;
  }

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

  .companies-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .how-grid,
  .plans-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    width: min(100% - 28px, 1240px);
    align-items: flex-start;
    flex-direction: column;
  }

  .hero > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .hero > div:first-child > .eyebrow {
    order: 1;
    align-self: flex-start;
  }

  .hero-providers {
    order: 2;
    width: 100%;
    margin: 0 0 28px;
  }

  .hero h1 {
    order: 3;
  }

  .hero .lead {
    order: 4;
  }

  .hero .cta-row {
    order: 5;
  }

  .hero .used-by {
    order: 6;
  }

  .page {
    width: min(100% - 28px, 1240px);
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .page > section + section {
    margin-top: 72px;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav button {
    padding: 0 12px;
  }

  .how-grid,
  .models-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .ai-companies {
    padding: 22px;
    border-radius: 14px;
  }

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

  .companies-grid,
  .companies-cta {
    grid-template-columns: 1fr;
  }

  .companies-cta-icon {
    display: none;
  }

  .companies-cta .btn {
    width: 100%;
  }

  .purchase-builder,
  .purchase-summary {
    padding: 20px;
  }

  .purchase-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-terminal,
  .terminal-inner,
  .card,
  .how-step,
  .faq-item {
    padding: 18px;
  }

  .grid,
  .models-grid {
    gap: 22px;
  }
}
