:root {
  --ink: #07111f;
  --muted: #647084;
  --line: #dce4ef;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --blue: #1769ff;
  --blue-dark: #0f3f99;
  --teal: #0aa69a;
  --navy: #071427;
  --shadow: 0 18px 48px rgba(7, 17, 31, 0.1);
  --page-x: clamp(32px, 7vw, 108px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--page-x);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 228, 239, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 -5px 0 rgba(23, 105, 255, 0.52);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #263247;
  font-size: 15px;
  font-weight: 750;
}

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

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

.text-link {
  color: #263247;
  font-weight: 750;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 820;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(23, 105, 255, 0.22);
}

.button-dark {
  color: #fff;
  background: var(--navy);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.2) 67%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 70%, #fff 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(70px, 10vw, 128px) var(--page-x);
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: #435066;
  font-size: 19px;
  line-height: 1.8;
}

.page-hero {
  padding: clamp(72px, 10vw, 118px) var(--page-x);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(246,249,255,0.88)),
    url("/assets/hero-platform.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  min-height: 360px;
  display: grid;
  align-content: center;
}

.page-hero h1 {
  max-width: 960px;
  margin-bottom: 16px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #314056;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.06);
}

.section {
  padding: clamp(64px, 9vw, 112px) var(--page-x);
}

.section-tight {
  padding-top: 86px;
}

.section-head {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-head.inline {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.section-head p,
.split-copy p,
.api-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.feature-grid,
.model-grid,
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.model-card,
.assurance article,
.plan-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 236px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.feature-icon {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.model-card h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.feature-card p,
.model-card p,
.assurance p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.model-section,
.api-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.model-card {
  min-height: 220px;
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 22px;
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.market-toolbar div {
  display: grid;
  gap: 4px;
}

.market-toolbar span {
  color: var(--muted);
}

.price-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-card dt {
  color: var(--muted);
  font-weight: 800;
}

.price-card dd {
  margin: 0;
  font-weight: 900;
}

.pricing-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.pricing-table th {
  color: #42506a;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.pricing-table td:first-child {
  color: #13213a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

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

.pricing-table td:not(:first-child) {
  color: #314056;
  white-space: nowrap;
}

.model-provider {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-card h3 {
  word-break: break-word;
}

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

.series-card {
  display: grid;
  min-height: 178px;
  align-content: space-between;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.series-card b {
  font-size: 18px;
}

.series-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.series-card span {
  width: fit-content;
  color: #1f3f77;
  background: #edf4ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.model-tag {
  width: fit-content;
  color: #075d55;
  background: #def8f4;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.split-copy {
  max-width: 680px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #354259;
  line-height: 1.6;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.plan-table {
  overflow: hidden;
}

.plan-row {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.1fr;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
}

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

.plan-row.head {
  min-height: 54px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.doc-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 800;
}

.doc-nav a:hover {
  color: var(--blue);
  background: #eef4ff;
}

.doc-content {
  display: grid;
  gap: 18px;
}

.doc-card,
.about-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-card h2 {
  font-size: 28px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-panel {
  display: grid;
  gap: 0;
}

.about-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.about-panel div:first-child {
  border-top: 0;
}

.about-panel span {
  color: var(--muted);
  text-align: right;
}

.api-copy,
pre {
  border-radius: 8px;
}

.api-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.base-url {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-word;
}

pre {
  min-height: 340px;
  margin: 0;
  overflow: auto;
  padding: 28px;
  color: #ecf4ff;
  background: #071427;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.85;
  box-shadow: var(--shadow);
}

.assurance {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 30px;
  align-items: start;
}

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

.assurance article {
  min-height: 160px;
  padding: 22px;
}

.assurance b {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px var(--page-x);
  color: #d8e2f0;
  background: var(--navy);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: #fff;
  color: var(--navy);
}

.site-footer p {
  margin: 12px 0 0;
  color: #9fb0c9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 750;
}

.footer-links a:hover {
  color: #fff;
}

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

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

  .split-section,
  .api-layout,
  .assurance,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 56%, rgba(255, 255, 255, 0.45) 100%);
  }

  .hero-image {
    object-position: 65% center;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-actions,
  .section-head.inline,
  .site-footer,
  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .model-grid,
  .series-grid,
  .assurance-grid {
    grid-template-columns: 1fr;
  }

  .plan-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }

  .plan-row.head {
    display: none;
  }

  pre {
    min-height: auto;
    padding: 18px;
  }

  .doc-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Compact visual pass */
body {
  font-size: 14px;
}

.site-header {
  min-height: 64px;
}

.brand {
  font-size: 17px;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.main-nav {
  font-size: 14px;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

h1 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(25px, 3.2vw, 38px);
}

.hero {
  min-height: calc(100vh - 64px);
}

.hero-content {
  max-width: 680px;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.72;
}

.page-hero {
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}

.page-hero.compact {
  min-height: 310px;
}

.section {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.section-tight {
  padding-top: 68px;
}

.section-head p,
.split-copy p,
.api-copy p,
.feature-card p,
.model-card p,
.assurance p {
  font-size: 14px;
  line-height: 1.68;
}

.feature-card,
.model-card,
.doc-card,
.about-panel,
.api-copy {
  padding: 20px;
}

.feature-card h3,
.model-card h3 {
  font-size: 17px;
}

.series-card b {
  font-size: 17px;
}

.model-card {
  min-height: 200px;
  gap: 14px;
}

.feature-card {
  min-height: 205px;
}

.market-toolbar {
  padding: 16px;
}

.price-card dl {
  padding: 12px;
  gap: 7px 10px;
}

.model-provider,
.model-tag,
.eyebrow,
.base-url span {
  font-size: 11px;
}

.doc-card h2 {
  font-size: 24px;
}

pre {
  min-height: 300px;
  padding: 22px;
}

code {
  font-size: 12px;
}
