/*
 * Video showcase — shared across the three PDV Open landing pages.
 * Self-contained and namespaced under .pdvv so it renders consistently on top
 * of any of the landing stylesheets (landing.css / pdvopen.css).
 */

:root {
  --pdvv-accent: #1d6cff;
  --pdvv-accent-dark: #15398c;
  --pdvv-ink: #0d1b3e;
  --pdvv-muted: #5a6785;
  --pdvv-line: rgba(21, 57, 140, 0.12);
  --pdvv-surface: #ffffff;
}

.pdvv {
  padding: 72px 0;
  font-family: "Manrope", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Single facade reused inline where a GIF/screenshot used to be. */
.pdvv-inline {
  width: 100%;
}

.pdvv-inline .pdvv__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: none;
}

.pdvv__shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.pdvv__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.pdvv__eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(29, 108, 255, 0.1);
  color: var(--pdvv-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pdvv__head h2 {
  margin: 18px 0 12px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--pdvv-ink);
}

.pdvv__head p {
  margin: 0;
  color: var(--pdvv-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.pdvv__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pdvv__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdvv__item--featured {
  grid-column: 1 / -1;
}

.pdvv__frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--pdvv-line);
  background: #0b1636;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 55px rgba(21, 57, 140, 0.16);
}

.pdvv__item--featured .pdvv__frame {
  border-radius: 28px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* In-frame selectors are scoped under .pdvv__frame so the landing pages'
   generic `.some-container img`/`button` rules can't override them. */
.pdvv__frame .pdvv__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  display: block;
}

.pdvv__frame .pdvv__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.pdvv__frame .pdvv__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 40, 0.05) 0%, rgba(6, 15, 40, 0.45) 100%);
  transition: opacity 0.3s ease;
}

.pdvv__frame .pdvv__play:hover .pdvv__thumb,
.pdvv__frame .pdvv__play:focus-visible .pdvv__thumb {
  transform: scale(1.05);
}

.pdvv__frame .pdvv__play:focus-visible {
  outline: 3px solid var(--pdvv-accent);
  outline-offset: 3px;
}

.pdvv__frame .pdvv__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pdvv-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(6, 15, 40, 0.2);
}

.pdvv__frame .pdvv__playicon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 18px rgba(6, 15, 40, 0.35));
  transition: transform 0.25s ease;
}

.pdvv__playbg {
  fill: #ff0000;
  transition: fill 0.25s ease;
}

.pdvv__frame .pdvv__play:hover .pdvv__playicon,
.pdvv__frame .pdvv__play:focus-visible .pdvv__playicon {
  transform: translate(-50%, -50%) scale(1.08);
}

.pdvv__frame--playing {
  background: #000;
}

.pdvv__frame--playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdvv__caption {
  color: var(--pdvv-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0 4px;
}

.pdvv__item--featured .pdvv__caption {
  text-align: center;
  font-size: 1.1rem;
}

.pdvv__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid var(--pdvv-line);
  background: linear-gradient(120deg, rgba(29, 108, 255, 0.08), rgba(29, 108, 255, 0.02));
}

.pdvv__cta-copy {
  display: grid;
  gap: 4px;
}

.pdvv__cta-copy strong {
  color: var(--pdvv-ink);
  font-size: 1.2rem;
  font-family: "Sora", "Manrope", sans-serif;
}

.pdvv__cta-copy span {
  color: var(--pdvv-muted);
  line-height: 1.6;
}

.pdvv__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(255, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdvv__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 0, 0, 0.34);
}

@media (max-width: 900px) {
  .pdvv__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pdvv {
    padding: 52px 0;
  }

  .pdvv__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdvv__cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .pdvv__btn {
    width: 100%;
    justify-content: center;
  }
}
