/* BW Dynamic Device Mockup */

.bw-device-mockup {
	--bw-dm-primary: #111827;
	--bw-dm-accent: #6d5ef0;
	--bw-dm-bg: transparent;
	--bw-dm-frame: #1f2230;
	--bw-dm-bezel: #0b0d16;
	--bw-dm-screen: #f4f5fb;
	--bw-dm-text: #111827;
	--bw-dm-muted: #6b7280;
	--bw-dm-radius: 16px;
	--bw-dm-shadow: 0 40px 80px -24px rgba(15, 23, 42, 0.35);
	--bw-dm-glow: rgba(109, 94, 240, 0.35);
	--bw-dm-bar: #e8eaf3;
	--bw-dm-reflect: 0.35;
	--bw-dm-persp: 1200px;
	--bw-dm-rx: 0deg;
	--bw-dm-ry: 0deg;
	--bw-dm-rz: 0deg;
	--bw-dm-tilt-x: 0deg;
	--bw-dm-tilt-y: 0deg;
	--bw-dm-mag-x: 0px;
	--bw-dm-mag-y: 0px;
	--bw-dm-hover-scale: 1.02;
	--bw-dm-card-offset: -28px;
	--bw-dm-gallery-cols: 3;
	position: relative;
	background: var(--bw-dm-bg);
	color: var(--bw-dm-text);
}

.bw-dm__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.bw-dm__header {
	max-width: 640px;
}

.bw-dm__badge {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bw-dm-accent);
	background: color-mix(in srgb, var(--bw-dm-accent) 12%, transparent);
	border-radius: 999px;
}

.bw-dm__heading {
	margin: 0 0 14px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.12;
	color: var(--bw-dm-primary);
}

.bw-dm__description {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--bw-dm-muted);
}

.bw-dm__cta-row {
	display: flex;
	gap: 14px;
	margin-bottom: 22px;
}

.bw-dm__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #ffffff;
	background: var(--bw-dm-accent);
	border-radius: 12px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.bw-dm__cta:hover,
.bw-dm__cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--bw-dm-accent) 35%, transparent);
	color: #ffffff;
}

.bw-dm__cta:focus-visible {
	outline: 2px solid var(--bw-dm-primary);
	outline-offset: 2px;
}

.bw-dm__cta-arrow {
	display: inline-flex;
}

.bw-dm__feature-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bw-dm__feature-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bw-dm-fb, var(--bw-dm-primary));
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.bw-dm__fb-icon {
	display: inline-flex;
	color: var(--bw-dm-fb, var(--bw-dm-accent));
}

.bw-dm__fb-icon svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.bw-dm__feature-badge--scene {
	position: absolute;
	z-index: 6;
}

/* ------------------------------------------------------------------ */
/* Scene & device wrap (3D context)                                    */
/* ------------------------------------------------------------------ */

.bw-dm__scene {
	position: relative;
	display: flex;
	justify-content: center;
	perspective: var(--bw-dm-persp);
}

.bw-dm__device-wrap {
	position: relative;
	width: 100%;
	max-width: 760px;
	transform: rotateX(calc(var(--bw-dm-rx) + var(--bw-dm-tilt-x)))
		rotateY(calc(var(--bw-dm-ry) + var(--bw-dm-tilt-y)))
		rotateZ(var(--bw-dm-rz))
		translate(var(--bw-dm-mag-x), var(--bw-dm-mag-y));
	transform-style: preserve-3d;
	transition: transform 0.2s ease-out;
}

.bw-dm--zoom .bw-dm__device-wrap:hover {
	transform: rotateX(calc(var(--bw-dm-rx) + var(--bw-dm-tilt-x)))
		rotateY(calc(var(--bw-dm-ry) + var(--bw-dm-tilt-y)))
		rotateZ(var(--bw-dm-rz))
		translate(var(--bw-dm-mag-x), var(--bw-dm-mag-y))
		scale(var(--bw-dm-hover-scale));
}

.bw-dm--clickable .bw-dm__device-wrap {
	cursor: pointer;
}

/* Glow + shadow */

.bw-dm--glow .bw-dm__device::after {
	content: "";
	position: absolute;
	inset: 8% 4%;
	z-index: -1;
	border-radius: 50%;
	background: var(--bw-dm-glow);
	filter: blur(60px);
}

