/* Medical TV Studio — Enterprise UI System
   Lightweight, no build tooling required. */

:root{
  --bg: #0b1220;
  --bg2:#0f172a;
  --panel:#0f1a30;
  --text:#0b1220;
  --muted:#475569;
  --white:#ffffff;
  --slate50:#f8fafc;
  --slate100:#f1f5f9;
  --slate200:#e2e8f0;
  --slate300:#cbd5e1;
  --slate600:#475569;
  --slate800:#1f2937;
  --brand:#0f172a;
  --accent:#f43f5e;
  --accent2:#e11d48;
  --ok:#059669;
  --warn:#f59e0b;

  --radius: 22px;
  --shadow: 0 18px 60px rgba(2,6,23,.14);
  --shadow2: 0 10px 30px rgba(2,6,23,.18);
  --max: 1180px;
  --ring: 0 0 0 4px rgba(244,63,94,.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--slate800);
  background: var(--slate50);
  line-height:1.55;
  text-rendering: optimizeLegibility;
}
a{color:inherit}
img{max-width:100%; height:auto}
svg{display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{left:16px;top:16px;width:auto;height:auto;z-index:9999;background:var(--white);padding:10px 14px;border-radius:12px;box-shadow:var(--shadow2)}
/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(15,23,42,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand-badge{
  width:42px; height:42px; border-radius:14px;
  background: radial-gradient(70% 70% at 30% 20%, rgba(244,63,94,.9), rgba(225,29,72,.7) 40%, rgba(15,23,42,1) 100%);
  box-shadow: 0 12px 35px rgba(244,63,94,.22);
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.08);
}
.brand-name{font-weight:900; letter-spacing:-.02em; color:var(--white); font-size:18px}
.brand-sub{color:rgba(226,232,240,.72); font-weight:600; font-size:12px; letter-spacing:.12em; text-transform:uppercase}
.nav-links{display:flex; gap:18px; align-items:center}
.nav-links a{
  color:rgba(226,232,240,.78);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  letter-spacing:.02em;
  padding:10px 10px;
  border-radius:12px;
}
.nav-links a:hover{color:var(--white); background: rgba(255,255,255,.06)}
.nav-cta{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius:999px;
  padding:12px 16px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.02em;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  white-space:nowrap;
}
.btn-primary{background:var(--accent); color:var(--white); box-shadow: 0 14px 45px rgba(244,63,94,.20)}
.btn-primary:hover{background:var(--accent2)}
.btn-ghost{background: rgba(255,255,255,.06); color:var(--white); border-color: rgba(255,255,255,.12)}
.btn-ghost:hover{background: rgba(255,255,255,.10)}
.btn:focus-visible{outline:none; box-shadow: var(--ring)}
.icon{
  width:18px; height:18px; fill:currentColor; flex:0 0 auto;
}
/* Mobile */
.hamburger{display:none;background:transparent;border:0;color:var(--white);padding:10px;border-radius:14px}
.hamburger:hover{background: rgba(255,255,255,.06)}
.mobile-panel{
  display:none;
  padding:14px 0 18px;
}
.mobile-links{
  display:flex; flex-direction:column; gap:8px;
  padding: 6px 0 12px;
}
.mobile-links a{
  text-decoration:none;
  padding:12px 12px;
  border-radius:14px;
  font-weight:800;
  color:rgba(226,232,240,.82);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.mobile-links a:hover{color:var(--white); border-color: rgba(244,63,94,.35)}
/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(244,63,94,.22), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(56,189,248,.14), transparent 55%),
              linear-gradient(180deg, #0b1220 0%, #0f172a 70%, #0b1220 100%);
  color: var(--white);
  padding: 64px 0 40px;
}
.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity:.25;
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding: 28px 0 34px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(226,232,240,.88);
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-size:11px;
}
.dot{width:10px;height:10px;border-radius:999px;background:var(--accent); box-shadow: 0 0 0 6px rgba(244,63,94,.18)}
h1{margin:14px 0 10px; font-size: clamp(34px, 4.2vw, 56px); line-height:1.05; letter-spacing:-.03em}
.hero p{margin: 12px 0 0; color: rgba(226,232,240,.78); font-size: clamp(15px, 1.6vw, 18px)}
.hero-actions{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap}
.hero-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.22);
}
.metric-grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:12px}
.metric{
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
}
.metric .num{font-weight:900; font-size:20px; letter-spacing:-.02em}
.metric .lbl{color:rgba(226,232,240,.70); font-weight:700; font-size:12px; margin-top:2px}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(226,232,240,.82);
  font-weight:800;
  font-size:12px;
}

