/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;
  --violet-950: #2e1065;

  --teal-500: #14b8a6;
  --red-500:  #ef4444;
  --pink-500: #ec4899;
  --sky-500:  #0ea5e9;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / .10), 0 1px 2px -1px rgb(0 0 0 / .10);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .10), 0 2px 4px -2px rgb(0 0 0 / .10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .10), 0 4px 6px -4px rgb(0 0 0 / .10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .10), 0 8px 10px -6px rgb(0 0 0 / .10);

  --radius:    0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--violet-700);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--violet-600); outline-offset: 3px; }

.btn-primary {
  background: var(--violet-700);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-white {
  background: var(--white);
  color: var(--violet-700);
  box-shadow: var(--shadow-lg);
}
.btn-lg {
  padding: .875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  color: var(--gray-900);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-links a {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--gray-900); background: var(--gray-100); }

.nav .btn-primary { margin-left: .5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: .375rem;
  border-radius: var(--radius);
  color: var(--gray-700);
}
.nav-toggle:hover { background: var(--gray-100); }

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--gray-700);
}
.mobile-nav a:hover { background: var(--gray-100); }
.mobile-nav .btn-primary {
  display: inline-flex;
  margin-top: .5rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--violet-950) 0%, var(--violet-900) 45%, var(--violet-800) 100%);
  padding: 6rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--violet-200);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-h1-accent {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
}

.hero-actions { margin-bottom: 2rem; }

.hero-specialties {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-specialties-label {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3125rem .75rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
}
.pill-gp     { background: rgba(109,40,217,.3); color: #c4b5fd; border: 1px solid rgba(167,139,250,.3); }
.pill-cardio { background: rgba(239,68,68,.25);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.pill-gyn    { background: rgba(236,72,153,.25); color: #f9a8d4; border: 1px solid rgba(236,72,153,.3); }
.pill-dental { background: rgba(14,165,233,.25); color: #7dd3fc; border: 1px solid rgba(14,165,233,.3); }

/* ============================================================
   App Mockup (Hero Visual)
   ============================================================ */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-window {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-dot-red    { background: #ff5f57; }
.mockup-dot-yellow { background: #ffbd2e; }
.mockup-dot-green  { background: #28ca41; }
.mockup-urlbar {
  margin-left: .5rem;
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: .25rem .75rem;
  font-size: .75rem;
  color: var(--gray-500);
  text-align: center;
}

.mockup-body {
  display: flex;
  height: 320px;
}

.mockup-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: #4c1d95;
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.mockup-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .5rem .75rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.mockup-brand-icon {
  width: 24px; height: 24px;
  background: rgba(255,255,255,.3);
  border-radius: 6px;
  flex-shrink: 0;
}
.mockup-brand-text {
  height: 8px; width: 60px;
  background: rgba(255,255,255,.5);
  border-radius: 4px;
}
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .625rem;
  border-radius: 6px;
  cursor: default;
}
.mockup-nav-icon {
  width: 14px; height: 14px;
  background: rgba(255,255,255,.3);
  border-radius: 3px;
  flex-shrink: 0;
}
.mockup-nav-label {
  font-size: .6875rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.mockup-nav-active { background: rgba(255,255,255,.15); }
.mockup-nav-active .mockup-nav-icon  { background: rgba(255,255,255,.7); }
.mockup-nav-active .mockup-nav-label { color: rgba(255,255,255,.9); }

.mockup-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  overflow: hidden;
}
.mockup-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-content-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-800);
}
.mockup-badge-live {
  font-size: .625rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: .125rem .5rem;
}

.mockup-queue { display: flex; flex-direction: column; gap: .375rem; }
.mockup-queue-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: .5rem .625rem;
}
.mockup-queue-num {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--violet-700);
  width: 22px;
  flex-shrink: 0;
}
.mockup-queue-info { flex: 1; min-width: 0; }
.mockup-queue-name {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.mockup-queue-type {
  font-size: .5625rem;
  color: var(--gray-500);
}
.mockup-status-active    { font-size: .5625rem; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 999px; padding: .125rem .5rem; white-space: nowrap; }
.mockup-status-waiting   { font-size: .5625rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: .125rem .5rem; white-space: nowrap; }
.mockup-status-scheduled { font-size: .5625rem; font-weight: 700; color: #1d4ed8; background: #dbeafe; border-radius: 999px; padding: .125rem .5rem; white-space: nowrap; }

.mockup-stats-row {
  display: flex;
  gap: .5rem;
  margin-top: auto;
}
.mockup-stat-card {
  flex: 1;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius);
  padding: .5rem .625rem;
  text-align: center;
}
.mockup-stat-n {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--violet-700);
}
.mockup-stat-l {
  font-size: .5625rem;
  color: var(--gray-500);
  margin-top: .125rem;
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--gray-900);
  padding: 1.25rem 0;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat-item {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
}
.stat-item strong {
  color: var(--white);
  font-weight: 700;
}
.stat-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,.15);
}

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: .875rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ============================================================
   Features Grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-200);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius);
  color: var(--violet-700);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
  line-height: 1.35;
}
.feature-desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================
   Specialties Grid
   ============================================================ */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.specialty-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.specialty-gp::before     { background: var(--violet-700); }
.specialty-cardio::before { background: var(--red-500); }
.specialty-gyn::before    { background: var(--pink-500); }
.specialty-dental::before { background: var(--sky-500); }

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

