:root {
  color-scheme: dark;
  --background-primary: #000000;
  --background-secondary: #0f0f0f;
  --background-third: #1b1b1b;
  --background-forth: #363636;
  --background-alpha-primary: rgba(255, 255, 255, 0.08);
  --background-alpha-hover: rgba(255, 255, 255, 0.16);
  --background-alpha-disabled: rgba(255, 255, 255, 0.04);
  --text-white-primary: #ffffff;
  --text-white-secondary: rgba(255, 255, 255, 0.6);
  --text-white-third: rgba(255, 255, 255, 0.4);
  --text-dark-primary: #000000;
  --success: #4ac97e;
  --credit: #ffd147;
  --border-primary: rgba(255, 255, 255, 0.12);
  --border-secondary: rgba(255, 255, 255, 0.06);
  --button-primary-normal: #f2f2f2;
  --button-primary-hover: #dadada;
  --button-secondary-normal: rgba(255, 255, 255, 0.08);
  --button-secondary-hover: rgba(255, 255, 255, 0.16);
  --gradient-create: linear-gradient(90deg, #ffa052 0%, #e046a4 45%, #6851eb 100%);
  --gradient-credit: linear-gradient(270deg, #ffe762 0%, #fb9644 100%);
  --font-app: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-amount: "Inconsolata", system-ui, sans-serif;
  --ease-smooth: cubic-bezier(0.15, 0.75, 0.3, 1);
}

body:has(.theme-toggle-input:checked) {
  color-scheme: light;
  --background-primary: #f6f7f9;
  --background-secondary: #ffffff;
  --background-third: #eef0f4;
  --background-forth: #d7dbe2;
  --background-alpha-primary: rgba(255, 255, 255, 0.78);
  --background-alpha-hover: rgba(16, 18, 24, 0.08);
  --background-alpha-disabled: rgba(16, 18, 24, 0.05);
  --text-white-primary: #111318;
  --text-white-secondary: rgba(17, 19, 24, 0.68);
  --text-white-third: rgba(17, 19, 24, 0.44);
  --text-dark-primary: #111318;
  --border-primary: rgba(17, 19, 24, 0.14);
  --border-secondary: rgba(17, 19, 24, 0.08);
  --button-secondary-normal: rgba(17, 19, 24, 0.06);
  --button-secondary-hover: rgba(17, 19, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background-primary);
  color: var(--text-white-primary);
  font-family: var(--font-app);
  font-size: 14px;
  line-height: 19px;
}

.theme-toggle-input {
  position: fixed;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 1px solid var(--text-white-primary);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: color-mix(in srgb, var(--background-primary) 86%, transparent);
  border-bottom: 1px solid var(--border-primary);
  backdrop-filter: blur(32px);
}

.brand,
.desktop-nav,
.hero-actions,
.header-actions,
.hero-facts,
.site-footer,
.final-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 16px;
  line-height: 23px;
  font-weight: 500;
  white-space: nowrap;
}

.brand b {
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: contain;
}

.desktop-nav {
  gap: 18px;
  color: var(--text-white-secondary);
  font-weight: 500;
}

.desktop-nav a,
.header-cta,
.btn,
summary,
.theme-toggle {
  transition: background 160ms var(--ease-smooth), color 160ms var(--ease-smooth), transform 160ms var(--ease-smooth), border-color 160ms var(--ease-smooth);
}

.desktop-nav a:hover {
  color: var(--text-white-primary);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.header-cta,
.btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.header-cta,
.btn-secondary {
  background: var(--button-secondary-normal);
  color: var(--text-white-primary);
  border: 1px solid var(--border-secondary);
  backdrop-filter: blur(32px);
}

.header-cta:hover,
.btn-secondary:hover {
  background: var(--button-secondary-hover);
}

.btn-gradient {
  background: var(--gradient-create);
  color: #ffffff;
}

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

.theme-toggle {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--button-secondary-normal);
  border: 1px solid var(--border-secondary);
  color: var(--text-white-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
  backdrop-filter: blur(32px);
  user-select: none;
}

.theme-toggle:hover {
  background: var(--button-secondary-hover);
  color: var(--text-white-primary);
}

.theme-toggle i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 9999px;
  background: var(--background-alpha-disabled);
  border: 1px solid var(--border-primary);
}

.theme-toggle i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--gradient-create);
  transition: transform 160ms var(--ease-smooth);
}

