/* DeployReady marketing: the product frame (hero video) shared by the
   homepage and the landers. One source: premium.css (homepage) no longer
   carries these rules; every page that shows the frame links this file.
   2026-09-26. */

/* The product frame */
.hero-visual {
  position: relative;
  min-width: 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(201, 162, 94, 0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.product-frame {
  position: relative;
  border-radius: 1rem;
  background: #0A1628;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 30px 80px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateZ(0);
}
.product-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.product-frame-bar i {
  width: 0.625rem; height: 0.625rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}
.product-frame-bar .product-frame-url {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-faint);
  letter-spacing: 0.01em;
}
.product-frame-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0A1628;
}
.product-frame-media > img,
.product-frame-media > video,
.product-frame-media > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-frame-play {
  position: absolute; inset: 0;
  display: grid; place-items: end start;
  padding: 0 0 0.875rem 0.875rem;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 70%, rgba(10, 22, 40, 0.45));
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: background var(--dr-dur-release) var(--dr-ease-release);
}
.product-frame-play:hover { background: linear-gradient(180deg, rgba(10, 22, 40, 0) 60%, rgba(10, 22, 40, 0.55)); }
.product-frame-play span {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1.125rem 0.75rem 0.875rem;
  border-radius: 999px;
  background: rgba(11, 26, 46, 0.72);
  border: 1px solid rgba(201, 162, 94, 0.4);
  color: var(--color-text);
  font-size: 0.875rem; font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  transition: transform var(--dr-dur-release) var(--dr-ease-release), border-color var(--dr-dur-color) ease-out;
}
.product-frame-play:hover span { border-color: var(--color-primary); transform: translateY(-1px); }
.product-frame-play:active span { transform: translateY(1px) scale(var(--dr-press-scale)); }
.product-frame-play svg { width: 1.125rem; height: 1.125rem; color: var(--color-primary); }

/* Subtle depth on scroll where supported; static elsewhere */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .product-frame {
      animation: dr-frame-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 60%;
    }
    @keyframes dr-frame-settle {
      from { transform: perspective(1400px) rotateX(2deg) translateY(10px); }
      to   { transform: perspective(1400px) rotateX(-1.5deg) translateY(-14px); }
    }
  }
}

.product-frame-film { background: #0B1A2E; object-fit: contain; }
.footer-credit { font-size: 0.75rem; color: var(--color-text-faint); max-width: 62ch; }

/* Landers: single-column hero, so the frame sits under the copy at content width. */
.hero-visual--stacked {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.hero-visual--stacked .product-frame { border-radius: 1.125rem; }
@media (prefers-reduced-motion: reduce) {
  .product-frame { animation: none !important; }
}
