/* ============================================================
   SAARA — Global Design System v3
   2026. Luxury healthcare tech. Light. Confident. Alive.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Nunito', 'DM Sans', system-ui, sans-serif; background: #FFFFFF; color: #111111; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Design Tokens ---------- */
:root {
  /* ── Core Surfaces ── */
  --navy:          #FFFFFF;       /* page background */
  --navy-2:        #F4F4F6;       /* section alt bg (secondary) */
  --navy-3:        #EFEFED;       /* section deeper alt (muted/accent blend) */
  --navy-4:        #E6E6E1;       /* border-level surface */
  --navy-5:        #D8D6CD;       /* chart-1 — light warm gray */

  /* ── Primary Accent — Brand Teal (CFO palette) ── */
  --orange:        #00847A;       /* renamed token kept for compatibility */
  --orange-mid:    #0D9488;
  --orange-bright: #14B8A6;
  --orange-dim:    rgba(0,132,122,.10);
  --orange-glow:   rgba(0,132,122,.28);

  /* ── Secondary Accent — Purple highlight (kept per Sean) ── */
  /* ── Secondary Accent — Olive (from CFO palette) ── */
  --teal:          #6E6C57;       /* olive-3 — used for secondary text accents */
  --teal-mid:      #8D8C73;       /* olive-2 */
  --teal-bright:   #D8D6CD;       /* olive-1 / light warm gray */
  --teal-dim:      rgba(110,108,87,.10);
  --teal-glow:     rgba(110,108,87,.22);

  /* ── Olive/Warm Neutral Scale (chart palette) ── */
  --olive-1:       #D8D6CD;       /* chart-1 */
  --olive-2:       #8D8C73;       /* chart-2 */
  --olive-3:       #6E6C57;       /* chart-3 */
  --olive-4:       #575648;       /* chart-4 */
  --olive-5:       #353326;       /* chart-5 / darkest */

  /* ── Text ── */
  --warm-white:    #111111;       /* primary text — near-black */
  --cream:         #2A2A2A;
  --body-light:    #4A4A4A;
  --muted:         rgba(17,17,17,.50);
  --muted-2:       rgba(17,17,17,.35);
  --muted-3:       rgba(17,17,17,.16);

  /* ── Surfaces & Borders ── */
  --border:        rgba(0,132,122,.10);
  --border-warm:   rgba(0,132,122,.18);
  --border-bright: rgba(0,132,122,.32);

  /* ── Glass surfaces ── */
  --glass-bg:      rgba(0,132,122,.04);
  --glass-bg-2:    rgba(0,132,122,.08);
  --glass-hover:   rgba(0,132,122,.12);

  /* ── Typography ── */
  --font-display: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --font-body:    'Nunito', 'DM Sans', system-ui, sans-serif;

  /* ── Spacing ── */
  --section-pad:    160px;
  --section-mid:    110px;
  --section-tight:  72px;

  /* ── Shape ── */
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  26px;
  --radius-2xl: 36px;

  /* ── FX ── */
  --blur:       blur(24px);
  --blur-lg:    blur(48px);
  --shadow-sm:  0 2px 12px rgba(0,132,122,.08);
  --shadow:     0 8px 40px rgba(0,132,122,.12);
  --shadow-lg:  0 24px 80px rgba(0,132,122,.14);
  --shadow-xl:  0 40px 120px rgba(0,132,122,.18);
  --trans:      .26s cubic-bezier(.4,0,.2,1);
  --trans-slow: .5s  cubic-bezier(.4,0,.2,1);
}

/* ---------- Typography Scale ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111111;
}

.t-hero {
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.t-display {
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-family: var(--font-display);
}

.t-heading {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.016em;
  line-height: 1.1;
  font-family: var(--font-display);
}

.t-subheading {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.24;
  font-family: var(--font-display);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: rgba(17,17,17,.58);
  line-height: 1.78;
}

.lead-bright {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: rgba(17,17,17,.78);
  line-height: 1.72;
}

.caption {
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(17,17,17,.45);
  font-weight: 600;
  text-transform: uppercase;
}

p + p { margin-top: 1.15em; }

/* ---------- Color Utilities ---------- */
.text-orange  { color: var(--orange); }
.text-teal    { color: var(--teal); }
.text-mint    { color: var(--mint); }
.text-magenta { color: var(--olive-3); }
.text-white   { color: var(--warm-white); }
.text-muted   { color: var(--muted); }

/* ---------- Eyebrow Labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container         { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 48px; }
.container--wide   { max-width: 1480px; }
.container--narrow { max-width: 780px; }
section            { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
section.mid        { padding: var(--section-mid) 0; }
section.tight      { padding: var(--section-tight) 0; }

.text-center { text-align: center; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2       { gap: .75rem; }
.gap-3       { gap: 1.25rem; }
.gap-4       { gap: 2rem; }
.items-center { align-items: center; }
.flex-wrap   { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.mt-2  { margin-top: .75rem; }
.mt-3  { margin-top: 1.25rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mt-8  { margin-top: 4rem; }
.mt-10 { margin-top: 5.5rem; }
.mb-4  { margin-bottom: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ---------- Section Backgrounds ---------- */
.bg-dark   { background: #FFFFFF; }
.bg-dark-2 { background: #F4F4F6; }
.bg-dark-3 { background: #EFEFED; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: -.005em;
  transition: var(--trans);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px var(--orange-dim);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px var(--orange-glow), 0 0 0 3px var(--orange-dim);
}
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
  background: rgba(0,132,122,.06);
  color: #111111;
  border: 1px solid var(--border-warm);
  backdrop-filter: var(--blur);
}
.btn-ghost:hover {
  background: rgba(0,132,122,.12);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #111111;
  border: 1.5px solid var(--border-bright);
}
.btn-outline:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--teal-glow);
}

