.demo-video,
.demo-video * {
	box-sizing: border-box;
}

.demo-video {
	position: relative;
	min-height: 520px;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #000000;
	color: #ffffff;
}

.demo-video > img,
.demo-video__bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.demo-video__bg-video {
	z-index: 0;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.demo-video.is-bg-ready .demo-video__bg-video {
	opacity: 1;
}

.demo-video.is-bg-ready > img {
	opacity: 0;
}

.demo-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.72));
}

.demo-video .eyebrow {
	display: block;
	margin: 0 0 18px;
	color: #ba1a1a;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.demo-video .eyebrow--light {
	color: rgba(255, 255, 255, 0.72);
}

.demo-video__content {
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 900px);
	text-align: center;
	transition: width 0.3s ease;
}

.demo-video h2 {
	margin: 0 0 34px;
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.demo-video .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60px;
	padding: 17px 50px;
	border: 0;
	border-radius: 10px;
	background: #000000;
	color: #ffffff;
	font: inherit;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.demo-video .btn:hover {
	background: #111111;
	transform: translateY(-1px);
}

.demo-video .btn:active {
	transform: scale(0.98);
}

.demo-video .btn--accent {
	background: #ba1a1a;
	box-shadow: 0 16px 34px rgba(186, 26, 26, 0.24);
}

.demo-video .btn--accent:hover {
	background: #a71616;
}

.demo-video .btn--round {
	border-radius: 999px;
}

.demo-video .icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.demo-video__button-icon {
	display: block;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.demo-video__player-wrap {
	display: none;
}

.demo-video__player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 76vh;
	border-radius: 16px;
	background: #000000;
}

.demo-video.is-playing .demo-video__content {
	width: min(100% - 48px, 1280px);
}

.demo-video.is-playing .demo-video__intro {
	display: none;
}

.demo-video.is-playing .demo-video__overlay {
	background: rgba(0, 0, 0, 0.58);
}

.demo-video.is-playing .demo-video__player-wrap {
	display: block;
}

@media (max-width: 767px) {
	.demo-video {
		min-height: 390px;
	}
}

.demo-video__close-trigger {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 6;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.demo-video.is-playing .demo-video__close-trigger {
	display: flex;
}

.demo-video__close-trigger:hover {
	background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
	.demo-video__close-trigger {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 22px;
	}
}
