/* Gaia Healers — Immersive splash / landing experience */

.gaia-splash-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 1rem 1.25rem 1.25rem;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #0f2418 0%, #070f0b 60%, #030603 100%);
  isolation: isolate;
}

@media (display-mode: standalone) {
  .gaia-splash-shell {
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
  }
}

/* Animated background */
.gaia-splash-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.gaia-splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: splash-orb-float 18s ease-in-out infinite;
}

.gaia-splash-orb-1 {
  width: 28rem;
  height: 28rem;
  top: -10%;
  left: -20%;
  background: radial-gradient(circle, rgba(92, 184, 46, 0.45), rgba(92, 184, 46, 0) 70%);
  animation-delay: 0s;
}

.gaia-splash-orb-2 {
  width: 24rem;
  height: 24rem;
  bottom: -8%;
  right: -18%;
  background: radial-gradient(circle, rgba(125, 217, 86, 0.35), rgba(125, 217, 86, 0) 70%);
  animation-delay: -6s;
}

.gaia-splash-orb-3 {
  width: 18rem;
  height: 18rem;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(68, 148, 34, 0.3), rgba(68, 148, 34, 0) 70%);
  animation-delay: -12s;
}

.gaia-splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem, 6rem 6rem;
  background-position: 0 0, 1.5rem 1.5rem;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
}

@keyframes splash-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.05); }
  66% { transform: translate(-3%, 4%) scale(0.98); }
}

/* Header */
.gaia-splash-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-top: 0.5rem;
  margin-bottom: 1.5rem;
  z-index: 10;
}

.gaia-splash-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #5cb82e, #449422);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(92, 184, 46, 0.35);
  overflow: hidden;
}

.gaia-splash-logo-mark img,
.gaia-splash-logo-mark svg {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.gaia-splash-brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Content area */
.gaia-splash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  z-index: 10;
}

/* ============================================================
   Scene stage — a distinct animated illustration per slide
   ============================================================ */
.gaia-splash-stage {
  position: relative;
  width: 13rem;
  height: 13rem;
  margin-bottom: 2.25rem;
  display: grid;
  place-items: center;
}

/* soft glow behind every scene */
.splash-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(92, 184, 46, 0.32), transparent 62%);
  filter: blur(14px);
  animation: splash-icon-breathe 5s ease-in-out infinite;
  pointer-events: none;
}

.splash-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9) translateY(6px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.splash-scene.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.splash-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

/* ---- Scene 0 · brand orb ---- */
.splash-brand-orb {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  display: grid;
  place-items: center;
}

.splash-orb-core {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #6fce3a, #3f8c1f);
  box-shadow: 0 0 44px rgba(92, 184, 46, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  animation: splash-icon-breathe 4.5s ease-in-out infinite;
}

.splash-orb-core svg {
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}

.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 233, 126, 0.35);
}

.splash-ring--a {
  inset: 0;
  animation: splash-ring-pulse 3.2s ease-out infinite;
}

.splash-ring--b {
  inset: -1.1rem;
  border-color: rgba(167, 233, 126, 0.2);
  animation: splash-ring-pulse 3.2s ease-out 1.6s infinite;
}

.splash-spark {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #a7e97e;
  box-shadow: 0 0 10px rgba(167, 233, 126, 0.9);
  top: 50%;
  left: 50%;
  margin: -0.275rem;
  transform-origin: 0.275rem 0.275rem;
  animation: splash-orbit 9s linear infinite;
}

.splash-spark--1 { --r: 4.6rem; animation-duration: 8s; }
.splash-spark--2 { --r: 3.6rem; animation-duration: 11s; animation-direction: reverse; opacity: 0.75; }
.splash-spark--3 { --r: 5.2rem; animation-duration: 14s; opacity: 0.5; }

@keyframes splash-orbit {
  from { transform: rotate(0deg) translateX(var(--r, 4.6rem)); }
  to { transform: rotate(360deg) translateX(var(--r, 4.6rem)); }
}

