:root {
  color-scheme: light;
  --ink: #10213f;
  --ink-deep: #07142a;
  --ink-soft: #58677d;
  --line: #dbe3e9;
  --paper: #ffffff;
  --wash: #f2f7f8;
  --teal: #12bfb3;
  --teal-dark: #087d78;
  --teal-pale: #dff8f5;
  --blue: #2457d6;
  --code: #08101f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.beta-bar {
  min-height: 34px;
  padding: 7px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #dce8f7;
  background: var(--ink-deep);
  font-size: 12px;
}
.beta-bar strong { color: white; }
.beta-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(18, 191, 179, 0.15);
}

.site-header {
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-lockup { width: 144px; height: 54px; display: block; object-fit: contain; object-position: left center; }
.product-name { padding-left: 14px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 820; }
.product-badge {
  padding: 3px 7px;
  border: 1px solid rgba(8, 125, 120, 0.28);
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: 10px;
  font-weight: 900;
}
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav > a { color: var(--ink-soft); font-size: 13px; font-weight: 720; text-decoration: none; }
.site-header nav > a:hover, .site-header nav > a:focus-visible { color: var(--ink); }
.access-link, .primary-action, .secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 780;
  text-decoration: none;
}
.site-header nav .access-link { padding: 0 18px; color: white; background: var(--ink); }
.site-header nav .access-link:hover, .site-header nav .access-link:focus-visible { color: white; background: var(--teal-dark); }

