/* ==========================================================================
   Aurora Flow — Layered Ambient Mesh, Organic Blobs & Noise Texture
   Strictly light, airy, low-interference behind typography
   ========================================================================== */

.aurora-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95) 0%, var(--bg-primary) 72%);
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 44% 56% 62% 38% / 46% 42% 58% 54%;
  filter: blur(68px);
  opacity: 0.52;
  will-change: transform, border-radius;
  transform: translate3d(0, 0, 0);
}

.aurora-blob--mint {
  width: min(56vw, 680px);
  height: min(46vw, 520px);
  top: -14%;
  left: -8%;
  background: radial-gradient(circle at 40% 45%, rgba(96, 223, 193, 0.68), rgba(96, 223, 193, 0.08) 72%);
  animation: auroraDriftA 22s ease-in-out infinite alternate;
}

.aurora-blob--blue {
  width: min(54vw, 660px);
  height: min(48vw, 540px);
  top: -10%;
  right: -10%;
  background: radial-gradient(circle at 55% 40%, rgba(119, 155, 255, 0.56), rgba(119, 155, 255, 0.06) 74%);
  animation: auroraDriftB 26s ease-in-out infinite alternate;
}

.aurora-blob--purple {
  width: min(48vw, 580px);
  height: min(42vw, 460px);
  bottom: -18%;
  left: 26%;
  background: radial-gradient(circle at 50% 50%, rgba(181, 160, 245, 0.46), rgba(181, 160, 245, 0.04) 75%);
  animation: auroraDriftC 29s ease-in-out infinite alternate;
}

.aurora-ribbon {
  position: absolute;
  inset: -6% -8% auto -8%;
  height: 112%;
  opacity: 0.65;
  transform: translate3d(0, calc(var(--aurora-scroll, 0) * -28px), 0);
  transition: transform 0.25s linear;
}

.aurora-noise {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.aurora-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(250, 252, 255, 0.66) 0%, rgba(250, 252, 255, 0.16) 66%, transparent 100%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.2) 0%, rgba(250, 252, 255, 0) 68%, var(--bg-primary) 100%);
}

/* Soft Cursor Halo on Desktop */
.aurora-cursor-halo {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(96, 223, 193, 0.20) 0%, rgba(119, 155, 255, 0.12) 42%, transparent 72%);
  transform: translate3d(var(--mx, 50%), var(--my, 35%), 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(28px);
}

.aurora-stage.has-pointer .aurora-cursor-halo {
  opacity: 1;
}

/* Liquid Section Transition Wave */
.liquid-divider {
  display: block;
  width: 100%;
  height: clamp(32px, 4vw, 56px);
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Final CTA Aurora Band */
.aurora-cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(96, 223, 193, 0.34), transparent 48%),
    radial-gradient(circle at 86% 24%, rgba(119, 155, 255, 0.30), transparent 50%),
    radial-gradient(circle at 54% 92%, rgba(181, 160, 245, 0.32), transparent 52%),
    linear-gradient(160deg, #FFFFFF 0%, #F1F8F7 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-aurora);
}

.aurora-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.28) 100%);
  z-index: -1;
}

/* Compact Subpage Header Aurora */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 3.4rem) 0 3.2rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 16%, rgba(96, 223, 193, 0.24), transparent 46%),
    radial-gradient(circle at 84% 22%, rgba(119, 155, 255, 0.20), transparent 48%),
    radial-gradient(circle at 52% 96%, rgba(181, 160, 245, 0.16), transparent 52%),
    var(--bg-primary);
  border-bottom: 1px solid var(--border-soft);
}

@keyframes auroraDriftA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 44% 56% 62% 38% / 46% 42% 58% 54%;
  }
  100% {
    transform: translate3d(5%, 7%, 0) scale(1.08);
    border-radius: 58% 42% 46% 54% / 56% 52% 48% 44%;
  }
}

@keyframes auroraDriftB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 52% 48% 44% 56% / 44% 58% 42% 56%;
  }
  100% {
    transform: translate3d(-6%, 5%, 0) scale(1.06);
    border-radius: 40% 60% 56% 44% / 58% 40% 60% 42%;
  }
}

@keyframes auroraDriftC {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, -6%, 0) scale(1.1);
  }
}
