/* ==========================================================================
   McIntyre MedSys - Marketing / landing page
   ========================================================================== */

/* ---- Site header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav a.navlink { font-weight: var(--fw-medium); color: var(--text-muted); font-size: var(--fs-base); }
.site-nav a.navlink:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
@media (max-width: 860px) { .site-nav .navlink { display: none; } }

/* ---- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: var(--sp-20) 0 var(--sp-16); }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 720px; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 10%, color-mix(in srgb, var(--brand-400) 26%, transparent), transparent 70%),
    radial-gradient(50% 50% at 85% 0%, color-mix(in srgb, var(--accent-500) 20%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-12); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-10); } }

.hero h1 { font-size: clamp(2.4rem, 5vw, var(--fs-5xl)); font-weight: var(--fw-black); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 44ch; margin-top: var(--sp-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-8); color: var(--text-subtle); font-size: var(--fs-sm); }
.hero-meta .row { gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--risk-green-600); }

/* ---- Hero device mock (SVG-driven) --------------------------------- */
.hero-visual { position: relative; }
.device {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl); overflow: hidden;
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.device-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.device-bar .addr { margin-left: 10px; font-size: var(--fs-xs); color: var(--text-subtle); font-family: var(--font-mono); }
.device-body { padding: var(--sp-4); display: grid; gap: var(--sp-3); background: var(--surface-3); }

.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--sh-xs); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-title { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.mini-sub { font-size: var(--fs-xs); color: var(--text-subtle); }
.mini-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.vital { text-align: center; background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 4px; }
.vital .v { font-weight: var(--fw-bold); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.vital .k { font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.vital.alert .v { color: var(--risk-red-600); }

.spark { height: 34px; width: 100%; }
.escal-step { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); padding: 5px 0; }
.escal-step .tick { width: 16px; height: 16px; border-radius: 50%; background: var(--risk-green-100); color: var(--risk-green-600); display: grid; place-items: center; flex: none; }
.escal-step .tick svg { width: 11px; height: 11px; }
.escal-step .t { margin-left: auto; color: var(--text-subtle); font-family: var(--font-mono); font-size: 10px; }
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 10px 12px; font-size: var(--fs-xs);
  display: flex; align-items: center; gap: 8px; font-weight: var(--fw-semi);
}
.float-badge.tl { top: -18px; left: -22px; animation: fadeUp .8s .3s var(--ease-out) both; }
.float-badge.br { bottom: 26px; right: -26px; animation: fadeUp .8s .5s var(--ease-out) both; }
@media (max-width: 480px) { .float-badge { display: none; } }

/* ---- Logos / trust ------------------------------------------------- */
.trust { padding: var(--sp-8) 0; border-block: 1px solid var(--border); }
.trust-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-8); }
.trust-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--text-subtle); font-weight: var(--fw-bold); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 720px){ .stat-strip { grid-template-columns: repeat(2,1fr); } }
.stat-strip .stat .n { font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: -.03em; color: var(--primary); }
.stat-strip .stat .l { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---- Sections ------------------------------------------------------ */
.section { padding: var(--sp-20) 0; }
.section-head { max-width: 62ch; margin: 0 auto var(--sp-12); text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); font-weight: var(--fw-black); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); margin-top: var(--sp-4); }