.bw-dm--shadow .bw-dm__device {
	filter: drop-shadow(0 36px 48px rgba(15, 23, 42, 0.28));
}

.bw-dm__device {
	position: relative;
}

.bw-dm__device-label {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	color: #ffffff;
	background: var(--bw-dm-accent);
	border-radius: 999px;
	z-index: 5;
}

/* ------------------------------------------------------------------ */
/* Screen core                                                         */
/* ------------------------------------------------------------------ */

.bw-dm__screen {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: var(--bw-dm-screen);
	overflow: hidden;
}

.bw-dm__screen-body {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	background: var(--bw-dm-screen);
}

.bw-dm__shot {
	display: block;
	width: 100%;
	height: auto;
	min-height: 100%;
	object-fit: cover;
	object-position: top center;
}

.bw-dm--auto-scroll .bw-dm__shot {
	height: auto;
	min-height: 0;
	object-fit: unset;
	animation: bw-dm-scroll-y var(--bw-dm-scroll-dur, 12s) ease-in-out infinite alternate;
	animation-delay: 1.2s;
}

.bw-dm--auto-scroll-x .bw-dm__shot {
	width: auto;
	max-width: none;
	height: 100%;
	animation-name: bw-dm-scroll-x;
}

@keyframes bw-dm-scroll-y {
	0%, 8% { transform: translateY(0); }
	92%, 100% { transform: translateY(var(--bw-dm-scroll-dist, 0px)); }
}

@keyframes bw-dm-scroll-x {
	0%, 8% { transform: translateX(0); }
	92%, 100% { transform: translateX(var(--bw-dm-scroll-dist, 0px)); }
}

.bw-dm--scroll-pause .bw-dm__screen-body:hover .bw-dm__shot {
	animation-play-state: paused;
}

.bw-dm__video,
.bw-dm__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #0b0d16;
}

.bw-dm__html {
	height: 100%;
	overflow: auto;
	padding: 14px;
	font-size: 13px;
}

.bw-dm__editor-note {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	padding: 8px 12px;
	font-size: 11px;
	color: #92400e;
	background: #fef3c7;
	border-radius: 8px;
	z-index: 4;
}

/* Browser top bar */

.bw-dm__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 8px 12px;
	background: var(--bw-dm-bar);
}

.bw-dm__dots {
	display: inline-flex;
	gap: 5px;
	flex: 0 0 auto;
}

