/* MV Gallery product page showcase + live demo page (theme 0.7.0).
   Additive: hero visual, real-screenshot gallery, workflow feature cards, native lightbox and
   the demo page. Palette and shapes reuse the existing MV Software identity (navy #071b4b,
   blue #1268ff, light #f8fbff, rounded cards, soft shadows). */

/* ---------- Hero ---------- */
.mv-gallery-hero__grid { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.mv-status-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: #eaf3ff; color: #0b4fc4; font-size: 13px; font-weight: 700; }
.mv-status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1eaa5c; }
.mv-gallery-hero__grid h1 { margin: 0 0 20px; color: #071b4b; }
.mv-gallery-hero__name { display: block; margin-bottom: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #1268ff; }
.mv-gallery-hero__headline { display: block; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
.mv-gallery-hero__line { display: block; }
.mv-gallery-hero__ctas .mv-button, .mv-demo-cta .mv-button { gap: 8px; }
.mv-gallery-hero__buy { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: #1268ff; }
.mv-gallery-hero__buy:hover, .mv-gallery-hero__buy:focus-visible { text-decoration: underline; }
.mv-gallery-hero__visual { margin: 0; border: 1px solid #e4eaf3; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 28px 75px rgba(25, 81, 170, .15); }
.mv-gallery-hero__visual img { display: block; width: 100%; height: auto; }

/* ---------- Screenshots ---------- */
.mv-shots { padding: 64px 0; background: #f8fbff; border-top: 1px solid #e4eaf3; border-bottom: 1px solid #e4eaf3; }
.mv-shots__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; align-items: start; }
.mv-shot { margin: 0; overflow: hidden; background: #fff; border: 1px solid #e4eaf3; border-radius: 16px; box-shadow: 0 18px 50px rgba(22, 75, 160, .08); }
.mv-shot:first-child { grid-column: 1 / -1; }
.mv-shot__open { position: relative; display: block; background: #f3f7fd; border-bottom: 1px solid #e4eaf3; cursor: zoom-in; }
.mv-shot__open img { display: block; width: 100%; height: auto; }
.mv-shot__open:focus-visible { outline: 3px solid #1268ff; outline-offset: -3px; }
.mv-shot__zoom { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 27, 75, .86); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.mv-shot__open:hover .mv-shot__zoom, .mv-shot__open:focus-visible .mv-shot__zoom { opacity: 1; }
.mv-shot figcaption { padding: 18px 22px 22px; }
.mv-shot h3 { margin: 0 0 6px; font-size: 18px; color: #071b4b; }
.mv-shot p { margin: 0; color: #5f6b82; font-size: 14px; line-height: 1.6; }

/* ---------- Workflow feature cards ---------- */
.mv-subheading { margin: 52px 0 0; font-size: 24px; color: #071b4b; }
.mv-feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.mv-feature-cards .mv-layout-card { padding: 22px; }
.mv-feature-cards .mv-layout-card h3 { margin-bottom: 8px; }

/* ---------- Lightbox (native <dialog>) ---------- */
html.mv-lightbox-open { overflow: hidden; }
.mv-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.mv-lightbox:not([open]) { display: none; }
.mv-lightbox::backdrop { background: rgba(7, 27, 75, .86); }
.mv-lightbox.is-fallback { position: fixed; inset: 0; z-index: 99999; background: rgba(7, 27, 75, .9); }
.mv-lightbox__inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 72px; }
.mv-lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; margin: 0; }
.mv-lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 176px); border-radius: 12px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.mv-lightbox__caption { max-width: 760px; text-align: center; font-size: 14px; line-height: 1.5; color: #dbe6fb; }
.mv-lightbox__caption strong { display: block; color: #fff; font-size: 16px; }
.mv-lightbox__close, .mv-lightbox__nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(7, 27, 75, .7); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.mv-lightbox__close { top: 14px; right: 16px; }
.mv-lightbox__nav { top: 50%; transform: translateY(-50%); }
.mv-lightbox__nav--prev { left: 16px; }
.mv-lightbox__nav--next { right: 16px; }
.mv-lightbox__nav[hidden] { display: none; }
.mv-lightbox__close:hover, .mv-lightbox__nav:hover { background: #1268ff; }
.mv-lightbox__close:focus-visible, .mv-lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
	.mv-lightbox[open] { animation: mv-lightbox-in .16s ease-out; }
	@keyframes mv-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Live demo page ---------- */
.mv-demo-intro { padding: 64px 0 28px; }
.mv-demo-intro h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.045em; color: #071b4b; }
.mv-demo-intro .mv-hero__lead { margin: 0; }
.mv-demo-gallery { padding: 8px 0 56px; }
.mv-demo-gallery__stage { max-width: 100%; }
.mv-demo-fallback { padding: 40px 32px; text-align: center; background: #f8fbff; border: 1px solid #e4eaf3; border-radius: 16px; }
.mv-demo-fallback h2 { margin: 0 0 8px; color: #071b4b; }
.mv-demo-fallback p { margin: 0 auto; max-width: 620px; color: #5f6b82; line-height: 1.6; }
.mv-demo-fallback p.mv-demo-fallback__admin { margin-top: 16px; font-size: 13px; color: #7a4b00; }
.mv-demo-cta { padding: 0 0 88px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.mv-gallery-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.mv-feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.mv-shots { padding: 44px 0; }
	.mv-shots__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mv-feature-cards { grid-template-columns: minmax(0, 1fr); }
	.mv-subheading { margin-top: 40px; font-size: 21px; }
	.mv-lightbox__inner { padding: 64px 12px 24px; }
	.mv-lightbox__img { max-height: calc(100vh - 190px); }
	.mv-lightbox__nav { top: auto; bottom: 14px; transform: none; }
	.mv-lightbox__nav--prev { left: calc(50% - 56px); }
	.mv-lightbox__nav--next { right: calc(50% - 56px); }
	.mv-demo-intro { padding: 44px 0 20px; }
	.mv-demo-cta { padding-bottom: 56px; }
}
@media (hover: none) {
	.mv-shot__zoom { opacity: 1; }
}
