/*
 * Note: app-owned, migrated from gem's quarantine/landing/.
 * Belongs in this app (not the brand gem) long-term. Header below is
 * the original gem-side note kept for traceability.
 *
 * Migrate when: the gem ships the next release with quarantine/landing/
 * deleted (this file replaces the bundled copy).
 */

/*
 * Note — landing-page chrome: hero section.
 *
 * Specific to Mikael's 1920w landing frames (node 23:1656). The helix
 * video asset lives at app/assets/images/geneops/brand/hero/helix.mp4
 * and is hero-specific.
 */

.hero {
  position: relative;
  /* Mobile+tablet: nav(80) + gap(64) = 144px. No --spacing-64 token in the
     scale yet; expressed as 48+16 until it ships. Desktop restores gap(80). */
  padding-top: calc(var(--spacing-80) + var(--spacing-48) + var(--spacing-16));
  padding-bottom: var(--spacing-80);
  width: 100%;
  overflow: clip;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--spacing-80) * 2); }
}

/* Hero background media (DNA helix loop). Figma node 23:1656 spec:
   opacity 15%, blendMode LUMINOSITY, scaleMode FILL.
   Source video is a Pexels asset that ships in colour (blue helix);
   we transcode it to grayscale (`ffmpeg -vf format=gray,format=yuv420p`)
   so the asset itself is already neutral. With a grayscale source the
   LUMINOSITY blend mode is redundant — straight opacity does the job
   and behaves predictably in both themes. For light mode we invert
   the video so the dark helix shapes become visible against the light
   surface. */
.hero__media {
  position: absolute;
  inset: var(--spacing-0);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.theme-light .hero__media {
  filter: invert(1);
}

/* Bottom-fade to base — matches the Figma hero's gradient overlay
   (`bg-gradient-to-b from-rgba(23,23,28,0) to-#17171c`). */
.hero::after {
  content: "";
  position: absolute;
  inset: var(--spacing-0);
  background-image: linear-gradient(to bottom, transparent, var(--background-base));
  pointer-events: none;
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}

@media (min-width: 768px) {
  .hero > .container { gap: var(--spacing-32); }
}

@media (min-width: 1024px) {
  .hero > .container { gap: var(--spacing-48); }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

@media (min-width: 768px) {
  .hero__copy { gap: var(--spacing-24); }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-16);
}

.hero__cta .button--lg {
  height: 48px;
  padding: 0 var(--spacing-32);
  gap: var(--spacing-12);
  font-size: var(--font-size-16);
}

@media (min-width: 768px) {
  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-24);
  }

  .hero__cta .button--lg {
    height: 64px;
    padding: 0 var(--spacing-48);
    gap: var(--spacing-16);
    font-size: var(--font-size-20);
  }
}

@media (min-width: 1024px) {
  .hero__cta { gap: var(--spacing-32); }
}
