:root {
  --bg: #0a0e1a;
  --surface: #131825;
  --border: #1e2638;
  --text: #e4e8f0;
  --muted: #8892a8;
  --accent: #d4451f;
  --accent-hover: #e85a2e;
  --link: #5b9cf5;
  --code-bg: #0d1220;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  text-align: center;
  padding: 60px 0 30px;
}

header h1 {
  font-size: 2.8em;
  letter-spacing: -0.03em;
  color: var(--accent);
}

header .tagline {
  color: var(--muted);
  font-size: 1.15em;
  margin-top: 8px;
}

nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

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

section { margin-bottom: 50px; }

h2 {
  font-size: 1.6em;
  margin-bottom: 16px;
  color: var(--text);
}

h3 {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: var(--accent);
}

p { margin-bottom: 14px; color: var(--text); }

a { color: var(--link); }

strong { color: var(--text); }

code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: var(--accent);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.82em;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }
td { color: var(--text); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.button:hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.button.secondary:hover { border-color: var(--accent); }

footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9em;
}

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

@media (max-width: 640px) {
  header h1 { font-size: 2em; }
  .grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
  .button { text-align: center; }
}