.btn-mint {
  background: var(--mint);
  color: #fff;
  font-weight: 700;
}
.btn-mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--mint-glow);
}

.btn-lg  { padding: 1.15rem 2.6rem; font-size: 1rem; }
.btn-sm  { padding: .62rem 1.35rem; font-size: .84rem; }
.btn-xl  { padding: 1.35rem 3.2rem; font-size: 1.1rem; letter-spacing: -.02em; }

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur);
  transition: var(--trans);
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: var(--border-warm);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* ---------- Accent Orbs ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.orb-orange  { background: radial-gradient(circle, rgba(0,132,122,.14) 0%, transparent 68%); }
.orb-teal    { background: radial-gradient(circle, rgba(0,132,122,.12) 0%, transparent 68%); }
.orb-mint    { background: radial-gradient(circle, rgba(0,132,122,.10) 0%, transparent 68%); }
.orb-magenta { background: radial-gradient(circle, rgba(110,108,87,.07) 0%, transparent 68%); }
.orb-deep    { background: radial-gradient(circle, rgba(0,132,122,.06) 0%, transparent 68%); }

/* ---------- Stat Numbers ---------- */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: .88rem;
  color: rgba(17,17,17,.55);
  line-height: 1.5;
  margin-top: .55rem;
  font-weight: 500;
}

/* ---------- Logo Pills ---------- */
.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(0,132,122,.05);
  border: 1px solid var(--border-warm);
  color: rgba(17,17,17,.60);
  transition: var(--trans);
}
.logo-pill:hover {
  background: var(--orange-dim);
  color: var(--orange);
  border-color: var(--border-bright);
}

/* ---------- Callout Box ---------- */
.callout-box {
  border-left: 3px solid var(--orange);
  padding: 1.5rem 2rem;
  background: rgba(0,132,122,.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout-text {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: #111111;
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.5;
}
.callout-highlight {
  font-weight: 800;
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(0,132,122,.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* ---------- Scroll Fade-in ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }
.delay-5 { transition-delay: .6s; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  background: rgba(17,17,17,.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.18);
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
}
#navbar.scrolled {
  background: rgba(17,17,17,.92);
  border-bottom-color: rgba(0,132,122,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 6px 32px rgba(0,0,0,.28);
}

.nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* SVG logo — no filter needed, colors baked in */
#navbar .nav-logo-img { filter: none; }
.nav-logo-svg {
  height: 30px;
  width: auto;
  display: block;
}
/* keep em fallback in case text logo is ever restored */
.nav-logo em {
  color: var(--orange);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0 auto;          /* centred between logo and CTA */
}
.nav-links li a {
  display: inline-block;
  padding: .55rem 1.05rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
  text-decoration: none;
}
.nav-links li a:hover { color: #FFFFFF; background: rgba(255,255,255,.10); }
.nav-teal { color: var(--teal) !important; }
.nav-teal:hover { color: #FFFFFF !important; }

.nav-cta {
  padding: .6rem 1.4rem !important;
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(13,148,136,.35);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,132,122,.4) !important;
  background: var(--orange) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: var(--trans);
  transform-origin: center;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .32s ease;
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--trans);
}
.drawer-link:hover { color: #FFFFFF; }

/* ---------- FOOTER ---------- */
#footer {
  background: #F4F4F6;
  border-top: 1px solid rgba(0,132,122,.10);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -.04em;
  color: var(--warm-white);
  margin-bottom: .75rem;
}
.footer-logo em { color: var(--orange); font-style: normal; }

/* Footer logo — light background, dark wordmark */
.footer-logo-img,
.footer-logo-svg {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: .75rem;
}

.footer-tagline {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.footer-col p {
  font-size: .88rem;
  color: rgba(17,17,17,.55);
  margin-bottom: .6rem;
  line-height: 1.65;
}
.footer-col p a {
  color: rgba(17,17,17,.70);
  transition: var(--trans);
  font-weight: 500;
}
.footer-col p a:hover { color: var(--orange); }

.footer-bar {
  border-top: 1px solid rgba(0,132,122,.08);
  padding: 1.5rem 0;
}
.footer-bar .container p {
  font-size: .72rem;
  color: rgba(17,17,17,.40);
  line-height: 1.7;
}

/* ---------- Mobile Sticky CTA ---------- */
#sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 -8px 32px rgba(0,0,0,.4);
}
#sticky-mobile-cta a {
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 110px; }
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #sticky-mobile-cta { display: block; }
  body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn-lg { padding: 1rem 1.8rem; font-size: .93rem; }
}
