:root {
  color-scheme: light;
  --page: #ffffff;
  --page-muted: #f5f6f8;
  --page-raised: #ffffff;
  --hero: #f7f7f5;
  --header: rgb(250 250 249 / 92%);
  --text: #171717;
  --text-muted: #5b6472;
  --text-faint: #8a94a3;
  --border: #d9dde4;
  --border-strong: #aeb5c0;
  --button: #171717;
  --button-text: #ffffff;
  --blue: #2563eb;
  --green: #047857;
  --amber: #a16207;
  --rose: #be123c;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #020617;
  --page-muted: #0f172a;
  --page-raised: #111827;
  --hero: #09090b;
  --header: rgb(9 9 11 / 90%);
  --text: #f8fafc;
  --text-muted: #a8b1c0;
  --text-faint: #64748b;
  --border: #253047;
  --border-strong: #475569;
  --button: #f8fafc;
  --button-text: #171717;
  --blue: #7dd3fc;
  --green: #6ee7b7;
  --amber: #fde047;
  --rose: #fda4af;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  letter-spacing: 0;
}

.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), 1200px);
  transform: translateX(-50%);
}

.header-shell {
  display: flex;
  height: 64px;
  align-items: center;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 8px;
  background: var(--header);
  padding: 0 10px 0 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}

.brand-name {
  max-width: 176px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  padding: 9px 10px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.desktop-nav a:hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-button,
.mobile-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  transition: background-color 160ms ease, color 160ms ease;
}

.icon-button:hover,
.mobile-toggle:hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}

.disabled-action,
.disabled-action:hover {
  color: var(--text-faint);
  cursor: not-allowed;
  opacity: 0.55;
}

.account-action,
.mobile-account {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--button);
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 750;
  padding: 0 14px;
  text-decoration: none;
}

.account-action:hover,
.mobile-account:hover {
  opacity: 0.82;
}

.mobile-toggle,
.mobile-menu {
  display: none;
}

:where(a, button):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--hero);
}

.code-canvas,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.code-canvas {
  z-index: -2;
}

.hero-scrim {
  z-index: -1;
  background: color-mix(in srgb, var(--hero) 22%, transparent);
}

.hero-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 148px 32px 72px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.endpoint-row span {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: color-mix(in srgb, var(--page-raised) 78%, transparent);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 26px;
  padding: 0 8px;
}

.endpoint-row i {
  width: 16px;
  height: 1px;
  background: var(--border-strong);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--text-muted);
}

.hero h1 {
  max-width: 1020px;
  margin: 0;
  color: var(--text);
  font-size: 78px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.api-strip {
  display: grid;
  width: min(100%, 760px);
  min-height: 54px;
  grid-template-columns: auto minmax(0, 1fr) 64px;
  align-items: center;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: color-mix(in srgb, var(--page-raised) 86%, transparent);
  backdrop-filter: blur(10px);
}

.api-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  padding: 0 14px;
}

.api-strip code {
  min-width: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  padding: 10px 14px;
}

.api-strip button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.api-strip button:hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}

.copy-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--green);
  font-size: 12px;
  line-height: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-text);
}

.primary-action:hover {
  opacity: 0.82;
}

.secondary-action {
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--page-raised) 64%, transparent);
  color: var(--text);
}

.secondary-action:hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
}

.section {
  border-bottom: 1px solid var(--border);
  background: var(--page);
  padding: 104px 32px;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  align-items: end;
  gap: 32px;
}

.split-heading > p {
  justify-self: end;
}

.section-kicker.blue,
.blue {
  color: var(--blue);
}

.section-kicker.green,
.green {
  color: var(--green);
}

.section-kicker.amber,
.amber {
  color: var(--amber);
}

.rose {
  color: var(--rose);
}

.section h2 {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.18;
}

.section-heading > p:not(.section-kicker),
.split-heading > p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.split-heading > p {
  margin-top: 0;
}

