/* SparkAI - Demo video section (portrait 9:16 short, shown between hero and features) */

.demo-video {
	padding: 0 24px 64px;
	position: relative;
	z-index: 1;
}

.demo-video-inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.demo-video h2 {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fafafa;
}

.demo-video p {
	margin-top: 4px;
	font-size: 13px;
	color: var(--color-text-muted, #9ca3af);
	text-align: center;
	max-width: 380px;
}

.demo-video-frame {
	position: relative;
	margin-top: 20px;
	width: 240px;
	aspect-ratio: 9 / 16;
	border-radius: 32px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #000;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Brand glow behind the frame, so the rounded corners stay crisp. */
.demo-video-frame::before {
	content: "";
	position: absolute;
	inset: -24px;
	border-radius: 40px;
	background: var(--color-primary, #818cf8);
	opacity: 0.12;
	filter: blur(28px);
	z-index: -1;
	transition: opacity 0.4s ease;
}

.demo-video-frame:hover::before {
	opacity: 0.2;
}

.demo-video-frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.demo-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.3));
	transition: background 0.2s ease;
}

.demo-video-play:hover {
	background: rgba(0, 0, 0, 0.2);
}

.demo-video-play span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #101019;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

.demo-video-play:hover span {
	transform: scale(1.1);
}

@media (min-width: 640px) {
	.demo-video-frame {
		width: 280px;
	}
}