@keyframes splash-ring-pulse {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- Scene 1 · biofield aura + chakra dots ---- */
.s-aura circle { transform-origin: 100px 100px; animation: splash-breathe-soft 4s ease-in-out infinite; }
.s-aura circle:nth-child(2) { animation-delay: 0.5s; }
.s-aura circle:nth-child(3) { animation-delay: 1s; }
.c-dot {
  fill: #a7e97e;
  transform-origin: center;
  animation: chakra-glow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}
@keyframes chakra-glow {
  0%, 100% { opacity: 0.35; filter: drop-shadow(0 0 0 rgba(167,233,126,0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(167,233,126,0.9)); }
}
@keyframes splash-breathe-soft {
  0%, 100% { transform: scale(1); opacity: inherit; }
  50% { transform: scale(1.06); }
}

/* ---- Scene 2 · network ---- */
.s-links line { stroke-dasharray: 6 6; animation: dash-flow 1.6s linear infinite; opacity: 0.6; }
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
.n-dot {
  fill: rgba(125, 217, 86, 0.9);
  stroke: rgba(255,255,255,0.25); stroke-width: 1;
  transform-origin: center;
  animation: node-pop 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.22s);
}
@keyframes node-pop {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.n-hub { fill: #6fce3a; filter: drop-shadow(0 0 12px rgba(92,184,46,0.7)); animation: splash-icon-breathe 3s ease-in-out infinite; transform-origin: 100px 100px; }

/* ---- Scene 3 · credentials ---- */
.s-bars rect {
  fill: rgba(125, 217, 86, 0.28);
  stroke: rgba(167,233,126,0.4); stroke-width: 1;
  transform-origin: bottom;
  transform-box: fill-box;
  animation: bar-rise 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
@keyframes bar-rise {
  0%, 100% { transform: scaleY(0.72); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
.s-seal { transform-origin: 100px 82px; animation: splash-icon-breathe 4s ease-in-out infinite; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
.seal-ribbon { animation: ribbon-sway 3.5s ease-in-out infinite; transform-origin: 100px 104px; }
@keyframes ribbon-sway { 0%,100%{transform:rotate(-3deg);} 50%{transform:rotate(3deg);} }

/* ---- Scene 4 · events + voice ---- */
.s-wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: wave-bounce 1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.11s);
}
@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.35); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.s-mic { filter: drop-shadow(0 0 14px rgba(92,184,46,0.7)); transform-origin: 100px 150px; animation: splash-icon-breathe 2.4s ease-in-out infinite; }

@keyframes splash-icon-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Steps */
.gaia-splash-steps {
  position: relative;
  width: 100%;
  min-height: 12rem;
}

.splash-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(1.5rem) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gaia-splash-shell .splash-step.active {
  display: flex;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gaia-splash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: rgba(92, 184, 46, 0.18);
  border: 1px solid rgba(125, 217, 86, 0.25);
  color: #a7e97e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gaia-splash-title {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.gaia-splash-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1rem;
  max-width: 20rem;
  text-wrap: balance;
}

/* Footer controls */
.gaia-splash-footer {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
}

.gaia-splash-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gaia-splash-progress [data-splash-dot] {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
  width: 0.5rem;
}

.gaia-splash-progress [data-splash-dot].bg-gaia,
.gaia-splash-progress [data-splash-dot].active {
  width: 1.75rem;
  background: #5cb82e;
  box-shadow: 0 0 12px rgba(92, 184, 46, 0.5);
}

.gaia-splash-progress [data-splash-dot].bg-neutral-200 {
  background: rgba(255, 255, 255, 0.2);
}

.gaia-splash-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, #5cb82e, #449422);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(92, 184, 46, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.gaia-splash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(92, 184, 46, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.gaia-splash-btn:active {
  transform: translateY(0) scale(0.98);
}

.gaia-splash-btn.hidden {
  display: none;
}

.gaia-splash-skip {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gaia-splash-skip:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive tweaks */
@media (min-width: 640px) {
  .gaia-splash-shell {
    padding: 2rem 2rem 3rem;
  }

  .gaia-splash-stage {
    width: 14.5rem;
    height: 14.5rem;
  }

  .gaia-splash-body {
    max-width: 22rem;
  }
}

@media (max-height: 720px) {
  .gaia-splash-stage {
    width: 10.5rem;
    height: 10.5rem;
    margin-bottom: 1.5rem;
  }

  .splash-brand-orb {
    width: 7rem;
    height: 7rem;
  }

  .splash-orb-core {
    width: 5rem;
    height: 5rem;
  }

  .gaia-splash-steps {
    min-height: 10rem;
  }
}
