@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@500;600;700&display=swap');

:root {
  --bg-primary: #0e1211;
  --bg-secondary: #131917;
  --bg-tertiary: #1a221f;
  --text-primary: #f3f2ea;
  --text-secondary: #bfc5be;
  --text-muted: #8d978f;
  --brand-olive: #7b8758;
  --brand-olive-light: #a1b372;
  --brand-gold: #b08850;
  --border-soft: rgba(161, 179, 114, 0.2);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(800px 400px at 8% -10%, rgba(176, 136, 80, 0.18), transparent 65%),
    radial-gradient(850px 500px at 92% 12%, rgba(123, 135, 88, 0.2), transparent 68%),
    linear-gradient(180deg, #0e1211 0%, #0f1412 40%, #101513 100%);
  line-height: 1.5;
}

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

.api-shell-container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.api-shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 13, 0.75);
  border-bottom: 1px solid var(--border-soft);
}

.api-shell-header .api-shell-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.api-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.api-brand-logo {
  height: 34px;
  width: auto;
}

.api-brand-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}

.api-brand-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--brand-olive-light);
  text-transform: uppercase;
  font-weight: 700;
}

.api-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.api-nav a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.api-nav a:hover {
  color: var(--brand-olive-light);
}

.api-nav-link.is-active {
  color: var(--text-primary);
}

.api-nav-link.is-active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.25rem;
  background: linear-gradient(90deg, var(--brand-olive-light), var(--brand-gold));
  border-radius: 999px;
}

.api-main {
  overflow: clip;
}

.hero {
  padding: 5.2rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 16ch;
}

.hero-lead {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  max-width: 64ch;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand-olive), var(--brand-gold));
  border: 0;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
}

.btn-outline-light:hover {
  border-color: var(--brand-olive-light);
  background: rgba(161, 179, 114, 0.15);
}

.hero-meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-label {
  color: var(--brand-olive-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-card h2 {
  margin: 0;
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 1.35rem;
}

.hero-card ul {
  margin: 0.95rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.hero-card li + li {
  margin-top: 0.55rem;
}

.api-section {
  padding: 2rem 0 3.4rem;
}

.section-title {
  font-family: 'Syne', 'Segoe UI', sans-serif;
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  max-width: 24ch;
}

.feature-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  background: rgba(19, 25, 23, 0.82);
  border: 1px solid rgba(161, 179, 114, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 136, 80, 0.45);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.api-section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(161, 179, 114, 0.15);
  border-bottom: 1px solid rgba(161, 179, 114, 0.15);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.security-grid article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.1rem;
}

.security-grid h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-olive-light);
}

.security-grid p {
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
}

.endpoint-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.endpoint-preview p {
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

.endpoint-stack {
  display: grid;
  gap: 0.55rem;
}

.endpoint-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  background: rgba(10, 15, 13, 0.9);
  border: 1px solid rgba(176, 136, 80, 0.24);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
}

.verb-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 62px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.verb-get {
  background: rgba(123, 135, 88, 0.25);
  color: #dce8b2;
}

.verb-post {
  background: rgba(176, 136, 80, 0.25);
  color: #ffd8a2;
}

.verb-put,
.verb-patch {
  background: rgba(120, 168, 197, 0.23);
  color: #c7eaff;
}

.verb-delete {
  background: rgba(180, 77, 77, 0.25);
  color: #ffc4c4;
}

.endpoint-surface {
  color: var(--text-muted);
  font-size: 0.78rem;
}

pre {
  margin: 0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #0a0f0d;
  border: 1px solid rgba(176, 136, 80, 0.25);
  color: #dbe2d9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

code {
  font-size: 0.85rem;
  line-height: 1.65;
}

.api-shell-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 2.2rem;
}

.api-shell-footer-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.api-shell-footer a {
  color: var(--text-secondary);
}

.api-shell-footer a:hover {
  color: var(--brand-olive-light);
}

.api-main > :not(.hero):not(.api-section) {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.api-main > :not(.hero):not(.api-section) h1 {
  font-family: 'Syne', 'Segoe UI', sans-serif;
}

.api-docs {
  display: grid;
  gap: 1.35rem;
}

.docs-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.docs-lead {
  margin: 0;
  color: var(--text-secondary);
  max-width: 74ch;
}

.security-matrix,
.endpoint-table-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
}

.security-matrix h2,
.endpoint-table-wrap h2 {
  margin: 0;
  font-size: 1.2rem;
}

.matrix-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.matrix-grid article {
  border-radius: 10px;
  border: 1px solid rgba(161, 179, 114, 0.24);
  background: rgba(15, 20, 18, 0.76);
  padding: 0.85rem;
}

.matrix-grid h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-olive-light);
}

.matrix-grid p {
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.endpoint-table th,
.endpoint-table td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: middle;
}

.endpoint-table th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 991px) {
  .hero-grid,
  .endpoint-preview {
    grid-template-columns: 1fr;
  }

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

  .api-nav {
    gap: 0.85rem;
  }

  .api-nav a {
    font-size: 0.87rem;
  }

  .endpoint-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .endpoint-surface {
    justify-self: start;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 768px) {
  .api-shell-container {
    width: min(1140px, calc(100% - 1.25rem));
  }

  .api-main > :not(.hero):not(.api-section) {
    width: min(1140px, calc(100% - 1.25rem));
  }

  .api-shell-header .api-shell-container {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.7rem 0;
  }

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

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

  .hero h1 {
    max-width: 22ch;
  }

  .endpoint-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
