/* Flash Portal — hero (local Rezmason canvas + grain) */

.home-hero {
  position: relative;
  box-sizing: border-box;
  height: 100dvh;
  height: 100svh;
  min-height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  background: transparent;
  justify-content: center;
  align-items: center;
}

.hero-rezmason-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  min-height: 100%;
}

.hero-rezmason-wrap.is-static #hero-rezmason-rain,
.hero-rezmason-wrap.is-static .hero-rezmason-canvas {
  visibility: hidden;
}

#hero-rezmason-rain,
.hero-rezmason-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-rezmason-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-rezmason-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.14) 45%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0, 255, 65, 0.12), transparent 58%);
}

.hero-noise-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: hero-noise-shift 0.55s steps(4) infinite;
}

@keyframes hero-noise-shift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-4%, 3%);
  }
  50% {
    transform: translate(3%, -5%);
  }
  75% {
    transform: translate(-2%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

#top.home-hero::before {
  content: none;
}

#top.home-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  width: 100%;
  height: 2px;
  background-color: #00ff41;
  opacity: 1;
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
}

@media (max-width: 1023px) {
  .home-hero {
    height: auto;
    min-height: calc(100dvh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    max-height: none;
    padding-top: var(--header-h);
    box-sizing: border-box;
  }

  .home-hero__content {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    min-height: calc(100dvh - var(--header-h) - 1.25rem - 2rem);
    min-height: calc(100svh - var(--header-h) - 1.25rem - 2rem);
    box-sizing: border-box;
  }
}

@media (min-width: 1024px) {
  .home-hero {
    justify-content: center;
    align-items: center;
  }

  .home-hero__content {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
  }

  .home-hero__glass {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-hero__cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-noise-grain {
    animation: none;
    opacity: 0.08;
  }

  .hero-rezmason-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.85) 100%);
  }
}
