* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-main-gradient {
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 16% 18%, rgba(77, 116, 255, 0.36), transparent 45%),
    radial-gradient(circle at 82% 16%, rgba(161, 86, 255, 0.36), transparent 42%),
    radial-gradient(circle at 58% 84%, rgba(59, 188, 255, 0.18), transparent 40%),
    linear-gradient(130deg, #060812 0%, #0c1232 42%, #1a0e39 100%);
  animation: bgDrift 24s ease-in-out infinite alternate;
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(194, 209, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 209, 255, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 98%);
}

.bg-nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-nebula.left {
  left: -12vw;
  top: 18vh;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(63, 193, 255, 0.28), rgba(63, 193, 255, 0));
  animation: glowPulse 10s ease-in-out infinite;
}

.bg-nebula.right {
  right: -12vw;
  bottom: 10vh;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(165, 94, 255, 0.34), rgba(165, 94, 255, 0));
  animation: glowPulse 12s ease-in-out infinite reverse;
}

.finance-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.finance-symbol {
  position: absolute;
  color: rgba(213, 223, 255, 0.18);
  border: 1px solid rgba(181, 196, 255, 0.17);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: financeFade 12s ease-in-out infinite;
}

.symbol-1 { left: 8%; top: 18%; animation-delay: -2s; }
.symbol-2 { left: 74%; top: 20%; animation-delay: -7s; }
.symbol-3 { left: 17%; top: 68%; animation-delay: -4s; }
.symbol-4 { left: 68%; top: 75%; animation-delay: -10s; }
.symbol-5 { left: 44%; top: 88%; animation-delay: -6s; }

.finance-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glass-card {
  background: linear-gradient(160deg, rgba(17, 22, 50, 0.66), rgba(12, 16, 39, 0.5));
  border: 1px solid rgba(171, 189, 255, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(6, 8, 24, 0.45);
}

.hero-signal {
  position: absolute;
  border: 1px solid rgba(171, 188, 255, 0.24);
  border-radius: 999px;
  pointer-events: none;
}

.hero-signal-a {
  width: 190px;
  height: 190px;
  right: 6%;
  top: 8%;
  opacity: 0.34;
  animation: pulseRing 8s ease-in-out infinite;
}

.hero-signal-b {
  width: 128px;
  height: 128px;
  right: 11%;
  top: 16%;
  opacity: 0.26;
  animation: pulseRing 9s ease-in-out infinite reverse;
}

.hero-signal-c {
  width: 74px;
  height: 74px;
  right: 16%;
  top: 25%;
  opacity: 0.22;
  animation: pulseRing 6s ease-in-out infinite;
}

.hero-radar {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 210, 255, 0.6), transparent);
  transform: rotate(-12deg);
  opacity: 0.35;
  animation: radarSweep 7s ease-in-out infinite;
}

.featured-card {
  border-color: rgba(179, 132, 255, 0.56);
  box-shadow: 0 24px 66px rgba(56, 34, 123, 0.5), inset 0 0 0 1px rgba(155, 128, 255, 0.2);
}

.trust-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(172, 188, 255, 0.34);
  background: rgba(20, 30, 64, 0.62);
  color: rgba(230, 238, 255, 0.95);
  font-size: 13px;
}

.product-card {
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(141, 183, 255, 0.5);
  box-shadow: 0 28px 70px rgba(8, 12, 35, 0.55);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: transform 0.55s ease;
}

.btn-shine:hover::after {
  transform: translateX(110%);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bgDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.04); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.34; transform: scale(1); }
  50% { opacity: 0.48; transform: scale(1.08); }
}

@keyframes financeFade {
  0%, 100% { opacity: 0.08; transform: translateY(0); }
  50% { opacity: 0.24; transform: translateY(-7px); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.24; }
  50% { transform: scale(1.06); opacity: 0.4; }
}

@keyframes radarSweep {
  0%, 100% { transform: translateX(0) rotate(-12deg); opacity: 0.25; }
  50% { transform: translateX(14px) rotate(-12deg); opacity: 0.5; }
}

@media (max-width: 768px) {
  .finance-symbol {
    font-size: 9px;
    padding: 0.25rem 0.6rem;
  }

  .hero-signal-a {
    width: 130px;
    height: 130px;
    right: 4%;
    top: 10%;
  }

  .hero-signal-b,
  .hero-signal-c,
  .hero-radar {
    display: none;
  }
}
