/* ============================================================
   CAREFERRAL — PREMIUM DESIGN SYSTEM
   A high-end healthcare-technology aesthetic.
   Editorial serif display · clean SaaS UI · glass · soft gradients
   Brand: cobalt #0567A5 · teal #0394B9 · amber #E8A045
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@300;400;450;500;600;700&display=swap');

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Ink / text */
  --ink:      #0a1a26;
  --ink-2:    #3d5768;
  --ink-3:    #6a8497;
  --ink-4:    #9db2c0;

  /* Brand */
  --brand:    #0567a5;
  --brand-d:  #044f82;
  --teal:     #0394b9;
  --sky:      #35b6d1;
  --mint:     #7fdbe0;
  --accent:   #e8a045;
  --accent-d: #cf8526;

  /* Cinematic dark */
  --navy:     #041826;
  --navy-2:   #06263c;
  --navy-3:   #0a3352;

  /* Surfaces */
  --bg:        #fbfcfe;
  --surface:   #f1f6fb;
  --surface-2: #e7f0f8;
  --white:     #ffffff;

  /* Lines / glass */
  --line:      rgba(8,40,60,0.10);
  --line-2:    rgba(8,40,60,0.06);
  --glass:     rgba(255,255,255,0.65);
  --glass-d:   rgba(255,255,255,0.08);
  --glass-db:  rgba(255,255,255,0.14);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #0567a5 0%, #0394b9 55%, #35b6d1 100%);
  --grad-soft:  linear-gradient(135deg, #eef6fc 0%, #f6fbff 100%);
  --grad-navy:  linear-gradient(150deg, #041826 0%, #072a44 55%, #0a3a5e 100%);

  /* Radius */
  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 100px;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(8,40,60,0.05);
  --sh-md: 0 10px 40px rgba(8,40,60,0.08), 0 2px 8px rgba(8,40,60,0.04);
  --sh-lg: 0 30px 80px rgba(8,40,60,0.14), 0 8px 24px rgba(8,40,60,0.06);
  --sh-brand: 0 18px 44px rgba(5,103,165,0.28);
  --sh-accent: 0 14px 34px rgba(232,160,69,0.32);

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
::selection { background: rgba(3,148,185,0.18); color: var(--ink); }

/* ---------- TYPE ---------- */
.serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-optical-sizing: auto; }

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 420;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 em, h2 em, .display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.display-xl { font-size: clamp(44px, 6.6vw, 92px); font-weight: 400; line-height: 1.0; }
.display-lg { font-size: clamp(34px, 4.6vw, 60px); font-weight: 420; line-height: 1.05; }
.display-md { font-size: clamp(28px, 3.4vw, 44px); font-weight: 430; line-height: 1.1; }

.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--ink-2); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.5;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--mint); }

