/* ═══════════════════════════════════════════════════════════════
   BloodWorX AI — marketing site stylesheet
   Design system mirrors the Anvil app homepage (anvil-home.html):
   palette D; fonts = the app's (2026-09-24): Montserrat display + body, JetBrains Mono labels/numbers.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void: #F8F6F6;
  --ground: #FFFFFF;
  --oxblood: #BE1418;
  --oxblood-deep: #1A0B0B;
  --crimson: #D9463F;
  --crimson-bright: #F09595;
  --white: #ffffff;
  --ash: #1A1010;
  --muted: #786969;
  --dim: #8F8080;
  --line: rgba(190,20,24,0.18);
  --card: #FFFFFF;
  --card-line: #E6E0E0;
  --gold: #FF1D1D;
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; --navy: #BE1418; --navy-dk: #1A0B0B; --navy-mid: #D9463F; --navy-lt: #F09595; --amber: #FF1D1D; --amber-dk: #BE1418; --bg: #F8F6F6; --tint: #FFE8E8; --text: #1A1010; --placeholder: #A89A9A; --danger: #BE1418; --success: #1E7F4F;
}

* { font-family: var(--font-body); box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--ash);
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(190,20,24,0.10), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(190,20,24,0.12), transparent 55%),
    var(--void);
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1.08;
}
h1 { font-weight: 900; }

a { color: var(--crimson-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 9px; }
.nav-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
}
.nav-name em { color: var(--amber-dk); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; white-space: nowrap; }
.nav-brand, .nav-name { white-space: nowrap; }
@media (max-width: 900px) { .nav-links { gap: 14px; } .nav-links a { font-size: 12.5px; } .nav-cta { padding: 8px 14px; } }
.nav-links a {
  color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta {
  padding: 9px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--oxblood), var(--navy-mid));
  color: #fff !important; font-weight: 700; font-size: 12.5px;
  box-shadow: 0 4px 16px rgba(190,20,24,0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(190,20,24,0.5); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ash); font-size: 20px; padding: 4px 10px; cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1A0B0B 0%, var(--navy-mid) 52%, #1A0B0B 100%);
  color: #fff;
  padding: 70px 40px;
  border-radius: 20px;
  margin: 28px 0 40px;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(190,20,24,0.10);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,29,29,0.11) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(10, 5, 4, .28);
  border: 1px solid var(--border);
  color: #fff; padding: 6px 20px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 900; margin-bottom: 18px; color: #fff; }
.hero p { font-size: 17px; line-height: 1.7; opacity: .94; max-width: 750px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s; cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: #fff; color: var(--oxblood);
  box-shadow: 0 8px 28px rgba(26,11,11,0.14);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(26,11,11,0.14); }
.btn-ghost {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.btn-crimson {
  background: linear-gradient(135deg, var(--oxblood), var(--navy-mid));
  color: #fff; box-shadow: 0 8px 28px rgba(190,20,24,0.35);
}
.btn-crimson:hover { box-shadow: 0 12px 36px rgba(190,20,24,0.5); }

.hero-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number {
  display: block; font-family: var(--font-mono);
  font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: #fff;
}
.hero-stat .label { font-size: 11px; opacity: .9; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ── Section headers ────────────────────────────────────────── */
.section-title {
  background: linear-gradient(135deg, #1A0B0B 0%, #BE1418 100%);
  color: #fff; padding: 22px 30px; border-radius: 15px;
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); font-weight: 800;
  text-align: center; margin: 56px 0 26px;
  box-shadow: 0 16px 44px rgba(190,20,24,0.28);
}
.section-subtitle {
  text-align: center; font-size: 16px; color: var(--muted); line-height: 1.7;
  max-width: 720px; margin: 0 auto 34px;
}

/* ── Content blocks & cards ─────────────────────────────────── */
.content-block {
  background: var(--card); padding: 40px; border-radius: 20px;
  margin-bottom: 30px; border: 1px solid var(--card-line);
  box-shadow: 0 24px 60px rgba(26,11,11,0.14);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 16px;
  padding: 26px 24px; transition: transform .22s, border-color .22s, background .22s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,29,29,0.30); background: #FBF9F9; }
