/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 250vh;
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.hero__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 20% 20%, rgba(59, 109, 232, 0.18) 0px, transparent 50%),
    radial-gradient(at 80% 10%, rgba(0, 47, 167, 0.12) 0px, transparent 50%),
    radial-gradient(at 10% 80%, rgba(232, 240, 254, 0.8) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(59, 109, 232, 0.1) 0px, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  animation: meshMove 18s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, 2%) scale(1.05);
  }
  100% {
    transform: translate(-2%, 1%) scale(1.02);
  }
}

.hero__shapes {
  position: absolute;
  inset: 0;
}

.hero__shapes span {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.04;
  animation: float 12s ease-in-out infinite;
  will-change: transform;
}

.hero__shapes span:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero__shapes span:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}

.hero__shapes span:nth-child(3) {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 30%;
  animation-delay: -6s;
}

.hero__shapes span:nth-child(4) {
  width: 220px;
  height: 220px;
  top: 30%;
  right: 25%;
  animation-delay: -9s;
}

.hero__shapes span:nth-child(5) {
  width: 160px;
  height: 160px;
  top: 18%;
  right: 38%;
  animation-delay: -2s;
  background: var(--brand-primary-light);
  opacity: 0.03;
}

.hero__shapes span:nth-child(6) {
  width: 100px;
  height: 100px;
  top: 72%;
  left: 6%;
  animation-delay: -4s;
  opacity: 0.05;
}

.hero__shapes span:nth-child(7) {
  width: 200px;
  height: 200px;
  top: 42%;
  left: 48%;
  animation-delay: -7s;
  background: var(--brand-primary-light);
  opacity: 0.03;
}

.hero__shapes span:nth-child(8) {
  width: 140px;
  height: 140px;
  bottom: 8%;
  right: 6%;
  animation-delay: -10s;
  opacity: 0.04;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  will-change: transform, opacity;
}

.hero__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero__heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--tracking-tighter);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__line {
  display: block;
  overflow: hidden;
  opacity: 0;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
}

.hero .btn {
  opacity: 0;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  will-change: opacity;
}

.hero__scroll-indicator span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-medium);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* Hero floating hover */
[data-text-fx="float"] .hero__line {
  display: inline-block;
}

[data-text-fx="float"]:hover .hero__line {
  animation: textFloat 2s ease-in-out infinite;
}

[data-text-fx="float"]:hover .hero__line:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes textFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ===== Responsive hero ===== */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero__pin {
    height: auto;
    min-height: 100vh;
    padding: 8rem 0 6rem;
  }

  .hero__content {
    padding: 0 1.25rem;
  }
}
