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

:root {
  --bg-deep: #05080f;
  --bg-card: #0a0f1a;
  --bg-card-hover: #111827;
  --border: #1e2a3a;
  --accent: #8ab4f8;
  --accent-glow: #00d4ff;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --max-width: 800px;
}

html { font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 600; }
h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--accent);
}
h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; font-weight: 500; }

p { margin-bottom: 1rem; }

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 { margin-bottom: 0.25rem; }
.page-header .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  z-index: 100;
  flex-wrap: wrap;
}
.nav-bar a {
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: color 0.15s, background 0.15s;
}
.nav-bar a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}
.nav-bar a.active {
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.btn {
  display: inline-block;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  text-decoration: none;
}

body { padding-bottom: 4rem; }

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .container { padding: 1.25rem 1rem; }
  .nav-bar a { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
}
