/* SAFE hero grid background — layer styles shared by demo + prototype.
   Load alongside hero-grid.mjs; the module injects .hero-grid-canvas
   and .hero-grid-fallback into the hero container. */

.hero-grid-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #070711;
  /* rounded-square lattice + faint central violet bloom (WebGL2-off fallback) */
  background-image:
    radial-gradient(circle at 50% 52%, rgba(196, 166, 239, 0.28), transparent 55%),
    linear-gradient(rgba(52, 40, 146, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 40, 146, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 51px 51px, 51px 51px;
  opacity: 0.45;
  /* soft outer edges + fade toward the product void */
  -webkit-mask-image:
    radial-gradient(ellipse 78% 72% at 50% 42%, #000 35%, transparent 78%),
    linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  mask-image:
    radial-gradient(ellipse 78% 72% at 50% 42%, #000 35%, transparent 78%),
    linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
  /* Figma cell alphas are already in-shader; keep canvas readable */
  opacity: 0.85;
  /* round / soft outer edges of the grid field */
  -webkit-mask-image:
    radial-gradient(ellipse 78% 72% at 50% 42%, #000 35%, transparent 78%),
    linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  mask-image:
    radial-gradient(ellipse 78% 72% at 50% 42%, #000 35%, transparent 78%),
    linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Mesh-glow2 — TOP bloom behind the copy; dies out in the black void before the frame */
.hero-mesh {
  position: absolute;
  left: 50%;
  top: -2%;
  transform: translateX(-50%);
  width: clamp(2200px, 110vw, 3900px);
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.28;
  /* keep glow soft at the headline, gone by mid-void */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,0.45) 55%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,0.45) 55%, transparent 72%);
}