.card h4 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.card-icon { font-size: 26px; margin-bottom: 12px; display: block; }

/* ── Before / after image pair ──────────────────────────────── */
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.compare-item figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center;
}
.compare-item img {
  border-radius: 14px; border: 1px solid var(--card-line);
  box-shadow: 0 20px 50px rgba(26,11,11,0.14); width: 100%;
}
.compare-arrow {
  text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crimson-bright); font-weight: 600; margin: 18px 0 26px;
}

/* ── Journey steps ──────────────────────────────────────────── */
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; margin-bottom: 30px; }
.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--oxblood), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: #fff;
  box-shadow: 0 8px 24px rgba(190,20,24,0.35);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.step ul { list-style: none; display: grid; gap: 7px; }
.step li { font-size: 14px; color: var(--ash); padding-left: 22px; position: relative; }
.step li::before { content: '✦'; position: absolute; left: 0; color: var(--crimson-bright); font-size: 12px; }
.step img { border-radius: 14px; border: 1px solid var(--card-line); margin-top: 16px; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--card-line); }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; font-size: 14px; }
table.compare thead th {
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}
table.compare tbody tr { border-top: 1px solid rgba(190,20,24,0.14); }
table.compare tbody tr:hover { background: #FBF9F9; }
table.compare td:first-child { color: var(--navy); font-weight: 500; }
.yes { color: #62d98b; font-weight: 600; }
.no { color: var(--dim); }

/* ── Anomaly taxonomy ───────────────────────────────────────── */
.tax-group { margin-bottom: 34px; }
.tax-group h3 {
  font-size: 19px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--ash);
}

/* ── Pricing ────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.plans.three { grid-template-columns: repeat(3, 1fr); }
.plan {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px;
  padding: 30px 26px; position: relative;
  transition: transform .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255,29,29,0.33); }
.plan.featured { border-color: rgba(255,29,29,0.33); background: rgba(190,20,24,0.06); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--navy-mid), var(--crimson-bright));
  color: #fff; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; min-height: 34px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-price .cur { font-size: 20px; color: var(--muted); }
.plan-price .amt { font-family: var(--font-mono); font-size: 42px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-unit { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-unit strong { color: var(--ash); }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.plan li { font-size: 14px; color: var(--ash); padding-left: 22px; position: relative; }
.plan li::before { content: '✦'; position: absolute; left: 0; color: var(--crimson-bright); font-size: 12px; }
.plan .btn { margin-top: auto; text-align: center; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq details {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px;
  list-style: none; position: relative; padding-right: 30px;
}
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--crimson-bright); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1A0B0B 0%, var(--navy-mid) 52%, #1A0B0B 100%);
  border-radius: 20px; padding: 54px 40px; text-align: center;
  margin: 60px 0 30px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(190,20,24,0.10);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto 26px; font-size: 16px; }

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  border: 1px solid var(--line); border-left: 3px solid var(--navy-mid);
  background: rgba(190,20,24,0.05); border-radius: 12px;
  padding: 18px 22px; font-size: 13px; color: var(--muted); line-height: 1.7;
  margin: 40px 0;
}
.disclaimer strong { color: var(--ash); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 60px;
  padding: 44px 0 36px; background: #1A0B0B; color: rgba(255,255,255,.82);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 14px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: rgba(255,255,255,.62); font-size: 14px; }
.footer-grid a:hover { color: var(--navy); text-decoration: none; }
.footer-about p { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; margin-top: 12px; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid rgba(190,20,24,0.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.62);
}

/* ── Page intro (inner pages) ───────────────────────────────── */
.page-head { text-align: center; padding: 60px 0 10px; max-width: 780px; margin: 0 auto; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.page-head p { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid, .plans.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); padding: 10px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 46px 22px; }
  .hero-stats { gap: 26px; }
  .card-grid, .card-grid.two, .plans, .plans.three, .compare-pair { grid-template-columns: 1fr; }
  .content-block { padding: 26px 20px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 40px; height: 40px; font-size: 17px; border-radius: 11px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* palette C footer: brand wordmark on the navy-dark footer */
footer .nav-name, footer .footer-brand, footer .brand { color: #fff; }
footer .nav-name em { color: var(--amber); }