/* ---------- LAYOUT ---------- */
.wrap  { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-sm { padding: clamp(56px, 7vw, 96px) 0; }
.bg-surface { background: var(--surface); }
.bg-white   { background: var(--white); }
.bg-soft    { background: var(--grad-soft); }
.bg-navy    { background: var(--navy); color: rgba(255,255,255,0.72); }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.on-dark .sec-head p, .bg-navy .sec-head p { color: rgba(255,255,255,0.6); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.bg-navy h2 em, .on-dark h2 em { color: var(--mint); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 550;
  padding: 13px 26px; border-radius: var(--r-pill);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap; letter-spacing: 0.005em; position: relative;
}
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(5,103,165,0.36); }

.btn-accent { background: linear-gradient(135deg, #f0ab4e, var(--accent)); color: #2a1a04; box-shadow: var(--sh-accent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(232,160,69,0.42); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #0e2536; box-shadow: var(--sh-md); }

.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }

.btn-glass { color: #fff; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

.btn-link { color: var(--brand); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; transition: gap .25s var(--ease); }
.btn-link:hover { gap: 12px; }
.btn-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }

/* ---------- NAV ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
  padding: 8px 0;
}
#nav.scrolled {
  background: rgba(251,252,254,0.82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(8,40,60,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 112px; gap: 28px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 96px; width: auto; display: block; }
.nav-logo .nav-logo-color { display: none; }
#nav.scrolled .nav-logo .nav-logo-white { display: none; }
#nav.scrolled .nav-logo .nav-logo-color { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 12px; border-radius: var(--r-pill);
  transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--brand); background: var(--surface-2); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-signin { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav-signin svg { width: 16px; height: 16px; stroke: currentColor; }
.nav-signin:hover { color: var(--brand); background: var(--surface-2); }
#nav:not(.scrolled) .nav-signin { color: rgba(255,255,255,0.85); }
#nav:not(.scrolled) .nav-signin:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* Transparent-over-dark state (top of every page) */
#nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.82); }
#nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
#nav:not(.scrolled) .nav-links a.active { color: #fff; }
#nav:not(.scrolled) .nav-hamburger span { background: #fff; }
#nav:not(.scrolled) .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
#nav:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.55); color: #fff; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--navy); padding: 24px 28px; flex-direction: column; }
.mobile-menu.open { display: flex; animation: fadeIn .3s ease; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.mobile-menu-header .nav-logo img { height: 62px; }
.mobile-menu-close { width: 44px; height: 44px; border-radius: 12px; background: var(--glass-d); border: 1px solid var(--glass-db); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.mobile-nav-links a { display: block; padding: 16px 0; font-family: 'Fraunces', serif; font-size: 26px; font-weight: 400; color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--mint); }
.mobile-menu-footer { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.mobile-menu-footer .btn { width: 100%; }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden; background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transform: scale(1.06); animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(4,18,30,0.95) 0%, rgba(4,20,34,0.82) 42%, rgba(4,22,38,0.4) 72%, rgba(4,24,42,0.15) 100%),
    linear-gradient(to top, rgba(4,18,30,0.9) 0%, transparent 34%);
}
.hero-mesh { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.hero-orb.a { width: 620px; height: 620px; background: radial-gradient(circle, rgba(3,148,185,0.5), transparent 68%); top: -14%; left: -6%; animation: float1 20s ease-in-out infinite alternate; }
.hero-orb.b { width: 460px; height: 460px; background: radial-gradient(circle, rgba(53,182,209,0.4), transparent 70%); bottom: -12%; right: 8%; animation: float2 16s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(50px, 40px); } }
@keyframes float2 { to { transform: translate(-40px, -30px); } }

.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  animation: rise .8s var(--ease) both;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(232,160,69,0.6); animation: ping 2.2s ease-in-out infinite; }
@keyframes ping { 0%,100% { box-shadow: 0 0 0 0 rgba(232,160,69,0.5); } 50% { box-shadow: 0 0 0 6px rgba(232,160,69,0); } }
.hero h1 { color: #fff; margin-bottom: 26px; animation: rise .9s .1s var(--ease) both; }
.hero h1 em { background: linear-gradient(100deg, var(--sky), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: italic; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 540px; margin-bottom: 38px; animation: rise 1s .25s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; animation: rise 1s .38s var(--ease) both; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1s .5s var(--ease) both; }
.hero-stat {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px); border-radius: var(--r-md); padding: 18px 24px; min-width: 128px;
  transition: transform .35s var(--ease), background .35s;
}
.hero-stat:hover { transform: translateY(-5px); background: rgba(255,255,255,0.12); }
.hero-stat-num { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 400; color: #fff; line-height: 1; }
.hero-stat-num i { font-style: normal; color: var(--accent); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; margin-top: 7px; }

/* floating glass dashboard card in hero */
.hero-float {
  position: absolute; z-index: 4; right: 4%; bottom: 120px;
  width: 300px; background: rgba(9,26,40,0.55); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-lg);
  animation: bob 6s ease-in-out infinite alternate, rise 1s .7s var(--ease) both;
}
@keyframes bob { to { transform: translateY(-14px); } }
.hero-float-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hero-float-live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: ping 2s infinite; }
.hero-float-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6ee7b7; }
.hero-float-role { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.hero-float-org { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.hero-float-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.hero-float-bar span { display: block; height: 100%; width: 98%; border-radius: 3px; background: var(--grad-brand); }
.hero-float-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,0.5); }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); }
.hero-scroll span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.hero-mouse::before { content: ''; width: 3px; height: 6px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(9px); } }

