/* ============================================================
   Medremedio — PROFESSIONAL DESIGN SYSTEM
   Human-designed. No glassmorphism. No glow. No AI templates.
   Reference: Carbon Health, One Medical, Ro, Forward Health
   ============================================================ */

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --c-white:      #FFFFFF;
  --c-bg:         #FFFFFF;
  --c-bg-warm:    #F7F5EE;   /* alternating warm off-white */
  --c-bg-tint:    #EEF3FF;   /* very light blue tint */
  --c-bg-dark:    #0E1726;   /* footer + CTA sections    */
  --c-bg-dark-2:  #162032;   /* slightly lighter dark    */

  /* Brand */
  --c-blue:       #1A56DB;
  --c-blue-dark:  #1347C5;
  --c-blue-mid:   #2563EB;
  --c-blue-tint:  #EEF2FF;
  --c-green:      #059669;
  --c-green-tint: #ECFDF5;
  --c-red:        #DC2626;
  --c-amber:      #D97706;

  /* Text */
  --c-heading:    #0E1726;
  --c-body:       #4B5563;
  --c-body-dark:  #1F2937;
  --c-muted:      #9CA3AF;
  --c-light-text: #D1D5DB; /* on dark backgrounds */

  /* Structure */
  --c-border:     #E5E7EB;
  --c-border-md:  #D1D5DB;
  --c-border-dark: rgba(255,255,255,0.1);

  /* Typography */
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Shadows — real depth, no glow */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 28px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.05);

  /* Radius — restrained, professional */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Spacing */
  --nav-h: 68px;
  --section-py: 96px;
  --section-py-sm: 64px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t:        0.2s ease;
  --t-slow:   0.35s ease;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border-md); border-radius: 3px; }

/* ─── Container ───────────────────────────────────────────── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--sm    { max-width: 820px;  margin: 0 auto; padding: 0 32px; }
.container--wide  { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--c-body);
  line-height: 1.75;
  max-width: 560px;
}

.overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 12px;
}

.text-blue   { color: var(--c-blue); }
.text-green  { color: var(--c-green); }
.text-muted  { color: var(--c-muted); }
.text-center { text-align: center; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn--primary {
  background: var(--c-blue);
  color: #fff;
  border: 1.5px solid var(--c-blue);
}
.btn--primary:hover {
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--c-heading);
  border: 1.5px solid var(--c-border-md);
}
.btn--outline:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: var(--c-blue-tint);
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--c-body-dark);
  border: 1.5px solid transparent;
  padding-left: 4px;
  padding-right: 4px;
}
.btn--ghost:hover { color: var(--c-blue); }
.btn--sm  { padding: 9px 18px; font-size: 0.87rem; }
.btn--lg  { padding: 16px 36px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ─── Tags / Badges ───────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-body-dark);
}
.tag--blue  { background: var(--c-blue-tint); border-color: #bfdbfe; color: var(--c-blue); }
.tag--green { background: var(--c-green-tint); border-color: #a7f3d0; color: var(--c-green); }

/* ─── Card ────────────────────────────────────────────────── */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--t);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border-md);
  transform: translateY(-2px);
}

/* ─── Icon boxes ──────────────────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.icon-box--blue   { background: var(--c-blue-tint); }
.icon-box--green  { background: var(--c-green-tint); }
.icon-box--warm   { background: #FEF3C7; }
.icon-box--rose   { background: #FFF1F2; }
.icon-box--slate  { background: #F1F5F9; }

/* ─── Checklist ───────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; line-height: 1.55;
  color: var(--c-body-dark);
}
.checklist__mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-green-tint);
  border: 1.5px solid #6EE7B7;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: var(--c-green);
  flex-shrink: 0; margin-top: 2px;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--c-border); border: none; }

/* ─── Section spacing ─────────────────────────────────────── */
.section     { padding: var(--section-py) 0; }
.section--sm { padding: var(--section-py-sm) 0; }
.section--warm { padding: var(--section-py) 0; background: var(--c-bg-warm); }
.section--dark { padding: var(--section-py) 0; background: var(--c-bg-dark); }
.section__header { margin-bottom: 52px; }
.section__header--center { text-align: center; }
.section__header--center .section-sub { margin: 0 auto; }

