:root {
  --bg: #081018;
  --card: #0f1720;
  --accent: #6ee7b7;
  --muted: #9aa7b0;
  --white: #e6f6f2;
  --border: rgba(255, 255, 255, 0.08);
}
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Arial,
    sans-serif;
  background: linear-gradient(180deg, #011627 0%, #052235 100%);
  color: var(--white);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ------------------------------- layout -------------------------------- */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}
.container--wide {
  max-width: 1180px;
}
.card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--white);
}
.form-actions {
  margin-top: 8px;
}
button {
  background: var(--accent);
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  color: #022;
  cursor: pointer;
}
.errors {
  color: #ffb4b4;
  background: rgba(255, 180, 180, 0.04);
  padding: 10px;
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ------------------------------- header -------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(1, 22, 39, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  mix-blend-mode: screen;
}
.brand-logo--sm {
  height: 32px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
}
.site-nav a.is-active {
  color: var(--white);
  font-weight: 600;
}
.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--accent) !important;
}
.nav-cta:hover {
  background: rgba(110, 231, 183, 0.12);
  text-decoration: none;
}

/* -------------------------------- hero --------------------------------- */
.hero {
  padding: 56px 20px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero p.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(90deg, #34d399, var(--accent));
  color: #04231a;
}
.btn--ghost {
  border-color: var(--border);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--accent);
}

/* ------------------------------- content -------------------------------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}
.section > h2 {
  font-size: 24px;
  margin: 40px 0 6px;
}
.section > h3 {
  font-size: 18px;
  margin: 32px 0 8px;
}
.section > p,
.section li {
  color: #cdd9e0;
  line-height: 1.75;
  font-size: 15px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.tile .step {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -------------------------------- docs --------------------------------- */
.docs-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 84px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.docs-side-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 2;
}
.docs-side a {
  color: var(--muted);
}
.docs-side a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.docs-side-sep {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.docs-body h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.docs-body h2 {
  font-size: 21px;
  margin: 36px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.docs-body h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}
.docs-body p,
.docs-body li {
  color: #cdd9e0;
  line-height: 1.75;
  font-size: 15px;
}
.docs-body code {
  background: rgba(110, 231, 183, 0.1);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}
.docs-body table {
  margin: 14px 0 8px;
  font-size: 14px;
}
.docs-body th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-body td,
.docs-body th {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs-body ol,
.docs-body ul {
  padding-left: 20px;
}

/* ------------------------------ snippets -------------------------------- */
.snippet {
  position: relative;
  margin: 14px 0;
}
.snippet pre {
  background: #02101c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  color: #d7f5ea;
}
.snippet-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(110, 231, 183, 0.14);
  color: var(--accent);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ------------------------------- notices -------------------------------- */
.notice {
  border-left: 3px solid var(--accent);
  background: rgba(110, 231, 183, 0.07);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.notice--warn {
  border-left-color: #ffd166;
  background: rgba(255, 209, 102, 0.08);
}
.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
}
.pill--get {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
}
.pill--post {
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.4);
}

/* ------------------------------- footer --------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(1, 22, 39, 0.6);
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand--footer small {
  color: var(--muted);
  font-size: 12px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-side {
    position: static;
  }
}
