/* ═══════════════════════════════════════════════════════
   NovaMed Health — Shared Design System
   ═══════════════════════════════════════════════════════ */
:root {
  --bg-void:       #050912;
  --bg-deep:       #080E1E;
  --bg-surface:    #0D1526;
  --bg-raised:     #121D33;
  --teal:          #00D9C8;
  --teal-dim:      #00A89A;
  --teal-glow:     rgba(0,217,200,0.18);
  --violet:        #8B5CF6;
  --violet-dim:    #6D3FC4;
  --violet-glow:   rgba(139,92,246,0.18);
  --bio:           #00FFB2;
  --bio-dim:       #00CC8E;
  --coral:         #FF6B6B;
  --coral-dim:     #E05555;
  --amber:         #F59E0B;
  --text-bright:   #F0F6FF;
  --text-mid:      #A8B8D0;
  --text-muted:    #5A6A82;
  --border-subtle: rgba(255,255,255,0.06);
  --border-teal:   rgba(0,217,200,0.25);
  --border-violet: rgba(139,92,246,0.25);
  --glass-bg:      rgba(13,21,38,0.75);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     36px;
  --radius-pill:   999px;
  --shadow-teal:   0 0 48px rgba(0,217,200,0.12);
  --shadow-violet: 0 0 48px rgba(139,92,246,0.12);
  --font-head:     'Syne', sans-serif;
  --font-body:     'Inter', sans-serif;
  /* ── Toned-down easing: no overshoot ── */
  --ease-spring:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
  --nav-h:         80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-bright);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; }


ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── REDUCED MOTION — kills all decorative animations safely ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orb { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  #nm-cursor { display: none !important; }
  body { cursor: auto !important; }
  button { cursor: pointer !important; }
}

#cursor-dot, #cursor-ring { display: none !important; }

/* ═══════════════════════════════════════════════════════
   BACKGROUND ORBS
   — Only translate (no scale) so blur area stays constant
   — will-change + translateZ(0) → own GPU compositing layer
   ═══════════════════════════════════════════════════════ */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transform: translateZ(0); /* promote to own layer */
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.18;
  top: -200px; left: -150px;
  animation: drift1 24s ease-in-out infinite alternate;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  opacity: 0.15;
  bottom: -100px; right: -100px;
  animation: drift2 30s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--bio) 0%, transparent 70%);
  opacity: 0.07;
  top: 50%; left: 50%;
  /* Base transform baked in — animation stacks on top */
  animation: drift3 38s ease-in-out infinite alternate;
}

/* Translate-only: constant blur area = no flicker */
@keyframes drift1 {
  from { transform: translateZ(0) translate(0, 0); }
  to   { transform: translateZ(0) translate(80px, 60px); }
}
@keyframes drift2 {
  from { transform: translateZ(0) translate(0, 0); }
  to   { transform: translateZ(0) translate(-60px, -80px); }
}
@keyframes drift3 {
  from { transform: translateZ(0) translate(-50%, -50%); }
  to   { transform: translateZ(0) translate(-42%, -58%); }
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,217,200,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,200,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ── NAV ── */
.nav-wrap {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 48px); max-width: 1140px;
}
nav {
  background: rgba(8,14,30,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-logo {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--text-mid);
  padding: 7px 13px; border-radius: var(--radius-pill);
  transition: color .2s var(--ease-smooth), background .2s var(--ease-smooth);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-signin {
  font-size: 0.84rem; font-weight: 500; color: var(--text-mid);
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: color .2s var(--ease-smooth), border-color .2s var(--ease-smooth);
}
.nav-signin:hover { color: var(--teal); border-color: var(--border-teal); }
.nav-book {
  font-size: 0.84rem; font-weight: 700; font-family: var(--font-head);
  color: #040812; padding: 9px 20px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  box-shadow: 0 0 20px rgba(0,217,200,0.28);
  /* translateY only — no scale jitter */
  transition: box-shadow .25s var(--ease-smooth), filter .25s var(--ease-smooth);
}
.nav-book:hover { box-shadow: 0 0 32px rgba(0,217,200,0.5); filter: brightness(1.08); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ── PAGE HERO BANNER ── */
.page-hero { padding: 160px 0 80px; text-align: center; }
.page-hero .section-label { justify-content: center; margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; margin: 0 auto 36px; line-height: 1.75; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 20px; height: 1.5px; background: var(--teal); }
h2.section-h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px;
}
p.section-sub { font-size: 1rem; color: var(--text-mid); line-height: 1.75; max-width: 520px; margin-bottom: 48px; }
.grad-teal   { background: linear-gradient(135deg, var(--teal), var(--bio)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-violet { background: linear-gradient(135deg, var(--violet), #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #040812; font-family: var(--font-head); font-weight: 700;
  font-size: 0.92rem; padding: 13px 26px; border-radius: var(--radius-pill);
  /* translateY only — avoids scale jitter */
  transition: box-shadow .25s var(--ease-smooth), filter .25s var(--ease-smooth), transform .25s var(--ease-smooth);
  box-shadow: 0 4px 24px rgba(0,217,200,0.28); letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,217,200,0.42); filter: brightness(1.06); }

.btn-violet {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--violet), var(--violet-dim));
  color: white; font-family: var(--font-head); font-weight: 700;
  font-size: 0.92rem; padding: 13px 26px; border-radius: var(--radius-pill);
  transition: box-shadow .25s var(--ease-smooth), transform .25s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(139,92,246,0.28);
}
.btn-violet:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,92,246,0.42); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-mid); font-size: 0.9rem; font-weight: 500;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: color .2s var(--ease-smooth), border-color .2s var(--ease-smooth);
}
.btn-ghost:hover { color: var(--teal); border-color: var(--border-teal); }

