/* Homepage - Hero section */

.home-hero {
	position: relative;
	min-height: clamp(660px, 82vh, 800px);
	overflow: hidden;
	background: var(--el-primary, #0c2e54);
	color: #ffffff;
}

.home-hero__globe {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.5;
}

.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
			radial-gradient(
					circle at center 28%,
					rgba(12, 46, 84, 0) 0%,
					rgba(12, 46, 84, 0.24) 48%,
					rgba(12, 46, 84, 0.86) 88%
			),
			linear-gradient(
					to bottom,
					rgba(12, 46, 84, 0.08),
					var(--el-primary, #0c2e54) 92%
			);
}

.home-hero__particle-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("../../images/background-image-hero.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: min(1100px, 95vw) auto;
	opacity: 0.5;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.home-hero__particle-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
			radial-gradient(
					circle at center,
					rgba(12, 46, 84, 0) 0%,
					rgba(12, 46, 84, 0.18) 45%,
					rgba(12, 46, 84, 0.78) 86%
			),
			linear-gradient(
					to bottom,
					rgba(12, 46, 84, 0.1),
					var(--el-primary, #0c2e54) 88%
			);
}

.home-hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
			linear-gradient(
					rgba(12, 46, 84, 0.18),
					rgba(12, 46, 84, 0.12)
			),
			url("../../images/background-image-hero.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	pointer-events: none;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	min-height: clamp(660px, 82vh, 800px);
	display: grid;
	grid-template-rows: 1fr auto;
	padding-top: clamp(112px, 9vw, 142px);
	padding-bottom: 34px;
}

.home-hero__content {
	align-self: center;
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
	transform: translateY(8px);
}

.home-hero__title {
	position: relative;
	margin: 0;
	color: #ffffff;
	font-family: var(--el-heading-font, Poppins, system-ui, sans-serif);
	font-size: clamp(46px, 4.8vw, 68px);
	line-height: 1.07;
	font-weight: 700;
	letter-spacing: -0.055em;
}

.home-hero__title span {
	position: relative;
	display: inline-block;
}

.home-hero__title span::after {
	content: "";
	position: absolute;
	left: -0.08em;
	right: -0.08em;
	bottom: -0.11em;
	z-index: -1;
	height: 0.12em;
	border-radius: 999px;
	background: var(--el-accent, #f97316);
}

.home-hero__title span::before {
	content: "";
	position: absolute;
	left: -0.18em;
	bottom: -0.06em;
	width: 0.14em;
	height: 0.14em;
	border-radius: 999px;
	background: var(--el-accent, #f97316);
	box-shadow:
			-0.16em -0.08em 0 -0.02em var(--el-accent, #f97316),
			-0.29em -0.16em 0 -0.04em var(--el-accent, #f97316);
}

.home-hero__subtitle {
	max-width: 650px;
	margin: 22px auto 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 1.15vw, 19px);
	line-height: 1.4;
	font-weight: 400;
}

.home-hero__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}

/*
 * Platform logo marquee.
 *
 * The hero template renders two identical logo groups inside the track.
 * Moving the track by 50% creates a continuous, seamless loop.
 */
.home-hero__logos {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding-top: 32px;

	-webkit-mask-image: linear-gradient(
			to right,
			transparent 0%,
			#000 7%,
			#000 93%,
			transparent 100%
	);

	mask-image: linear-gradient(
			to right,
			transparent 0%,
			#000 7%,
			#000 93%,
			transparent 100%
	);
}

.home-hero__logos-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: hero-logo-marquee 30s linear infinite;
	will-change: transform;
}

.home-hero__logos-group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: clamp(42px, 4.5vw, 76px);
	padding-right: clamp(42px, 4.5vw, 76px);
}

.home-hero__logos img {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: auto;
	max-width: 122px;
	max-height: 28px;
	opacity: 0.52;
}

@keyframes hero-logo-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (max-width: 1100px) {
	.home-hero__logos-group {
		gap: 42px;
		padding-right: 42px;
	}

	.home-hero__logos img {
		max-width: 112px;
	}
}

@media (max-width: 760px) {
	.home-hero {
		min-height: auto;
	}

	.home-hero__inner {
		min-height: auto;
		padding-top: 118px;
		padding-bottom: 38px;
	}

	.home-hero__content {
		transform: none;
	}

	.home-hero__title {
		font-size: clamp(40px, 11vw, 56px);
	}

	.home-hero__subtitle {
		font-size: 16px;
	}

	.home-hero__subtitle br {
		display: none;
	}

	.home-hero__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 280px;
		margin-top: 26px;
		margin-inline: auto;
	}

	.home-hero__logos {
		padding-top: 46px;

		-webkit-mask-image: linear-gradient(
				to right,
				transparent 0%,
				#000 12%,
				#000 88%,
				transparent 100%
		);

		mask-image: linear-gradient(
				to right,
				transparent 0%,
				#000 12%,
				#000 88%,
				transparent 100%
		);
	}

	.home-hero__logos-track {
		animation-duration: 24s;
	}

	.home-hero__logos-group {
		gap: 36px;
		padding-right: 36px;
	}

	.home-hero__logos img {
		max-width: 108px;
		max-height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__logos {
		overflow-x: auto;

		-webkit-mask-image: none;
		mask-image: none;
	}

	.home-hero__logos-track {
		animation: none;
	}
}