/* ============================================================
   Hemavive — Marketing website kit styles
   Layout + section styling on top of the design-system tokens.
   ============================================================ */

.site { font-family: var(--font-sans); color: var(--text); background: var(--surface); }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--wide { max-width: var(--container-wide); }
img { max-width: 100%; display: block; }

/* ---------- Section rhythm ---------- */
.sec { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.sec--tight { padding-top: 4rem; padding-bottom: 4rem; }
.sec--navy { background: var(--navy-900); color: var(--slate-75); }
.sec--paper { background: var(--slate-50); }
.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-title {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text-strong); margin: 16px 0 0;
}
.sec--navy .sec-title { color: #fff; }
.sec-sub { font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text-muted); margin: 16px 0 0; max-width: 60ch; }
.sec--navy .sec-sub { color: var(--slate-300); }
.sec-head--center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center;
  transition: background-color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav--top { background: transparent; }
.nav--scrolled { background: rgba(252,253,254,.82); backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--border); }
.nav__inner { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { height: 32px; width: auto; }
.brand__wm { font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.brand__wm .h { color: var(--crimson-500); }
.brand__wm .v { color: var(--navy-600); }
.nav--top .brand__wm .h { color: var(--crimson-400); }
.nav--top .brand__wm .v { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; transition: color var(--dur-fast), background-color var(--dur-fast); cursor: pointer; background: none; border: 0; font-family: inherit;
}
.nav__link:hover { color: var(--text-strong); background: var(--surface-sunken); }
.nav--top .nav__link { color: var(--slate-200); }
.nav--top .nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__spacer { flex: 1; }
.nav__cta { flex: none; }
.nav__menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 96px 0 88px; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 88% -8%, rgba(194,14,46,.30), transparent 55%),
    radial-gradient(95% 80% at -8% 112%, rgba(28,69,132,.60), transparent 58%),
    var(--navy-950);
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); height: 560px; opacity: .12; pointer-events: none; filter: saturate(1.1); }
.hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 940px; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(2.6rem, 6vw, 5rem); color: #fff; margin: 24px 0 0;
}
.hero h1 .em { font-style: italic; color: var(--crimson-300); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--slate-200); margin: 26px 0 0; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--slate-100); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: var(--radius-full);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Stat strip ---------- */
.statstrip { border-top: 1px solid rgba(255,255,255,.10); margin-top: 64px; padding-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.statstrip .num { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; line-height: 1; color: #fff; }
.statstrip .num em { font-style: normal; color: var(--crimson-300); }
.statstrip .cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--slate-300); margin-top: 10px; line-height: 1.4; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow .rule { width: 26px; height: 1.5px; background: currentColor; opacity: .55; }
.sec--navy .eyebrow { color: var(--crimson-300); }

/* ---------- Problem cards ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prob {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); position: relative;
}
.prob__ico { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--crimson-50); color: var(--crimson-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.prob__ico svg { width: 21px; height: 21px; }
.prob h3 { font-size: 16px; font-weight: 600; color: var(--text-strong); margin: 0 0 8px; letter-spacing: -.01em; }
.prob p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ---------- Program cards ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
  display: flex; flex-direction: column;
}
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.prog--2::before { background: var(--navy-600); }
.prog--3::before { background: var(--teal-500); }
.prog__idx { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-faint); letter-spacing: .1em; }
.prog h3 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; color: var(--text-strong); margin: 12px 0 12px; line-height: 1.1; }
.prog p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 20px; }
.prog__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- Delivery row ---------- */
.deliv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.deliv { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 22px; }
.deliv__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 12px; }
.deliv h4 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.deliv p { font-size: 13px; line-height: 1.55; color: var(--slate-300); margin: 0; }

/* ---------- ECEP highlight ---------- */
.ecep { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ecep__media { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.ecep__steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ecep__step { font-family: var(--font-mono); font-size: 12px; color: var(--navy-600); background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius-full); padding: 7px 13px; }
.roadmap { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.roadmap__node { display: flex; flex-direction: column; gap: 3px; }
.roadmap__node .t { font-weight: 600; font-size: 14px; color: var(--text-strong); }
.roadmap__node .s { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.roadmap__arr { color: var(--slate-300); }

/* ---------- Market ---------- */
.market-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.mcard { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.mcard .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.mcard .v { font-family: var(--font-sans); font-weight: 700; font-size: 44px; letter-spacing: -.02em; color: var(--text-strong); margin: 8px 0 6px; line-height: 1; }
.mcard .l { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.mcard--sam { background: var(--navy-800); border-color: transparent; }
.mcard--sam .v, .mcard--sam .k { color: #fff; } .mcard--sam .k { color: var(--crimson-300); } .mcard--sam .l { color: var(--slate-300); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tbl thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--font-mono); }
.tbl tbody tr:hover { background: var(--surface-sunken); }
.tbl tfoot td { font-weight: 700; color: var(--text-strong); border-top: 2px solid var(--border-strong); }
.tbl .seg { font-weight: 600; color: var(--text-strong); }

/* ---------- Why (comparison) ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--text-muted); background: var(--surface-sunken); }
.cmp thead th.hv { color: var(--crimson-600); background: var(--crimson-50); }
.cmp .dim { font-weight: 600; color: var(--text-strong); width: 24%; }
.cmp .cur { color: var(--text-muted); }
.cmp td.hv { background: rgba(194,14,46,.035); color: var(--text); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .chk { display: inline-flex; align-items: center; gap: 9px; }
.cmp .chk svg { color: var(--teal-500); flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* ---------- Team ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 36px; }
.founder__ava { width: 96px; height: 96px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy-600), var(--crimson-600)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 38px; flex: none; }
.founder__name { font-family: var(--font-serif); font-size: 28px; letter-spacing: -.01em; color: var(--text-strong); margin: 0; }
.founder__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.founder__bio { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 70ch; }
.adv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.adv ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.adv li { display: flex; flex-direction: column; gap: 2px; }
.adv .an { font-weight: 600; font-size: 14px; color: var(--text-strong); }
.adv .ad { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 30px; }
.contact .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact .fone { margin-bottom: 16px; }
.contact label { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 7px; }
.contact .req { color: var(--crimson-300); }
.sent { text-align: center; padding: 32px 18px; }
.sent__ico { width: 54px; height: 54px; border-radius: 50%; background: var(--teal-500); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sent h4 { color: #fff; font-size: 19px; margin: 0 0 8px; }
.sent p { color: var(--slate-300); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--slate-300); padding: 56px 0 36px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__wm { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.footer__wm .h { color: var(--crimson-400); } .footer__wm .v { color: #fff; }
.footer__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-top: 8px; }
.footer__links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--slate-300); font-size: 13.5px; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__col .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 4px; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--slate-500); }
.footer__legal .conf { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .prob-grid, .deliv-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid, .market-grid, .adv-cols { grid-template-columns: 1fr; }
  .ecep, .contact { grid-template-columns: 1fr; gap: 32px; }
  .statstrip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .prob-grid, .deliv-grid, .contact .frow { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: left; }
}