body:has(.theme-toggle-input:checked) .theme-toggle i::before {
  transform: translateX(14px);
}

main {
  overflow: hidden;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 72px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-white-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
.section-heading h2,
.final-cta h2 {
  margin-bottom: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  font-weight: 700;
}

.section-heading h2,
.final-cta h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 700;
}

.hero-lede,
.section-heading p,
.final-cta p {
  max-width: 760px;
  color: var(--text-white-secondary);
  font-size: 18px;
  line-height: 28px;
}

.hero-lede {
  margin: 24px 0 0;
}

.section-heading p,
.final-cta p {
  margin: 18px 0 0;
}

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

.hero-facts {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-facts span,
.status-row span,
.model-card > span,
.fit-grid span,
.endpoint-cluster > span,
.trust-grid span {
  padding: 6px 9px;
  border-radius: 9999px;
  background: var(--background-alpha-disabled);
  color: var(--text-white-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
}

.api-console,
.request-card,
.pipeline article,
.fit-grid article,
.workflow-line article,
.endpoint-cluster,
.model-card,
.evaluation-grid article,
.pricing-panel,
.limits-panel,
.trust-grid article,
.faq-list details,
.final-cta {
  border: 1px solid var(--border-primary);
  background: var(--background-alpha-primary);
  backdrop-filter: blur(32px);
}

.api-console {
  padding: 16px;
  border-radius: 24px;
}

.console-top {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white-secondary);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--background-alpha-hover);
}

.console-top span:nth-child(1) {
  background: var(--button-primary-normal);
}

.console-top span:nth-child(2) {
  background: var(--credit);
}

.console-top span:nth-child(3) {
  background: var(--success);
}

.console-top strong {
  margin-left: auto;
  font-family: var(--font-amount);
  font-size: 12px;
  line-height: 17px;
  color: var(--text-white-secondary);
}

.request-card {
  margin-top: 10px;
  padding: 18px;
  border-radius: 16px;
}

.request-card p {
  margin-bottom: 12px;
  color: var(--text-white-secondary);
  font-weight: 700;
}

pre {
  margin-bottom: 0;
  white-space: pre-wrap;
  color: var(--text-white-primary);
  font-family: var(--font-amount);
  font-size: 14px;
  line-height: 19px;
}

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

.pipeline article {
  min-height: 120px;
  padding: 14px;
  border-radius: 16px;
}

.pipeline span {
  color: var(--text-white-third);
  font-family: var(--font-amount);
  font-size: 16px;
  line-height: 23px;
  font-weight: 700;
}

.pipeline strong {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  line-height: 23px;
}

.pipeline p,
.fit-grid p,
.workflow-line p,
.model-card p,
.evaluation-grid p,
.pricing-panel p,
.limits-panel p,
.trust-grid p,
.faq-list p,
.final-cta p {
  margin-bottom: 0;
  color: var(--text-white-secondary);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section-heading {
  margin-bottom: 32px;
}

.fit-grid,
.endpoint-board,
.evaluation-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fit-grid article,
.endpoint-cluster,
.evaluation-grid article,
.trust-grid article {
  min-height: 220px;
  padding: 22px;
  border-radius: 16px;
}

.fit-grid h3,
.endpoint-cluster h3,
.evaluation-grid h3,
.trust-grid h3,
.model-card h3,
.pricing-panel h3,
.limits-panel h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 30px;
}