.hero-dots { position: absolute; bottom: 34px; right: 28px; z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 5px; background: rgba(255,255,255,0.35); transition: .35s var(--ease); }
.hero-dot.active { width: 26px; background: #fff; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-navy); padding: 168px 0 96px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 34px 34px; opacity: 0.6; }
.page-hero-orb { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(3,148,185,0.34), transparent 68%); top: -180px; right: -120px; filter: blur(30px); animation: float2 18s ease-in-out infinite alternate; }
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255,255,255,0.62); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.4; }
.page-hero .eyebrow { color: var(--mint); margin-bottom: 20px; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 68px); margin-bottom: 22px; }
.page-hero h1 em { background: linear-gradient(100deg, var(--sky), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; }
.page-hero p { font-size: clamp(17px,1.5vw,20px); color: rgba(255,255,255,0.68); max-width: 600px; line-height: 1.6; margin-bottom: 34px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- TRUST MARQUEE ---------- */
.trust { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 30px 0; overflow: hidden; }
.trust-inner { display: flex; align-items: center; gap: 40px; }
.trust-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; flex-shrink: 0; }
.trust-track-mask { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.trust-track:hover { animation-play-state: paused; }
.trust-logo { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .25s; }
.trust-logo:hover { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FEATURE / SERVICE CARDS ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(3,148,185,0.28); }
.card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover::after { transform: scaleX(1); }

.icon-tile {
  width: 54px; height: 54px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); box-shadow: 0 10px 24px rgba(5,103,165,0.28); margin-bottom: 22px; flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; stroke: #fff; }
.icon-tile.soft { background: var(--surface-2); box-shadow: none; }
.icon-tile.soft svg { stroke: var(--brand); }

.card h3 { font-size: 22px; font-weight: 440; margin-bottom: 11px; }
.card p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { font-size: 12px; font-weight: 550; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(5,103,165,0.08); color: var(--brand); }
.card .btn-link { margin-top: 20px; }

/* Featured (spans + dark) */
.card-feature {
  grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--grad-navy); border: none; color: rgba(255,255,255,0.7); padding: 48px;
}
.card-feature::after { display: none; }
.card-feature:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.card-feature h3 { color: #fff; font-size: clamp(26px,3vw,38px); }
.card-feature p { color: rgba(255,255,255,0.68); }
.card-feature .tag { background: rgba(255,255,255,0.1); color: var(--mint); }
.card-feature .icon-tile { background: rgba(255,255,255,0.1); box-shadow: none; }
.feature-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(232,160,69,0.14); border: 1px solid rgba(232,160,69,0.3); border-radius: var(--r-pill); padding: 5px 14px; margin-bottom: 18px; }

/* ---------- SPLIT (image + copy, sticky-friendly) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.rev { direction: rtl; } .split.rev > * { direction: ltr; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); object-fit: cover; }
.split-media.tall img { aspect-ratio: 4/5; }
.floating-stat {
  position: absolute; bottom: 26px; left: -22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 22px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 14px;
}
.floating-stat .icon-tile { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.floating-stat .icon-tile svg { width: 20px; height: 20px; }
.floating-stat-num { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 400; color: var(--ink); line-height: 1; }
.floating-stat-label { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.split-copy h2 { margin-bottom: 20px; }
.split-copy .eyebrow { margin-bottom: 18px; }
.split-copy > p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 26px; }

/* ---------- CHECK LIST ---------- */
.checks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: var(--ink-2); }
.check-ic { width: 24px; height: 24px; border-radius: 50%; background: rgba(3,148,185,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-ic svg { width: 13px; height: 13px; stroke: var(--teal); stroke-width: 3; }
.check strong { color: var(--ink); font-weight: 600; }
.on-dark .check, .bg-navy .check { color: rgba(255,255,255,0.72); }
.on-dark .check-ic, .bg-navy .check-ic { background: rgba(53,182,209,0.18); }
.on-dark .check-ic svg, .bg-navy .check-ic svg { stroke: var(--mint); }
.on-dark .check strong, .bg-navy .check strong { color: #fff; }

/* ---------- STATS BAND ---------- */
.stats-band { position: relative; overflow: hidden; background: var(--grad-navy); padding: clamp(64px,8vw,110px) 0; }
.stats-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 30px 30px; }
.stats-band-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(3,148,185,0.3), transparent 68%); bottom: -220px; left: -80px; filter: blur(20px); }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 24px 16px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); transition: background .35s, transform .35s var(--ease); }
.stat-item:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.stat-number { font-family: 'Fraunces', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 400; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-number i { font-style: normal; color: var(--accent); }
.stat-label { font-size: 14.5px; color: rgba(255,255,255,0.82); font-weight: 500; margin-top: 12px; }
.stat-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 5px; }

