:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #eef2ed;
  --ink: #121714;
  --muted: #66736d;
  --line: #d8ded7;
  --green: #0e7a5f;
  --teal: #0f766e;
  --amber: #9a6a12;
  --dark: #101816;
  --shadow: 0 18px 44px rgba(25, 35, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(246, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.9) 43% 56%, transparent 57%),
    linear-gradient(135deg, var(--green), #2f5d8c);
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: var(--dark);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 22, 0.96), rgba(16, 24, 22, 0.72) 45%, rgba(16, 24, 22, 0.22)),
    linear-gradient(0deg, rgba(16, 24, 22, 0.42), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(120px, 17vw, 178px) 32px 88px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee0cc;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(58px, 11vw, 124px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
}

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

.primary-link,
.secondary-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 760;
}

.primary-link {
  color: var(--ink);
  background: #ffffff;
}

.secondary-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-strip > div {
  min-height: 108px;
  padding: 24px 32px;
  border-right: 1px solid var(--line);
}

.summary-strip > div:last-child {
  border-right: 0;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.summary-strip strong {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 32px;
}

.split-section,
.schema-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: start;
}

.section-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "/";
  font-weight: 900;
}

.endpoint-card,
.connector-card,
.schema-table,
.status-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.endpoint-card {
  padding: 22px;
}

.method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.method-row span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  color: #ffffff;
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 820;
}

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

.method-row code {
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

pre {
  overflow: auto;
  margin-bottom: 18px;
  padding: 18px;
  color: #d8f5ea;
  background: #111816;
  border-radius: 8px;
}

.copy-button {
  width: 100%;
  color: #ffffff;
  background: var(--ink);
  border: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.search {
  display: grid;
  gap: 6px;
  min-width: 280px;
  color: var(--muted);
  font-size: 13px;
}

.search input {
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.connector-card {
  min-height: 204px;
  padding: 22px;
}

.connector-card[hidden],
.empty-state[hidden],
.toast[hidden] {
  display: none;
}

.connector-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  margin-bottom: 28px;
  padding: 0 8px;
  color: var(--green);
  background: #e5f4ee;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 820;
}

.connector-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state {
  margin: 22px 0 0;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schema-table,
.status-list {
  overflow: hidden;
  box-shadow: none;
}

.schema-row,
.status-list p {
  display: grid;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.schema-row {
  grid-template-columns: 1.2fr 0.55fr 0.8fr 0.6fr;
}

.schema-row:last-child,
.status-list p:last-child {
  border-bottom: 0;
}

.schema-head {
  min-height: 46px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 760;
}

.state,
.status-list em {
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.state.ok,
.status-list em {
  color: var(--green);
}

.state.watch,
.status-list p:last-child em {
  color: var(--amber);
}

.status-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
}

.status-list p {
  grid-template-columns: 150px 1fr 110px;
}

.status-list span {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-content,
  .section,
  .summary-strip > div,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .summary-strip,
  .split-section,
  .schema-section,
  .status-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(16, 24, 22, 0.96), rgba(16, 24, 22, 0.72));
  }

  .summary-strip,
  .connector-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-strip > div:last-child {
    border-bottom: 0;
  }

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

  .search {
    min-width: 0;
    width: 100%;
  }

  .schema-row,
  .status-list p {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
