@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/landing/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/landing/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #0b1220;
  --surface: #111b2d;
  --surface-raised: #17243a;
  --code: #080f1b;
  --line: #28364b;
  --line-soft: #202d41;
  --ink: #f2f6fc;
  --body: #b4c1d5;
  --muted: #91a1b9;
  --blue: #83b5ff;
  --blue-strong: #9bc5ff;
  --teal: #73dfd2;
  --danger: #ffaaa9;
  --success: #7ce0bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #28568d;
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 8px;
  background: #3b4d66;
}

::-webkit-scrollbar-thumb:hover {
  background: #566b88;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

button {
  color: inherit;
}

code,
pre,
.method-tag,
.window-format,
.response-status,
.request-hint {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.page-width {
  width: min(1192px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

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

.site-header {
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.main-nav,
.nav-docs,
.button,
.hero-actions,
.window-heading,
.request-line,
.coverage-inner,
.demo-actions,
.response-heading,
.snippet-tabs,
.footer-inner,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-light {
  color: var(--body);
  font-weight: 500;
}

.main-nav {
  gap: clamp(18px, 3vw, 38px);
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a,
.site-footer nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--blue-strong);
}

.nav-docs {
  min-height: 40px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #496384;
  border-radius: 7px;
  color: var(--ink);
}

.nav-docs svg,
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.93fr);
  align-items: center;
  gap: clamp(46px, 7vw, 98px);
  padding-block: 78px 74px;
}

.hero-copy h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-description {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--blue);
  color: #091321;
}

.button-primary:hover {
  background: var(--blue-strong);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.8;
}

.button-quiet {
  border-color: #394a62;
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: #607895;
  background: #121e31;
}

.coverage-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.coverage-line span:first-child,
.coverage-line span:nth-child(3) {
  color: var(--body);
  font-variant-numeric: tabular-nums;
}

.response-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.window-heading {
  min-height: 48px;
  gap: 10px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.window-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.window-format {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.request-line {
  min-width: 0;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line-soft);
}

.method-tag {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  background: #173a3a;
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
}

.request-line code {
  overflow: auto;
  color: #dce7f6;
  font-size: 11px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.hero-json,
.demo-json,
.snippet-code {
  margin: 0;
  color: #cad7ea;
  font-size: 11px;
  line-height: 1.75;
  tab-size: 2;
}

.hero-json {
  max-height: 330px;
  overflow: auto;
  padding: 17px;
  background: var(--code);
  scrollbar-color: #3b4d66 var(--code);
  scrollbar-width: thin;
}

.hero-json code,
.demo-json code,
.snippet-code code {
  color: inherit;
  font-family: inherit;
}

.coverage-band {
  border-block: 1px solid var(--line-soft);
  background: #0e1727;
}

.coverage-inner {
  min-height: 68px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 26px;
  color: var(--muted);
  font-size: 11px;
}

.coverage-inner span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coverage-inner strong {
  color: var(--body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.datasets-section {
  padding-block: 96px 102px;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 43px;
}

.section-intro h2,
.playground-copy h2,
.integration-heading h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}

.section-intro p,
.integration-heading p {
  max-width: 47ch;
  margin: 0;
  color: var(--body);
  font-size: 14px;
}

.endpoint-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 7vw, 92px);
}

.endpoint-group h3 {
  margin: 0 0 15px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.endpoint-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.endpoint-list li {
  border-bottom: 1px solid var(--line-soft);
}

.endpoint-list a {
  display: grid;
  grid-template-columns: minmax(125px, 0.65fr) minmax(0, 1.5fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  color: var(--body);
  text-decoration: none;
}

.endpoint-list a:hover .endpoint-name {
  color: var(--blue-strong);
}

.endpoint-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease;
}

.endpoint-list code {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  color: var(--muted);
}

.endpoint-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.playground-section {
  border-block: 1px solid var(--line-soft);
  background: #101a2a;
}

.playground-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 110px);
  padding-block: 92px;
}

.playground-copy h2 {
  max-width: 12ch;
}

.playground-copy > p {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 14px;
}

.playground-copy .playground-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.playground {
  min-width: 0;
}

.demo-form {
  display: grid;
  gap: 18px;
}

.form-row-resource {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--body);
  font-size: 11px;
  font-weight: 600;
}

select,
.control-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #40516a;
  border-radius: 6px;
  background: #0c1524;
  color: var(--ink);
  caret-color: var(--teal);
  font-size: 12px;
}

select {
  cursor: pointer;
}

.control-select {
  margin-top: 3px;
}

select option {
  background: var(--surface);
  color: var(--ink);
}

.control-input::placeholder {
  color: var(--muted);
}

.form-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.demo-actions {
  justify-content: space-between;
  gap: 18px;
}

.run-button {
  min-width: 200px;
}

.run-button[aria-busy="true"] svg {
  display: none;
}

.run-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(9 19 33 / 28%);
  border-top-color: #091321;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.run-button[aria-busy="true"] .run-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.request-hint {
  color: var(--muted);
  font-size: 10px;
}