.bw-dm__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.bw-dm__dot:nth-child(1) { background: #ff5f57; }
.bw-dm__dot:nth-child(2) { background: #febc2e; }
.bw-dm__dot:nth-child(3) { background: #28c840; }

.bw-dm__bar-title {
	font-size: 11px;
	font-weight: 600;
	color: var(--bw-dm-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bw-dm__urlbar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 12px;
	font-size: 11px;
	color: var(--bw-dm-muted);
	background: rgba(255, 255, 255, 0.75);
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Reflection + shine */

.bw-dm__reflection {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, calc(var(--bw-dm-reflect) * 0.9)) 0%, rgba(255, 255, 255, 0) 30%);
}

.bw-dm__shine {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.bw-dm__shine::before {
	content: "";
	position: absolute;
	top: -40%;
	bottom: -40%;
	left: -80%;
	width: 45%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
	transform: skewX(-18deg);
	animation: bw-dm-shine 5.5s ease-in-out infinite;
}

@keyframes bw-dm-shine {
	0%, 55% { left: -80%; }
	85%, 100% { left: 160%; }
}

/* Lightbox expand button */

.bw-dm__expand {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	color: #ffffff;
	background: rgba(15, 23, 42, 0.55);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s ease, background 0.25s ease;
}

.bw-dm__screen:hover .bw-dm__expand,
.bw-dm__expand:focus-visible {
	opacity: 1;
}

.bw-dm__expand:hover,
.bw-dm__expand:focus-visible {
	background: var(--bw-dm-accent);
}

.bw-dm__expand:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Device frames                                                       */
/* ------------------------------------------------------------------ */

/* Laptop */

.bw-dm__device--laptop {
	width: 100%;
}

.bw-dm__laptop-top {
	position: relative;
	width: 86%;
	margin: 0 auto;
	background: var(--bw-dm-frame);
	border-radius: calc(var(--bw-dm-radius) * 0.9) calc(var(--bw-dm-radius) * 0.9) 0 0;
	padding: 10px 10px 0;
}

.bw-dm__device--laptop .bw-dm__bezel {
	position: relative;
	background: var(--bw-dm-bezel);
	border-radius: calc(var(--bw-dm-radius) * 0.55) calc(var(--bw-dm-radius) * 0.55) 0 0;
	padding: 14px 8px 8px;
}

.bw-dm__camera {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #2d3348;
	z-index: 2;
}

.bw-dm__device--laptop .bw-dm__screen {
	aspect-ratio: 16 / 10;
	border-radius: 4px;
}

.bw-dm__laptop-base {
	position: relative;
	height: 16px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--bw-dm-frame) 80%, #ffffff), var(--bw-dm-frame));
	border-radius: 0 0 14px 14px;
}

.bw-dm__notch-grip {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 14%;
	height: 7px;
	background: color-mix(in srgb, var(--bw-dm-frame) 60%, #000000);
	border-radius: 0 0 8px 8px;
}

/* Desktop monitor */

.bw-dm__monitor {
	background: var(--bw-dm-frame);
	border-radius: var(--bw-dm-radius);
	padding: 12px;
}

.bw-dm__device--desktop .bw-dm__bezel {
	background: var(--bw-dm-bezel);
	border-radius: calc(var(--bw-dm-radius) * 0.6);
	padding: 8px;
}

.bw-dm__device--desktop .bw-dm__screen {
	aspect-ratio: 16 / 9;
	border-radius: 5px;
}

.bw-dm__stand {
	width: 12%;
	height: 44px;
	margin: 0 auto;
	background: linear-gradient(180deg, var(--bw-dm-frame), color-mix(in srgb, var(--bw-dm-frame) 70%, #000000));
	clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.bw-dm__stand-base {
	width: 30%;
	height: 10px;
	margin: 0 auto;
	background: var(--bw-dm-frame);
	border-radius: 999px;
}

/* Phone */

.bw-dm__device--phone {
	width: min(280px, 100%);
	margin: 0 auto;
}

.bw-dm__phone {
	position: relative;
	background: var(--bw-dm-frame);
	border-radius: calc(var(--bw-dm-radius) * 2.4);
	padding: 12px;
}

.bw-dm__phone .bw-dm__screen {
	aspect-ratio: 9 / 19;
	border-radius: calc(var(--bw-dm-radius) * 1.7);
}

.bw-dm__cutout {
	position: absolute;
	top: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	background: var(--bw-dm-bezel);
}

.bw-dm__phone--none .bw-dm__cutout { display: none; }

.bw-dm__phone--notch .bw-dm__cutout {
	width: 46%;
	height: 22px;
	top: 12px;
	border-radius: 0 0 14px 14px;
}

.bw-dm__phone--island .bw-dm__cutout {
	width: 30%;
	height: 20px;
	border-radius: 999px;
}

.bw-dm__phone--camera .bw-dm__cutout {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.bw-dm__phone-btn {
	position: absolute;
	right: -3px;
	width: 3px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--bw-dm-frame) 70%, #000000);
}

.bw-dm__phone-btn--power { top: 22%; height: 56px; }
.bw-dm__phone-btn--vol { right: auto; left: -3px; top: 20%; height: 80px; }

/* Tablet */

.bw-dm__device--tablet {
	width: min(420px, 100%);
	margin: 0 auto;
}

.bw-dm__tablet {
	position: relative;
	background: var(--bw-dm-frame);
	border-radius: calc(var(--bw-dm-radius) * 1.6);
	padding: 16px;
}

.bw-dm__tablet .bw-dm__camera {
	top: 8px;
}

.bw-dm__tablet .bw-dm__screen {
	aspect-ratio: 3 / 4;
	border-radius: calc(var(--bw-dm-radius) * 0.9);
}

/* Browser window */

.bw-dm__browser {
	background: var(--bw-dm-frame);
	border-radius: var(--bw-dm-radius);
	padding: 4px;
}

.bw-dm__browser .bw-dm__screen {
	aspect-ratio: 16 / 10;
	border-radius: calc(var(--bw-dm-radius) - 4px);
}

.bw-dm__browser--mini .bw-dm__screen {
	aspect-ratio: 4 / 3;
}

/* Mini dashboard card */

.bw-dm__mini {
	background: var(--bw-dm-frame);
	border-radius: calc(var(--bw-dm-radius) * 0.8);
	padding: 4px;
}

.bw-dm__mini .bw-dm__screen {
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--bw-dm-radius) * 0.6);
}

/* Companion devices (dual / triple / dashboard) */

.bw-dm__companion {
	position: absolute;
	z-index: 4;
}

.bw-dm__companion--phone {
	width: 22%;
	min-width: 110px;
	right: -4%;
	bottom: -8%;
}

.bw-dm__companion--tablet {
	width: 34%;
	min-width: 170px;
	left: -8%;
	bottom: -10%;
}

.bw-dm__companion--mini-left {
	width: 30%;
	left: -9%;
	bottom: 6%;
}

.bw-dm__companion--mini-right {
	width: 26%;
	right: -7%;
	top: 8%;
}

/* App store style */

.bw-dm__appstore {
	width: min(300px, 100%);
	margin: 0 auto;
}

.bw-dm__appstore-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.bw-dm__appstore-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--bw-dm-accent), color-mix(in srgb, var(--bw-dm-accent) 40%, #14b8a6));
}

.bw-dm__appstore-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bw-dm__appstore-meta strong { font-size: 14px; }
.bw-dm__appstore-meta small { font-size: 11px; color: var(--bw-dm-muted); }

.bw-dm__appstore-get {
	margin-left: auto;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	background: var(--bw-dm-accent);
	border-radius: 999px;
}

/* Custom frame */

.bw-dm__device--custom {
	position: relative;
}

.bw-dm__custom-frame {
	display: block;
	width: 100%;
	height: auto;
}

.bw-dm__custom-screen {
	position: absolute;
	overflow: hidden;
}

.bw-dm__custom-screen .bw-dm__screen {
	height: 100%;
}

/* ------------------------------------------------------------------ */
/* Placeholder fake UI (no screenshot selected)                        */
/* ------------------------------------------------------------------ */

.bw-dm__placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8%;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 7%;
	background:
		radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--bw-dm-accent) 28%, transparent), transparent 55%),
		linear-gradient(160deg, #ffffff 0%, #eef0fb 60%, #e4e7f8 100%);
}

.bw-dm__ph-nav {
	display: block;
	height: 6%;
	min-height: 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.1);
}