/* ---------- STICKY STORYTELLING (how it works) ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.story-sticky { position: sticky; top: 120px; }
.story-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 34px; }
.story-tab { padding: 10px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 550; color: var(--ink-3); transition: .25s var(--ease); }
.story-tab.active { background: var(--ink); color: #fff; }
.story-panel { display: none; }
.story-panel.active { display: block; animation: fadeIn .4s ease; }
.step { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.step:last-child { border-bottom: none; }
.step-num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 20px; color: var(--brand); background: var(--white); transition: .35s var(--ease); }
.step:hover .step-num { background: var(--grad-brand); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: var(--sh-brand); }
.step h3 { font-size: 21px; font-weight: 440; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.step-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.step-tags span { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.step-tags span::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ---------- TESTIMONIALS ---------- */
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.testi:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--accent); font-size: 15px; }
.testi-quote { font-family: 'Fraunces', serif; font-size: 17px; font-style: italic; line-height: 1.55; color: var(--ink); flex: 1; margin-bottom: 26px; font-weight: 380; }
.testi-author { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; font-family: 'Inter'; flex-shrink: 0; background: var(--surface-2); color: var(--brand); }
.testi-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.testi-role { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.testi.featured { background: var(--grad-navy); border: none; }
.testi.featured .testi-quote { color: #fff; }
.testi.featured .testi-author { border-top-color: rgba(255,255,255,0.12); }
.testi.featured .testi-name { color: #fff; }
.testi.featured .testi-role { color: rgba(255,255,255,0.55); }
.testi.featured .testi-avatar { background: rgba(255,255,255,0.12); color: var(--mint); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: rgba(3,148,185,0.35); box-shadow: var(--sh-md); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; font-size: 16.5px; font-weight: 550; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--brand); }
.faq-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; transition: .35s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; background: var(--brand); border-radius: 2px; transition: .35s var(--ease); }
.faq-ic::before { width: 13px; height: 2px; }
.faq-ic::after { width: 2px; height: 13px; }
.faq-item.open .faq-ic { background: var(--brand); }
.faq-item.open .faq-ic::before, .faq-item.open .faq-ic::after { background: #fff; }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height: 480px; }
.faq-a-inner { padding: 0 28px 26px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- FORMS ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 46px); box-shadow: var(--sh-md); }
.form-card h3 { font-size: 24px; font-weight: 440; margin-bottom: 8px; }
.form-card .form-sub { font-size: 14.5px; color: var(--ink-2); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.form-group .req { color: #e11d48; }
.form-input, .form-select, .form-textarea {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  width: 100%; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-4); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(3,148,185,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; border-radius: var(--r-pill); background: var(--grad-brand); color: #fff; font-family: inherit; font-size: 15.5px; font-weight: 600; box-shadow: var(--sh-brand); transition: transform .3s var(--ease), box-shadow .3s; margin-top: 6px; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(5,103,165,0.36); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 15px; margin-bottom: 16px; }
.form-consent input { margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.form-consent label { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.form-consent a { color: var(--brand); text-decoration: underline; }
.form-note { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ---------- CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-navy); padding: clamp(56px,7vw,96px) 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; }
.cta-band-orb { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(3,148,185,0.32), transparent 68%); top: -220px; right: -100px; filter: blur(20px); }
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(28px,3.6vw,46px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 520px; }
.cta-band-actions { display: flex; gap: 13px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- FOOTER ---------- */
#footer { background: var(--navy); color: rgba(255,255,255,0.6); }
.footer-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #072a44 0%, #041826 60%); padding: 56px 0; }
.footer-cta::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(3,148,185,0.18), transparent 70%); top: -200px; right: -60px; }
.footer-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: clamp(22px,2.6vw,32px); margin-bottom: 8px; }
.footer-cta p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 480px; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.footer-main { padding: 76px 0 0; position: relative; }
.footer-main::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(3,148,185,0.5), rgba(53,182,209,0.7), rgba(3,148,185,0.5), transparent); }
.footer-grid { display: grid; grid-template-columns: 300px 1fr 1fr 240px; gap: 52px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand-logo { display: inline-flex; align-items: center; margin-bottom: 20px; }
.footer-brand-logo img { height: 104px; width: auto; }
.footer-brand-logo-text { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; color: #fff; line-height: 1; }
.footer-brand-logo-text em { display: block; font-style: normal; font-family: 'Inter'; font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; margin-top: 4px; }
.footer-brand-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 22px; }
.footer-contact { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.footer-contact a { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-contact a:hover { color: var(--mint); }
.footer-contact-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(3,148,185,0.12); border: 1px solid rgba(3,148,185,0.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-contact-ic svg { width: 15px; height: 15px; stroke: var(--mint); }
.footer-socials { display: flex; gap: 10px; }
.footer-social { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: .3s var(--ease); }
.footer-social:hover { background: var(--grad-brand); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: var(--sh-brand); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 22px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--mint); padding-left: 5px; }
.footer-badges { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.footer-badge { display: flex; align-items: flex-start; gap: 11px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 11px 13px; transition: border-color .25s, background .25s; }
.footer-badge:hover { border-color: rgba(3,148,185,0.3); background: rgba(3,148,185,0.05); }
.footer-badge-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.footer-badge-dot.green { background: #34d399; box-shadow: 0 0 6px #34d399; }
.footer-badge-dot.blue { background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.footer-badge-dot.amber { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.footer-badge-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.82); }
.footer-badge-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.footer-hours { background: rgba(3,148,185,0.06); border: 1px solid rgba(3,148,185,0.18); border-radius: 12px; padding: 15px 16px; }
.footer-hours-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 11px; }
.footer-hours-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 7px; }
.footer-hours-row:last-child { margin-bottom: 0; color: #fff; font-weight: 550; }
.footer-hours-row span:last-child { color: rgba(255,255,255,0.72); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 18px; align-items: center; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-sep { color: rgba(255,255,255,0.15); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- RESPONSIVE ---------- */
/* Nav collapses to hamburger a little earlier so the 8 links + Sign In + CTAs never crowd */
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev { direction: ltr; }
  .story { grid-template-columns: 1fr; }
  .story-sticky { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > :first-child { grid-column: span 2; }
  .hero-float { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; padding: 32px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-band-inner, .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-inner { gap: 24px; }
  .floating-stat { left: 12px; }
  .hero-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale { opacity: 1 !important; transform: none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}

/* ============================================================
   ENHANCEMENTS — richer motion & modern micro-interactions
   ============================================================ */

/* Scroll progress bar */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--sky), var(--mint));
  background-size: 200% 100%; animation: progGrad 4s linear infinite;
  box-shadow: 0 0 14px rgba(3,148,185,0.6); transition: width .12s ease-out; will-change: width;
}
@keyframes progGrad { to { background-position: 200% 50%; } }

/* Animated gradient headline accents */
.hero h1 em, .page-hero h1 em, .svc-dark h2 em, .register h2 em {
  background-size: 220% auto; animation: gradSlide 6s ease-in-out infinite;
}
@keyframes gradSlide { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Button shine sweep */
.btn { overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { animation: btnShine .75s ease; }
@keyframes btnShine { to { left: 140%; } }

/* Cursor-following spotlight glow on cards */
.card, .testi, .role-card, .sector, .worker-step, .compliance-card, .value-card, .delivery-card { position: relative; }
.card::before, .testi::before, .role-card::before, .sector::before, .worker-step::before, .delivery-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(53,182,209,0.16), transparent 60%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover::before, .testi:hover::before, .role-card:hover::before,
.sector:hover::before, .worker-step:hover::before, .delivery-card:hover::before { opacity: 1; }

/* Springy icon-tile reaction on card hover */
.icon-tile { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover .icon-tile, .worker-step:hover .worker-circle {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  box-shadow: 0 16px 34px rgba(5,103,165,0.4);
}
.worker-circle { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }

/* Stat cards: lift + glow */
.stat-item { transition: transform .45s var(--ease), background .45s, box-shadow .45s; }
.stat-item:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(53,182,209,0.3); }
.hero-stat { will-change: transform; }

/* Trust logos subtle rise on hover */
.trust-logo { transition: color .25s, transform .25s var(--ease); }
.trust-logo:hover { transform: translateY(-2px); }

/* Link arrows glide */
.btn-link:hover svg { transform: translateX(3px); }

/* Refined blur-in scroll reveal */
.reveal, .reveal-l, .reveal-r, .reveal-scale {
  filter: blur(6px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
}
.reveal.in, .reveal-l.in, .reveal-r.in, .reveal-scale.in { filter: blur(0); }

/* Floating decorative bob for badges/stats */
.floating-stat { animation: bob 6s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  #progress, .hero h1 em, .page-hero h1 em, .floating-stat { animation: none !important; }
  .card::before, .testi::before, .role-card::before, .sector::before,
  .worker-step::before, .delivery-card::before, .btn::after { display: none !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale { filter: none !important; }
}

/* ============================================================
   HOME — moving elements & extra life
   ============================================================ */

/* Hero rising particles */
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-particle {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,235,245,0.9), rgba(53,182,209,0.15) 60%, transparent 70%);
  animation: floatUp 15s linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  12%  { opacity: 0.7; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-108vh) translateX(30px) scale(1.2); opacity: 0; }
}

/* Second floating hero pill */
.hero-float-pill {
  position: absolute; z-index: 4; top: 150px; right: 6%;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px 11px 13px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(5,103,165,0.72), rgba(3,148,185,0.6));
  border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(3,148,185,0.35);
  animation: bobRot 8s ease-in-out infinite alternate, rise 1s .6s var(--ease) both;
}
@keyframes bobRot { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-12px) rotate(1deg); } }
.hero-float-pill-ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-float-pill-ic svg { width: 15px; height: 15px; stroke: #fff; }
.hero-float-pill-t { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.15; }
.hero-float-pill-t span { display: block; font-size: 10.5px; font-weight: 400; color: rgba(255,255,255,0.7); }
@media (max-width: 1100px) { .hero-float-pill { display: none; } }

/* Roles ticker band */
.ticker { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 16px 0; overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--navy), transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.ticker-item { display: inline-flex; align-items: center; gap: 40px; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.6); white-space: nowrap; }
.ticker-item i { font-style: normal; color: var(--mint); }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* Featured service card: breathing glow */
.card-feature { animation: featGlow 5.5s ease-in-out infinite; }
@keyframes featGlow {
  0%, 100% { box-shadow: var(--sh-md), 0 0 0 1px rgba(53,182,209,0.15); }
  50%      { box-shadow: var(--sh-lg), 0 0 46px rgba(53,182,209,0.32); }
}

/* Stats band: extra drifting orb */
.stats-band::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,182,209,0.22), transparent 70%);
  top: -140px; right: -70px; filter: blur(20px); pointer-events: none;
  animation: float1 17s ease-in-out infinite alternate;
}

