/* ═══════════════════════════════════════════════════════════════
   BloodWorX AI — marketing site stylesheet
   Design system mirrors the Anvil app homepage (anvil-home.html):
   void/oxblood/crimson palette, Space Grotesk display + Inter body.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void: #0a0504;
  --ground: #120707;
  --oxblood: #8b0000;
  --oxblood-deep: #2a0a0a;
  --crimson: #dc143c;
  --crimson-bright: #ff274e;
  --white: #ffffff;
  --ash: #f2d9d9;
  --muted: #c49a9a;
  --dim: #8f6a6a;
  --line: rgba(220, 20, 60, .22);
  --card: rgba(255, 255, 255, .028);
  --card-line: rgba(220, 20, 60, .28);
  --gold: #f4c430;
  --font-display: 'Space Grotesk', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { 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(139, 0, 0, .55), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(220, 20, 60, .12), transparent 55%),
    var(--void);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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(10, 5, 4, .82);
  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: 700;
  color: var(--white); letter-spacing: -.01em;
}
.nav-name em { color: var(--crimson-bright); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta {
  padding: 9px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--oxblood), var(--crimson));
  color: #fff !important; font-weight: 600; font-size: 13px;
  box-shadow: 0 4px 16px rgba(220, 20, 60, .35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(220, 20, 60, .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, #6f0000 0%, #dc143c 52%, #6f0000 100%);
  color: #fff;
  padding: 70px 40px;
  border-radius: 20px;
  margin: 28px 0 40px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 30px 80px rgba(139, 0, 0, .45);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .08) 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, 39, 78, .18) 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 rgba(255, 255, 255, .30);
  color: #fff; padding: 6px 20px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase;
  margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 700; 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: 15px; font-weight: 600; 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(0, 0, 0, .3);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(0, 0, 0, .4); }
.btn-ghost {
  background: rgba(10, 5, 4, .25); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-crimson {
  background: linear-gradient(135deg, var(--oxblood), var(--crimson));
  color: #fff; box-shadow: 0 8px 28px rgba(220, 20, 60, .35);
}
.btn-crimson:hover { box-shadow: 0 12px 36px rgba(220, 20, 60, .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-display);
  font-size: 36px; font-weight: 700; color: #fff;
}
.hero-stat .label { font-size: 13px; opacity: .9; font-weight: 500; }

/* ── Section headers ────────────────────────────────────────── */
.section-title {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  color: #fff; padding: 22px 30px; border-radius: 15px;
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); font-weight: 700;
  text-align: center; margin: 56px 0 26px;
  box-shadow: 0 16px 44px rgba(220, 20, 60, .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(0, 0, 0, .45);
}
.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, 39, 78, .5); background: rgba(255, 255, 255, .05); }
.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(0, 0, 0, .5); width: 100%;
}
.compare-arrow {
  text-align: center; font-size: 13px; letter-spacing: 2px; 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(--crimson));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 24px rgba(220, 20, 60, .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; color: #fff;
  background: linear-gradient(135deg, #8b0000, #dc143c);
}
table.compare tbody tr { border-top: 1px solid rgba(220, 20, 60, .14); }
table.compare tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.compare td:first-child { color: var(--white); 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, 39, 78, .55); }
.plan.featured { border-color: rgba(255, 39, 78, .55); background: rgba(220, 20, 60, .06); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-bright));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  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(--white); 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-display); font-size: 44px; font-weight: 700; color: var(--white); }
.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: 600; color: var(--white); 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, #6f0000 0%, #dc143c 52%, #6f0000 100%);
  border-radius: 20px; padding: 54px 40px; text-align: center;
  margin: 60px 0 30px; border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 30px 80px rgba(139, 0, 0, .40);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 620px; margin: 0 auto 26px; font-size: 16px; }

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  border: 1px solid var(--line); border-left: 3px solid var(--crimson);
  background: rgba(220, 20, 60, .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 var(--line); margin-top: 60px;
  padding: 44px 0 36px; background: rgba(10, 5, 4, .6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; letter-spacing: .5px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-about p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid rgba(220, 20, 60, .14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}

/* ── 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(10, 5, 4, .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; }
}