.bw-dm__ph-hero {
	display: flex;
	flex-direction: column;
	gap: 12%;
	flex: 1 1 auto;
	justify-content: center;
	max-width: 62%;
}

.bw-dm__ph-line {
	display: block;
	height: 10%;
	min-height: 8px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.14);
}

.bw-dm__ph-line--lg {
	height: 16%;
	min-height: 12px;
	width: 80%;
	background: rgba(17, 24, 39, 0.28);
}

.bw-dm__ph-pill {
	display: block;
	width: 34%;
	height: 14%;
	min-height: 12px;
	border-radius: 999px;
	background: var(--bw-dm-accent);
}

.bw-dm__ph-cards {
	display: flex;
	gap: 6%;
	height: 22%;
	min-height: 28px;
}

.bw-dm__ph-cards span {
	flex: 1;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.bw-dm__ph-label {
	position: absolute;
	right: 8%;
	bottom: 8%;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	color: var(--bw-dm-accent);
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

/* ------------------------------------------------------------------ */
/* Floating cards                                                      */
/* ------------------------------------------------------------------ */

.bw-dm__card {
	position: absolute;
	z-index: 7;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 220px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.bw-dm--float-anim .bw-dm__card {
	animation: bw-dm-float 5s ease-in-out infinite alternate;
	animation-delay: var(--bw-dm-card-delay, 0ms);
}

@keyframes bw-dm-float {
	from { translate: 0 0; }
	to { translate: 0 -12px; }
}

.bw-dm__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	font-size: 16px;
	color: var(--bw-dm-card-accent, var(--bw-dm-accent));
	background: color-mix(in srgb, var(--bw-dm-card-accent, var(--bw-dm-accent)) 14%, transparent);
	border-radius: 10px;
}

.bw-dm__card-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.bw-dm__card-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.bw-dm__card-value {
	font-size: 16px;
	line-height: 1.2;
	color: var(--bw-dm-card-accent, var(--bw-dm-accent));
}

.bw-dm__card-title {
	font-size: 13px;
	font-weight: 700;
}

.bw-dm__card-desc {
	font-size: 11px;
	line-height: 1.45;
	color: var(--bw-dm-muted);
}

/* Card / badge scene positions */

.bw-dm__pos-top-left { top: 6%; left: var(--bw-dm-card-offset); }
.bw-dm__pos-top-right { top: 6%; right: var(--bw-dm-card-offset); }
.bw-dm__pos-bottom-left { bottom: 8%; left: var(--bw-dm-card-offset); }
.bw-dm__pos-bottom-right { bottom: 8%; right: var(--bw-dm-card-offset); }
.bw-dm__pos-left-center { top: 50%; left: var(--bw-dm-card-offset); transform: translateY(-50%); }
.bw-dm__pos-right-center { top: 50%; right: var(--bw-dm-card-offset); transform: translateY(-50%); }

/* ------------------------------------------------------------------ */
/* Layout styles                                                       */
/* ------------------------------------------------------------------ */

/* 1. Center Device */
.bw-dm--layout-center .bw-dm__header {
	margin: 0 auto;
	text-align: center;
}

.bw-dm--layout-center .bw-dm__cta-row,
.bw-dm--layout-center .bw-dm__feature-badges {
	justify-content: center;
}

/* 2. Split Content + Device */
@media (min-width: 768px) {
	.bw-dm--layout-split .bw-dm__inner {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		align-items: center;
		gap: 48px;
	}

	.bw-dm--reverse .bw-dm__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}

	.bw-dm--reverse .bw-dm__header {
		order: 2;
	}

	.bw-dm--reverse .bw-dm__scene {
		order: 1;
	}
}

/* 3. Device + Floating Cards / 6. Hero Showcase */
.bw-dm--layout-floating .bw-dm__scene,
.bw-dm--layout-hero .bw-dm__scene {
	padding: 36px clamp(24px, 6vw, 90px);
}

.bw-dm--layout-hero .bw-dm__header {
	margin: 0 auto;
	text-align: center;
}

.bw-dm--layout-hero .bw-dm__cta-row,
.bw-dm--layout-hero .bw-dm__feature-badges {
	justify-content: center;
}

.bw-dm--layout-hero .bw-dm__device-wrap {
	max-width: 1000px;
}

/* 4. Multi Device Scene */
.bw-dm--layout-multi .bw-dm__device-wrap,
.bw-dm--device-dual .bw-dm__device-wrap,
.bw-dm--device-triple .bw-dm__device-wrap,
.bw-dm--device-dashboard .bw-dm__device-wrap {
	padding-bottom: 6%;
}

/* 5. Angled Perspective */
.bw-dm--layout-angled .bw-dm__device-wrap {
	--bw-dm-ry: -16deg;
	--bw-dm-rx: 6deg;
	--bw-dm-rz: 0.5deg;
}

/* 7. Gallery Showcase */
.bw-dm__gallery {
	display: grid;
	grid-template-columns: repeat(var(--bw-dm-gallery-cols, 3), minmax(0, 1fr));
	gap: 28px;
}

.bw-dm__gallery-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.3s ease;
}

