/* Premium hero video — right side of first screen */

body.home .ps-hero,
body.ps-direction-page .ps-hero {
	position: relative;
	overflow: visible;
}

.ps-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.ps-hero-bg video,
.ps-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.home .ps-hero-stage,
body.ps-direction-page .ps-hero-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(200px, 300px);
	gap: 28px 40px;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

body.home .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"],
body.ps-direction-page .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"] {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 15px;
}

body.home .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"] > *,
body.ps-direction-page .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"] > * {
	position: relative;
	z-index: 1;
}

/* Outer halo */
.ps-hero-video {
	--ps-hv-radius: 18px;
	position: relative;
	width: 100%;
	max-width: 280px;
	margin-left: auto;
	aspect-ratio: 3 / 4;
	max-height: 360px;
	border-radius: var(--ps-hv-radius);
	isolation: isolate;
	background: #0b1220;
	transform: translateZ(0);
}

.ps-hero-video::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: calc(var(--ps-hv-radius) + 8px);
	background:
		linear-gradient(145deg, rgba(68, 194, 93, 0.35), transparent 42%, rgba(157, 227, 119, 0.18));
	opacity: 0.55;
	filter: blur(14px);
	z-index: -1;
	pointer-events: none;
}

.ps-hero-video__shell {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.55),
		0 2px 0 rgba(255, 255, 255, 0.08) inset,
		0 0 0 1px rgba(68, 194, 93, 0.16);
}

.ps-hero-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transform: scale(1.08);
	filter: saturate(1.08) contrast(1.06) brightness(0.96);
	animation: ps-hero-video-drift 28s ease-in-out infinite alternate;
}

.ps-hero-video__veil {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(11, 18, 32, 0.08) 0%, rgba(11, 18, 32, 0.05) 40%, rgba(11, 18, 32, 0.62) 100%),
		linear-gradient(90deg, rgba(11, 18, 32, 0.28) 0%, transparent 28%),
		radial-gradient(ellipse 70% 55% at 85% 12%, rgba(68, 194, 93, 0.22), transparent 58%);
}

/* Construction corner brackets */
.ps-hero-video__corners {
	position: absolute;
	inset: 12px;
	pointer-events: none;
	z-index: 3;
}

.ps-hero-video__corners span {
	position: absolute;
	width: 18px;
	height: 18px;
	border-color: rgba(157, 227, 119, 0.85);
	border-style: solid;
	border-width: 0;
}

.ps-hero-video__corners span:nth-child(1) {
	top: 0;
	left: 0;
	border-top-width: 2px;
	border-left-width: 2px;
}

.ps-hero-video__corners span:nth-child(2) {
	top: 0;
	right: 0;
	border-top-width: 2px;
	border-right-width: 2px;
}

.ps-hero-video__corners span:nth-child(3) {
	bottom: 0;
	left: 0;
	border-bottom-width: 2px;
	border-left-width: 2px;
}

.ps-hero-video__corners span:nth-child(4) {
	bottom: 0;
	right: 0;
	border-bottom-width: 2px;
	border-right-width: 2px;
}

.ps-hero-video__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 36, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.ps-hero-video__badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #44c25d;
	box-shadow: 0 0 0 4px rgba(68, 194, 93, 0.22);
	animation: ps-hero-video-pulse 1.8s ease-in-out infinite;
}

.ps-hero-video__meta {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 4;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
}

.ps-hero-video__meta-title {
	margin: 0;
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.ps-hero-video__meta-sub {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.ps-hero-video__scan {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	z-index: 4;
	background: linear-gradient(90deg, transparent, #44c25d 30%, #9de377 70%, transparent);
	opacity: 0.85;
	animation: ps-hero-video-scan 4.5s linear infinite;
}

body.home .ps-hero-stage .ps-hero-trust {
	margin-top: 32px;
}

@keyframes ps-hero-video-drift {
	0% {
		transform: scale(1.06) translate3d(0, 0, 0);
	}
	100% {
		transform: scale(1.12) translate3d(-1.5%, -1%, 0);
	}
}

@keyframes ps-hero-video-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.15);
		opacity: 0.75;
	}
}

@keyframes ps-hero-video-scan {
	0% {
		transform: translateX(-40%);
		opacity: 0.2;
	}
	40%,
	60% {
		opacity: 0.9;
	}
	100% {
		transform: translateX(40%);
		opacity: 0.2;
	}
}

@media (hover: hover) and (pointer: fine) {
	.ps-hero-video {
		transition: transform 0.35s ease, filter 0.35s ease;
	}

	.ps-hero-video:hover {
		transform: translateY(-4px);
	}

	.ps-hero-video:hover video {
		filter: saturate(1.12) contrast(1.08) brightness(1);
	}
}

@media (max-width: 1023.98px) {
	body.home .ps-hero-stage,
body.ps-direction-page .ps-hero-stage {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 0 16px;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.ps-hero-video {
		aspect-ratio: 16 / 10;
		max-width: 100%;
		max-height: 220px;
		margin-left: 0;
		margin-right: 0;
		border-radius: 14px;
		order: 2;
	}

	.ps-hero-video::before {
		inset: -6px;
		filter: blur(10px);
	}

	body.home .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"],
body.ps-direction-page .ps-hero-stage > [data-spectra-id="spectra-mg07kele-g7jf2w"] {
		order: 1;
	}

	body.home .ps-hero-stage .ps-hero-trust {
		margin-top: 18px;
	}
}

@media (max-width: 781px) {
	.ps-hero-video {
		max-width: 100%;
		max-height: 180px;
		border-radius: 14px;
	}

	.ps-hero-video__badge {
		top: 12px;
		left: 12px;
		padding: 7px 10px;
		font-size: 11px;
	}

	.ps-hero-video__meta {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.ps-hero-video__corners {
		inset: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-hero-video video,
	.ps-hero-video__badge-dot,
	.ps-hero-video__scan {
		animation: none !important;
	}

	.ps-hero-video video {
		display: none;
	}

	.ps-hero-video__shell {
		background: linear-gradient(145deg, #182338 0%, #212d45 55%, #2a4a38 100%);
	}
}
