:root {
  --ink: #f0ede8;
  --muted: #a6a09a;
  --soft-muted: #7d7770;
  --paper: #0a0a0f;
  --surface: rgba(19, 19, 26, 0.94);
  --surface-2: rgba(28, 28, 38, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(212, 168, 67, 0.34);
  --gold: #d4a843;
  --gold-strong: #e0b34e;
  --violet: #9a8bff;
  --green: #3ecf8e;
  --danger: #be3a3a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(212, 168, 67, 0.14), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(154, 139, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #0a0a0f 0%, #15110d 58%, #0a0a0f 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.44;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at top center, rgba(212, 168, 67, 0.08), transparent 36%),
    radial-gradient(circle at right bottom, rgba(154, 139, 255, 0.06), transparent 26%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.76);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #0a0a0f;
  background: linear-gradient(135deg, #f0c95c, #c08b2e);
  box-shadow: 0 0 24px rgba(212, 168, 67, 0.24);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: rgba(240, 237, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.header-cta,
.button.primary {
  color: #0a0a0f;
  background: linear-gradient(135deg, #efc755, #d4a843);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.button.secondary.on-dark {
  color: var(--ink);
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.hero {
  position: relative;
  min-height: 615px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 168, 67, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(19, 15, 11, 0.9) 44%, rgba(10, 10, 15, 0.35) 100%);
}

.hero-visual {
  position: absolute;
  top: 72px;
  right: max(20px, calc((100vw - 1180px) / 2));
  width: min(56vw, 650px);
  max-width: 650px;
  opacity: 0.96;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.38));
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.92), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 615px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 58px 0 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid rgba(212, 168, 67, 0.26);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before,
.section-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.55);
  content: "";
}

.hero h1,
.section-heading h2,
.lineage h2,
.code-copy h2,
.cta-content h2,
.docs-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.hero h1,
.lineage h2,
.cta-content h2,
.docs-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

.section-heading h2,
.code-copy h2 {
  max-width: 720px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
}

.hero h1 {
  max-width: 620px;
  font-size: 74px;
}

.hero h1 em,
.section-heading h2 em,
.lineage h2 em,
.code-copy h2 em,
.cta-content h2 em,
.docs-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
}

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

.hero-stats {
  display: flex;
  max-width: 720px;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  color: rgba(240, 237, 232, 0.68);
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats div:first-child {
  padding-left: 0;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  color: rgba(240, 237, 232, 0.62);
  font-size: 14px;
}

.section-pad {
  padding: 88px 0;
}

.lineage.section-pad {
  padding-top: 54px;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 64px;
  align-items: start;
}

.lineage p:last-child,
.section-heading > p:not(.section-kicker),
.code-copy > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.lineage h2,
.cta-content h2 {
  font-size: 56px;
}

.muted-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(212, 168, 67, 0.08), transparent 42%),
    rgba(19, 19, 26, 0.44);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading > p:not(.section-kicker) {
  margin-top: 20px;
}

.steps,
.platform-grid,
.plans {
  display: grid;
  gap: 18px;
}

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

.step,
.platform-item,
.plan,
.endpoint {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.step,
.platform-item,
.plan {
  background-image: radial-gradient(circle at top left, rgba(212, 168, 67, 0.08), transparent 55%);
}

.step {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 24px;
}

.step-number {
  color: var(--gold);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.step h3,
.platform-item h3,
.plan h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.step p,
.platform-item p,
.plan p,
.plan li,
.feature-list li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}

.step p {
  margin: 0 0 22px;
}

.step code {
  display: block;
  margin-top: auto;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.code-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
}

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

.feature-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212, 168, 67, 0.22);
  content: "";
}

.code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.9);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 28, 38, 0.78);
}

.tab-button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(240, 237, 232, 0.68);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  color: #0a0a0f;
  border-color: rgba(212, 168, 67, 0.35);
  background: var(--gold);
}

.code-block {
  min-height: 366px;
  margin: 0;
  overflow-x: auto;
  padding: 26px;
  color: var(--ink);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
}

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

.platform-item {
  padding: 24px;
}

.platform-item h3,
.platform-item p {
  margin-left: 0;
}

.platform-item h3 {
  margin-top: 0;
}

.platform-item p,
.plan p {
  margin-bottom: 0;
}

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

.plan {
  padding: 26px;
}

.plan.featured {
  border-color: var(--line-strong);
  box-shadow: 0 0 36px rgba(212, 168, 67, 0.16);
}

.plan h3 {
  margin-top: 0;
  font-size: 25px;
}

.plan-for {
  min-height: 52px;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 24px;
}

.plan li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.cta-band {
  padding: 70px 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 168, 67, 0.12), transparent 38%),
    rgba(10, 10, 15, 0.72);
}

.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: rgba(240, 237, 232, 0.56);
  background: rgba(10, 10, 15, 0.66);
  font-size: 14px;
  font-weight: 500;
}

.docs-hero {
  padding: 84px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.98), rgba(19, 15, 11, 0.78)),
    url("./assets/api-console-preview-dark.svg") center right / cover no-repeat;
}

.docs-hero h1 {
  max-width: 820px;
  font-size: 60px;
}

.docs-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.docs-layout {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  margin: 0 auto;
}

.docs-nav {
  position: sticky;
  top: 96px;
  display: grid;
  align-self: start;
  gap: 8px;
}

.docs-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.docs-nav a:hover,
.docs-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
}

.docs-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.endpoint {
  padding: 28px;
}

.endpoint p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.method-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.method-line:first-child {
  margin-top: 0;
}

.method {
  display: inline-flex;
  min-width: 68px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #0a0a0f;
  font-size: 12px;
  font-weight: 800;
}

.method.get {
  background: var(--gold);
}

.method.post {
  background: var(--green);
}

.method.delete {
  color: var(--ink);
  background: var(--danger);
}

.method-line code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
}

.inline-code {
  overflow-x: auto;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(10, 10, 15, 0.9);
  font-family: "Geist Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

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

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-visual {
    top: 144px;
    right: -120px;
    width: 720px;
    opacity: 0.28;
  }

  .hero::before {
    background:
      radial-gradient(circle at 10% 12%, rgba(212, 168, 67, 0.12), transparent 34%),
      linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(19, 15, 11, 0.92) 64%, rgba(10, 10, 15, 0.78) 100%);
  }

  .two-column,
  .code-layout,
  .cta-content,
  .docs-layout {
    grid-template-columns: 1fr;
  }

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

  .steps,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .plan-for {
    min-height: 0;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    padding: 38px 0 52px;
  }

  .hero h1 {
    max-width: 410px;
    font-size: 48px;
    line-height: 1;
  }

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

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .hero-stats div {
    padding: 0;
    border-right: 0;
  }

  .section-pad {
    padding: 66px 0;
  }

  .lineage.section-pad {
    padding-top: 40px;
  }

  .lineage h2,
  .cta-content h2,
  .docs-hero h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .section-heading h2,
  .code-copy h2 {
    font-size: 30px;
    line-height: 1.16;
  }

  .docs-hero {
    padding: 58px 0 44px;
  }

  .docs-layout {
    width: min(100% - 28px, 1180px);
  }

  .docs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endpoint {
    padding: 22px;
  }

  .steps,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .code-block {
    min-height: 320px;
    padding: 20px;
    font-size: 12px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 16px;
  }
}

@media (max-width: 410px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

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

  .header-cta {
    display: none;
  }
}