/* ─── Stat card ───────────────────────────────────────────── */
.stat-card {
  padding: 28px 24px; text-align: center;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.stat-card__value {
  display: block;
  font-size: 2.4rem; font-weight: 800;
  color: var(--c-heading);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-card__value .accent { color: var(--c-blue); }
.stat-card__label {
  font-size: 0.88rem;
  color: var(--c-body);
  font-weight: 500;
}

.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ─── Testimonial card ────────────────────────────────────── */
.tcard {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--t);
}
.tcard:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-md); }
.tcard__stars { color: #F59E0B; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.tcard__quote { font-size: 0.95rem; line-height: 1.72; color: var(--c-body-dark); margin-bottom: 20px; }
.tcard__author { display: flex; align-items: center; gap: 12px; }
.tcard__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem; color: #fff;
  flex-shrink: 0;
}
.tcard__name { font-size: 0.88rem; font-weight: 700; color: var(--c-heading); margin-bottom: 1px; }
.tcard__role { font-size: 0.78rem; color: var(--c-muted); }

/* ─── Accordion ───────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; }
.accordion__item { border-bottom: 1px solid var(--c-border); }
.accordion__item:first-child { border-top: 1px solid var(--c-border); }
.accordion__header {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 16px; user-select: none;
}
.accordion__question { font-size: 0.97rem; font-weight: 600; color: var(--c-heading); }
.accordion__chevron {
  width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid var(--c-border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--c-body); transition: var(--t);
  flex-shrink: 0;
}
.accordion__item.open .accordion__chevron { transform: rotate(180deg); border-color: var(--c-blue); color: var(--c-blue); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.32s ease, padding 0.32s ease; }
.accordion__item.open .accordion__body { max-height: 400px; padding-bottom: 18px; }
.accordion__answer { font-size: 0.92rem; color: var(--c-body); line-height: 1.75; }

/* ─── Comparison table ────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.88rem; }
.compare-table th { background: var(--c-bg-warm); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.compare-table th:nth-child(2) { color: var(--c-blue); }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { color: var(--c-body-dark); font-weight: 500; }
.compare-table tr:hover td { background: #FAFAF6; }
.compare-table tr:last-child td { border-bottom: none; }
.cy  { color: var(--c-green);  font-weight: 700; font-size: 1rem; }
.cn  { color: var(--c-muted); font-size: 1rem; }
.cp  { color: var(--c-amber); font-weight: 600; font-size: 0.82rem; }
.cv  { color: var(--c-heading); font-weight: 600; font-size: 0.85rem; }
.cat-row td {
  background: var(--c-bg-warm);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-body);
  padding: 9px 18px;
}

/* ─── Tab buttons ─────────────────────────────────────────── */
.tab-nav { display: flex; border-bottom: 1px solid var(--c-border); gap: 0; }
.tab-btn {
  padding: 11px 20px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--c-body); background: transparent; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--t); cursor: pointer;
}
.tab-btn:hover { color: var(--c-heading); }
.tab-btn.active { color: var(--c-blue); border-bottom-color: var(--c-blue); }

/* ─── Form fields ─────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--c-body-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--c-heading);
  font-family: inherit;
  outline: none;
  transition: var(--t);
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.10);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-muted); }
.form-note { font-size: 0.78rem; color: var(--c-muted); text-align: center; }

/* ─── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--c-bg-dark);
  border-radius: var(--r-2xl);
  padding: 72px 64px;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.cta-banner__sub {
  font-size: 1.05rem;
  color: var(--c-light-text);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-banner__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-banner__note { font-size: 0.8rem; color: var(--c-muted); margin-top: 16px; }

/* ─── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--c-white);
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.nav.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-xs);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--c-heading); flex-shrink: 0;
}
.nav__logo-mark {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  perspective: 400px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: visible;
}
.nav__logo-mark::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.4), rgba(5, 150, 105, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: blur(6px);
}
.nav__logo:hover .nav__logo-mark {
  transform: translateY(-2px) rotateX(8deg) rotateY(-10deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  border-color: rgba(37, 99, 235, 0.5);
}
.nav__logo:hover .nav__logo-mark::after {
  opacity: 1;
  filter: blur(8px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links li {
  display: flex;
  align-items: center;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--c-body);
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.nav__link:hover {
  color: var(--c-heading);
  background: var(--c-bg-warm);
}
.nav__link.active {
  color: var(--c-blue);
  font-weight: 600;
  background: var(--c-blue-tint);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-heading);
  border-radius: 2px;
  transition: var(--t);
}

/* ─── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-heading);
  padding: 12px 0;
  transition: var(--t);
  text-decoration: none;
}
.mobile-menu__link:hover {
  color: var(--c-blue);
}
.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.3rem;
  color: var(--c-muted);
  cursor: pointer;
  padding: 8px;
}

.med-logo-svg {
  width: 28px; height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.4s ease;
}
.nav__logo:hover .med-logo-svg {
  animation: logoFloat3D 2.5s ease-in-out infinite alternate;
}

@keyframes logoFloat3D {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-2px) rotate(3deg) scale(1.04); }
  100% { transform: translateY(1px) rotate(-2deg) scale(0.98); }
}

.footer__logo-mark {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.footer__logo-mark .med-logo-svg {
  width: 24px; height: 24px;
}
.footer__tagline { font-size: 0.88rem; color: var(--c-light-text); line-height: 1.65; margin-bottom: 24px; max-width: 260px; }
.footer__socials { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--c-light-text);
  transition: var(--t);
}
.social-icon:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.footer__col-title {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: 0.88rem; color: var(--c-light-text); transition: var(--t); }
.footer__link:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px; border-top: 1px solid var(--c-border-dark);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__copy { font-size: 0.82rem; color: var(--c-muted); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-link { font-size: 0.82rem; color: var(--c-muted); transition: var(--t); }
.footer__legal-link:hover { color: var(--c-light-text); }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(14,23,38,0.5);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 44px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(0.92) translateY(16px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--c-muted);
  cursor: pointer; transition: var(--t);
}
.modal__close:hover { background: var(--c-bg-warm); color: var(--c-heading); }
.modal__logo { font-size: 1.6rem; margin-bottom: 12px; }
.modal__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: var(--c-heading); }
.modal__sub { font-size: 0.92rem; color: var(--c-body); margin-bottom: 26px; line-height: 1.55; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  :root { --section-py: 72px; }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__actions .btn--outline { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 48px 24px; }
  .section__header { margin-bottom: 36px; }
}

/* ============================================================
   ENTERPRISE HEALTHCARE AI COMPONENTS (NO GLASSMORPHISM)
   ============================================================ */

