:root {
  --bg: #04070a;
  --bg-2: #070b0f;
  --surface: #0b1116;
  --surface-2: #101820;
  --surface-3: #13202a;
  --border: #1a2a33;
  --border-strong: #24404d;
  --text: #e6f0f3;
  --text-dim: #a7b6bd;
  --text-muted: #6f8089;
  --bio: #00e8a8;
  --bio-2: #43f3c0;
  --cyan: #34d6ff;
  --violet: #9e7bff;
  --amber: #ffc76b;
  --red: #ff6b7a;
  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(0, 232, 168, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(52, 214, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #04070a 0%, #070b0f 100%);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(0, 232, 168, 0.25), 0 8px 30px rgba(0, 232, 168, 0.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 500px at 80% -10%, rgba(0, 232, 168, 0.08), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(52, 214, 255, 0.06), transparent 60%);
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--bio-2);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--bio); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER / NAV — isolated, always on top, never overlapped */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  background: rgba(4, 7, 10, 0.94);
  border-bottom: 1px solid rgba(26, 42, 51, 0.6);
  padding-top: env(safe-area-inset-top);
  isolation: isolate;
}
body > *:not(.site-header):not(.skip-link) {
  position: relative;
  z-index: 1;
}
.site-header::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 168, 0.08), transparent);
  mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  opacity: 0.4;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.018em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-block;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, rgba(67, 243, 192, 0.9), transparent 50%),
    linear-gradient(135deg, #00e8a8, #34d6ff);
  box-shadow: 0 0 0 1px rgba(0, 232, 168, 0.3), 0 6px 16px rgba(0, 232, 168, 0.35);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 5px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4), transparent 60%);
}
.brand span.tag {
  color: var(--bio);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 232, 168, 0.1);
  border: 1px solid rgba(0, 232, 168, 0.3);
  line-height: 1;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, #00e8a8 0%, #2ef0c3 60%, #34d6ff 120%);
  color: #03140e;
  box-shadow: 0 0 0 1px rgba(0, 232, 168, 0.4), 0 8px 24px rgba(0, 232, 168, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 232, 168, 0.6), 0 14px 30px rgba(0, 232, 168, 0.38);
  color: #03140e;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top)); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(4, 7, 10, 0.98);
    backdrop-filter: blur(14px);
    padding: 18px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
    max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    visibility: hidden;
    z-index: 49;
  }
  .nav-links a { padding: 14px 16px; font-size: 1rem; border-radius: 10px; }
  body.nav-open .nav-links {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s var(--ease), visibility 0s linear 0s;
  }
  .nav-right .btn.desktop-only { display: none; }
}

@media (min-width: 981px) {
  .nav-toggle { display: none; }
}

/* MOBILE HEADER REFINEMENTS */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header { overflow: hidden; }
  .site-header > .container.nav-wrap,
  .nav-wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    gap: 10px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 9px;
    min-width: 0;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand span.tag {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    padding: 2px 6px;
    margin-left: 3px;
  }
}

@media (max-width: 380px) {
  :root { --header-h: 58px; }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand span.tag { font-size: 0.55rem; padding: 2px 5px; letter-spacing: 0.14em; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-wrap { gap: 8px; }
}

/* HERO */
.hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 232, 168, 0.14) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 70px 0 50px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 232, 168, 0.08);
  border: 1px solid rgba(0, 232, 168, 0.25);
  color: var(--bio-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 12px var(--bio);
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(100deg, #00e8a8 0%, #43f3c0 35%, #34d6ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 8px var(--bio);
}

/* HERO VISUAL — dashboard card preview */
.hero-visual {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(0, 232, 168, 0.08), transparent 60%), rgba(11, 17, 22, 0.7);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1), 0 30px 80px rgba(0, 232, 168, 0.08);
  backdrop-filter: blur(10px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 232, 168, 0.4), transparent 40%, transparent 60%, rgba(52, 214, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.scan-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bio);
}
.scan-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 10px var(--bio);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.scan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(26, 42, 51, 0.4);
  align-items: center;
  font-size: 0.9rem;
}
.scan-row:last-child { border-bottom: 0; }
.scan-row .label { color: var(--text-dim); }
.scan-row .value { color: var(--text); font-family: var(--font-mono); font-size: 0.82rem; }
.scan-row .value.ok { color: var(--bio); }
.scan-row .value.warn { color: var(--amber); }
.scan-row .value.high { color: var(--red); }

.risk-meter {
  margin-top: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.risk-meter-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00e8a8 0%, #ffc76b 55%, #ff6b7a 100%);
  position: relative;
  margin-top: 8px;
}
.risk-meter-bar::after {
  content: "";
  position: absolute;
  left: 32%;
  top: -4px; bottom: -4px;
  width: 2px; background: var(--text);
  box-shadow: 0 0 8px var(--text);
}
.risk-meter-legend {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* SECTIONS */
section { padding: 88px 0; position: relative; }
section.tight { padding: 60px 0; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

/* TRUST STRIP */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}
.trust-strip .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 860px) {
  .trust-strip .inner { grid-template-columns: repeat(2, 1fr); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.trust-item .icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 232, 168, 0.1);
  border: 1px solid rgba(0, 232, 168, 0.25);
  color: var(--bio);
  flex-shrink: 0;
}

