/* ===========================================================
   STYLE.CSS — MedStake (company site)
   x.ai-style mono: black hero + nav + footer, light body
   ColpoPen · MCIR · animated cervix scan
   =========================================================== */

:root {
  /* ---- NHS theme (mapped from the MedStake Colour Lab "NHS" preset) ---- */
  /* ---- light (body) ---- */
  --bg:       #ffffff;             /* paper */
  --soft:     #e8edee;             /* NHS mist / wash */
  --ink:      #231f20;             /* NHS ink */
  --muted:    #425563;             /* NHS slate */
  --line:     #d8dde0;             /* hairline (NHS grey family) */
  --line-2:   #aeb7bd;             /* stronger rule */

  /* ---- NHS blue — tonal scale 50..900 (anchor = --blue = #005eb8) ---- */
  --blue-50:     #e8f1f8;
  --blue-100:    #cfe1f0;
  --blue-200:    #a8c8e4;
  --blue-300:    #79aad6;
  --blue-400:    #4a8bc7;
  --blue-500:    #1f73be;
  --blue-600:    #0072ce;   /* NHS interactive */
  --blue-700:    #00569f;
  --blue:        #005eb8;   /* primary anchor (NHS Blue) */
  --blue-800:    #004a96;
  --blue-deep:   #003087;   /* NHS Dark Blue (900) */
  --blue-900:    #003087;
  --blue-bright: #0072ce;   /* NHS interactive */

  /* ---- single restrained tech accent (AI / live cues + focus only) ---- */
  --cyan:        #00a9ce;   /* NHS aqua */
  --cyan-soft:   #41b6e6;   /* NHS light blue */
  --green-live:  #009639;   /* live indicator (bright NHS green) */
  --red-alert:   #da291c;   /* NHS red */
  --red-ink:     #b8231a;

  /* ---- dark NHS-blue surface scale for the differentiated dark zones ---- */
  --ink-nav:   #002265;   /* deepest top zone */
  --navy-700:  #00409a;
  --navy-800:  #003087;   /* hero mid / device base (NHS Dark Blue) */
  --navy-900:  #002a78;   /* footer top */
  --navy-950:  #001f5c;   /* footer floor (deepest zone) */

  /* ---- dark-panel tokens (names preserved for existing rules) ---- */
  --black:    #002265;            /* deepest dark zone */
  --d-surface:#003a92;            /* device / inner dark surface */
  --d-fg:     #ffffff;
  --d-muted:  #c4d6ee;            /* light on NHS dark blue */
  --d-muted2: #9fb6da;
  --d-line:   rgba(255,255,255,.12);
  --d-line2:  rgba(255,255,255,.20);
  --amber:    #ed8b00;            /* NHS warning */

  /* ---- NHS-blue-tinted shadow + ring system ---- */
  --shadow-sm:  0 1px 2px rgba(35,31,32,.06), 0 1px 1px rgba(35,31,32,.04);
  --shadow-md:  0 8px 24px rgba(0,94,184,.10), 0 2px 6px rgba(35,31,32,.06);
  --shadow-lg:  0 24px 60px rgba(0,48,135,.18), 0 6px 16px rgba(35,31,32,.08);
  --shadow-dark:0 36px 90px rgba(0,20,60,.55), inset 0 1px 0 rgba(255,255,255,.08);
  --ring:       0 0 0 3px rgba(0,94,184,.20);

  /* ---- faint dot texture helpers for dark zones ---- */
  --dot:        radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  --dot-size:   22px 22px;

  --radius-pill: 999px;
  --radius-lg:   24px;
  --radius-md:   16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); line-height: 1.6; font-size: 16px;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.05; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.eyebrow.on-dark { color: var(--d-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 500; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #d6e6f4; }
.btn-dark, .btn-primary { background: var(--blue); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.65); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-clinic { background: #005eb8; color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(0,74,173,.28); }
.btn-clinic:hover { background: #003087; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ---- Nav (always dark) ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--blue); border-bottom: 1px solid var(--d-line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--d-muted); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

main { flex: 1; }

/* ---- Hero (dark) ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(820px 480px at 50% -18%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, #1273cf 0%, var(--blue) 55%, var(--blue-deep) 100%);
}
.hero-grid { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.5rem 6.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 600;
  letter-spacing: -0.045em; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--d-muted); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--d-muted); max-width: 40ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta { margin-top: 2.6rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-meta div b { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; }
.hero-meta div span { font-size: 0.82rem; color: var(--d-muted2); }

/* ColpoPen device frame around the scan screen */
.device { position: relative; padding: 14px; border-radius: 26px;
  background: linear-gradient(160deg, #003a92 0%, #00205e 100%);
  border: 1px solid var(--d-line2);
  box-shadow: 0 36px 80px rgba(0,30,70,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.device-top { display: flex; align-items: center; justify-content: space-between; padding: 1px 8px 10px; }
.device-name { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--d-muted2); }
.device-cam { display: flex; align-items: center; gap: 6px; }
.device-cam i { width: 5px; height: 5px; border-radius: 50%; background: #1f4f97; }
.device-cam i.live { background: #36d399; box-shadow: 0 0 7px #36d399; animation: hudBlink 1.4s ease-in-out infinite; }
.device-foot { display: flex; justify-content: center; padding-top: 11px; }
.device-foot span { width: 46px; height: 4px; border-radius: 3px; background: #00408f; }

/* hero "scan" visual */
.scan { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--d-line2); overflow: hidden; }
.scan-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; }
/* scanline */
.scan-line { position: absolute; left: 0; right: 0; top: 7%; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 22px 2px rgba(255,255,255,.5); }
/* cervix: revealed on the way down, wiped on the way up (JS drives the clip + line together) */
.scan-cervix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; clip-path: inset(0 0 93% 0); }
.scan-cervix .cx-fill   { fill: url(#cxGlow); }
.scan-cervix .cx-ring   { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 0.8; }
.scan-cervix .cx-tz     { stroke-dasharray: 1.6 2.6; stroke: rgba(255,255,255,.3); }
.scan-cervix .cx-target { fill: rgba(255,255,255,.9); }
.scan-cervix .cx-os     { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.65); stroke-width: 1; }
.scan-cervix .cx-lesion { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.85); stroke-width: 1; stroke-dasharray: 2.4 2; }
.scan-cervix .cx-label  { fill: rgba(255,255,255,.62); font: 600 2.6px var(--font); letter-spacing: 0.3px; }
.scan-cervix .cx-leader { stroke: rgba(255,255,255,.32); stroke-width: 0.4; }
/* lesion light-up when the scan line crosses it */
.scan-cervix .cx-lesion { transition: stroke .25s, stroke-opacity .25s, fill .25s; }
.scan-cervix .cx-lesion.hit { stroke: #fff; stroke-opacity: 1; fill: rgba(255,255,255,.16); animation: lesionPulse .6s ease-out; }
.scan-cervix .cx-target { transition: fill .25s; }
.scan-cervix .cx-target.hit { fill: #fff; transform-box: fill-box; transform-origin: center; animation: targetPulse .6s ease-out; }
@keyframes lesionPulse { 0% { stroke-width: 1; } 35% { stroke-width: 2.3; } 100% { stroke-width: 1.2; } }
@keyframes targetPulse { 0% { transform: scale(1); } 35% { transform: scale(2.8); } 100% { transform: scale(1.6); } }

/* scanner HUD */
.scan-hud { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 4; display: flex; align-items: center; gap: 0.45rem;
  background: rgba(0,0,0,.5); border: 1px solid var(--d-line2); border-radius: 999px; padding: 0.28rem 0.72rem;
  font-size: 0.72rem; font-weight: 600; color: #fff; letter-spacing: 0.02em; backdrop-filter: blur(6px); }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: #36d399; box-shadow: 0 0 8px #36d399;
  animation: hudBlink 1.4s ease-in-out infinite; }
@keyframes hudBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scan-tag { position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem; z-index: 4;
  background: rgba(0,0,0,.55); border: 1px solid var(--d-line2); border-radius: 12px;
  padding: 0.9rem 1.1rem; backdrop-filter: blur(6px); }
.scan-tag b { color: #fff; font-size: 0.9rem; display: block; font-weight: 600; }
.scan-tag span { color: var(--d-muted); font-size: 0.8rem; }
.scan-ico { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 4; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.07); color: #fff; }
.scan-ico svg { width: 24px; height: 24px; }

/* ---- Sections (light) ---- */
.section { padding: 6rem 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 600; margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-weight: 600;
  color: var(--muted); background: var(--blue-50); border: 1px solid var(--line); padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill); letter-spacing: 0.02em; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.dev { color: var(--blue); background: var(--blue-50); border-color: var(--blue-100); }
.status.dev .dot { background: var(--blue); }
.status.soon { color: var(--muted); }

/* ColpoPen */
.colpo-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.colpo-head h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); font-weight: 600; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.step-card { background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.9rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.step-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.06); }
.step-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.2rem; }
.step-ico svg { width: 25px; height: 25px; }
.step-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.95rem; }

/* impact band — clinical alert: light panel, red accent */
.impact { background: linear-gradient(135deg, #fdf3f1 0%, #f7f8fa 100%);
  border: 1px solid #f1ddd8; border-left: 3px solid #c0453a; border-radius: var(--radius-lg); padding: 2.6rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.8rem; align-items: center; margin-top: 3rem; }
.impact p { color: var(--ink); font-size: 1.2rem; max-width: 62ch; font-weight: 400; line-height: 1.5; }
.impact p b { color: #b23a2f; font-weight: 600; }

/* MCIR roadmap slider */
.road-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.slider-controls { display: flex; gap: 0.5rem; flex-shrink: 0; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s; }
.slider-btn:hover { border-color: var(--blue); color: var(--blue); }
.slider-btn:active { transform: scale(0.94); }
.slider-btn svg { width: 20px; height: 20px; }
.road { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -ms-overflow-style: none; scrollbar-width: none; }
.road::-webkit-scrollbar { display: none; }
.road-card { flex: 0 0 calc(33.333% - 0.8rem); min-width: 240px; scroll-snap-align: start;
  background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.7rem;
  position: relative; transition: border-color .25s; }
.road-card:hover { border-color: var(--line-2); }
.road-card.first { border-color: var(--blue); }
.road-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1rem; }
.road-ico svg { width: 22px; height: 22px; }
.road-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; }
.road-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.9rem; }
.mcir-note { text-align: center; color: var(--muted); margin-top: 2.2rem; font-size: 1.05rem; }
.mcir-note b { color: var(--ink); font-weight: 600; }

/* clinic strip */
.clinic-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eaf2fd 100%); border: 1px solid #d6e5f9;
  border-radius: var(--radius-lg); padding: 1.8rem 2rem; box-shadow: 0 16px 40px rgba(0,74,173,.12); }
.clinic-strip .cs-ico { width: 50px; height: 50px; border-radius: 12px;
  background: #005eb8; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,74,173,.3); }
.clinic-strip .cs-ico svg { width: 26px; height: 26px; }
.clinic-strip h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }
.clinic-strip p { color: var(--muted); font-size: 0.95rem; }

/* Clinic feature (GP photo) */
.clinic-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.clinic-feature-img img { display: block; width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.12); border: 1px solid var(--line); }
.clinic-feature-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0.4rem 0 0.7rem; }
.clinic-feature-body p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.6rem; max-width: 44ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  padding: 0.9rem 1rem; border-radius: 10px; font-family: inherit; font-size: 0.95rem; transition: border-color .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,74,173,.12); }
.contact-form .btn { width: 100%; margin-top: 0.3rem; }
.form-q { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: -0.5rem; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-chip { padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink); font-family: inherit; font-size: 0.86rem; font-weight: 500; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s; }
.interest-chip:hover { border-color: var(--blue); color: var(--blue); }
.interest-chip.sel { background: var(--blue); color: #fff; border-color: var(--blue); }

/* footer (dark) */
.footer { background: var(--blue); border-top: 1px solid var(--d-line); color: var(--d-muted); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo-img { height: 28px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: var(--d-muted); }
.footer h4 { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul li, .footer ul li a { font-size: 0.86rem; color: var(--d-muted); transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--d-line);
  font-size: 0.8rem; color: var(--d-muted2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; padding: 4rem 1.5rem 4.5rem; }
  /* On mobile, lead with the headline; the scanner follows below it. */
  .hero-copy { order: 0; }
  .hero-visual { order: 1; }
  .steps3 { grid-template-columns: 1fr; }
  .road-card { flex-basis: 46%; }
  .impact { grid-template-columns: 1fr; }
  .clinic-strip { grid-template-columns: 1fr; }
  .clinic-feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .clinic-feature-img { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.4rem; background: var(--d-surface); padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--d-line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: flex; }
  .section { padding: 3.8rem 0; }
  .road-card { flex-basis: 82%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scan-line { display: none; }
  .scan-cervix { clip-path: none; }
}

/* page transitions */
body { transition: opacity .3s ease-in-out; opacity: 1; }
body.page-enter, body.page-transition { opacity: 0; }

/* ============================================================
   MEDSTAKE — DEEP-NAVY CLINICAL-AI (final, appended last → wins)
   Three tiered dark zones + tinted depth + restrained cyan accent.
   All on-dark text WCAG-AA verified (>=7.3:1).
   ============================================================ */

/* ---- Type hierarchy ---- */
h1, h2, h3 { letter-spacing: -0.04em; }

/* ===========================================================
   NAV — near-black navy, faint dot texture, glassy hairline
   =========================================================== */
.nav {
  background: var(--blue);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}
.nav-links a:not(.btn) { color: #d4e3f9; font-weight: 500; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a.btn-light { color: var(--blue-deep); font-weight: 600; }
.nav-links a.btn-light:hover { color: var(--blue-deep); }
.nav-links .btn-dark, .nav-links .btn-primary {
  box-shadow: 0 4px 12px rgba(0,74,173,.45), inset 0 1px 0 rgba(255,255,255,.18);
}

/* ===========================================================
   HERO — rich multi-stop navy→brand gradient + cyan glow + grid
   =========================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--blue);
}
.hero-grid { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 800; letter-spacing: -0.045em;
}
.hero h1 .accent { color: #fff; }
.hero .lead { color: #d2e0f6; }               /* calm, high-contrast on blue */
.hero-meta div b { color: #fff; }
.hero-meta div span { color: var(--d-muted2); letter-spacing: .01em; }
.eyebrow.on-dark { color: var(--cyan-soft); letter-spacing: .16em; }

/* ===========================================================
   DEVICE — deepest inset surface, layered blue-tinted depth
   =========================================================== */
.device {
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-dark);
}
.scan {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
}
.scan-line {
  background: linear-gradient(90deg, transparent, #aee9ee, transparent);
  box-shadow: 0 0 22px 2px rgba(56,189,248,.5);
}
.scan-ico { background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.20); }
.scan-tag span { color: var(--d-muted); }
.device-cam i.live, .hud-dot {
  background: var(--green-live); box-shadow: 0 0 8px var(--green-live);
}

/* ===========================================================
   BUTTONS — refined gradients, soft shadows, clear hover
   =========================================================== */
.btn { font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }

/* solid light button (on dark hero) */
.btn-light {
  background: #ffffff;
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(2,10,28,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
.btn-light:hover {
  background: #d6e6f4;
  transform: translateY(-1px); box-shadow: 0 12px 26px rgba(2,10,28,.34);
}

/* ghost button (on dark) — cyan-tinted hover for tech signal */
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(56,189,248,.08); color: var(--cyan-soft); border-color: rgba(125,211,252,.6); }

/* primary / dark — flat brand blue */
.btn-dark, .btn-primary {
  background: var(--blue);
  color: #fff; border: 1px solid transparent;
  box-shadow: none;
}
.btn-dark:hover, .btn-primary:hover {
  background: var(--blue-deep);
}

/* clinic button — flat brand blue */
.btn-clinic {
  background: var(--blue);
  color: #fff; border: none;
  box-shadow: none;
}
.btn-clinic:hover {
  background: var(--blue-deep);
}

/* light-section secondary ghost */
.btn-ghost-dark { color: var(--ink); border-color: var(--line-2); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* ===========================================================
   ICON TILES + LIGHT CARDS — tonal gradient, ring, soft shadow
   =========================================================== */
.step-ico, .road-ico {
  background: var(--blue-50);
  color: var(--blue);
  border: 1px solid var(--blue-200);
  box-shadow: none;
}
.step-card, .road-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-card:hover { border-color: var(--blue-200); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.road-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.road-card.first { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-md); }

/* status chips + slider buttons */
.status { background: var(--blue-50); border-color: var(--line); color: var(--ink); }
.status.soon .dot { background: var(--blue-500); }
.slider-btn { box-shadow: var(--shadow-sm); }
.slider-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); box-shadow: var(--shadow-md); }

/* ===========================================================
   IMPACT — keep the red urgency accent; refine the (light) band
   =========================================================== */
.impact {
  background: var(--blue-50);
  border: 1px solid var(--blue-100); border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-md);
}
.impact p b { color: var(--red-ink); }   /* only the emphasised text stays red */

/* ===========================================================
   FORMS — cyan-aware blue focus ring
   =========================================================== */
.contact-form { box-shadow: var(--shadow-md); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: var(--ring); }
.interest-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.interest-chip.sel {
  background: var(--blue);
  border-color: var(--blue); color: #fff;
  box-shadow: 0 4px 12px rgba(0,74,173,.25);
}

/* ===========================================================
   FOOTER — deepest navy to ground the page, faint dots
   =========================================================== */
.footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--d-muted);
}
.footer h4 { color: #fff; letter-spacing: .01em; }
.footer-brand p, .footer ul li, .footer ul li a { color: var(--d-muted); }
.footer ul li a:hover { color: #fff; }
.footer-bottom { color: var(--d-muted2); border-top: 1px solid rgba(255,255,255,.07); }

/* ===========================================================
   Responsive + motion
   =========================================================== */
@media (max-width: 600px) {
  .nav-links { background: var(--blue); border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .device-cam i.live, .hud-dot, .scan-line { animation: none !important; }
}
