/* Geometric hero background (ported from shape-landing-hero) */

.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  background: var(--page-bg);
}

.geo-bg .theme-toggle--bg {
  pointer-events: auto;
}

.geo-bg__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 45%,
    rgba(244, 63, 94, 0.05) 100%
  );
  filter: blur(48px);
}

.geo-bg__shapes {
  position: absolute;
  inset: 0;
}

.geo-shape {
  position: absolute;
  border-radius: 9999px;
  border: 2px solid var(--geo-shape-border);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px var(--geo-shape-glow);
  opacity: 0;
  transform: translateY(-150px);
  animation:
    geo-enter 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards,
    geo-float 12s ease-in-out infinite;
}

.geo-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    var(--geo-shape-highlight),
    transparent 70%
  );
}

.geo-shape--indigo {
  width: min(600px, 90vw);
  height: 140px;
  left: -10%;
  top: 15%;
  rotate: 12deg;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent);
  animation-delay: 0.3s, 0.3s;
}

.geo-shape--rose {
  width: min(500px, 85vw);
  height: 120px;
  right: -5%;
  top: 70%;
  rotate: -15deg;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.15), transparent);
  animation-delay: 0.5s, 0.8s;
}

.geo-shape--violet {
  width: min(300px, 70vw);
  height: 80px;
  left: 5%;
  bottom: 5%;
  rotate: -8deg;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent);
  animation-delay: 0.4s, 1.1s;
}

.geo-shape--amber {
  width: min(200px, 55vw);
  height: 60px;
  right: 15%;
  top: 10%;
  rotate: 20deg;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
  animation-delay: 0.6s, 1.4s;
}

.geo-shape--cyan {
  width: min(150px, 45vw);
  height: 40px;
  left: 20%;
  top: 5%;
  rotate: -25deg;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), transparent);
  animation-delay: 0.7s, 1.7s;
}

.geo-bg__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--geo-vignette-top) 0%,
    transparent 35%,
    transparent 65%,
    var(--geo-vignette-mid) 100%
  );
}

@keyframes geo-enter {
  0% {
    opacity: 0;
    transform: translateY(-150px) rotate(calc(var(--geo-rotate, 0deg) - 15deg));
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--geo-rotate, 0deg));
  }
}

@keyframes geo-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--geo-rotate, 0deg));
  }
  50% {
    transform: translateY(15px) rotate(var(--geo-rotate, 0deg));
  }
}

.geo-shape--indigo { --geo-rotate: 12deg; }
.geo-shape--rose { --geo-rotate: -15deg; }
.geo-shape--violet { --geo-rotate: -8deg; }
.geo-shape--amber { --geo-rotate: 20deg; }
.geo-shape--cyan { --geo-rotate: -25deg; }

@media (min-width: 768px) {
  .geo-shape--indigo {
    left: -5%;
    top: 20%;
  }

  .geo-shape--rose {
    right: 0;
    top: 75%;
  }

  .geo-shape--violet {
    left: 10%;
    bottom: 10%;
  }

  .geo-shape--amber {
    right: 20%;
    top: 15%;
  }

  .geo-shape--cyan {
    left: 25%;
    top: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-shape {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