.bw-dm__gallery-item:hover {
	transform: translateY(-6px);
}

.bw-dm__gallery-meta strong {
	display: block;
	font-size: 15px;
}

.bw-dm__gallery-meta small {
	font-size: 12px;
	color: var(--bw-dm-muted);
}

/* ------------------------------------------------------------------ */
/* Carousel inside screen                                              */
/* ------------------------------------------------------------------ */

.bw-dm__carousel {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: none;
}

.bw-dm__carousel:focus-visible {
	box-shadow: inset 0 0 0 2px var(--bw-dm-accent);
}

.bw-dm__car-track {
	display: flex;
	height: 100%;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-dm__car-slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	height: 100%;
}

.bw-dm__car-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.bw-dm__car-caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	padding: 12px 14px;
	background: rgba(15, 23, 42, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 12px;
	color: #ffffff;
}

.bw-dm__car-caption strong { font-size: 13px; }
.bw-dm__car-caption small { font-size: 11px; opacity: 0.8; }

.bw-dm__car-badge {
	padding: 2px 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	background: var(--bw-dm-accent);
	border-radius: 999px;
}

.bw-dm__car-btn {
	margin-top: 4px;
	padding: 5px 14px;
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
	background: #ffffff;
	border-radius: 999px;
	text-decoration: none;
}