/* Section decorative drifting blobs */
.deco { position: relative; overflow: hidden; }
.deco > * { position: relative; z-index: 1; }
.deco::before, .deco::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(10px);
}
.deco::before {
  width: 460px; height: 460px; top: -160px; left: -140px;
  background: radial-gradient(circle, rgba(3,148,185,0.08), transparent 70%);
  animation: float2 22s ease-in-out infinite alternate;
}
.deco::after {
  width: 380px; height: 380px; bottom: -150px; right: -120px;
  background: radial-gradient(circle, rgba(232,160,69,0.06), transparent 70%);
  animation: float1 26s ease-in-out infinite alternate;
}

/* Gentle idle float for service icons on home */
.svc-home .icon-tile { animation: iconFloat 5s ease-in-out infinite; }
.svc-home .card:nth-child(2n) .icon-tile { animation-delay: 1.2s; }
.svc-home .card:nth-child(3n) .icon-tile { animation-delay: 2.1s; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.svc-home .card:hover .icon-tile { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-particles, .hero-float-pill { display: none !important; }
  .ticker-track { animation: none !important; }
  .card-feature, .stats-band::after, .deco::before, .deco::after, .svc-home .icon-tile { animation: none !important; }
}

/* ============================================================
   MOBILE APP SECTION
   ============================================================ */
.appsec { position: relative; overflow: hidden; }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8,40,60,0.28); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store-badge b { font-size: 16px; font-weight: 600; }
.app-rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.app-rating-stars { color: var(--accent); letter-spacing: 1px; }