/* CARDS / GRIDS */
.card-grid {
  display: grid;
  gap: 20px;
}
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.004));
  border: 1px solid var(--border);
  transition: all 0.22s var(--ease);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 232, 168, 0.15);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 168, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.card:hover::before { opacity: 1; }

.card .card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 232, 168, 0.08);
  border: 1px solid rgba(0, 232, 168, 0.2);
  color: var(--bio);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-dim); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--bio-2);
  font-weight: 500;
}
.card-link svg { transition: transform 0.2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 232, 168, 0.03), rgba(255, 255, 255, 0.004));
  border: 1px solid var(--border);
  position: relative;
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bio);
  letter-spacing: 0.14em;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* HOMEPAGE QUICK TOOL */
.risk-tool {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0, 232, 168, 0.04), rgba(11, 17, 22, 0.6));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}
.risk-tool .grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 620px) { .risk-tool .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bio);
  box-shadow: 0 0 0 3px rgba(0, 232, 168, 0.15);
}
.field textarea { resize: vertical; min-height: 88px; }

.risk-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  display: none;
}
.risk-result.active { display: block; }
.risk-result h4 { font-size: 1rem; margin: 0 0 6px; }
.risk-tier {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.risk-tier.low { background: rgba(0, 232, 168, 0.14); color: var(--bio); border: 1px solid rgba(0, 232, 168, 0.3); }
.risk-tier.medium { background: rgba(255, 199, 107, 0.12); color: var(--amber); border: 1px solid rgba(255, 199, 107, 0.3); }
.risk-tier.high { background: rgba(255, 107, 122, 0.12); color: var(--red); border: 1px solid rgba(255, 107, 122, 0.3); }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--bio);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* FINAL CTA */
.final-cta {
  padding: 72px 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(0, 232, 168, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.final-cta h2 { max-width: 700px; margin: 0 auto 12px; }
.final-cta p { max-width: 560px; margin: 0 auto 24px; font-size: 1.05rem; }

/* FOOTER */
.site-footer {
  padding: 56px 0 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 380px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bio);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--text-dim); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* CONTENT PAGES (hubs, legal) */
.page-hero {
  padding: 90px 0 50px;
  position: relative;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(0, 232, 168, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 900px; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero .lede { font-size: 1.08rem; color: var(--text-dim); max-width: 720px; margin: 0; }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; font-size: 1.1rem; color: var(--text); }
.prose p, .prose li { color: var(--text-dim); font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose .callout {
  margin: 28px 0;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(0, 232, 168, 0.05);
  border: 1px solid rgba(0, 232, 168, 0.25);
  border-left: 3px solid var(--bio);
}
.prose .callout strong { color: var(--bio); }
.prose .callout.warn {
  background: rgba(255, 199, 107, 0.06);
  border-color: rgba(255, 199, 107, 0.3);
  border-left-color: var(--amber);
}
.prose .callout.warn strong { color: var(--amber); }
.prose .callout.danger {
  background: rgba(255, 107, 122, 0.06);
  border-color: rgba(255, 107, 122, 0.3);
  border-left-color: var(--red);
}
.prose .callout.danger strong { color: var(--red); }
.prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 44px 0;
}

.inline-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 232, 168, 0.07), rgba(52, 214, 255, 0.04));
  border: 1px solid var(--border-strong);
  margin: 32px 0;
}
.inline-cta h4 { margin: 0; font-size: 1.05rem; }
.inline-cta p { margin: 0; font-size: 0.95rem; }
.inline-cta .btn { margin-top: 6px; }

/* AUTHOR / TRUST BLOCK */
.prose .author-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 36px 0 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.prose .author-block .author-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 232, 168, 0.35), rgba(52, 214, 255, 0.25));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display, var(--font-mono));
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.prose .author-block .author-meta { min-width: 0; }
.prose .author-block .author-meta p { margin: 0; line-height: 1.55; }
.prose .author-block .author-meta .author-name { color: var(--text); font-size: 0.98rem; }
.prose .author-block .author-meta .author-name a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--bio);
  text-underline-offset: 3px;
}
.prose .author-block .author-meta .author-role { color: var(--text-dim); font-size: 0.92rem; }
.prose .author-block .author-meta .author-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 6px; }

/* PERSONAL NOTE (about page quote) */
.prose blockquote.personal-note {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 232, 168, 0.06), rgba(52, 214, 255, 0.03));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--bio);
  color: var(--text);
}
.prose blockquote.personal-note p { color: var(--text); margin: 0 0 10px; }
.prose blockquote.personal-note .personal-note-questions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: italic;
  color: var(--text-dim);
  margin: 6px 0 12px;
}
.prose blockquote.personal-note .personal-note-attr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio);
  margin-top: 12px;
}

/* CHAT PAGE */
.chat-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 68px);
  min-height: 600px;
  background: var(--bg);
}
@media (max-width: 900px) { .chat-shell { grid-template-columns: 1fr; } }