.endpoint-cluster {
  display: flex;
  flex-direction: column;
}

.endpoint-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.endpoint-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-white-secondary);
}

.endpoint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--gradient-create);
}

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

.workflow-line article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: 0;
  border-right: 0;
}

.workflow-line article:first-child {
  border-radius: 16px 0 0 16px;
}

.workflow-line article:last-child {
  border-right: 1px solid var(--border-primary);
  border-radius: 0 16px 16px 0;
}

.workflow-line span {
  color: var(--credit);
  font-family: var(--font-amount);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

.workflow-line h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  line-height: 30px;
}

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

.commercial-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.model-card,
.pricing-panel,
.limits-panel {
  padding: 24px;
  border-radius: 16px;
}

.model-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.model-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-white-secondary);
}

.model-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--gradient-create);
}

.v6 {
  background: linear-gradient(160deg, color-mix(in srgb, var(--background-alpha-hover) 62%, transparent), var(--background-alpha-primary));
}

.c1 {
  background: linear-gradient(160deg, color-mix(in srgb, var(--credit) 12%, transparent), var(--background-alpha-primary));
}

.pricing-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  background: var(--border-secondary);
}

.pricing-table div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  min-height: 52px;
  background: color-mix(in srgb, var(--background-primary) 52%, transparent);
}

.pricing-table span,
.pricing-table b {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.pricing-table div:first-child {
  color: var(--text-white-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
}

.pricing-table b {
  font-family: var(--font-amount);
  font-size: 18px;
  line-height: 28px;
}

.pricing-panel p,
.limits-panel p {
  margin-top: 16px;
}

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

.limit-bars div {
  min-height: 122px;
  padding: 16px;
  border-radius: 12px;
  background: var(--background-alpha-disabled);
  border: 1px solid var(--border-secondary);
}

.limit-bars span {
  display: block;
  color: var(--text-white-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 700;
}

.limit-bars b {
  display: block;
  margin-top: 22px;
  font-family: var(--font-amount);
  font-size: 36px;
  line-height: 44px;
}

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

.trust-grid article {
  min-height: 190px;
}

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

.faq-list details {
  border-radius: 16px;
}

.faq-list summary {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 23px;
  font-weight: 700;
}

.faq-list summary:hover {
  background: var(--background-alpha-hover);
}

.faq-list p {
  padding: 0 20px 20px;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  border-radius: 20px;
}

.final-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  min-height: 56px;
  padding: 0 24px;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-white-third);
  border-top: 1px solid var(--border-primary);
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .model-layout,
  .commercial-layout {
    grid-template-columns: 1fr;
  }

  .fit-grid,
  .endpoint-board,
  .evaluation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 56px;
    padding: 10px 14px;
    align-items: flex-start;
  }

  .brand {
    font-size: 14px;
    line-height: 19px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle span {
    display: none;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 17px;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .hero-lede,
  .section-heading p,
  .final-cta p {
    font-size: 16px;
    line-height: 23px;
  }

  .api-console {
    padding: 12px;
    border-radius: 20px;
  }

  .console-top strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pipeline,
  .fit-grid,
  .workflow-line,
  .endpoint-board,
  .model-layout,
  .evaluation-grid,
  .commercial-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .pipeline article,
  .fit-grid article,
  .endpoint-cluster,
  .evaluation-grid article,
  .trust-grid article {
    min-height: auto;
  }

  .workflow-line article,
  .workflow-line article:first-child,
  .workflow-line article:last-child {
    border-radius: 16px;
    border-right: 1px solid var(--border-primary);
  }

  .workflow-line {
    gap: 10px;
  }

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

  .pricing-table div {
    min-width: 620px;
  }

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

  .final-cta {
    display: block;
    padding: 28px;
  }

  .final-actions {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .site-footer {
    min-height: auto;
    padding: 18px 14px;
    align-items: flex-start;
    flex-direction: column;
  }
}
