:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf0;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --primary: #3056d3;
  --primary-dark: #203eaa;
  --accent: #27c2a3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 10%, rgba(48, 86, 211, 0.10), transparent 30rem),
    var(--canvas);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 234, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 9px 24px rgba(48, 86, 211, 0.24);
  font-size: 23px;
  font-weight: 800;
}

.brand-mark img {
  width: 96%;
  height: 96%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-copy em {
  color: var(--primary);
  font-style: normal;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.main-nav a {
  padding: 10px 13px;
  border-radius: 9px;
  color: #475467;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .is-active {
  color: var(--primary);
  background: #eef2ff;
  outline: none;
}

.main-nav .nav-cta {
  color: #fff;
  background: var(--primary);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--primary-dark);
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #b9eadf;
  border-radius: 999px;
  color: #08735e;
  background: #edfcf8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(39, 194, 163, 0.15);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.intro > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-actions a {
  padding: 13px 18px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.primary-action {
  color: #fff;
  background: var(--primary);
}

.secondary-action {
  color: var(--primary);
  background: #fff;
}

.content-shell,
.example-shell,
.endpoint-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.content-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -52px;
}

.flow-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.flow-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.flow-card h2 {
  margin: 20px 0 8px;
  font-size: 19px;
}

.flow-card p,
.example-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.example-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 94px 0;
}

.example-shell h2,
.endpoint-shell h2 {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.example-shell pre {
  overflow-x: auto;
  margin: 0;
  padding: 26px;
  border-radius: 16px;
  color: #dbe6ff;
  background: #111827;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
  line-height: 1.7;
}

.endpoint-shell {
  padding: 0 0 96px;
}

.endpoint-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.endpoint-list > div {
  display: grid;
  grid-template-columns: 58px minmax(240px, 1fr) 1fr;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.endpoint-list > div:last-child {
  border-bottom: 0;
}

.endpoint-list b {
  color: #08735e;
  font-size: 12px;
}

.endpoint-list b.post {
  color: #875a08;
}

.endpoint-list code {
  color: var(--ink);
  font-weight: 700;
}

.endpoint-list span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .header-shell {
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .api-status {
    margin-left: auto;
  }

  .intro {
    padding-top: 72px;
  }

  .content-shell,
  .example-shell {
    grid-template-columns: 1fr;
  }

  .content-shell {
    margin-top: -28px;
  }

  .example-shell {
    gap: 28px;
    padding: 70px 0;
  }

  .endpoint-list > div {
    grid-template-columns: 52px 1fr;
  }

  .endpoint-list span {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .header-shell,
  .intro,
  .content-shell,
  .example-shell,
  .endpoint-shell {
    width: min(100% - 24px, 1180px);
  }

  .api-status {
    width: 100%;
    justify-content: center;
  }
}