.demo-output {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.output-heading,
.response-heading {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
}

.output-heading {
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.output-heading > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.output-heading code {
  overflow: auto;
  color: var(--body);
  font-size: 10px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.output-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #41536d;
  border-radius: 5px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.copy-button:hover:not(:disabled) {
  border-color: #6c85a6;
  background: #17243a;
  color: var(--ink);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.response-heading {
  min-height: 52px;
}

.response-status {
  color: var(--muted);
  font-size: 10px;
}

.response-status.is-success {
  color: var(--success);
}

.response-status.is-error {
  color: var(--danger);
}

.response-status.is-loading {
  color: var(--blue-strong);
}

#copy-response {
  margin-left: auto;
}

.response-message {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 12px;
}

.demo-json {
  max-height: 410px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--code);
  scrollbar-color: #3b4d66 var(--code);
  scrollbar-width: thin;
}

.integration-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(42px, 8vw, 110px);
  padding-block: 92px;
}

.integration-heading h2 {
  max-width: 13ch;
}

.integration-heading p {
  margin-top: 18px;
}

.integration-example {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.snippet-tabs {
  min-height: 49px;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.snippet-tab {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.snippet-tab:hover,
.snippet-tab.is-active {
  background: #23324a;
  color: var(--ink);
}

.snippet-copy {
  margin-left: auto;
}

.snippet-code {
  min-height: 108px;
  overflow: auto;
  padding: 21px;
  background: var(--code);
  color: #d2deed;
  white-space: pre;
  scrollbar-color: #3b4d66 var(--code);
  scrollbar-width: thin;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #0e1727;
}

.footer-inner {
  min-height: 130px;
  justify-content: space-between;
  gap: 36px;
  padding-block: 25px;
}

.footer-brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-inner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--body);
  font-size: 11px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .page-width {
    width: min(100% - 48px, 800px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 34px;
    padding-block: 66px;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.6rem, 5.4vw, 3.45rem);
  }

  .coverage-inner {
    justify-content: flex-start;
    column-gap: 32px;
    padding-block: 16px;
  }

  .endpoint-list a {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr) 16px;
    gap: 8px;
  }

  .playground-layout,
  .integration-section {
    grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
    gap: 38px;
  }
}

@media (max-width: 720px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 68px;
    gap: 16px;
  }

  .brand {
    gap: 7px;
    font-size: 12px;
  }

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

  .main-nav {
    gap: 16px;
  }

  .main-nav > a:not(.nav-docs) {
    display: none;
  }

  .nav-docs {
    min-height: 37px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 58px 48px;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 9.8vw, 4rem);
  }

  .hero-description {
    margin-top: 18px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .coverage-line {
    margin-top: 22px;
  }

  .hero-json {
    max-height: 300px;
    font-size: 10px;
  }

  .coverage-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    min-height: auto;
    padding-block: 18px;
    font-size: 10px;
  }

  .coverage-inner span {
    display: grid;
    gap: 0;
  }

  .datasets-section {
    padding-block: 72px;
  }

  .section-intro {
    display: block;
    margin-bottom: 30px;
  }

  .section-intro p {
    margin-top: 14px;
  }

  .endpoint-groups {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .endpoint-list a {
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 0 10px;
    padding-block: 10px;
  }

  .endpoint-name {
    grid-column: 1;
    grid-row: 1;
  }

  .endpoint-list code {
    grid-column: 1;
    grid-row: 2;
    margin-top: 3px;
  }

  .endpoint-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .playground-layout,
  .integration-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 70px;
  }

  .playground-copy h2,
  .integration-heading h2 {
    max-width: 20ch;
  }

  .playground-copy > p {
    margin-top: 13px;
  }

  .playground-copy .playground-note {
    margin-top: 14px;
  }

  .integration-heading p {
    margin-top: 13px;
  }

  .footer-inner {
    display: block;
    padding-block: 27px;
  }

  .site-footer nav {
    margin-top: 20px;
  }
}

@media (max-width: 440px) {
  .page-width {
    width: calc(100% - 32px);
  }

  .brand {
    max-width: 205px;
    white-space: normal;
    line-height: 1.3;
  }

  .brand-light {
    display: block;
  }

  .nav-docs svg {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .button {
    min-height: 44px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero-actions {
    gap: 9px;
  }

  .coverage-line {
    gap: 6px;
    font-size: 10px;
  }

  .request-line {
    gap: 8px;
    padding-inline: 12px;
  }

  .request-line code {
    font-size: 9px;
  }

  .hero-json {
    padding: 13px 12px;
  }

  .form-row-resource {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-options {
    grid-template-columns: 1fr;
  }

  .demo-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .run-button {
    width: 100%;
  }

  .output-heading {
    align-items: flex-start;
    padding-block: 10px;
  }

  .output-heading > div {
    max-width: calc(100% - 88px);
  }

  .response-heading {
    flex-wrap: wrap;
    gap: 9px;
    padding-block: 8px;
  }

  #copy-response {
    margin-left: auto;
  }

  .demo-json {
    max-height: 340px;
    padding: 12px;
    font-size: 10px;
  }

  .snippet-tabs {
    padding-inline: 7px;
  }

  .snippet-tab {
    padding-inline: 7px;
  }

  .snippet-copy {
    padding-inline: 7px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
