/* NHCheck — "Network-Ops Dark", the app's own tokens. */

:root {
  --bg-deep: #05070a;
  --bg-app: #0a0d12;
  --card: #12171d;
  --input: #171d24;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.10);
  --divider: rgba(255, 255, 255, 0.06);

  --text: #eef1f5;
  --text-soft: #c3c9d1;
  --text-muted: #9aa3b2;
  --text-faint: #5f6774;

  --amber: #e9a24a;
  --amber-hi: #f3be6e;
  --amber-bg: rgba(233, 162, 74, 0.14);
  --on-amber: #161006;
  --green: #38c98f;
  --green-bg: rgba(56, 201, 143, 0.14);
  --red: #e24b3d;
  --red-bg: rgba(226, 75, 61, 0.14);

  --ui: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 780px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  background: radial-gradient(720px 340px at 20% -10%, rgba(233, 162, 74, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

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

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--mono); font-size: 0.92em; }

/* ── chrome ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.topbar .shell { display: flex; align-items: center; gap: 20px; height: 60px; }

.brand { color: var(--text); font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.brand:hover { text-decoration: none; color: var(--text); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ── type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.section-title { font-size: 24px; margin-bottom: 12px; }
.lede { font-size: 17px; color: var(--text-muted); }

section { padding: 52px 0; }
section + section { border-top: 1px solid var(--divider); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 60px 0 52px; }
.hero h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.03em; margin-bottom: 16px; }
.hero h1 .accent { color: var(--amber); }
.hero .lede { font-size: 18px; color: var(--text-soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-hi); color: var(--on-amber); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-faint); font-family: var(--mono); }

/* ── screenshots ──────────────────────────────────────────────────────── */

.shot { margin: 40px auto 0; max-width: 300px; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.9);
}
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 6px;
  padding: 3px 8px;
  flex: none;
}
.pill.pass { color: var(--green); background: var(--green-bg); }
.pill.warn { color: var(--amber); background: var(--amber-bg); }
.pill.fail { color: var(--red); background: var(--red-bg); }
.pill.skip { color: var(--text-faint); background: rgba(255, 255, 255, 0.05); }

/* ── tables ───────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
td { color: var(--text-soft); }
td strong { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ── inner pages ──────────────────────────────────────────────────────── */

.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--divider); }
.page-head h1 { font-size: clamp(27px, 5vw, 34px); margin-bottom: 12px; }

.prose { padding: 40px 0 72px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); font-size: 15.5px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--text-faint); }
.prose .table-wrap { margin: 18px 0 22px; }

/* ── footer ───────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--divider); padding: 32px 0 40px; background: var(--bg-app); }
.foot-grid { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--text-muted); font-size: 14px; }
.foot-links a:hover { color: var(--amber); }
.foot-meta { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 620px) {
  section { padding: 44px 0; }
  .shell { padding: 0 18px; }
  .topbar .shell { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .nav { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
