:root {
  /* Palette tuned to harmonize with the shield logo (slate base + emerald accent). */
  --bg: #0a0f1a;
  --bg-elev: #121a26;
  --bg-glow: #0e1722;
  --fg: #e9edf2;
  --fg-dim: #9aa4b2;
  --accent: #10b981;       /* emerald — primary, matches logo checkmark */
  --accent-bright: #34d399;
  --accent-dim: #059669;
  --accent-soft: rgba(16, 185, 129, 0.15);
  --rule: #1f2937;
  --code-bg: #0d1420;
  --good: #34d399;
  --bad: #e25656;
  --max: 980px;
}
body {
  /* Subtle radial wash echoing the shield's gradient — keeps the page from feeling flat without competing with the logo. */
  background:
    radial-gradient(ellipse at top, rgba(16,185,129,0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
  border: 1px solid var(--rule);
}
pre {
  background: var(--code-bg);
  padding: 1em 1.2em;
  border-radius: 8px;
  border: 1px solid var(--rule);
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: transparent; padding: 0; border: none; font-size: 0.88rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }
h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; margin: 0 0 24px; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
h4 { font-size: 1rem; margin: 20px 0 6px; color: var(--fg-dim); font-weight: 600; }
p { margin: 0 0 16px; }
.lede { font-size: 1.18rem; color: var(--fg-dim); max-width: 640px; }

/* Top nav (used on every page) */
nav.top {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-size: 0.92rem;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.top .row { display: flex; gap: 22px; align-items: center; }
nav.top a { color: var(--fg-dim); }
nav.top a:hover { color: var(--fg); text-decoration: none; }
nav.top a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
nav.top a.brand img { width: 28px; height: 28px; display: block; }
nav.top a.brand:hover { color: var(--accent); }
nav.top .grow { flex: 1; }

/* Hero */
header.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
}
.hero-grid .logo-mark {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 12px 32px rgba(16, 185, 129, 0.25));
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .hero-grid .logo-mark { width: 96px; height: 96px; }
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #04150e; }
.btn-primary:hover { background: var(--accent-bright); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--rule); color: var(--fg); }
.btn-secondary:hover { border-color: var(--fg-dim); text-decoration: none; }

/* Panels & callouts */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
}
.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.callout strong { color: var(--fg); }

/* How-it-works flow (home) — 4 steps */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
.flow .step {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
}
.flow .step:hover { border-color: var(--accent-dim); transform: translateY(-2px); transition: all 0.2s; }
.flow .step .num {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.flow .step h3 { margin: 0 0 6px; font-size: 1rem; }
.flow .step p { margin: 0; color: var(--fg-dim); font-size: 0.94rem; }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } }

/* Tables */
table.coverage, table.compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0;
}
table.coverage th, table.coverage td,
table.compact th, table.compact td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.coverage th, table.compact th {
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.coverage tr:last-child td,
table.compact tr:last-child td { border-bottom: none; }
table.coverage td.label { white-space: nowrap; color: var(--accent); font-weight: 600; }
table.compact td:first-child { white-space: nowrap; color: var(--accent); font-weight: 600; font-family: ui-monospace, monospace; font-size: 0.9em; }

/* Defense list */
ul.defenses {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
ul.defenses li {
  padding-left: 24px;
  position: relative;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
ul.defenses li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}
ul.defenses li strong { color: var(--fg); font-weight: 600; }
@media (max-width: 700px) { ul.defenses { grid-template-columns: 1fr; } }

/* Video embed */
.video-frame {
  margin-top: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 6px;
  overflow: hidden;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #000;
}
/* Contact form */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 24px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--fg-dim);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact-form button {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}

/* TOC for the install page */
ul.toc {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  font-size: 0.95rem;
}
ul.toc li::before {
  content: "→ ";
  color: var(--accent);
  margin-right: 4px;
}
@media (max-width: 700px) { ul.toc { grid-template-columns: 1fr; } }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--fg-dim);
  font-size: 0.92rem;
}
footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
footer .links a { color: var(--fg); }
footer .fineprint { color: var(--fg-dim); font-size: 0.85rem; }
