:root {
  color-scheme: dark;
  --bg: #080b0f;
  --surface: #10161d;
  --surface-strong: #151d26;
  --line: #293542;
  --line-soft: #1b252f;
  --text: #f4f7fa;
  --muted: #a6b2be;
  --dim: #738292;
  --red: #ef3340;
  --red-hover: #ff5c67;
  --gold: #f2c14e;
  --green: #4fd49a;
  --blue: #72a7ff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: #130204;
  background: var(--red);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 11, 15, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

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

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  justify-content: flex-start;
}

.nav-link {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: #526375;
  background: var(--surface-strong);
}

.button.primary {
  border-color: var(--red);
  color: #170205;
  background: var(--red);
}

.button.primary:hover {
  border-color: var(--red-hover);
  background: var(--red-hover);
}

.button.compact {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}

.hero {
  position: relative;
  display: flex;
  height: min(720px, calc(100svh - 96px));
  min-height: 580px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070a0e;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.48;
}

.hero-shade {
  background: rgba(5, 8, 11, 0.72);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 1.06;
}

h2 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: #d9e0e6;
  font-size: 19px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.after-list-actions {
  margin-top: 18px;
}

.after-grid-actions {
  margin-top: 24px;
}

.endpoint {
  display: flex;
  max-width: 600px;
  min-height: 46px;
  align-items: center;
  margin-top: 20px;
  border: 1px solid rgba(166, 178, 190, 0.36);
  border-radius: 6px;
  background: rgba(8, 11, 15, 0.82);
  overflow: hidden;
}

.endpoint code {
  min-width: 0;
  flex: 1;
  padding: 10px 13px;
  overflow: hidden;
  color: #dbe8f5;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  align-self: stretch;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(166, 178, 190, 0.26);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--red-hover);
  background: rgba(255, 255, 255, 0.04);
}

.live-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.13);
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 212, 154, 0.13);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 51, 64, 0.13);
}

.proof-band {
  border-bottom: 1px solid var(--line-soft);
  background: #0b1016;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

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

.proof-item:last-child {
  border-right: 1px solid var(--line-soft);
}

.proof-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section.alt {
  background: #0b1016;
}

.section-heading {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: end;
}

.section-heading p,
.body-copy,
.feature-card p,
.model-row p,
.legal-page p,
.legal-page li {
  color: var(--muted);
}

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

.feature-card,
.model-row,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card {
  min-height: 220px;
  padding: 24px;
}

.feature-index {
  display: inline-flex;
  min-width: 36px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid rgba(239, 51, 64, 0.45);
  border-radius: 4px;
  color: var(--red-hover);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.rate-layout,
.integration-layout,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 64px;
  align-items: start;
}

.rate-flow {
  border-top: 1px solid var(--line);
}

.rate-step {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 52px 1fr;
  gap: 16px;
}

.rate-step > span {
  color: var(--red-hover);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.rate-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.rate-step p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.model-row {
  display: grid;
  min-height: 104px;
  padding: 18px 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.model-row h3,
.model-row p {
  margin-bottom: 0;
}

.model-tag {
  padding: 5px 9px;
  border: 1px solid rgba(114, 167, 255, 0.42);
  border-radius: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070b10;
}

.code-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #dce8f3;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.code-comment {
  color: #687b8d;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 20px 0;
  font-weight: 750;
  cursor: pointer;
}

.faq-list p {
  max-width: 850px;
  margin-bottom: 20px;
  color: var(--muted);
}

.cta-band {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  background: var(--red);
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-layout h2,
.cta-layout p {
  color: #170205;
}

.cta-layout h2 {
  margin-bottom: 6px;
}

.cta-layout p {
  margin-bottom: 0;
  font-weight: 650;
}

.cta-band .button {
  border-color: #170205;
  color: #170205;
  background: transparent;
}

.cta-band .button:hover {
  color: var(--text);
  background: #170205;
}

.page-hero {
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  background: #0b1016;
}

.page-hero h1 {
  max-width: 900px;
  font-size: 60px;
}

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

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

.status-panel {
  min-height: 160px;
  padding: 22px;
}

.status-panel .label {
  display: block;
  margin-bottom: 24px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.status-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-page {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 48px;
  font-size: 27px;
}

.legal-page h3 {
  margin-top: 26px;
}

.legal-page li + li {
  margin-top: 10px;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  color: #d9e0e6;
  background: var(--surface);
}

.site-footer {
  padding: 46px 0;
  background: #07090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 360px;
  color: var(--dim);
}

.footer-column strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-column a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 13px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 50px;
  }

  .nav-links {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .proof-grid,
  .feature-grid,
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .rate-layout,
  .integration-layout,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 60px;
    gap: 10px;
  }

  .header-actions .button:first-child {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 27px;
    height: 27px;
  }

  .hero {
    height: auto;
    min-height: 620px;
    padding: 66px 0;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 32px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

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

  .hero-actions .button,
  .inline-actions .button {
    flex: 1 1 150px;
  }

  .proof-grid,
  .feature-grid,
  .status-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .section {
    padding: 66px 0;
  }

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

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

  .model-tag {
    width: fit-content;
  }

  .cta-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-band .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