/* ─── 9-Node Architecture Flow ────────────────────────────── */
.arch-container {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: 44px 32px;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}
.arch-nodes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 1024px) {
  .arch-nodes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .arch-nodes-grid { grid-template-columns: 1fr 1fr; }
}

.arch-node {
  background: var(--c-bg-warm);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.arch-node:hover, .arch-node.active {
  border-color: var(--c-blue);
  background: var(--c-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.arch-node.active {
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12), var(--shadow-md);
}
.arch-node__num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.arch-node__icon { font-size: 1.4rem; margin-bottom: 6px; }
.arch-node__title { font-size: 0.86rem; font-weight: 700; color: var(--c-heading); line-height: 1.25; }

.arch-detail-panel {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--c-bg-tint);
  border: 1px solid #bfdbfe;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}
.arch-detail-panel__info { flex: 1; }
.arch-detail-panel__title { font-size: 1.15rem; font-weight: 800; color: var(--c-heading); margin-bottom: 6px; }
.arch-detail-panel__desc { font-size: 0.92rem; color: var(--c-body); line-height: 1.6; }

/* ─── Explainable AI (XAI) Cards ───────────────────────────── */
.xai-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.xai-card:hover {
  border-color: var(--c-blue);
  box-shadow: var(--shadow-md);
}
.xai-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.xai-confidence {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-green-tint); border: 1px solid #a7f3d0;
  color: var(--c-green); font-weight: 700; font-size: 0.8rem;
  padding: 4px 12px; border-radius: var(--r-full);
}
.xai-urgency {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FEE2E2; border: 1px solid #FCA5A5;
  color: #DC2626; font-weight: 700; font-size: 0.8rem;
  padding: 4px 12px; border-radius: var(--r-full);
}
.xai-factors { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.xai-factor-chip {
  background: var(--c-bg-warm); border: 1px solid var(--c-border);
  font-size: 0.78rem; font-weight: 600; color: var(--c-body-dark);
  padding: 3px 10px; border-radius: var(--r-sm);
}
.xai-evidence {
  font-size: 0.82rem; color: var(--c-muted);
  border-left: 2px solid var(--c-blue); padding-left: 10px;
  margin-top: 14px; line-height: 1.5;
}

/* ─── Before & After Workflow Sliders ───────────────────────── */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ba-side { padding: 24px; }
.ba-side--before { background: #FEF2F2; border-bottom: 1px solid #FEE2E2; }
.ba-side--after { background: var(--c-green-tint); }
.ba-badge { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
.ba-side--before .ba-badge { color: #DC2626; }
.ba-side--after .ba-badge { color: var(--c-green); }
.ba-metric { font-size: 1.8rem; font-weight: 800; color: var(--c-heading); letter-spacing: -0.02em; margin-bottom: 4px; }
.ba-desc { font-size: 0.86rem; color: var(--c-body); line-height: 1.5; }

/* ─── Roadmap Badges ───────────────────────────────────────── */
.roadmap-tag {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.05em;
}
.roadmap-tag--live { background: var(--c-green-tint); color: var(--c-green); border: 1px solid #a7f3d0; }
.roadmap-tag--beta { background: var(--c-blue-tint); color: var(--c-blue); border: 1px solid #bfdbfe; }
.roadmap-tag--research { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }

