/* =============================================================
   PREMIUM HERO BG — 21st.dev × UI PRO MAX
   Aurora · Neural Canvas · SVG Rings · Glassmorphic Cards
   ============================================================= */

.hero-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  transition: opacity .5s ease;
}

.hbg-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 8% -8%,  rgba(99,102,241,.26) 0%, transparent 58%),
    radial-gradient(ellipse 65% 55% at 92% 8%,  rgba(167,139,250,.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 50% 115%,rgba(103,232,249,.18) 0%, transparent 58%),
    radial-gradient(ellipse 45% 45% at 78% 82%, rgba(139,92,246,.14) 0%, transparent 58%),
    linear-gradient(155deg, #eef0ff 0%, #f9f5ff 35%, #edfaff 75%, #f5f0ff 100%);
  animation: auroraShift 20s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(14deg) brightness(.97); }
  100% { filter: hue-rotate(-10deg) brightness(1.02); }
}

.hbg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}

.hbg-rings {
  position: absolute; right: -5%; top: 50%;
  transform: translateY(-50%) scale(.94);
  width: min(560px,54vw); height: min(560px,54vw);
  pointer-events: none; opacity: 0;
  animation: ringsEnter 1.6s cubic-bezier(.16,1,.3,1) .3s forwards;
}
@keyframes ringsEnter {
  to { opacity:1; transform: translateY(-50%) scale(1); }
}
.rings-svg { width:100%; height:100%; overflow:visible; }

.ring { transform-origin: 300px 300px; }
.r1 { animation: ringSpin 30s linear infinite; }
.r2 { animation: ringSpin 22s linear infinite reverse; }
.r3 { animation: ringSpin 15s linear infinite; }
.r4 { animation: ringSpin  9s linear infinite reverse; }
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spoke { animation: spokePulse 4s ease-in-out infinite alternate; }
@keyframes spokePulse {
  0%   { opacity:.2; }
  100% { opacity:.9; }
}

.hbg-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(99,102,241,.11), 0 1px 4px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 13px; white-space: nowrap; pointer-events: none;
  opacity: 0;
  animation: cardEnter .8s cubic-bezier(.16,1,.3,1) forwards, hcFloat 7s ease-in-out infinite;
}
.hc1 { top:13%; right:3.5%; animation-delay:.5s, 0s;   }
.hc2 { top:36%; right:1%;   animation-delay:.8s, 1.6s; }
.hc3 { top:59%; right:3%;   animation-delay:1.1s,3.2s; }
.hc4 { top:79%; right:5%;   animation-delay:.9s, 1s;   }
@keyframes cardEnter {
  from { opacity:0; transform:translateX(22px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes hcFloat {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(.5deg); }
}

.hc-pulse {
  width:10px; height:10px; border-radius:50%;
  background: var(--pc,#6366f1);
  box-shadow: 0 0 0 0 var(--pc,#6366f1);
  animation: hcPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes hcPulse {
  0%  { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

.hc-content { display:flex; flex-direction:column; line-height:1.3; }
.hc-val   { font-size:18px; font-weight:800; color:#0A0A0B; letter-spacing:-.6px; }
.hc-label { font-size:11px; font-weight:500; color:#6B7280; }

.hbg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 68% 52%, black 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 68% 52%, black 10%, transparent 72%);
}

@media (max-width:1100px) {
  .hbg-rings { width:46vw; height:46vw; right:-9%; }
  .hc3,.hc4 { display:none; }
}
@media (max-width:768px) {
  .hbg-rings { display:none; }
  .hbg-card  { display:none; }
}
