:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #111a2d;
  --text: #f4f7ff;
  --muted: #a9b5ca;
  --line: #26334a;
  --accent: #8af0c8;
  --blue: #8ab4ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.topbar {
  min-height: 78px;
  padding: 18px max(6%, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .2em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #07150f;
  font-size: 1.35rem;
}

.back-link, .text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

.hero, .section, .next-step {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.hero {
  padding: 100px 0 88px;
  max-width: 850px;
}

.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

h1 span { color: var(--accent); }

.intro {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.primary-button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 13px 20px;
  border-radius: 9px;
  background: var(--accent);
  color: #07150f;
  font-weight: 800;
  text-decoration: none;
}

.notice {
  margin-top: 20px;
  color: var(--muted);
  font-size: .9rem;
}

.section { padding: 35px 0 85px; }

.section-heading { max-width: 650px; }

h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.section-heading > p:last-child,
.next-step > p:not(.eyebrow) { color: var(--muted); }

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.api-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.api-card.featured { border-color: #437c6a; }

.number {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.api-card h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.api-card p { min-height: 52px; color: var(--muted); }

.status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .8rem;
}

.next-step {
  margin-bottom: 80px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #111a2d, #101b26);
}

.next-step > p:not(.eyebrow) { max-width: 720px; }

.text-link { display: inline-block; margin-top: 12px; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px max(6%, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

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

@media (max-width: 600px) {
  .topbar { padding-inline: 20px; }
  .hero { padding-top: 72px; }
  .api-grid { grid-template-columns: 1fr; }
  .api-card p { min-height: 0; }
  .next-step { padding: 24px; }
  footer { flex-direction: column; }
}
