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

:root {
  --bg-deep: #08080a;
  --bg-surface: #0e0e10;
  --bg-card: #141416;
  --bg-elevated: #1a1a1e;
  --gold: #b0b0b0;
  --gold-dim: #888888;
  --gold-glow: rgba(180, 180, 180, 0.12);
  --blue: #9a9a9a;
  --green: #a0a0a0;
  --red: #999999;
  --orange: #959595;
  --text: #e0e0e0;
  --text-dim: #787878;
  --text-muted: #484848;
  --border: #1e1e22;
  --border-light: #2a2a2e;
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.glow-orb.gold {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(180,180,180,0.05), transparent 70%);
  top: -100px; right: -100px;
}
.glow-orb.blue {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(150,150,150,0.04), transparent 70%);
  bottom: 20%; left: -150px;
}

/* ── Nav ────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.85);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-brand span { color: var(--text-dim); font-weight: 300; margin-left: -0.15em; }
.nav-brand svg { flex-shrink: 0; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, #b0b0b0, #888888) !important;
  color: var(--bg-deep) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; color: var(--bg-deep) !important; }

/* ── Container ──────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Inputs ─────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input::placeholder { color: var(--text-muted); }
input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, #b0b0b0, #888888);
  color: var(--bg-deep);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Code blocks ────────────────────────────── */
pre, code {
  font-family: var(--font-mono);
}
code {
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}
pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.hl-key { color: #7eb0e8; }
.hl-str { color: var(--green); }
.hl-num { color: var(--orange); }
.hl-null { color: var(--text-muted); }

/* ── Badges ─────────────────────────────────── */
.method-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.method-get {
  background: rgba(73, 212, 157, 0.12);
  color: var(--green);
}
.method-post {
  background: rgba(91, 141, 239, 0.12);
  color: var(--blue);
}

.rarity-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: capitalize;
}
.rarity-common { background: rgba(139,138,148,0.15); color: #8b8a94; }
.rarity-uncommon { background: rgba(168,184,200,0.15); color: #a8c0d8; }
.rarity-rare { background: rgba(201,168,76,0.15); color: var(--gold); }
.rarity-mythic { background: rgba(232,90,42,0.15); color: var(--orange); }
.rarity-special { background: rgba(168,120,200,0.15); color: #b888d8; }
.rarity-bonus { background: rgba(168,184,200,0.1); color: #8b8a94; }

/* ── Tables ─────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th {
  text-align: left;
  font-weight: 500;
  color: var(--text-dim);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
td code { font-size: 0.8em; }

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer > :first-child, footer > :last-child { flex: 1; }
footer > :last-child { text-align: right; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand svg { flex-shrink: 0; color: var(--gold); }
.footer-brand .footer-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.footer-brand .footer-name span { color: var(--text-dim); font-weight: 300; margin-left: -0.1em; }
.footer-brand .footer-slogan {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
}
footer a:hover { color: var(--text); }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 12px 16px; }
  .nav-brand { font-size: 1.1rem; gap: 7px; }
  .nav-brand svg { width: 16px; height: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta { padding: 6px 14px !important; font-size: 0.78rem !important; }
  .container { padding: 0 20px; }
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
  }
}
