.sdash-web-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	background-color: var(--wp--preset--color--primary);
}

main:has(> .sdash-web-hero) {
	margin-top: 0;
}

.sdash-web-hero__scene {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.sdash-web-hero__content {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
	text-align: center;
}

.sdash-web-hero__heading {
	margin: 0;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--xx-large);
}

.sdash-web-hero__text {
	margin-top: var(--wp--preset--spacing--sm);
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	opacity: 0.85;
}

.sdash-web-hero__cta {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--lg);
}

.sdash-web-hero__window {
	position: absolute;
	top: 50%;
	width: 230px;
	transform: translateY(-50%);
	border: 2px solid var(--wp--preset--color--secondary);
	border-radius: var(--wp--custom--radius--md);
	background-color: rgba(38, 71, 214, 0.05);
	overflow: hidden;
}

.sdash-web-hero__window--left {
	left: 3%;
}

.sdash-web-hero__window--right {
	right: 3%;
}

.sdash-web-hero__window-chrome {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding-inline: 10px;
	border-bottom: 1px solid rgba(38, 71, 214, 0.35);
}

.sdash-web-hero__window-chrome span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--secondary);
	opacity: 0.6;
}

.sdash-web-hero__window-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}

.sdash-web-hero__row {
	display: flex;
	gap: 8px;
}

.sdash-web-hero__bar {
	display: block;
	transform-origin: left;
	transform: scaleX(0);
	opacity: 0;
	background-color: var(--wp--preset--color--secondary);
	border-radius: 2px;
	animation-name: sdash-web-hero-bar-build;
	animation-duration: 2.4s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

.sdash-web-hero__bar--header {
	width: 90%;
	height: 8px;
	animation-delay: 0s;
}

.sdash-web-hero__bar--hero {
	width: 70%;
	height: 16px;
	animation-delay: 0.45s;
}

.sdash-web-hero__row .sdash-web-hero__bar--col {
	flex: 1;
	height: 42px;
}

.sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(1) { animation-delay: 0.9s; }
.sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(2) { animation-delay: 1.05s; }
.sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(3) { animation-delay: 1.2s; }

.sdash-web-hero__window--right .sdash-web-hero__bar--header { animation-delay: 0.5s; }
.sdash-web-hero__window--right .sdash-web-hero__bar--hero { animation-delay: 0.95s; }
.sdash-web-hero__window--right .sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(1) { animation-delay: 1.4s; }
.sdash-web-hero__window--right .sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(2) { animation-delay: 1.55s; }
.sdash-web-hero__window--right .sdash-web-hero__row .sdash-web-hero__bar--col:nth-child(3) { animation-delay: 1.7s; }

@keyframes sdash-web-hero-bar-build {
	0% {
		transform: scaleX(0);
		opacity: 0;
	}
	12% {
		opacity: 0.85;
	}
	35% {
		transform: scaleX(1);
		opacity: 0.85;
	}
	80% {
		transform: scaleX(1);
		opacity: 0.85;
	}
	95% {
		opacity: 0;
	}
	100% {
		transform: scaleX(0);
		opacity: 0;
	}
}

@media (max-width: 1023px) {
	.sdash-web-hero__window {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sdash-web-hero__bar {
		animation: none;
		transform: scaleX(1);
		opacity: 0.85;
	}
}

.sdash-web-hero--editor {
	min-height: auto;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
}
