:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-strong: #f0f4ef;
  --ink: #1e2320;
  --muted: #657069;
  --line: #dce3db;
  --teal: #087f7a;
  --teal-dark: #075f5b;
  --amber: #b56a16;
  --coral: #c94f3d;
  --green: #2f8a52;
  --shadow: 0 24px 70px rgba(31, 45, 38, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(220, 227, 219, 0.84);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
}

.brand-name {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--teal);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 127, 122, 0.22);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(8, 127, 122, 0.32);
  color: var(--teal);
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.large {
  min-height: 48px;
  padding: 0 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 58px;
}

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

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 30px;
  flex-wrap: wrap;
}

.endpoint-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.endpoint-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.endpoint-strip code {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  min-height: 34px;
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-item {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.section.muted {
  width: 100%;
  background: var(--surface-strong);
}

.section.muted > * {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.docs-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.docs-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.pricing-card,
.ops-grid article,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 24px;
}

.pricing-card.featured {
  border-color: rgba(8, 127, 122, 0.42);
  box-shadow: 0 22px 50px rgba(8, 127, 122, 0.12);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  background: #fff4e5;
  color: var(--amber);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.pricing-card h3 {
  margin: 0;
  font-size: 20px;
}

.price-line {
  display: flex;
  align-items: end;
  gap: 8px;
}

.price {
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.price-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-card li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}

.pricing-card li::before {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.model-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.model-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.model-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.model-name {
  font-weight: 900;
}

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

.tag {
  border-radius: 999px;
  background: #edf7f6;
  color: var(--teal-dark);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

.docs-copy {
  display: grid;
  gap: 14px;
}

.doc-points {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.doc-points div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.7);
}

.doc-points span {
  color: var(--muted);
  line-height: 1.55;
}

.code-panel {
  overflow: hidden;
  border: 1px solid #1c2a25;
  border-radius: 8px;
  background: #121715;
  box-shadow: var(--shadow);
}

.code-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tab {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aeb8b0;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

.code-tab.active {
  background: #26312d;
  color: #fff;
}

.code-panel pre {
  min-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: #eaf2ec;
  font-size: 13px;
  line-height: 1.65;
}

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

.ops-grid article {
  padding: 22px;
}

.ops-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ops-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-section {
  padding-bottom: 96px;
}

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

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #f7f8f4;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd4cc;
}

.site-footer strong,
.site-footer a {
  color: #fff;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .site-nav {
    display: none;
  }

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

  .hero-section {
    padding-top: 58px;
  }

  .pricing-grid,
  .ops-grid,
  .metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions a {
    flex: 1;
  }

  .hero-section,
  .section,
  .section.muted > *,
  .metric-band {
    width: min(100% - 32px, 1180px);
  }

  .hero-section {
    gap: 30px;
    padding: 42px 0 34px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 17px;
  }

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

  .endpoint-strip span {
    grid-column: 1 / -1;
  }

  .pricing-grid,
  .ops-grid,
  .metric-band {
    grid-template-columns: 1fr;
  }

  .metric-item,
  .metric-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-item:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}
