/* ==========================================================
   HealthSkye — Premium 3D landing (custom layer on Tailwind)
   Palette: deep navy #0A1F44 / #060E1F, white space,
   single warm accent gold #C99B3F (used sparingly).
   ========================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
* { font-family: 'Inter', sans-serif; }
::selection { background: rgba(201,155,63,.35); color: #060E1F; }

/* ---------- Gold accent helpers ---------- */
.text-gold-gradient {
  background: linear-gradient(120deg, #E4C67E 0%, #C99B3F 55%, #A87F28 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-gold-gradient-dark {
  background: linear-gradient(120deg, #B98A2E 0%, #96700F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.btn-gold {
  background: linear-gradient(120deg, #D8AE54, #C99B3F);
  color: #060E1F;
  box-shadow: 0 10px 30px -8px rgba(201,155,63,.55);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, filter .3s;
}
.btn-gold:hover { transform: translateY(-3px); filter: brightness(1.07); box-shadow: 0 18px 40px -10px rgba(201,155,63,.65); }
.btn-gold:active { transform: translateY(-1px); }

/* ---------- Frosted nav ---------- */
#site-nav {
  background: rgba(6,14,31,.38);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#site-nav.nav-scrolled {
  background: rgba(6,14,31,.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 40px -12px rgba(3,7,17,.6);
}
.nav-glass {
  background: rgba(6,14,31,.9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.nav-link { position: relative; transition: color .25s; }
.nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #E4C67E, #C99B3F);
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Hero fallback (also acts as canvas backdrop) ---------- */
.hero-fallback {
  background:
    radial-gradient(ellipse 60% 50% at 72% 45%, rgba(201,155,63,.12), transparent 60%),
    radial-gradient(ellipse 80% 70% at 70% 50%, #12275A 0%, transparent 70%),
    radial-gradient(ellipse 120% 90% at 30% 100%, #0A1F44 0%, transparent 60%),
    linear-gradient(160deg, #060E1F 0%, #0A1F44 55%, #060E1F 100%);
}
/* faint dot-grid so the no-WebGL hero still feels "digital" */
.hero-fallback::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 60% 55% at 70% 48%, rgba(0,0,0,.8), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 70% 48%, rgba(0,0,0,.8), transparent 70%);
}
#globe-canvas { display: block; opacity: 0; transition: opacity 1.2s ease; }
#globe-canvas.globe-ready { opacity: 1; }

.city-chip {
  padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: rgba(255,255,255,.75); font-size: .78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45rem;
}
.city-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #C99B3F; box-shadow: 0 0 8px rgba(201,155,63,.9); }

.scroll-cue {
  width: 22px; height: 36px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35); position: relative;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 999px;
  background: #C99B3F; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(12px);opacity:0} 100%{opacity:0} }

/* ---------- Layered shadows ---------- */
.shadow-layered {
  box-shadow:
    0 1px 2px rgba(10,31,68,.06),
    0 12px 32px -8px rgba(10,31,68,.14),
    0 32px 80px -24px rgba(10,31,68,.22);
}

/* ---------- Stat cards ---------- */
.stat-card {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #FBFBFD, #F4F5F8);
  border: 1px solid rgba(10,31,68,.07);
  border-radius: 1.5rem; padding: 2.5rem 1.5rem;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -20px rgba(10,31,68,.22); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #E4C67E, #C99B3F);
}

/* ---------- 3D tilt cards ---------- */
.tilt-card {
  position: relative; display: block;
  background: #fff; border: 1px solid rgba(10,31,68,.07);
  border-radius: 1.4rem; padding: 1.75rem;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), box-shadow .45s, border-color .45s;
  will-change: transform;
  box-shadow: 0 2px 6px rgba(10,31,68,.05), 0 16px 40px -18px rgba(10,31,68,.12);
}
.tilt-card:hover { border-color: rgba(201,155,63,.35); box-shadow: 0 4px 10px rgba(10,31,68,.06), 0 30px 70px -24px rgba(10,31,68,.28); }
.tilt-inner { transform: translateZ(28px); transform-style: preserve-3d; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--gx,50%) var(--gy,50%), rgba(228,198,126,.28), rgba(255,255,255,.10) 35%, transparent 60%);
}
.tilt-card:hover .tilt-glare { opacity: 1; }
.tilt-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(10,31,68,.08), rgba(10,31,68,.03));
  color: #0A1F44; transition: all .4s;
}
.tilt-icon svg { width: 26px; height: 26px; }
.tilt-card:hover .tilt-icon { background: linear-gradient(140deg, #0A1F44, #16336B); color: #E4C67E; transform: translateZ(14px); }
.tilt-icon-gold { background: linear-gradient(140deg, rgba(201,155,63,.22), rgba(201,155,63,.08)); color: #A87F28; }
.tilt-card:hover .tilt-icon-gold { background: linear-gradient(140deg, #C99B3F, #A87F28); color: #060E1F; }
.tilt-card-cta { background: linear-gradient(150deg, #0A1F44, #060E1F); border-color: rgba(201,155,63,.3); }

/* ---------- Highlight cards ---------- */
.hl-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FBFBFD, #F6F7FA);
  border: 1px solid rgba(10,31,68,.07); border-radius: 1.6rem;
  padding: 2.4rem 2.2rem;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), box-shadow .45s;
}
.hl-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -26px rgba(10,31,68,.3); }
.hl-num {
  position: absolute; top: .4rem; right: 1.4rem;
  font-size: 5.2rem; font-weight: 900; line-height: 1;
  color: rgba(10,31,68,.05); pointer-events: none; user-select: none;
}
.hl-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #0A1F44, #16336B); color: #E4C67E;
  box-shadow: 0 14px 30px -10px rgba(10,31,68,.45);
}
.hl-icon svg { width: 27px; height: 27px; }

/* ---------- Glass cards on navy ---------- */
.band-texture {
  background:
    radial-gradient(ellipse 50% 60% at 85% 15%, rgba(201,155,63,.10), transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 90%, rgba(255,255,255,.04), transparent 60%);
}
.glass-card {
  background: rgba(255,255,255,.045);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.4rem; padding: 1.8rem;
  transition: all .45s cubic-bezier(.2,.8,.3,1);
}
.glass-card:hover {
  background: rgba(255,255,255,.085);
  transform: translateY(-6px);
  border-color: rgba(201,155,63,.35);
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.55);
}
.glass-dot { width: 8px; height: 8px; border-radius: 50%; background: #C99B3F; box-shadow: 0 0 10px rgba(201,155,63,.9); flex: none; }

/* ---------- MDA steps ---------- */
.mda-step {
  background: #fff; border: 1px solid rgba(10,31,68,.07);
  border-radius: 1.4rem; padding: 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s;
}
.mda-step:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -24px rgba(10,31,68,.28); }
.mda-step-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem; color: #060E1F;
  background: linear-gradient(140deg, #E4C67E, #C99B3F);
  box-shadow: 0 10px 24px -8px rgba(201,155,63,.6);
}

/* ---------- Store cards ---------- */
.store-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.3rem; padding: 1.4rem 1.5rem;
  transition: all .4s cubic-bezier(.2,.8,.3,1);
}
.store-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.1);
  border-color: rgba(201,155,63,.45);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.6);
}

.badge-fallback {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: .6rem; padding: .3rem .8rem; flex: none; height: 2.5rem;
}
.badge-fallback svg { width: 1.25rem; height: 1.25rem; flex: none; }
.badge-fallback-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-fallback-text small { font-size: .55rem; opacity: .8; }
.badge-fallback-text strong { font-size: .85rem; font-weight: 700; }

/* ---------- Footer socials ---------- */
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.social-btn:hover { background: #C99B3F; color: #060E1F; transform: translateY(-3px); }

/* ---------- Floating motifs ---------- */
.motif { pointer-events: none; z-index: 1; }
.motif-cross { animation: motifFloat 7s ease-in-out infinite; }
.motif-cross-slow { animation: motifFloat 11s ease-in-out infinite reverse; }
.motif-pulse { animation: motifFloat 9s ease-in-out infinite; }
@keyframes motifFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-14px) rotate(2deg)} }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(140deg, #E4C67E, #C99B3F); color: #060E1F;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(201,155,63,.55);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .35s, transform .35s;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motif, .scroll-cue::after { animation: none !important; }
  .tilt-card, .hl-card, .stat-card, .mda-step, .store-card, .glass-card { transition: none; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C99B3F; outline-offset: 3px; border-radius: 6px;
}
