/* Pharos — shared design system (one stylesheet across all pages).
   Identity: calm clinical dark, single mint accent, Inter. Functional color only. */
:root {
  --bg: #0b1411;          /* app splash base */
  --bg-2: #0f1c18;
  --panel: #122421;
  --panel-2: #16302a;
  --line: #1f3b34;
  --ink: #eaf3f0;
  --ink-dim: #a7c0b8;
  --ink-faint: #6f8a82;
  --mint: #3ddc97;        /* single accent */
  --mint-soft: rgba(61, 220, 151, 0.12);
  --major: #ff8a5b;       /* functional: highest severity */
  --moderate: #ffd166;
  --abstain: #8aa6c0;     /* functional: neutral/uncertain */
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1100px 600px at 70% -10%, #103027 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1rem; color: var(--ink-dim); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mint { color: var(--mint); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); font-weight: 600; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 20, 17, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-dim); padding: 8px 12px; border-radius: 9px; font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.nav-links a.active { color: var(--mint); background: var(--mint-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 7px 10px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 22px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 8px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: #06231a; }
.btn-primary:hover { background: #57e7a9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- layout primitives ---------- */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 1.12rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--mint-soft); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.2rem; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); }
.tag.ok { color: var(--mint); border-color: rgba(61,220,151,0.4); background: var(--mint-soft); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: 1.18rem; max-width: 56ch; color: var(--ink-dim); }
.hero .pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 26px; }
.hero-card { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card .bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.hero-card .bar span { width: 11px; height: 11px; border-radius: 50%; background: #29463f; }
.hero-card .bar .label { margin-left: 10px; font-size: 0.8rem; color: var(--ink-faint); font-family: var(--mono); }
.scan { padding: 22px; display: grid; gap: 14px; }
.scan-row { display: flex; align-items: center; gap: 12px; }
.severity { font-weight: 700; padding: 4px 12px; border-radius: 8px; font-size: 0.85rem; }
.severity.major { color: var(--major); background: rgba(255,138,91,0.12); border: 1px solid rgba(255,138,91,0.35); }
.severity.abstain { color: var(--abstain); background: rgba(138,166,192,0.1); border: 1px solid rgba(138,166,192,0.3); }
.scan .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); }
.scan .explain { font-size: 0.95rem; color: var(--ink); border-left: 2px solid var(--mint); padding-left: 14px; }
.scan .cite { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- step / flow ---------- */
.flow { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.step .n { counter-increment: step; width: 36px; height: 36px; border-radius: 9px; background: var(--mint-soft); color: var(--mint); font-weight: 700; display: grid; place-items: center; }
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.93rem; }

/* ---------- callout / disclaimer ---------- */
.callout { border: 1px solid var(--line); background: var(--mint-soft); border-radius: 12px; padding: 16px 20px; color: var(--ink); font-size: 0.95rem; }
.callout.warn { background: rgba(255,209,102,0.08); border-color: rgba(255,209,102,0.35); }
.disclaimer { font-size: 0.9rem; color: var(--ink-dim); }

/* ---------- code / facts ---------- */
.code { font-family: var(--mono); font-size: 0.86rem; background: #08120f; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink-dim); overflow-x: auto; white-space: pre; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; color: var(--ink-dim); }
.facts li::before { content: "✓"; color: var(--mint); font-weight: 700; }

/* ---------- video ---------- */
.video-frame { aspect-ratio: 16/9; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #08120f; display: grid; place-items: center; color: var(--ink-faint); text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-faint); font-size: 0.88rem; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--ink-dim); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .center { text-align: center; }
.lead-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
