/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* usa altura visível real em navegadores mobile modernos */
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  padding-block: calc(var(--nav-height) + 40px) 80px;
  background: radial-gradient(
    120% 90% at 50% 0%,
    #17171b 0%,
    var(--bg-primary) 55%
  );
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.16) 0%,
    rgba(34, 197, 94, 0.05) 40%,
    transparent 70%
  );
  filter: blur(clamp(10px, 2vw, 20px));
  z-index: 1;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    120% 80% at 50% 20%,
    #000 0%,
    transparent 75%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(clamp(-20px, -4vw, -50px));
  gap: clamp(12px, 2vw, 20px);
}

@keyframes heroPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
  margin-top: clamp(30px, 5vw, 50px);
}

.hero__subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 400;
  max-width: min(620px, 90%);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 0.7rem;
}

.hero__actions .btn {
  padding: clamp(6px, 1vw, 8px) clamp(18px, 2.5vw, 24px);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
}

.hero__stats {
  margin-top: clamp(36px, 6vw, 72px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.hero__stat strong {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: clamp(0.75rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 42px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 100px;
  background: var(--brand);
  animation: heroScroll 1.8s infinite;
}

@keyframes heroScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    transform: translateY(-10px);
  }
  .hero__title {
    max-width: 13ch;
  }
}

@media (max-width: 640px) {
  .hero__stat-divider {
    display: none;
  }
  .hero__stats {
    gap: 18px 28px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__actions {
    width: 100%;
  }
  .hero__actions .btn {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    max-width: 12ch;
  }
  .hero__stat strong {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }
  .hero__stat span {
    font-size: clamp(0.65rem, 3vw, 0.75rem);
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 5.5rem;
    max-width: 14ch;
  }
  .hero__subtitle {
    font-size: 1.35rem;
    max-width: 700px;
  }
  .hero__stats {
    margin-top: 80px;
    gap: 40px;
  }
  .hero__stat strong {
    font-size: 2.8rem;
  }
}

@media (min-width: 1920px) {
  .hero__title {
    font-size: 6rem;
  }
  .hero__subtitle {
    font-size: 1.5rem;
    max-width: 780px;
  }
}
