:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --text: #17211c;
  --muted: #5f6f67;
  --line: #d8ddd5;
  --surface: #ffffff;
  --surface-soft: #eff4f0;
  --green: #1f7a55;
  --green-deep: #14543d;
  --blue: #2f6fa8;
  --ink: #101715;
  --shadow: 0 24px 70px rgba(23, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(31, 122, 85, 0.1), transparent 32rem),
    linear-gradient(315deg, rgba(47, 111, 168, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand,
.nav-actions,
.hero-actions,
.panel-header,
.contact-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 18px;
}

.nav-actions {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 94px);
  padding: 44px 0 76px;
}

.hero-copy {
  max-width: 640px;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-text strong {
  color: var(--text);
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action {
  padding: 0 20px;
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 84, 61, 0.24);
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.nav-button:hover {
  transform: translateY(-2px);
}

.api-panel,
.code-window {
  border: 1px solid rgba(216, 221, 213, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.api-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.api-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(31, 122, 85, 0.14), transparent 42%),
    radial-gradient(circle at 90% 14%, rgba(47, 111, 168, 0.14), transparent 26%);
  content: "";
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-header div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #20b16b;
  box-shadow: 0 0 0 6px rgba(32, 177, 107, 0.14);
}

.endpoint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.method {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 6px 8px;
  background: #e1f1e8;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.endpoint-card code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-grid span,
.info-band p,
.contact-section p {
  color: var(--muted);
}

.metric-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.api-panel pre,
.code-window pre {
  border-radius: 8px;
  background: #101715;
  color: #dff3e7;
  line-height: 1.7;
}

.api-panel pre {
  padding: 16px;
  font-size: 13px;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 84px;
}

.info-band article {
  min-height: 212px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

.info-band h2,
.contact-section h2,
.section-heading h2 {
  margin-bottom: 12px;
  font-size: 28px;
  letter-spacing: 0;
}

.info-band p,
.contact-section p {
  margin-bottom: 0;
  line-height: 1.75;
}

.usage-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: start;
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 24px;
}

.section-text {
  margin-top: 14px;
  color: var(--muted, #5a6072);
  line-height: 1.75;
  font-size: 15px;
}

.section-text code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(127, 127, 127, 0.12);
  font-size: 0.92em;
}

.code-window {
  overflow: hidden;
}

.window-controls {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e16b5b;
}

.window-controls span:nth-child(2) {
  background: #d9a441;
}

.window-controls span:nth-child(3) {
  background: #47a66f;
}

.code-window pre {
  border-radius: 0;
  padding: 22px;
  font-size: 14px;
}

.contact-section {
  justify-content: space-between;
  gap: 24px;
  margin: 10px 0 56px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(31, 122, 85, 0.12), rgba(47, 111, 168, 0.1)),
    rgba(255, 255, 255, 0.72);
}

.contact-section div {
  max-width: 640px;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions a:first-child {
    display: none;
  }

  .hero,
  .usage-section,
  .info-band {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding: 46px 0 54px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-text {
    font-size: 16px;
  }

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

  .info-band {
    padding-bottom: 58px;
  }

  .usage-section {
    padding: 58px 0;
  }

  .section-heading {
    position: static;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 150px;
    line-height: 1.2;
  }

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

  .endpoint-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-panel,
  .info-band article,
  .contact-section {
    padding: 18px;
  }

  .code-window pre {
    padding: 18px;
    font-size: 12px;
  }
}
