/* ============================================================
   AnueraTech — Premium White Enterprise Healthcare UI
   Design Language: "Luxury Through Restraint"
   Inspired by: Stripe, Apple, Linear, Vercel, Raycast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables — White Enterprise Palette ── */
:root {
  /* Backgrounds */
  --bg-primary:   #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary:  #F1F5F9;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#F8FAFC;

  /* Brand */
  --brand:        #1A56DB;
  --brand-light:  #3B82F6;
  --sky:          #0EA5E9;
  --green:        #059669;
  --blue:         #1A56DB;
  --cyan:         #0EA5E9;
  --purple:       #6366F1;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #334155;
  --text-muted:     #64748B;
  --text-white:     #0F172A;   /* compatibility alias */
  --text-light:     #334155;   /* compatibility alias */

  /* Borders */
  --border:       #E2E8F0;
  --border-soft:  #CBD5E1;
  --border-hover: #94A3B8;

  /* Gradients */
  --gradient-brand:       linear-gradient(135deg, #0EA5E9, #1A56DB);
  --gradient-cyan-blue:   linear-gradient(135deg, #0EA5E9, #1A56DB);
  --gradient-blue-dark:   linear-gradient(135deg, #1A56DB, #1245B5);
  --gradient-green-cyan:  linear-gradient(135deg, #059669, #0EA5E9);
  --gradient-blue-purple: linear-gradient(135deg, #1A56DB, #6366F1);

  /* Shadows — clean, soft, enterprise */
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-cyan: 0 4px 20px rgba(26, 86, 219, 0.10);
  --shadow-blue: 0 4px 20px rgba(26, 86, 219, 0.10);

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  /* Fonts */
  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Transitions */
  --transition:      all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.30s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem);  font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

/* Gradient text */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: var(--gradient-green-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: var(--gradient-blue-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; position: relative; }
.section-sm { padding: 52px 0; }

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26, 86, 219, 0.06);
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: 50px;
  padding: 5px 13px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 560px; margin: 14px auto 0; font-size: 1.02rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  font-family: var(--font-main);
}

/* Primary — solid blue */
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 86, 219, 0.20), 0 2px 8px rgba(26, 86, 219, 0.15);
}
.btn-primary:hover {
  background: #1547C0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Secondary — white with border */
.btn-outline {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-outline:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--border-soft);
}

.btn-sm  { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg  { padding: 15px 30px; font-size: 0.95rem; }
.btn-icon { width: 16px; height: 16px; }

/* ── Cards — clean white ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.glass-card-inner { padding: 28px; position: relative; z-index: 1; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-cyan   { background: rgba(14, 165, 233, 0.08); color: #0284C7;  border: 1px solid rgba(14, 165, 233, 0.2); }
.badge-green  { background: rgba(5, 150, 105, 0.08);  color: #047857;  border: 1px solid rgba(5, 150, 105, 0.2); }
.badge-purple { background: rgba(99, 102, 241, 0.08); color: #4F46E5;  border: 1px solid rgba(99, 102, 241, 0.2); }
.badge-blue   { background: rgba(26, 86, 219, 0.08);  color: var(--brand); border: 1px solid rgba(26, 86, 219, 0.2); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ══════════════════════════════════════════════════
   NAVBAR — White, clean, enterprise
══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.05);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo:hover { opacity: 0.8; }

.nav-logo-icon {
  width: 32px; height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-secondary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 40px rgba(15, 23, 42, 0.10);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg-secondary); color: var(--text-primary); }

.nav-dropdown-item-icon {
  width: 26px; height: 26px;
  background: rgba(26, 86, 219, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.nav-cta { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}
.mobile-menu.open { display: block; transform: translateY(0); opacity: 1; }
.mobile-nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand); }
.mobile-nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ══════════════════════════════════════════════════
   HERO — White, Apple-grade
══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 108px 0 64px;
  background: var(--bg-primary);
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.25) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* Very subtle radial glow — barely visible */
.hero-depth-light {
  position: absolute;
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(26, 86, 219, 0.04) 0%, transparent 65%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Canvas hidden on white bg */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text .section-label { margin-bottom: 20px; }

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.10;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* Trust bar */
.hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
  width: fit-content;
}
.hero-metric {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.hero-metric:last-child { border-right: none; }
.hero-metric-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-metric-icon.icon-uptime::after { content: '↑'; font-size: 0.75rem; color: var(--green); font-weight: 700; }
.hero-metric-icon.icon-hipaa::after  { content: '✓'; font-size: 0.75rem; color: var(--green); font-weight: 700; }
.hero-metric-icon.icon-cloud::after  { content: '◎'; font-size: 0.7rem;  color: var(--brand); font-weight: 600; }
.hero-metric-icon.icon-ai::after     { content: '⊕'; font-size: 0.7rem;  color: var(--brand); font-weight: 600; }
.hero-metric-icon.icon-multi::after  { content: '⊞'; font-size: 0.7rem;  color: var(--brand); font-weight: 600; }
.hero-metric-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Hero Dashboard — Light mode product mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
  animation: float-dashboard 12s ease-in-out infinite;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dashboard-dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.dashboard-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.dashboard-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--green);
  font-weight: 600;
}
.dashboard-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.d-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.d-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand);
}
.d-stat-label { font-size: 0.62rem; color: var(--text-muted); margin-top: 3px; }

