:root {
  --bg: #0b0d12;
  --surface: #131722;
  --surface-alt: #191f2e;
  --border: #262f45;
  --text: #eef1f7;
  --muted: #9aa5bc;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --warn: #fbbf24;
  --danger: #f87171;
  --max-w: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.92);
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.94rem;
}

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

nav a[aria-current="page"],
nav a:hover {
  color: var(--text);
}

main {
  padding: 40px 0 64px;
}

.hero {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 30px 0 12px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text);
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.03rem;
  color: var(--text);
}

p {
  margin: 0 0 14px;
  color: #d6dceb;
}

.lead {
  font-size: 1.06rem;
  color: #d6dceb;
  margin-bottom: 18px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

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

.card h2,
.card h3 {
  margin-top: 0;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #d6dceb;
}

li {
  margin-bottom: 8px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.callout.warn {
  border-left-color: var(--warn);
}

.callout.danger {
  border-left-color: var(--danger);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: #f3f6fc;
}

pre {
  background: #080a0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  word-break: break-all;
  white-space: pre-wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #071312;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