/* Sections */
.section{padding: 62px 0}
.section h2{
  font-size: 12px; letter-spacing:.18em; text-transform:uppercase;
  color: var(--accent2); margin: 0 0 10px; font-weight:900;
}
.section h3{
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing:-.02em;
  margin:0 0 10px;
}
.lead{max-width:780px; color: var(--slate600); font-weight:600}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:22px}
.grid-2{display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; margin-top:22px}
.card{
  background: var(--white);
  border: 1px solid var(--slate200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h4{margin: 8px 0 8px; font-size:18px; letter-spacing:-.01em}
.card p{margin:0; color: var(--slate600); font-weight:600}
.card .mini{display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:900; color: var(--accent2); letter-spacing:.12em; text-transform:uppercase}
.card .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  background: var(--slate100);
  border:1px solid var(--slate200);
  font-weight:800; font-size:12px; color: var(--slate800);
}
.card a.inline{
  color: var(--accent2);
  font-weight:900;
  text-decoration:none;
}
.card a.inline:hover{text-decoration:underline}
.list{
  margin: 12px 0 0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:10px;
}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  color: var(--slate600);
  font-weight:650;
}
.check{
  width:20px; height:20px; border-radius:8px;
  background: rgba(5,150,105,.12);
  border: 1px solid rgba(5,150,105,.22);
  display:grid; place-items:center;
  flex:0 0 auto;
  margin-top:2px;
}
.check svg{width:14px;height:14px;stroke:var(--ok);fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
/* Process */
.timeline{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:22px;
}
.step{
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.step::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 240px at 30% 0%, rgba(244,63,94,.10), transparent 60%);
  pointer-events:none;
}
.step .n{
  width:40px;height:40px;border-radius:14px;
  background: var(--brand);
  color: var(--white);
  display:grid; place-items:center;
  font-weight:900;
  margin-bottom:10px;
  border: 1px solid rgba(255,255,255,.08);
}
.step h4{margin:0 0 6px; font-size:18px}
.step p{margin:0; color: var(--slate600); font-weight:600}

/* Testimonials */
.quote{
  background: var(--bg2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 120px rgba(2,6,23,.35);
}
.quote p{margin:0; color: rgba(226,232,240,.82); font-weight:600; font-size:15px}
.quote .who{margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.who strong{font-weight:900}
.who span{color: rgba(226,232,240,.66); font-weight:700; font-size:12px}

/* CTA / Contact */
.cta{
  background: linear-gradient(135deg, rgba(244,63,94,.14), rgba(15,23,42,1));
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 140px rgba(2,6,23,.35);
  padding: 24px;
  overflow:hidden;
  position:relative;
}
.cta::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 400px at 20% 10%, rgba(244,63,94,.30), transparent 60%),
              radial-gradient(600px 400px at 80% 30%, rgba(56,189,248,.20), transparent 55%);
  opacity:.8;
  pointer-events:none;
}
.cta .inner{position:relative; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start}
.field{
  display:flex; flex-direction:column; gap:6px;
}
label{font-weight:900; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: rgba(226,232,240,.80)}
input, select, textarea{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: var(--white);
  padding: 12px 14px;
  font-weight:700;
  outline:none;
}
textarea{min-height:120px; resize:vertical}
input::placeholder, textarea::placeholder{color: rgba(226,232,240,.55); font-weight:650}
input:focus, select:focus, textarea:focus{box-shadow: var(--ring); border-color: rgba(244,63,94,.55)}
.form-grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.hint{color: rgba(226,232,240,.72); font-weight:650; font-size:13px}
.small{font-size:12px;color: rgba(226,232,240,.66); font-weight:650}
.success{display:none; margin-top:10px; padding:12px 14px; border-radius:16px; background: rgba(5,150,105,.14); border:1px solid rgba(5,150,105,.22); color: rgba(236,253,245,.9); font-weight:800}
.success.show{display:block}
.copy-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px}

/* Footer */
.footer{
  background: #070d18;
  color: rgba(226,232,240,.85);
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid{display:grid; grid-template-columns: 1.4fr .8fr .8fr; gap:18px}
.footer h5{margin:0 0 10px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: rgba(226,232,240,.62)}
.footer a{color: rgba(226,232,240,.82); text-decoration:none; font-weight:750}
.footer a:hover{color: var(--white); text-decoration:underline}
.footer .muted{color: rgba(226,232,240,.60); font-weight:650; font-size:13px}
.social{display:flex; gap:10px; margin-top:10px}
.social a{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.social a:hover{background: rgba(244,63,94,.16); border-color: rgba(244,63,94,.40)}
/* Search modal */
.search-backdrop{
  position:fixed; inset:0; z-index:80;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(10px);
  display:none;
}
.search-modal{
  position:fixed; left:50%; top:10%;
  transform: translateX(-50%);
  z-index:81;
  width:min(860px, calc(100% - 28px));
  border-radius: 28px;
  background: #0b1220;
  color: var(--white);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 160px rgba(0,0,0,.45);
  display:none;
  overflow:hidden;
}
.search-head{padding:16px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.10); display:flex; align-items:center; justify-content:space-between; gap:10px}
.search-head strong{font-weight:900; letter-spacing:-.01em}
.search-input{
  width:100%;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--white);
  padding: 12px 14px;
  font-weight:800;
  margin-top:10px;
}
.search-body{max-height: 62vh; overflow:auto; padding: 10px 16px 16px}
.search-item{
  display:flex; justify-content:space-between; gap:12px;
  padding: 12px 12px; border-radius: 18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  margin-top:10px;
}
.search-item:hover{border-color: rgba(244,63,94,.40); background: rgba(244,63,94,.10)}
.search-item .t{font-weight:900}
.search-item .d{color: rgba(226,232,240,.70); font-weight:650; font-size:12px}

