:root {
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-soft: #101a2a;
  --text: #e8edf7;
  --muted: #a8b4c9;
  --line: #243756;
  --brand: #5cc8ff;
  --brand-strong: #39b8f7;
  --ok: #2dcc95;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #13213a 0%, var(--bg) 55%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(11 18 32 / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.hero {
  padding: 4.8rem 0 2.7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgb(0 0 0 / 0.3);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 0.75rem;
}

.lead {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 2.5rem 0;
}

.section-tight {
  margin-top: 1rem;
}

.actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  background: var(--brand);
  color: #041322 !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.625rem;
  padding: 0.5rem 0.85rem;
}

.btn:hover {
  background: var(--brand-strong);
}

.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text) !important;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.image-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0d1525;
}

.image-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.image-card p {
  margin: 0;
  padding: 0.8rem;
  color: var(--muted);
}

.endpoint code {
  color: var(--ok);
  font-weight: 600;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: var(--panel);
}

th,
td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #0f1a2f;
}

.flow-list li {
  margin-bottom: 0.45rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose code,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

pre {
  margin: 0.8rem 0 1.25rem;
  padding: 0.85rem;
  overflow: auto;
  border: 1px solid var(--line);
  background: #091224;
  border-radius: 0.65rem;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer a {
  color: var(--brand);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-height: 300px;
  }
}
