:root {
  --bg: #090a0c;
  --bg-elev: #111317;
  --bg-soft: #16181d;
  --line: rgba(243, 239, 230, 0.1);
  --line-strong: rgba(243, 239, 230, 0.18);
  --text: #f3efe6;
  --muted: #9a958a;
  --accent: #9be7c4;
  --accent-dim: rgba(155, 231, 196, 0.12);
  --max: 1120px;
  --header: 64px;
  --font: "IBM Plex Sans", "IBM Plex Sans SC", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(243, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  z-index: 0;
}

img {
  max-width: 100%;
}

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

button,
.btn {
  font-family: inherit;
}

code,
pre,
.mono {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  border-bottom: 1px solid transparent;
  background: rgba(9, 10, 12, 0.72);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-toggle {
  display: none;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #082017;
}

.btn-accent:hover {
  filter: brightness(1.05);
}

.btn.is-copied {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent;
}

.hero {
  padding: 72px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 17px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.endpoint {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 560px;
}

.endpoint-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.endpoint-url {
  margin-top: 2px;
  font-size: 13px;
  word-break: break-all;
}

.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sample-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.sample-tabs button.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.terminal-meta {
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.terminal pre {
  margin: 0;
  padding: 12px 16px 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section,
.hero,
.close-cta {
  scroll-margin-top: calc(var(--header) + 16px);
}

.section {
  padding: 72px 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 40em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 28px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step-num {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 12px;
}

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

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

.model-list {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}

.model-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.model-row h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.model-row p {
  margin: 0;
  color: var(--muted);
}

.model-row span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.tool-line {
  margin: 32px 0 0;
  font-size: 22px;
  line-height: 1.7;
  letter-spacing: -0.03em;
}

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

.reason-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-top: 36px;
}

.reason-intro {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin: 0;
}

.reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.reason-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

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

.pricing-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.pricing-band p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 38em;
}

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

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

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--mono);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 46em;
}

.close-cta {
  text-align: center;
  padding: 88px 0 40px;
}

.close-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.close-cta p {
  margin: 0 auto 24px;
  color: var(--muted);
  max-width: 32em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-panel {
    display: none;
  }

  .site-header.is-open .header-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    background: #0d0e11;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 16px;
    z-index: 2;
  }

  .site-header.is-open::after {
    content: "";
    position: fixed;
    inset: var(--header) 0 0;
    background: #090a0c;
    z-index: 1;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .section,
  .close-cta {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .terminal-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .terminal pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .hero-grid,
  .steps,
  .model-row,
  .reason-grid,
  .pricing-band,
  .footer-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .endpoint,
  .hero-actions,
  .pricing-band {
    max-width: none;
  }

  .tool-line {
    font-size: 18px;
  }
}

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