main, footer { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
section { padding: 82px 0; border-bottom: 1px solid var(--line); }
h1, h2, h3, p { margin-top: 0; }
.eyebrow { margin: 0 0 20px; color: var(--teal-dark); font-size: 12px; font-weight: 900; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 72px;
  align-items: center;
}
.hero h1 { margin-bottom: 26px; font-size: clamp(50px, 6.4vw, 80px); line-height: 0.98; font-weight: 850; }
.hero h1 span { color: var(--teal-dark); }
.intro-copy { max-width: 690px; margin-bottom: 28px; color: var(--ink-soft); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action { padding: 0 22px; color: white; background: var(--ink); }
.primary-action:hover, .primary-action:focus-visible { background: var(--teal-dark); }
.secondary-action { padding: 0 22px; border: 1px solid var(--line); background: white; }
.secondary-action:hover, .secondary-action:focus-visible { border-color: var(--ink); }
.hero-note { margin: 17px 0 0; color: var(--ink-soft); font-size: 12px; }

.gateway-card { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--wash); }
.gateway-card-head { display: flex; align-items: center; gap: 13px; }
.gateway-card-head img { display: block; }
.gateway-card-head div { display: grid; }
.gateway-card-head strong { font-size: 16px; }
.gateway-card-head span { color: var(--ink-soft); font-size: 12px; }
.live-status {
  margin-top: 24px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 4px 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 760;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a4afbd; }
.status-dot.is-online { background: var(--teal); box-shadow: 0 0 0 5px rgba(18, 191, 179, 0.14); }
.status-dot.is-offline { background: #c53535; }
.status-dot.is-loading { animation: pulse 1.1s ease-in-out infinite alternate; }
.status-detail { grid-column: 2; color: var(--ink-soft); font-size: 11px; font-weight: 560; }
@keyframes pulse { to { opacity: 0.35; } }
.alias-list { padding: 12px 0; display: grid; }
.alias-list div { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.alias-list div:last-child { border-bottom: 0; }
.alias-list span { color: var(--ink-soft); font-size: 12px; }
.alias-list code { font-weight: 760; }
.gateway-foot { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; }

.section-heading { margin-bottom: 40px; display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
.section-index { margin: 5px 0 0; color: var(--teal-dark); font-weight: 900; }
.section-heading h2, .access h2 { margin-bottom: 8px; font-size: 36px; line-height: 1.12; }
.section-heading p, .access p { max-width: 720px; margin-bottom: 0; color: var(--ink-soft); }
.compact-heading { margin-bottom: 34px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 7px; }
.step-grid article { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); }
.step-grid article:last-child { border-right: 0; }
.step-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--teal-dark); background: var(--teal-pale); font-weight: 900; }
.step-grid h3 { margin: 44px 0 10px; font-size: 20px; }
.step-grid p { margin-bottom: 0; color: var(--ink-soft); }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.account-form { padding: 30px; background: white; }
.account-form:first-child { border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--teal-pale), white 40%); }
.form-topline { margin-bottom: 25px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.form-label { margin: 0; font-size: 21px; font-weight: 850; }
.form-topline span { padding: 3px 7px; border-radius: 3px; color: var(--teal-dark); background: var(--teal-pale); font-size: 10px; font-weight: 850; }
.account-form label { margin-bottom: 16px; display: grid; gap: 6px; }
.account-form label span { color: var(--ink-soft); font-size: 12px; font-weight: 760; }
.account-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #aebaca; border-radius: 4px; color: var(--ink); background: white; font: inherit; }
.account-form input:focus { border-color: var(--teal-dark); outline: 3px solid rgba(18, 191, 179, 0.16); }
.account-form button { width: 100%; min-height: 46px; padding: 0 18px; border: 0; border-radius: 4px; color: white; background: var(--ink); font: inherit; font-weight: 780; cursor: pointer; }
.account-form button:hover, .account-form button:focus-visible { background: var(--teal-dark); }
.account-form button:disabled { cursor: wait; opacity: 0.6; }
.form-status { min-height: 20px; margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; }
.form-status.is-error { color: #a82626; }
.account-result { margin-top: 18px; padding: 24px; border-left: 4px solid var(--teal); background: var(--wash); }
.account-result strong, .account-result code { display: block; }
.account-result code { margin: 10px 0; overflow-wrap: anywhere; font-size: 14px; }
.account-result button { min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 4px; background: white; font: inherit; cursor: pointer; }

.code-shell { overflow: hidden; border-radius: 7px; background: var(--code); color: #d9e6f5; }
.code-toolbar { min-height: 48px; padding: 0 16px 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #263248; color: #8fa2bb; font-size: 13px; }
.copy-button { min-width: 76px; min-height: 32px; border: 1px solid #3b4961; border-radius: 4px; color: #e9f0f8; background: transparent; font: inherit; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { border-color: var(--teal); color: var(--teal); }
pre { margin: 0; padding: 26px; overflow-x: auto; font: 14px/1.72 "Cascadia Code", "SFMono-Regular", Consolas, monospace; white-space: pre; }
code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.capability-grid article { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); }
.capability-grid article:last-child { border-right: 0; }
.capability-number { color: var(--teal-dark); font-weight: 900; }
.capability-grid h3 { margin-bottom: 12px; font-size: 22px; }
.capability-grid article > p:last-child { color: var(--ink-soft); }

.endpoint-list { border-top: 1px solid var(--line); }
.endpoint-row { min-height: 66px; padding: 14px 8px; display: grid; grid-template-columns: 70px minmax(260px, 1.3fr) 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.endpoint-row > span:last-child { color: var(--ink-soft); }
.method { width: 58px; padding: 3px 0; border-radius: 3px; text-align: center; font: 800 12px "Cascadia Code", Consolas, monospace; }
.method-get { color: #075a56; background: #d7f5f1; }
.method-post { color: #173d99; background: #e0e8ff; }

.access { min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 42px; border-bottom: 0; }
.access .eyebrow { margin-bottom: 14px; }
.access .primary-action { flex: 0 0 auto; }

footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
footer img { width: 128px; height: auto; display: block; }
footer span { text-align: center; }
footer a { justify-self: end; }

@media (max-width: 900px) {
  .site-header nav > a:not(.access-link) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; }
  .gateway-card { max-width: 560px; }
  .step-grid, .capability-grid { grid-template-columns: 1fr; }
  .step-grid article, .capability-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-grid article:last-child, .capability-grid article:last-child { border-bottom: 0; }
  .step-grid h3 { margin-top: 24px; }
}

@media (max-width: 700px) {
  .beta-bar span:last-child { display: none; }
  .site-header { min-height: 72px; padding-inline: 18px; }
  .brand-lockup { width: 105px; height: 42px; }
  .product-name { padding-left: 10px; font-size: 13px; }
  .product-badge { display: none; }
  .site-header nav { gap: 0; }
  .site-header nav .access-link { min-height: 38px; padding: 0 11px; font-size: 12px; }
  main, footer { width: min(calc(100% - 36px), var(--max)); }
  section { padding: 60px 0; }
  .hero h1 { font-size: 47px; }
  .intro-copy { font-size: 17px; }
  .section-heading { grid-template-columns: 1fr; gap: 6px; }
  .section-heading h2, .access h2 { font-size: 30px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-form:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .endpoint-row { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .endpoint-row > span:last-child { grid-column: 2; }
  .endpoint-row code { overflow-wrap: anywhere; }
  pre { padding: 20px; font-size: 12px; }
  .access { align-items: flex-start; flex-direction: column; gap: 24px; }
  footer { padding: 24px 0; grid-template-columns: 1fr; gap: 8px; }
  footer span, footer a { justify-self: start; text-align: left; }
}

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