.chat-side {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 232, 168, 0.03), transparent);
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 900px) { .chat-side { display: none; } }

.chat-side h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio);
  margin: 6px 0 10px;
}
.chat-side .side-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.chat-side .side-card p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-dim);
}
.chip-list { display: flex; flex-direction: column; gap: 8px; }
.chip {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  font-family: inherit;
}
.chip:hover {
  border-color: var(--bio);
  background: rgba(0, 232, 168, 0.06);
  color: var(--text);
}
.side-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.side-link:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }

.chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.chat-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}
.chat-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bio);
  box-shadow: 0 0 10px var(--bio);
}
.chat-disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 420px;
  text-align: right;
}
@media (max-width: 620px) { .chat-disclaimer { display: none; } }

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}
.msg {
  display: flex; gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.msg .avatar {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.msg.user .avatar {
  background: rgba(52, 214, 255, 0.12);
  border: 1px solid rgba(52, 214, 255, 0.3);
  color: var(--cyan);
}
.msg.assistant .avatar {
  background: rgba(0, 232, 168, 0.12);
  border: 1px solid rgba(0, 232, 168, 0.3);
  color: var(--bio);
  position: relative;
}
.msg .bubble {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.96rem;
  line-height: 1.7;
  min-width: 0;
  color: var(--text);
}
.msg.user .bubble { background: rgba(52, 214, 255, 0.04); border-color: rgba(52, 214, 255, 0.15); }
.msg.assistant .bubble { background: linear-gradient(180deg, rgba(0, 232, 168, 0.035), rgba(255, 255, 255, 0.01)); }
.msg .bubble :first-child { margin-top: 0; }
.msg .bubble :last-child { margin-bottom: 0; }
.msg .bubble h3 { font-size: 1rem; margin: 14px 0 6px; color: var(--text); }
.msg .bubble h4 { font-size: 0.95rem; margin: 12px 0 4px; color: var(--bio-2); }
.msg .bubble ul, .msg .bubble ol { padding-left: 20px; margin: 6px 0; }
.msg .bubble li { margin-bottom: 4px; color: var(--text-dim); }
.msg .bubble p { margin: 0 0 8px; color: var(--text-dim); }
.msg .bubble strong { color: var(--text); }
.msg .bubble code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--bio-2);
}

.typing-dots {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 4px 2px;
}
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bio);
  opacity: 0.4;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.chat-suggestions button {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s var(--ease);
}
.chat-suggestions button:hover {
  border-color: var(--bio);
  color: var(--text);
  background: rgba(0, 232, 168, 0.05);
}

.chat-input-wrap {
  border-top: 1px solid var(--border);
  padding: 16px 24px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}
.chat-input {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  background: rgba(11, 17, 22, 0.9);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.chat-input:focus-within {
  border-color: var(--bio);
  box-shadow: 0 0 0 3px rgba(0, 232, 168, 0.12);
}
.chat-input textarea {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  resize: none;
  min-height: 24px;
  max-height: 200px;
  padding: 8px 0;
  outline: none;
  line-height: 1.5;
}
.chat-input textarea::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00e8a8, #34d6ff);
  color: #03140e;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 232, 168, 0.3);
}
.chat-send:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 232, 168, 0.4); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.chat-footer-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}

/* ERROR / EMPTY STATES */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 20px;
  max-width: 620px; margin: auto;
}
.empty-state .brand-mark { width: 52px; height: 52px; margin-bottom: 18px; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-dim); font-size: 0.98rem; }

/* UTIL */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* SKIP TO CONTENT — completely hidden offscreen until focused */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bio);
  color: #03140e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  pointer-events: none;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 2000;
  outline: 2px solid var(--text);
  outline-offset: 2px;
  color: #03140e;
  pointer-events: auto;
}

/* FOCUS VISIBLE */
:focus-visible {
  outline: 2px solid var(--bio);
  outline-offset: 2px;
  border-radius: 4px;
}

/* MEDICAL REVIEWER + CITATIONS */
.review-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 18px 0 28px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-dim);
}
.review-block .review-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 232, 168, 0.08);
  border: 1px solid rgba(0, 232, 168, 0.25);
  color: var(--bio);
}
.review-block .review-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.review-block .review-meta span { color: var(--text-dim); }
.review-block .review-meta strong { color: var(--text); font-weight: 500; }

.sources {
  margin: 36px 0 8px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
}
.sources h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio);
  margin: 0 0 10px;
}
.sources ol { padding-left: 20px; margin: 0; }
.sources li { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 6px; line-height: 1.55; }
.sources li a { color: var(--bio-2); }
.sources li a:hover { text-decoration: underline; }

.related-guides {
  margin: 36px 0 0;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 232, 168, 0.04), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--border);
}
.related-guides h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio);
  margin: 0 0 14px;
}
.related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
}
@media (max-width: 620px) { .related-guides ul { grid-template-columns: 1fr; } }
.related-guides li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.related-guides li a::before {
  content: "→";
  color: var(--bio);
  font-family: var(--font-mono);
}
.related-guides li a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-dot { animation: none !important; }
}