.capability-grid,
.commitment-list,
.steps-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.capability-grid li {
  min-width: 0;
  min-height: 256px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px;
}

.tile-meta,
.step-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.tile-meta {
  margin-bottom: 50px;
}

.tile-icon,
.list-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  background: var(--page-muted);
  font-size: 16px;
}

.capability-grid h3,
.steps-grid h3,
.commitment-list h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.capability-grid p,
.steps-grid p,
.commitment-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.commitments,
.site-footer {
  background: var(--page-muted);
}

.commitment-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
}

.commitment-list {
  border-top: 1px solid var(--border-strong);
}

.commitment-list li {
  display: grid;
  grid-template-columns: 40px minmax(160px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid var(--border-strong);
  padding: 26px 0;
}

.commitment-list h3 {
  margin: 8px 0 0;
  font-size: 16px;
}

.commitment-list p {
  margin-top: 8px;
}

.list-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

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

.steps-grid li {
  min-width: 0;
  min-height: 320px;
  border-right: 1px solid var(--border);
  padding: 32px;
}

.steps-grid li:first-child {
  padding-left: 0;
}

.steps-grid li:last-child {
  border-right: 0;
  padding-right: 0;
}

.step-meta {
  margin-bottom: 48px;
  font-weight: 700;
}

.steps-grid p {
  margin-bottom: 24px;
}

.inline-status {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.base-url {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--page-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 11px 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 32px 20px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.footer-row p {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.footer-row nav a,
.footer-docs {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  padding: 0 12px;
  text-decoration: none;
}

.footer-row nav a {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}

.footer-docs {
  color: var(--text-faint);
  opacity: 0.65;
}

.footer-brand {
  max-width: 100%;
  margin: 28px 0 0;
  color: var(--text);
  font-size: 112px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .header-shell {
    height: 58px;
    gap: 8px;
    padding: 0 8px 0 10px;
  }

  .brand-name {
    max-width: min(46vw, 170px);
  }

  .desktop-nav,
  .desktop-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    margin-left: auto;
  }

  .mobile-menu {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--page-raised) 98%, transparent);
    padding: 8px;
    box-shadow: 0 14px 34px rgb(0 0 0 / 22%);
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .mobile-menu > a:not(.mobile-account) {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 650;
    padding: 0 10px;
    text-decoration: none;
  }

  .mobile-menu > a:not(.mobile-account):hover {
    background: color-mix(in srgb, var(--text) 9%, transparent);
  }

  .mobile-tools {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    padding: 8px 8px 2px;
    color: var(--text-muted);
    font-size: 12px;
  }

  .mobile-tools button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 0;
  }

  .mobile-account {
    width: 100%;
    margin-top: 8px;
  }

  .split-heading,
  .commitment-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-heading > p {
    justify-self: start;
  }

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

@media (max-width: 767px) {
  .hero-inner {
    padding: 116px 16px 44px;
  }

  .endpoint-row {
    gap: 7px;
    margin-bottom: 18px;
  }

  .endpoint-row span {
    font-size: 10px;
    padding: 0 6px;
  }

  .endpoint-row i {
    width: 8px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.02;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .api-strip {
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) 64px;
    margin-top: 26px;
  }

  .api-label {
    grid-column: 1 / -1;
    min-height: 30px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
  }

  .api-strip code {
    font-size: 12px;
    padding: 10px 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section {
    padding: 80px 20px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section h2 {
    font-size: 30px;
  }

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

  .capability-grid li {
    min-height: 230px;
    padding: 24px;
  }

  .commitment-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

  .commitment-list p {
    grid-column: 2;
    margin-top: -8px;
  }

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

  .steps-grid li,
  .steps-grid li:first-child,
  .steps-grid li:last-child {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
  }

  .steps-grid li:last-child {
    border-bottom: 0;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 28px 20px 18px;
  }

  .footer-brand {
    font-size: 58px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 40px;
  }

  .footer-brand {
    font-size: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