/* Real app screenshot (shown when images/app-mockup.png exists; else CSS mockup below) */
.app-photo { position: relative; z-index: 1; width: 340px; max-width: 88vw; height: auto; filter: drop-shadow(0 40px 80px rgba(4,18,30,0.38)); animation: phoneBob 7s ease-in-out infinite alternate; }
.app-photo + .phone { display: none; }

/* Phone frame (CSS mockup fallback) */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(3,148,185,0.28), transparent 68%); filter: blur(20px); z-index: 0; animation: float1 16s ease-in-out infinite alternate; }
.phone {
  position: relative; z-index: 1; width: 300px; max-width: 84vw;
  background: linear-gradient(160deg, #0b2135, #05121e); border-radius: 46px; padding: 13px;
  box-shadow: 0 40px 90px rgba(4,18,30,0.4), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: phoneBob 7s ease-in-out infinite alternate;
}
@keyframes phoneBob { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(-16px) rotate(.6deg); } }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #05121e; border-radius: 14px; z-index: 3; }
.phone-screen { background: #f4f8fc; border-radius: 34px; overflow: hidden; position: relative; }

/* App UI */
.app { display: flex; flex-direction: column; padding: 42px 15px 0; font-family: 'Inter', sans-serif; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-burger { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(8,40,60,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.app-burger i { width: 15px; height: 2px; background: var(--brand); border-radius: 2px; }
.app-bell { position: relative; width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(8,40,60,0.08); display: flex; align-items: center; justify-content: center; }
.app-bell svg { width: 16px; height: 16px; stroke: var(--brand); }
.app-badge-dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-hi span { font-size: 13px; color: var(--ink-3); }
.app-hi strong { display: block; font-size: 22px; font-weight: 700; color: #12395c; letter-spacing: -0.01em; }
.app-next { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 6px 18px rgba(8,40,60,0.08); margin: 14px 0; }
.app-next-ic { width: 62px; height: 58px; border-radius: 14px; background: linear-gradient(150deg, #12395c, #0b2135); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-next-ic svg { width: 26px; height: 26px; stroke: #fff; }
.app-next-txt { flex: 1; }
.app-next-txt span { font-size: 10.5px; color: var(--ink-3); }
.app-next-txt b { display: block; font-size: 15px; color: #12395c; font-weight: 700; }
.app-next-txt small { font-size: 10px; color: var(--brand); font-weight: 600; }
.app-next-btn { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(150deg, #2f7fe0, #1f63c4); color: #fff; font-size: 9.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(31,99,196,0.4); line-height: 1.15; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-tile { position: relative; background: #fff; border-radius: 15px; padding: 12px 6px; text-align: center; box-shadow: 0 4px 12px rgba(8,40,60,0.06); }
.app-tile-ic { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; }
.app-tile-ic svg { width: 17px; height: 17px; }
.app-tile span { font-size: 9.5px; font-weight: 600; color: #12395c; line-height: 1.2; display: block; }
.app-tile .app-badge-dot { top: 6px; right: 10px; }
.ti-blue { background: rgba(37,99,235,0.1); } .ti-blue svg { stroke: #2563eb; }
.ti-teal { background: rgba(3,148,185,0.12); } .ti-teal svg { stroke: var(--teal); }
.ti-amber { background: rgba(232,160,69,0.15); } .ti-amber svg { stroke: var(--accent-d); }
.ti-pink { background: rgba(236,72,153,0.12); } .ti-pink svg { stroke: #db2777; }
.app-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 8px; }
.app-sec-head b { font-size: 13px; color: #12395c; font-weight: 700; }
.app-sec-head span { font-size: 10px; color: var(--brand); font-weight: 600; }
.app-book { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 15px; padding: 11px 12px; box-shadow: 0 4px 12px rgba(8,40,60,0.06); }
.app-book-date { text-align: center; padding-right: 10px; border-right: 1px solid var(--line); }
.app-book-date span { font-size: 9px; color: var(--ink-3); }
.app-book-date b { display: block; font-size: 17px; color: #12395c; font-weight: 700; }
.app-book-info { flex: 1; }
.app-book-info b { font-size: 12px; color: #12395c; }
.app-book-info small { display: block; font-size: 9px; color: var(--ink-3); }
.app-book-info .bk-time { color: var(--brand); font-weight: 600; }
.app-book-act { display: flex; flex-direction: column; gap: 8px; }
.app-book-act i { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; }
.bk-yes { background: rgba(34,197,94,0.15); color: #16a34a; }
.bk-no { background: rgba(239,68,68,0.12); color: #ef4444; }
.app-tabs { margin-top: 16px; display: flex; justify-content: space-around; background: #fff; padding: 11px 8px 15px; box-shadow: 0 -4px 16px rgba(8,40,60,0.06); }
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--ink-3); position: relative; }
.app-tab svg { width: 18px; height: 18px; stroke: var(--ink-3); }
.app-tab.on { color: var(--brand); }
.app-tab.on svg { stroke: var(--brand); }
.app-tab .app-badge-dot { top: -4px; right: 2px; min-width: 14px; height: 14px; font-size: 9px; }

@media (max-width: 1024px) { .phone { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .phone, .phone-glow { animation: none !important; } }