/* Utilities */
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.divider{height:1px;background:var(--slate200); margin: 20px 0}
kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.88);
}
/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap:18px}
  .cta .inner{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .timeline{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .nav-links{display:none}
  .nav-cta .btn-ghost{display:none}
  .hamburger{display:inline-flex}
  .mobile-panel{display:block}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation:none!important; transition:none!important}
}

/* =========================
   Studio UX Upgrade v2
   - Active nav + breadcrumbs
   - Page sub-navigation chips
   - Better hover/focus + filters + FAQ
   ========================= */

:focus-visible{outline:none; box-shadow: var(--ring); border-radius: 12px}

.header[data-scrolled="1"]{
  background: rgba(15,23,42,.92);
  box-shadow: 0 10px 40px rgba(2,6,23,.18);
}

.nav-links a.active,
.nav-links a[aria-current="page"]{
  color: var(--white);
  background: rgba(244,63,94,.16);
  box-shadow: inset 0 0 0 1px rgba(244,63,94,.35);
}

.mobile-links a.active,
.mobile-links a[aria-current="page"]{
  color: var(--white);
  border-color: rgba(244,63,94,.45);
  background: rgba(244,63,94,.12);
}

.btn, .card, .nav-links a, .mobile-links a, .search-item{
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

.page-hero{
  padding: 44px 0 12px;
  background:
    radial-gradient(900px 360px at 18% 10%, rgba(244,63,94,.10), transparent 60%),
    radial-gradient(800px 360px at 82% 0%, rgba(56,189,248,.08), transparent 55%);
}
.page-hero .title{
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing:-.02em;
  margin: 8px 0 10px;
}
.page-hero .desc{max-width: 860px; color: var(--slate600); font-weight:650}

.breadcrumbs{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-size:12px;
  color: var(--slate600);
  font-weight:800;
  letter-spacing:.02em;
}
.breadcrumbs a{
  text-decoration:none;
  color: var(--slate600);
}
.breadcrumbs a:hover{
  color: var(--accent2);
  text-decoration:underline;
}
.breadcrumbs .sep{opacity:.55}

.subnav{
  position:sticky;
  top:74px;
  z-index:30;
  margin-top: 18px;
  padding: 12px 0;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate200);
  border-bottom: 1px solid var(--slate200);
}
.subnav .row{gap:10px}
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate200);
  color: var(--slate800);
  text-decoration:none;
  font-weight:900;
  font-size:12px;
}
.chip:hover{border-color: rgba(244,63,94,.35); color: var(--accent2)}
.chip.active{background: rgba(244,63,94,.10); border-color: rgba(244,63,94,.40); color: var(--accent2)}

.filters{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  margin-top: 18px;
}
.filter-btn{
  appearance:none;
  border: 1px solid var(--slate200);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight:900;
  font-size:12px;
  color: var(--slate800);
  cursor:pointer;
}
.filter-btn:hover{border-color: rgba(244,63,94,.35); color: var(--accent2)}
.filter-btn.active{background: rgba(244,63,94,.10); border-color: rgba(244,63,94,.40); color: var(--accent2)}

.callout{
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate200);
  border-radius: calc(var(--radius) + 8px);
  padding: 18px;
  box-shadow: var(--shadow);
}
.callout strong{font-weight:900}
.callout .muted{color: var(--slate600); font-weight:650}

.faq{
  background: var(--white);
  border: 1px solid var(--slate200);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.faq + .faq{margin-top:12px}
.faq summary{
  cursor:pointer;
  list-style:none;
  font-weight:900;
  color: var(--slate800);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary .plus{
  width:28px; height:28px;
  border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--slate200);
  background: var(--slate50);
  flex: 0 0 auto;
}
.faq[open] summary .plus{background: rgba(244,63,94,.10); border-color: rgba(244,63,94,.35)}
.faq .a{
  margin-top:10px;
  color: var(--slate600);
  font-weight:650;
}

.article-meta{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin-top: 10px;
  color: var(--slate600);
  font-weight:800;
  font-size:12px;
}
.article-meta .pill{
  background: var(--slate100);
  border: 1px solid var(--slate200);
  border-radius:999px;
  padding:6px 10px;
}

@media (max-width: 980px){
  .subnav{top:74px}
  .page-hero{padding-top: 34px}
}

@media (prefers-reduced-motion: reduce){
  .btn, .card, .nav-links a, .mobile-links a, .search-item{transition:none!important}
  .card:hover{transform:none}
}

/* Link cards */
.card-link{display:block; text-decoration:none; color:inherit}
.card-link:hover{text-decoration:none}
