:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(13, 18, 31, 0.82);
  --panel-strong: #101827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --amber: #f59e0b;
  --blue: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.2), transparent 26rem),
    linear-gradient(180deg, #07111d 0%, var(--bg) 45%, #060912 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.6);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.9), rgba(96, 165, 250, 0.68));
  color: #041016;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 15px;
}

.nav a:hover,
.nav-console {
  background: rgba(45, 212, 191, 0.12);
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 0 56px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.primary {
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: #061019;
  box-shadow: 0 18px 48px rgba(20, 184, 166, 0.22);
}

.ghost {
  background: rgba(15, 23, 42, 0.64);
  color: var(--text);
}

.endpoint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin-top: 34px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.endpoint span {
  color: var(--muted);
  font-size: 14px;
}

.endpoint code {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.terminal,
.code-panel,
.model-card,
.stats div,
.steps article,
.status-strip {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.84);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fb7185;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #34d399;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 26px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -24px;
}

.stats div {
  padding: 22px;
  border-radius: 8px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 8px;
  font-size: 16px;
}

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

.section-block {
  padding: 86px 0 10px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

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

.model-card {
  padding: 24px;
  border-radius: 8px;
}

.model-card.featured {
  border-color: rgba(45, 212, 191, 0.56);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.1), transparent 42%),
    var(--panel);
}

.model-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.model-card p {
  min-height: 76px;
  color: var(--soft);
  line-height: 1.65;
}

dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.docs-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.docs-layout .section-heading {
  grid-column: 1 / -1;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  padding: 22px;
  border-radius: 8px;
}

.steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.65;
}

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

.code-panel-title {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-weight: 800;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 86px;
  padding: 30px;
  border-radius: 8px;
}

.status-strip p:last-child {
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 42px 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .status-strip,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 44px;
  }

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

  pre {
    padding: 18px;
    font-size: 13px;
  }
}
