/* Wealth Digital — Hero (minimal centered + lively bg) */
.hero {
  position: relative;
  min-height: calc(100svh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 48px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}

/* ── Hero background layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(197, 168, 128, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 15%, transparent 72%);
  animation: hero-grid-drift 40s linear infinite;
}

@keyframes hero-grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 56px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero-orb--1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -15%;
  inset-inline-end: -12%;
  background: radial-gradient(circle, rgba(191, 149, 63, 0.28) 0%, rgba(191, 149, 63, 0.06) 42%, transparent 68%);
  animation: hero-orb-float-1 16s ease-in-out infinite alternate;
}

.hero-orb--2 {
  width: min(420px, 58vw);
  height: min(420px, 58vw);
  bottom: -10%;
  inset-inline-start: -14%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.32) 0%, rgba(16, 34, 74, 0.1) 45%, transparent 68%);
  animation: hero-orb-float-2 20s ease-in-out infinite alternate;
}

.hero-orb--3 {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 168, 128, 0.16) 0%, transparent 65%);
  animation: hero-orb-float-3 13s ease-in-out infinite alternate;
}

@keyframes hero-orb-float-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 8%) scale(1.1); }
}

@keyframes hero-orb-float-2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, -5%) scale(1.08); }
}

@keyframes hero-orb-float-3 {
  from { transform: translateX(-50%) scale(1); opacity: 0.7; }
  to { transform: translateX(-48%) scale(1.15); opacity: 1; }
}

.hero-pulse {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.35);
  animation: hero-pulse-ring 4.5s ease-out infinite;
}

.hero-pulse--2 {
  animation-delay: 2.25s;
}

@keyframes hero-pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

.hero-beam {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(197, 168, 128, 0.04) 30deg,
    transparent 60deg,
    transparent 180deg,
    rgba(30, 58, 138, 0.05) 210deg,
    transparent 240deg
  );
  animation: hero-beam-spin 50s linear infinite;
}

@keyframes hero-beam-spin {
  to { transform: rotate(360deg); }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 42%),
    rgba(197, 168, 128, 0.09) 0%,
    rgba(191, 149, 63, 0.03) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero:hover .hero-spotlight,
.hero:focus-within .hero-spotlight {
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 42%, transparent 30%, rgba(5, 10, 26, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  animation: fadeInUp 0.8s var(--ease-out);
}

.hero-mark {
  position: relative;
  margin-bottom: 28px;
}

.hero-mark::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 149, 63, 0.22) 0%, transparent 70%);
  animation: hero-logo-glow 3.5s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes hero-logo-glow {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.15); opacity: 1; }
}

.hero-logo {
  width: auto;
  max-width: min(168px, 36vw);
  max-height: 168px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 28px rgba(191, 149, 63, 0.3));
  animation: hero-logo-float 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-logo-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-bright);
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(197, 168, 128, 0.35);
}

.hero-link:hover {
  opacity: 1;
  color: var(--gold);
  text-decoration-color: rgba(197, 168, 128, 0.6);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid,
  .hero-orb,
  .hero-pulse,
  .hero-beam,
  .hero-mark::before,
  .hero-logo {
    animation: none !important;
  }

  .hero-spotlight {
    display: none;
  }
}

@media (pointer: coarse) {
  .hero-spotlight {
    display: none;
  }
}