.dashboard-chart {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  height: 76px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.chart-bar {
  flex: 1;
  background: var(--gradient-brand);
  border-radius: 3px 3px 0 0;
  opacity: 0.55;
  transition: opacity 0.2s;
  animation: bar-grow 0.8s ease-out forwards;
  transform-origin: bottom;
}
.chart-bar:hover { opacity: 0.85; }

.dashboard-patients { display: flex; flex-direction: column; gap: 5px; }
.patient-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.patient-row:hover { background: var(--bg-secondary); }
.patient-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.patient-info { flex: 1; }
.patient-name  { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); }
.patient-type  { font-size: 0.62rem; color: var(--text-muted); }
.patient-status { font-size: 0.62rem; padding: 2px 7px; border-radius: 50px; font-weight: 500; }
.status-confirmed  { background: rgba(5, 150, 105, 0.10); color: #047857; }
.status-pending    { background: rgba(217, 119, 6, 0.10);  color: #B45309; }
.status-telehealth { background: rgba(26, 86, 219, 0.08);  color: var(--brand); }

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.stat-item {
  text-align: center;
  padding: 12px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%; width: 1px;
  background: var(--border);
}
.stat-number {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════ */
.services { background: var(--bg-primary); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.service-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--brand);
}
.service-icon-cyan,
.service-icon-blue,
.service-icon-green,
.service-icon-purple {
  background: rgba(26, 86, 219, 0.08);
  color: var(--brand);
}

.service-title { font-size: 0.97rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.service-desc  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.service-link  {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  transition: var(--transition);
}
.service-link:hover { gap: 9px; }

/* ══════════════════════════════════════════════════
   DEMO PORTAL
══════════════════════════════════════════════════ */
.demo-portal { background: var(--bg-secondary); }
.demo-grid   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.demo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.demo-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.demo-card:hover::before { opacity: 1; }

.demo-card-icon {
  width: 52px; height: 52px;
  background: rgba(26, 86, 219, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: var(--transition);
}
.demo-card:hover .demo-card-icon { background: rgba(26, 86, 219, 0.12); }

.demo-card-url   { font-size: 0.72rem; color: var(--brand); opacity: 0.7; margin-bottom: 10px; font-family: monospace; }
.demo-card-title { margin-bottom: 10px; }
.demo-card-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 22px; }

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual  { position: relative; }

.about-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.about-stat-row  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.about-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
}
.about-stat-number {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand);
}

.about-float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.about-float-badge-1 { top: -14px;  right: 16px; }
.about-float-badge-2 { bottom: -14px; left: 8px; }

.about-text .section-label { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 16px; }
.about-text p  { margin-bottom: 14px; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.about-feature  {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.about-feature-check {
  width: 18px; height: 18px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   WHY CHOOSE US
══════════════════════════════════════════════════ */
.why-us   { background: var(--bg-secondary); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xs);
}
.why-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.why-icon { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: rgba(26, 86, 219, 0.07); color: var(--brand); }
.why-card h4 { margin-bottom: 6px; font-size: 0.93rem; }
.why-card p  { font-size: 0.8rem; }

/* ══════════════════════════════════════════════════
   OPENEMR SHOWCASE
══════════════════════════════════════════════════ */
.openemr-showcase  { background: var(--bg-primary); }
.openemr-content   { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.openemr-features  { display: grid; grid-template-columns: 1fr; gap: 10px; }
.openemr-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.openemr-feature:hover { border-color: var(--border-soft); background: var(--bg-tertiary); }
.openemr-feature-icon {
  width: 34px; height: 34px;
  background: rgba(26, 86, 219, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--brand);
  flex-shrink: 0;
}
.openemr-feature-text h5 { font-size: 0.88rem; margin-bottom: 2px; color: var(--text-primary); }
.openemr-feature-text p  { font-size: 0.8rem; }

.openemr-visual { position: relative; }
.emr-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.emr-mockup-top {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.emr-mockup-body { padding: 16px; }
.emr-nav-pills { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.emr-pill {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.emr-pill.active      { background: rgba(26, 86, 219, 0.10); color: var(--brand); border: 1px solid rgba(26, 86, 219, 0.2); }
.emr-pill:not(.active){ background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border); }
.emr-pill:hover:not(.active) { border-color: var(--border-soft); color: var(--text-secondary); }

.emr-data-rows { display: flex; flex-direction: column; gap: 6px; }
.emr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  transition: var(--transition);
  color: var(--text-secondary);
}
.emr-row:hover { background: var(--bg-tertiary); border-color: var(--border-soft); }

/* ══════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════ */
.testimonials { background: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-xs);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px; right: 22px;
  font-size: 3.5rem;
  color: rgba(26, 86, 219, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { border-color: var(--border-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 14px; color: #F59E0B; font-size: 0.82rem; }
.testimonial-text  { font-size: 0.875rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 11px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════════ */
.blog      { background: var(--bg-primary); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xs);
}
.blog-card:hover { border-color: var(--border-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.blog-img {
  height: 180px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.blog-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.4)); }
.blog-body     { padding: 22px; }
.blog-meta     { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blog-category { font-size: 0.7rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.5px; }
.blog-date     { font-size: 0.72rem; color: var(--text-muted); }
.blog-title    { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; color: var(--text-primary); transition: var(--transition); }
.blog-card:hover .blog-title { color: var(--brand); }
.blog-excerpt  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--brand); transition: var(--transition); }
.blog-read-more:hover { gap: 9px; }

/* ══════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════ */
.cta-section { background: var(--bg-secondary); position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner   { text-align: center; position: relative; z-index: 10; padding: 80px 0; }
.cta-orb {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(26, 86, 219, 0.04), transparent 65%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin-bottom: 14px; }
.cta-section p  { font-size: 1.02rem; margin-bottom: 36px; }
.cta-buttons    { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-trust      { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.cta-trust-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   FOOTER — Dark (industry standard, premium SaaS)
══════════════════════════════════════════════════ */
footer {
  background: #0F172A;
  border-top: 1px solid #1E293B;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand p { font-size: 0.85rem; color: #64748B; line-height: 1.75; margin: 14px 0 20px; max-width: 270px; }
.footer-social  { display: flex; gap: 8px; }
.social-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  color: #64748B;
  transition: var(--transition);
}
.social-btn:hover { background: rgba(26, 86, 219, 0.12); border-color: rgba(26, 86, 219, 0.3); color: #93C5FD; }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #F1F5F9; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.84rem; color: #64748B; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: #CBD5E1; }
.footer-links a::before { content: '›'; color: #3B82F6; opacity: 0.6; }

.footer-newsletter input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: #CBD5E1;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 9px;
  transition: var(--transition);
}
.footer-newsletter input:focus { border-color: rgba(26, 86, 219, 0.5); }
.footer-newsletter input::placeholder { color: #475569; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.footer-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border: 1px solid #1E293B;
  border-radius: 50px;
  font-size: 0.65rem; font-weight: 600;
  color: #475569;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p             { font-size: 0.8rem; color: #475569; }
.footer-bottom-links         { display: flex; gap: 18px; }
.footer-bottom-links a       { font-size: 0.8rem; color: #475569; transition: var(--transition); }
.footer-bottom-links a:hover { color: #CBD5E1; }

/* Footer logo text */
footer .nav-logo { color: #F1F5F9; }

/* ══════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 64px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 10; }
.page-hero p { font-size: 1.02rem; max-width: 560px; margin: 14px auto 0; }

/* ══════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.pricing-card.popular {
  border-color: var(--brand);
  border-width: 1.5px;
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.12);
}
.pricing-card:hover:not(.popular) { border-color: var(--border-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-name    { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 10px; }
.pricing-price   { display: flex; align-items: flex-start; gap: 3px; margin-bottom: 7px; }
.pricing-currency{ font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-top: 7px; }
.pricing-amount  { font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); line-height: 1; }
.pricing-period  { font-size: 0.82rem; color: var(--text-muted); align-self: flex-end; margin-bottom: 6px; }
.pricing-desc    { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.pricing-divider { height: 1px; background: var(--border); margin: 16px 0; }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.pricing-feature  { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text-secondary); }
.pricing-feature-check { color: var(--green); font-size: 0.82rem; }
.pricing-feature-x     { color: var(--text-muted); font-size: 0.82rem; }

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact-grid    { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: start; }
.contact-info    { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.contact-info-card:hover { border-color: var(--border-soft); box-shadow: var(--shadow-sm); }
.contact-icon { width: 38px; height: 38px; background: rgba(26, 86, 219, 0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-text h5 { font-size: 0.875rem; margin-bottom: 3px; color: var(--text-primary); }
.contact-info-text p  { font-size: 0.82rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--brand); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.06); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
}
.form-select:focus { border-color: var(--brand); }
.form-select option { background: #FFFFFF; color: var(--text-primary); }

/* ══════════════════════════════════════════════════
   BLOG POSTS
══════════════════════════════════════════════════ */
.blog-post-hero { padding: 128px 0 48px; background: var(--bg-secondary); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.blog-post-content { max-width: 720px; margin: 0 auto; }
.blog-post-header   { margin-bottom: 32px; }
.blog-post-meta     { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.blog-post-body h2  { margin: 32px 0 14px; font-size: 1.5rem; font-weight: 600; }
.blog-post-body h3  { margin: 24px 0 10px; font-size: 1.12rem; color: var(--brand); font-weight: 600; }
.blog-post-body p   { font-size: 0.97rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 18px; }
.blog-post-body ul,
.blog-post-body ol  { margin: 14px 0 22px 20px; display: flex; flex-direction: column; gap: 9px; }
.blog-post-body li  { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.7; }
.blog-post-body ul li::marker { color: var(--brand); }
.blog-callout { background: rgba(26, 86, 219, 0.04); border: 1px solid rgba(26, 86, 219, 0.15); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 18px 22px; margin: 24px 0; font-size: 0.93rem; color: var(--text-secondary); font-style: italic; line-height: 1.75; }
.blog-code { background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.83rem; color: #1A56DB; margin: 18px 0; overflow-x: auto; line-height: 1.65; }

/* ══════════════════════════════════════════════════
   SUPPORT
══════════════════════════════════════════════════ */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; text-align: center; transition: var(--transition-slow); box-shadow: var(--shadow-xs); }
.support-card:hover { border-color: var(--border-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-xs); }
.faq-item.open { border-color: rgba(26, 86, 219, 0.25); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--text-primary); transition: var(--transition); }
.faq-question:hover { color: var(--brand); }
.faq-arrow { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--brand); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 280px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.50s ease-out, transform 0.50s ease-out;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-20px); transition: opacity 0.50s ease-out, transform 0.50s ease-out; }
.reveal-right { opacity: 0; transform: translateX(20px);  transition: opacity 0.50s ease-out, transform 0.50s ease-out; }
.reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }
.reveal-delay-5 { transition-delay: 0.35s; }

/* ══════════════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--brand);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════
   LOADING SCREEN — White
══════════════════════════════════════════════════ */
#loading-screen {
  position: fixed; inset: 0;
  background: #FFFFFF;
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.loader-logo img {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: contain;
}
.loader-logo span { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; display: block; text-align: center; margin-top: 4px; font-family: var(--font-main); }
.loader-bar { width: 160px; height: 2px; background: #E2E8F0; border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--brand); border-radius: 2px; animation: loader-progress 1.6s ease-in-out forwards; }

/* ══════════════════════════════════════════════════
   CHATBOT WIDGET — Light
══════════════════════════════════════════════════ */
#chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-btn {
  width: 50px; height: 50px;
  background: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.28);
  transition: var(--transition);
  border: none;
  color: #fff;
}
.chat-btn:hover { transform: scale(1.06); background: #1547C0; box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35); }
.chat-pulse {
  position: absolute;
  top: -3px; right: -3px;
  width: 13px; height: 13px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}
.chat-window {
  position: absolute;
  bottom: 62px; right: 0;
  width: 300px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  transition: var(--transition-slow);
}
.chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header { background: var(--brand); padding: 14px 18px; display: flex; align-items: center; gap: 9px; }
.chat-header-icon  { font-size: 1.1rem; color: #fff; }
.chat-header-title { font-size: 0.87rem; font-weight: 700; color: #fff; }
.chat-header-sub   { font-size: 0.68rem; color: rgba(255,255,255,0.75); }
.chat-messages { padding: 14px; height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.chat-msg { display: flex; gap: 7px; align-items: flex-start; }
.chat-msg-avatar { width: 26px; height: 26px; background: rgba(26, 86, 219, 0.10); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.chat-msg-bubble { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px 12px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; max-width: 215px; }
.chat-input-area { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 7px; background: #FFFFFF; }
.chat-input { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 11px; color: var(--text-primary); font-size: 0.8rem; font-family: inherit; outline: none; transition: var(--transition); }
.chat-input:focus { border-color: var(--brand); background: #FFFFFF; }
.chat-send { width: 32px; height: 32px; background: var(--brand); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff; cursor: pointer; border: none; transition: var(--transition); flex-shrink: 0; }
.chat-send:hover { background: #1547C0; }

/* ══════════════════════════════════════════════════
   WHATSAPP STICKY BUTTON
══════════════════════════════════════════════════ */
#whatsapp-sticky {
  position: fixed;
  bottom: 86px; right: 24px;
  z-index: 998;
}
.wa-sticky-btn {
  display: flex; align-items: center; gap: 9px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 10px 16px 10px 13px;
  font-weight: 700; font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.wa-sticky-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.40); background: #22C55E; }
.wa-sticky-icon { font-size: 1.1rem; flex-shrink: 0; }
.wa-sticky-label span { display: block; }
.wa-title { font-size: 0.78rem; font-weight: 800; }
.wa-sub   { font-size: 0.63rem; opacity: 0.85; font-weight: 500; }

/* ══════════════════════════════════════════════════
   KEYFRAMES — Minimal, purposeful
══════════════════════════════════════════════════ */
@keyframes float-dashboard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes loader-progress {
  0%   { width: 0%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid  { grid-template-columns: repeat(3, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .hero-metrics { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  nav { height: 62px; }
  .mobile-menu { top: 62px; }
  .hero-content   { grid-template-columns: 1fr; text-align: center; }
  .hero-visual    { display: none; }
  .hero-sub       { margin-left: auto; margin-right: auto; }
  .hero-actions   { justify-content: center; }
  .hero-metrics   { justify-content: center; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger      { display: flex; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .demo-grid      { grid-template-columns: 1fr; }
  .about-content  { grid-template-columns: 1fr; }
  .about-visual   { display: none; }
  .openemr-content { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: scale(1); }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .support-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section        { padding: 60px 0; }
  .container      { padding: 0 20px; }
  .services-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .form-row       { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .support-grid   { grid-template-columns: 1fr; }
  .about-stat-row { grid-template-columns: 1fr 1fr; }
  .hero-metrics   { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: var(--radius-md); }
  .hero-metric    { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); justify-content: center; }
  .hero-metric:nth-child(3n) { border-right: none; }
}

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-brand   { color: var(--brand); }
.text-cyan    { color: var(--sky); }
.text-green   { color: var(--green); }
.text-white   { color: var(--text-primary); }
.text-muted-u { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }   .mt-16 { margin-top: 16px; }  .mt-24 { margin-top: 24px; }  .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }.mb-16 { margin-bottom: 16px;}.mb-24 { margin-bottom: 24px;}.mb-32 { margin-bottom: 32px;}
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none; }