.specialty-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  margin-bottom: 1.125rem;
}
.specialty-icon-gp     { background: var(--violet-50); color: var(--violet-700); }
.specialty-icon-cardio { background: #fef2f2; color: var(--red-500); }
.specialty-icon-gyn    { background: #fdf2f8; color: var(--pink-500); }
.specialty-icon-dental { background: #f0f9ff; color: var(--sky-500); }

.specialty-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .875rem;
}

.specialty-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.specialty-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.specialty-features li::before {
  content: '✓';
  font-size: .75rem;
  font-weight: 700;
  color: var(--violet-600);
  margin-top: .1rem;
  flex-shrink: 0;
}
.specialty-cardio  .specialty-features li::before { color: var(--red-500); }
.specialty-gyn     .specialty-features li::before { color: var(--pink-500); }
.specialty-dental  .specialty-features li::before { color: var(--sky-500); }

/* ============================================================
   Roles Grid
   ============================================================ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.role-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }

.role-card-featured {
  border-color: var(--violet-200);
  box-shadow: 0 0 0 1px var(--violet-200), var(--shadow-md);
}

.role-featured-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--violet-700), var(--violet-600));
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  white-space: nowrap;
}

.role-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}
.role-icon-doctor    { background: var(--violet-50); color: var(--violet-700); }
.role-icon-secretary { background: #f0fdfa; color: #0d9488; }
.role-icon-admin     { background: var(--gray-100); color: var(--gray-600); }

.role-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.role-desc {
  font-size: .9375rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.role-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.role-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--gray-600);
}
.role-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-400);
  margin-top: .45rem;
  flex-shrink: 0;
}

/* ============================================================
   Feature Spotlights
   ============================================================ */
.spotlight { padding: 5rem 0; }
.spotlight-flip .spotlight-inner { direction: rtl; }
.spotlight-flip .spotlight-inner > * { direction: ltr; }

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.spotlight-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--violet-600);
  margin-bottom: .875rem;
}
.spotlight-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.spotlight-desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
}
.spotlight-list li svg {
  flex-shrink: 0;
  color: var(--violet-600);
  margin-top: .1rem;
}

/* ============================================================
   Queue Demo (Spotlight 1 Visual)
   ============================================================ */
.queue-demo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.queue-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--gray-900);
}
.live-badge {
  font-size: .75rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: .25rem .625rem;
}
.queue-demo-list { padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.queue-demo-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: .875rem 1rem;
}
.queue-demo-item-scheduled { background: #f8faff; border-color: #e0e7ff; }

.queue-num {
  font-size: .875rem;
  font-weight: 800;
  color: var(--violet-700);
  width: 28px;
  flex-shrink: 0;
}
.queue-num-sched { color: var(--gray-400); }
.queue-info { flex: 1; min-width: 0; }
.queue-patient-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
}
.queue-visit-type {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .125rem;
}
.queue-status {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .25rem .75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.queue-status-active    { color: #15803d; background: #dcfce7; }
.queue-status-waiting   { color: #b45309; background: #fef3c7; }
.queue-status-scheduled { color: #1d4ed8; background: #dbeafe; }

.queue-demo-footer {
  display: flex;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.queue-stat {
  font-size: .8125rem;
  color: var(--gray-500);
}
.queue-stat strong {
  color: var(--gray-900);
  font-weight: 700;
}

/* ============================================================
   Health Demo (Spotlight 2 Visual)
   ============================================================ */
.health-demo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
}
.health-demo-header {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.health-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.health-stat-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: .875rem 1rem;
}
.health-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.health-icon-heart  { background: #fef2f2; color: var(--red-500); }
.health-icon-scale  { background: var(--violet-50); color: var(--violet-700); }
.health-icon-temp   { background: #fff7ed; color: #ea580c; }
.health-icon-weight { background: #f0fdfa; color: #0d9488; }

.health-stat-label {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.health-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: .25rem 0;
}
.health-stat-sub { font-size: .75rem; font-weight: 600; }
.health-stat-normal { color: #15803d; }
.health-stat-good   { color: #0d9488; }

.health-chart-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: .625rem;
}
.health-chart {
  display: flex;
  align-items: flex-end;
  gap: .375rem;
  height: 60px;
  padding: 0 .25rem;
}
.health-bar {
  flex: 1;
  background: var(--violet-200);
  border-radius: 4px 4px 0 0;
  transition: background .2s;
}
.health-bar-last { background: var(--violet-700); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--violet-950) 0%, var(--violet-900) 50%, var(--violet-800) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.cta-inner { position: relative; }
.cta-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-tagline {
  font-size: .875rem;
  color: var(--gray-400);
}
.footer-copy {
  font-size: .8125rem;
  color: var(--gray-500);
}

/* ============================================================
   Scroll-reveal Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .specialty-card,
  .role-card,
  .spotlight-copy,
  .spotlight-visual {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .feature-card.visible,
  .specialty-card.visible,
  .role-card.visible,
  .spotlight-copy.visible,
  .spotlight-visual.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 4.5rem 0 4rem; text-align: center; }
  .hero-copy { max-width: 100%; }
  .hero-specialties { justify-content: center; }
  .hero-mockup { max-width: 520px; margin: 0 auto; }

  .spotlight-inner { grid-template-columns: 1fr; gap: 3rem; }
  .spotlight-flip .spotlight-inner { direction: ltr; }
}

/* ============================================================
   Responsive — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-h1 { letter-spacing: -.025em; }
  .hero-pills { justify-content: center; }

  .stats-bar-inner { gap: 1rem; }
  .stat-divider { display: none; }

  .features-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .specialties-grid { grid-template-columns: 1fr; }
  .roles-grid       { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .spotlight-inner { gap: 2rem; }

  .health-stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
