:root {
  --bg: #0b0f14;
  --surface: #131a23;
  --surface-2: #1a2430;
  --line: #243140;
  --text: #e7edf3;
  --muted: #9fb0c0;
  --accent: #3b9dff;
  --accent-soft: rgba(59,157,255,0.14);
  --green: #43d18a;
  --amber: #ffb454;
  --radius: 14px;
  --maxw: 820px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 96px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(11,15,20,0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; letter-spacing: .2px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.topbar a.back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar a.back:hover { color: var(--text); }

/* Hero */
.hero { padding: 18px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
h1 { font-size: 40px; line-height: 1.1; margin: 8px 0 10px; letter-spacing: -0.5px; }
.lede { color: var(--muted); font-size: 19px; margin: 0; }

h2 { font-size: 25px; margin: 38px 0 12px; letter-spacing: -0.3px; }
h3 { font-size: 19px; margin: 26px 0 8px; }
p { margin: 12px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
strong { color: #fff; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #cfe6ff; }

/* Cards / callouts */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 18px 0; }
.note.tip { border-left-color: var(--green); background: rgba(67,209,138,0.12); }
.note.warn { border-left-color: var(--amber); background: rgba(255,180,84,0.12); }
.note.danger { border-left-color: #ff5a5a; background: rgba(255,90,90,0.12); }
.note .h { font-weight: 700; display: block; margin-bottom: 2px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 4px 0 4px 44px; margin: 14px 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #04121f;
  font-weight: 800; display: grid; place-items: center; font-size: 15px;
}

/* Settings table */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
td:first-child { white-space: nowrap; color: #fff; font-weight: 600; }
table.opts td:first-child code { background: transparent; border: 0; padding: 0; color: #fff; }

/* Index grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.tile { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .t { font-weight: 700; font-size: 17px; }
.tile .d { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.section-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin: 30px 0 6px; }

footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
kbd { font-family: var(--sans); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: 0.85em; }