/* ── CARDS — no scale, shadow-only lift ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  /* Only animate opacity on the shimmer, border-color, and shadow */
  transition: border-color .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,200,0.35), transparent);
  opacity: 0; transition: opacity .3s var(--ease-smooth);
}
/* Removed translateY — no card-lift jitter */
.glass-card:hover { border-color: rgba(0,217,200,0.2); box-shadow: var(--shadow-teal); }
.glass-card:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   Shorter distance (16 px) + ease-smooth = no snap
   ═══════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease-smooth), transform .65s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ═══════════════════════════════════════════════════════
   PULSE DOT
   Opacity-only — no scale, no animated box-shadow.
   Opacity-only animations are compositor-only (GPU).
   ═══════════════════════════════════════════════════════ */
.pulse-dot {
  width: 7px; height: 7px; background: var(--bio); border-radius: 50%;
  /* Static glow via box-shadow (not animated) */
  box-shadow: 0 0 0 2px rgba(0,255,178,0.2);
  animation: pulse-opacity 2.4s ease-in-out infinite;
}
@keyframes pulse-opacity {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ── LIVE BADGE ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,255,178,0.08); border: 1px solid rgba(0,255,178,0.22);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600; color: var(--bio);
}

/* ── TAG ── */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); }
.tag-teal   { background: rgba(0,217,200,0.08);   border: 1px solid rgba(0,217,200,0.2);   color: var(--teal); }
.tag-violet { background: rgba(139,92,246,0.08);  border: 1px solid rgba(139,92,246,0.2);  color: var(--violet); }
.tag-bio    { background: rgba(0,255,178,0.08);   border: 1px solid rgba(0,255,178,0.2);   color: var(--bio); }
.tag-coral  { background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.2); color: var(--coral); }
.tag-amber  { background: rgba(245,158,11,0.08);  border: 1px solid rgba(245,158,11,0.2);  color: var(--amber); }

/* ── ICON BOX ── */
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box svg { width: 22px; height: 22px; }
.ib-teal   { background: rgba(0,217,200,0.1);   border: 1px solid rgba(0,217,200,0.2); }
.ib-violet { background: rgba(139,92,246,0.1);  border: 1px solid rgba(139,92,246,0.2); }
.ib-bio    { background: rgba(0,255,178,0.1);   border: 1px solid rgba(0,255,178,0.2); }
.ib-coral  { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.2); }
.ib-amber  { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.2); }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--border-subtle); margin: 0; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border-subtle); padding: 60px 0 36px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease-smooth), border-color .2s var(--ease-smooth); }
.social-btn:hover { background: rgba(0,217,200,0.1); border-color: var(--border-teal); }
.social-btn svg { width: 16px; height: 16px; color: var(--text-muted); }
.footer-col h4 { font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; color: var(--text-bright); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.84rem; color: var(--text-muted); transition: color .2s var(--ease-smooth); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--text-muted); transition: color .2s var(--ease-smooth); }
.footer-bottom-links a:hover { color: var(--teal); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── FOCUS ── */
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(0,217,200,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,217,200,0.45); }
