@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0c10;
  --surface:   #111318;
  --surface2:  #181c24;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --teal:      #00d4a8;
  --teal-dim:  rgba(0,212,168,0.15);
  --teal-glow: rgba(0,212,168,0.4);
  --amber:     #f5a623;
  --amber-dim: rgba(245,166,35,0.15);
  --text:      #e8e6e0;
  --text-muted: #6b7280;
  --mono:      'JetBrains Mono', monospace;
  --display:   'Inter', sans-serif;
}

/* ── Base ── */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Layout ── */

header {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border2);
}

header img { height: 40px; display: block; }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 48px;
}

footer {
  text-align: center;
  padding: 32px 48px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  opacity: 0.5;
}

/* ── Typography ── */

h1 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}

strong { color: var(--text); font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--teal);
}

/* ── Navigation ── */

.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back:hover { color: var(--teal); }

/* ── Form elements ── */

label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

textarea {
  font-size: 13px;
  padding: 12px 14px;
  resize: vertical;
}

button {
  margin-top: 14px;
  padding: 10px 24px;
  background: var(--teal);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.85; }

/* ── Tables ── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border2);
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.6;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

td:first-child { white-space: nowrap; }

td a {
  color: var(--teal);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

td a:hover { text-decoration: underline; }

/* ── Cards ── */

.card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px var(--teal-dim);
}

.card h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 4px;
  padding: 0;
  border: none;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Pre / code blocks ── */

pre {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
  min-height: 4rem;
  position: relative;
}

pre.highlight {
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-dim);
}

/* ── Use button (provider table) ── */

.use-btn {
  margin-top: 0;
  padding: 4px 10px;
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.use-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Section heading variant (uppercase label) ── */

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  header { padding: 16px 20px; }
  main { padding: 32px 20px; }
  h1 { font-size: 24px; }
  h2 { font-size: 16px; margin-top: 32px; }
}