/* ---- Problem band -------------------------------------------------- */
.problem { background: var(--surface); border-block: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
@media (max-width: 860px){ .problem-grid { grid-template-columns: 1fr; } }
.problem ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.problem ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.problem ul li svg { width: 20px; height: 20px; color: var(--risk-red-600); flex: none; margin-top: 2px; }
.quote { border-left: 3px solid var(--primary); padding: var(--sp-2) 0 var(--sp-2) var(--sp-5); font-size: var(--fs-lg); font-style: italic; color: var(--text); }

/* ---- Pillars ------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 820px){ .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; padding: var(--sp-8); border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }
.pillar::after { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); opacity:.9; }
.pillar .picon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--sp-4); }
.pillar .picon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--fs-xl); }
.pillar p { color: var(--text-muted); margin-top: var(--sp-2); }
.pillar ul { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: 8px; }
.pillar ul li { display: flex; gap: 9px; align-items: center; font-size: var(--fs-sm); color: var(--text-muted); }
.pillar ul li svg { width: 15px; height: 15px; color: var(--risk-green-600); flex: none; }

/* ---- Feature spotlight (comms) ------------------------------------- */
.spotlight { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border-block: 1px solid var(--border); }
.spotlight-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--sp-12); align-items: center; }
@media (max-width: 940px){ .spotlight-grid { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: var(--sp-5); }
.feature-item { display: flex; gap: var(--sp-4); }
.feature-item .fi-ico { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; flex: none; }
.feature-item .fi-ico svg { width: 21px; height: 21px; }
.feature-item h4 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.feature-item p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px; }

/* audit trail visual */
.audit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.audit-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); }
.audit-head .t { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.audit-body { padding: 6px 18px 18px; }
.audit-row { display: grid; grid-template-columns: 62px 20px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.audit-row:last-child { border-bottom: 0; }
.audit-row .time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-subtle); }
.audit-row .rail { position: relative; height: 100%; display: grid; place-items: center; }
.audit-row .node { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.audit-row .ev { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.audit-row .st { font-size: var(--fs-xs); }

/* ---- Modules grid -------------------------------------------------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 900px){ .modules { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .modules { grid-template-columns: 1fr;} }
.module { display: flex; gap: 14px; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color var(--dur), transform var(--dur); }
.module:hover { border-color: var(--primary); transform: translateY(-2px); }
.module .m-ico { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--surface-3); color: var(--primary); flex: none; }
.module .m-ico svg { width: 20px; height: 20px; }
.module h4 { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.module p { font-size: var(--fs-xs); color: var(--text-subtle); margin-top: 2px; }

/* ---- Roadmap ------------------------------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 900px){ .roadmap { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .roadmap { grid-template-columns: 1fr;} }
.phase { padding: var(--sp-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); position: relative; }
.phase .pnum { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--primary); letter-spacing: .1em; text-transform: uppercase; }
.phase h4 { margin-top: 6px; font-size: var(--fs-lg); }
.phase p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 8px; }
.phase.now { border-color: var(--primary); box-shadow: var(--sh-md); }
.phase.now::before { content: "MVP - you are here"; position: absolute; top: -11px; left: 16px; background: var(--primary); color: #fff; font-size: 10px; font-weight: var(--fw-bold); padding: 3px 8px; border-radius: var(--r-full); letter-spacing: .04em; }

/* ---- CTA ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: var(--sp-20) 0; text-align: center; color: #fff; }
.cta-band::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, var(--brand-700), var(--brand-600) 45%, var(--accent-600)); }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.35; background: radial-gradient(40% 60% at 80% 20%, rgba(255,255,255,.35), transparent 60%); }
.cta-band h2 { font-size: var(--fs-3xl); font-weight: var(--fw-black); }
.cta-band p { max-width: 52ch; margin: var(--sp-4) auto 0; opacity: .92; font-size: var(--fs-lg); }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }

/* ---- Footer -------------------------------------------------------- */
.site-footer { padding: var(--sp-16) 0 var(--sp-10); border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.footer-col a { display: block; color: var(--text-muted); font-size: var(--fs-sm); padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); color: var(--text-subtle); font-size: var(--fs-xs); }
.disclaimer { background: var(--risk-amber-100); color: var(--risk-amber-600); border-radius: var(--r-md); padding: 10px 14px; font-size: var(--fs-xs); font-weight: var(--fw-medium); display: flex; gap: 8px; align-items: flex-start; margin-top: var(--sp-6); }
.disclaimer svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