.bw-dm__car-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #0f172a;
	background: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.bw-dm__car-arrow:hover,
.bw-dm__car-arrow:focus-visible {
	background: var(--bw-dm-accent);
	color: #ffffff;
}

.bw-dm__car-arrow:focus-visible {
	outline: 2px solid #ffffff;
}

.bw-dm__car-arrow--prev { left: 10px; }
.bw-dm__car-arrow--next { right: 10px; }

.bw-dm__car-dots {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	z-index: 4;
	display: inline-flex;
	gap: 6px;
}

.bw-dm__car-caption ~ .bw-dm__car-dots { bottom: auto; top: 10px; }

.bw-dm__car-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}

.bw-dm__car-dot.is-active {
	width: 18px;
	background: var(--bw-dm-accent);
}

.bw-dm__car-dot:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Before / After                                                      */
/* ------------------------------------------------------------------ */

.bw-dm__ba {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.bw-dm__ba img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.bw-dm__ba-before {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: inset(0 calc(100% - var(--bw-dm-ba, 50%)) 0 0);
}

.bw-dm__ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--bw-dm-ba, 50%);
	width: 2px;
	background: #ffffff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
	pointer-events: none;
}

.bw-dm__ba-handle::after {
	content: "\2194";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 13px;
	color: #0f172a;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.bw-dm__ba-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.bw-dm__ba-range:focus-visible ~ .bw-dm__ba-handle,
.bw-dm__ba:has(.bw-dm__ba-range:focus-visible) .bw-dm__ba-handle {
	background: var(--bw-dm-accent);
}

/* ------------------------------------------------------------------ */
/* Lightbox modal                                                      */
/* ------------------------------------------------------------------ */

.bw-dm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
	background: rgba(8, 10, 20, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.bw-dm-lightbox__content {
	position: relative;
	max-width: min(1200px, 94vw);
	max-height: 90vh;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.bw-dm-lightbox__content img,
.bw-dm-lightbox__content video,
.bw-dm-lightbox__content iframe {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	border: 0;
	background: #0b0d16;
}

.bw-dm-lightbox__content iframe {
	width: 94vw;
	height: 86vh;
}

.bw-dm-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	color: #0f172a;
	background: #ffffff;
	cursor: pointer;
}

.bw-dm-lightbox__close:focus-visible {
	outline: 2px solid var(--bw-dm-accent, #6d5ef0);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.bw-dm__device-wrap {
		max-width: 640px;
	}

	.bw-dm__card {
		max-width: 180px;
		padding: 11px 13px;
	}
}

@media (max-width: 767px) {
	.bw-dm__inner {
		gap: 28px;
	}

	.bw-dm--mobile-stack .bw-dm__inner {
		display: flex;
		flex-direction: column;
	}

	.bw-dm--mobile-stack .bw-dm__header,
	.bw-dm--mobile-center .bw-dm__header {
		text-align: center;
		margin: 0 auto;
	}

	.bw-dm--mobile-stack .bw-dm__cta-row,
	.bw-dm--mobile-stack .bw-dm__feature-badges,
	.bw-dm--mobile-center .bw-dm__cta-row,
	.bw-dm--mobile-center .bw-dm__feature-badges {
		justify-content: center;
	}

	/* Flatten heavy 3D on mobile */
	.bw-dm__device-wrap,
	.bw-dm--layout-angled .bw-dm__device-wrap {
		--bw-dm-rx: 0deg;
		--bw-dm-ry: 0deg;
		--bw-dm-rz: 0deg;
	}

	.bw-dm__card {
		position: static;
		transform: none;
		max-width: none;
	}

	.bw-dm__cards {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 18px;
	}

	.bw-dm--mobile-hide-cards .bw-dm__cards,
	.bw-dm--mobile-hide-cards .bw-dm__feature-badge--scene {
		display: none;
	}

	.bw-dm__companion--tablet {
		display: none;
	}

	.bw-dm__scene {
		flex-direction: column;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.bw-dm--auto-scroll .bw-dm__shot,
	.bw-dm--auto-scroll-x .bw-dm__shot,
	.bw-dm--float-anim .bw-dm__card,
	.bw-dm__shine::before {
		animation: none !important;
	}

	.bw-dm__device-wrap,
	.bw-dm__gallery-item,
	.bw-dm__car-track,
	.bw-dm__cta {
		transition: none !important;
	}
}
