:root {
  --bg: #0b0f17;
  --surface: #121826;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --gold: #f59e0b;
  --emerald: #10b981;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top right, #162033 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-weight: 800;
  font-size: 1.05rem;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

nav a:hover, nav a.active {
  color: var(--emerald);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
  color: var(--gold);
}

p, li {
  color: var(--text);
  font-size: 0.98rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mini {
  background: rgba(11, 15, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.mini h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--emerald);
}

code {
  background: #0b0f17;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.9em;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}
