/**
 * Home — Why MCUBE cards
 */

/* Why */
#l1-why .row {
	perspective: 1400px;
}
.l1-why {
	perspective: 1000px;
	height: 280px;
	background: transparent;
	border: none;
	outline: none;
	transform-style: preserve-3d;
	transition:
		transform 0.45s var(--l1-ease),
		filter 0.45s var(--l1-ease);
}
.l1-why-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.l1-why-face {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	overflow: hidden;
	backface-visibility: hidden;
	/* -webkit-backface-visibility: hidden; */
	/* transform-style: preserve-3d; */
	/* background: #fff; */
	box-shadow:
		0 14px 34px rgba(15, 23, 42, 0.08),
		0 2px 0 rgba(255, 255, 255, 0.7) inset;
	/* border: 1px solid rgba(15, 23, 42, 0.06); */
}
.l1-why-front {
	display: flex;
	align-items: flex-end;
	justify-content: stretch;
	transform: translateZ(2px);
}
.l1-why-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.04) translateZ(0);
	transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.l1-why-front-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 18, 34, 0.05) 0%, rgba(12, 18, 34, 0.55) 55%, rgba(12, 18, 34, 0.82) 100%);
	pointer-events: none;
}
.l1-why-front-body {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1.25rem 1.2rem 1.35rem;
	display: grid;
	gap: 0.7rem;
	justify-items: start;
}
.l1-why-ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--gradient);
	color: #fff;
	font-size: 1.05rem;
	/* box-shadow: 0 10px 22px rgba(38, 63, 216, 0.35); */
	transform: translateZ(28px);
}
.l1-why-front h3 {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 2px 14px rgba(12, 18, 34, 0.35);
	transform: translateZ(24px);
}
.l1-why-back {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.65rem;
	padding: 1.45rem 1.3rem;
	transform: rotateY(180deg) translateZ(2px);
	/* background:
		linear-gradient(160deg, #ffffff 0%, #f7f4ff 48%, #eef9ff 100%); */
}
.l1-why-back::before {
	content: "";
	position: absolute;
	inset: 0;
	/* background:
		radial-gradient(circle at 12% 18%, rgba(15, 23, 42, 0.08), transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(121, 149, 255, 0.14), transparent 45%); */
	pointer-events: none;
}
.l1-why-back .l1-why-ico,
.l1-why-back h3,
.l1-why-back p {
	position: relative;
	z-index: 1;
}
.l1-why-back h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--l1-ink);
	transform: translateZ(20px);
}
.l1-why-back p {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--l1-ink);
	transform: translateZ(16px);
}
@media (hover: hover) {
	.l1-why:hover {
		transform: translateY(-10px) scale(1.035);
		filter: drop-shadow(0 28px 36px rgba(15, 23, 42, 0.09));
		z-index: 2;
	}
	.l1-why:hover .l1-why-inner {
		transform: rotateY(180deg) rotateX(2deg);
	}
	.l1-why:hover .l1-why-img {
		transform: scale(1.12);
	}
}
.l1-why:focus-visible {
	transform: translateY(-10px) scale(1.035);
	filter: drop-shadow(0 28px 36px rgba(15, 23, 42, 0.09));
}
.l1-why:focus-visible .l1-why-inner,
.l1-why:focus-within .l1-why-inner {
	transform: rotateY(180deg) rotateX(2deg);
}
.l1-why.is-flipped {
	transform: translateY(-6px) scale(1.02);
	filter: drop-shadow(0 18px 28px rgba(38, 63, 216, 0.18));
	z-index: 2;
}
.l1-why.is-flipped .l1-why-inner {
	transform: rotateY(180deg) rotateX(2deg);
}
.l1-why.is-flipped .l1-why-img {
	transform: scale(1.1);
}
