.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-aurora);
  color: var(--paper);
  padding-top: calc(var(--space-20) + var(--space-4));
  padding-bottom: var(--space-16);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-scene-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.2) 0%, transparent 50%);
  display: none;
}

body.is-lite .hero-scene {
  display: none;
}

body.is-lite .hero-scene-fallback {
  display: block;
}

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

.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.5;
  animation: float-slow 18s ease-in-out infinite;
}

.hero-orb-1 {
  top: 12%;
  left: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.55), transparent 70%);
}

.hero-orb-2 {
  bottom: 5%;
  right: 0%;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.4), transparent 70%);
  animation-delay: -6s;
}

.hero-orb-3 {
  top: 45%;
  left: 60%;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.45), transparent 70%);
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

.hero-grid {
  position: relative;
  z-index: 2;
  padding-block: var(--space-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  justify-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    justify-items: stretch;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-14);
  }
}

.hero-content {
  min-width: 0;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-bottom: var(--space-6);
  padding: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-light .hero-eyebrow {
  color: var(--violet-700);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-2xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: var(--space-5);
  max-width: 20ch;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
}

.hero-title .line-break,
.hero-title-accent {
  display: inline;
}

.hero-word-violet,
.hero-word-green {
  font-style: normal;
  font-weight: inherit;
}

.hero-word-green {
  color: var(--green-400);
}

.hero-word-violet {
  color: var(--violet-300);
}

.theme-light .hero-word-green {
  color: var(--green-700);
}

.theme-light .hero-word-violet {
  color: var(--violet-700);
}

.hero-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--ink-200);
  max-width: 560px;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

@media (min-width: 900px) {
  .hero-sub {
    font-size: var(--fs-body-lg);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-ctas-3 {
  flex-direction: column;
  align-items: stretch;
  max-width: 440px;
}

@media (min-width: 720px) {
  .hero-ctas-3 {
    max-width: 100%;
  }
}

.hero-ctas-3 .btn {
  justify-content: space-between;
}

/* On narrow viewports, the longest label ("Sou empresa, marca ou associação")
   exceeds the container width. Scale down the type so all three CTAs stay
   single-line without wrapping or shrinking the touch target dramatically. */
@media (max-width: 480px) {
  .hero-ctas-3 .btn {
    font-size: 0.9375rem;
    padding-inline: var(--space-5);
    letter-spacing: -0.015em;
  }
  .hero-ctas-3 .btn .arrow {
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .hero-ctas-3 .btn {
    font-size: 0.875rem;
    padding-inline: var(--space-4);
    gap: var(--space-2);
  }
}

.hero-support {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--violet-300);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border-left: 2px solid var(--green-500);
  opacity: 0.9;
}

.theme-light .hero-support {
  color: var(--violet-700);
  border-left-color: var(--green-700);
}

.hero-support-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-500);
  flex-shrink: 0;
}

.theme-light .hero-support-mark {
  background: var(--green-600);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  font-size: var(--fs-body-sm);
  color: var(--ink-300);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust-icon {
  width: 16px;
  height: 16px;
  color: var(--green-400);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--violet-300);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .hero-scroll-hint {
    display: flex;
  }
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--violet-300), transparent);
  animation: scroll-hint 2.5s ease-in-out infinite;
  transform-origin: top;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@keyframes scroll-hint {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  49.99% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ===== Hero media (product showcase video) ===== */

.hero-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 260px;
  aspect-ratio: 1440 / 2074;
  max-height: 78vh;
  border-radius: 32px;
  overflow: hidden;
  margin-inline: auto;
  background: linear-gradient(180deg, #1a0b2e 0%, #0a0613 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow:
    0 50px 100px -30px rgba(91, 33, 182, 0.5),
    0 30px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(139, 92, 246, 0.15);
}

@media (min-width: 768px) {
  .hero-media {
    justify-self: end;
    margin-inline: 0;
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-media {
    max-width: 380px;
  }
}

.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, transparent 60%, rgba(10, 6, 19, 0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-media-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  z-index: 3;
  pointer-events: none;
}
