/**
 * Stripe enterprise hero — dark gradient, ticker, wave canvas, stacked cards.
 * Reference: file:///Users/adil/Desktop/stripe/hero-sections/enterprise/index.html
 */

.wz-marketing-page .wz-service-marketing > .enterprise-hero::before {
	display: none;
}

.wz-stripe-hero--enterprise,
.enterprise-hero {
	--eh-max: 1080px;
	--eh-bg-dark: #13172b;
	--eh-bg-mid: #24264d;
	--eh-text: rgba(255, 255, 255, 0.85);
	--eh-knockout-bg: url("../images/enterprise-hero/knockout.png");
	--eh-cta-bg: #ffffff;
	--eh-cta-text: #0a2540;

	position: relative;
	min-height: min(100vh, 920px);
	overflow: hidden;
	padding: 0 !important;
	background: linear-gradient(145deg, var(--eh-bg-mid), var(--eh-bg-dark) 75%) !important;
	color: var(--eh-text);
}

.enterprise-hero__wave {
	position: absolute;
	top: 0;
	right: 0;
	width: 65%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.enterprise-hero__ticker {
	position: relative;
	z-index: 2;
	padding-top: var(--wp-admin-bar-height, 0px);
}

.enterprise-hero__ticker-track {
	overflow: hidden;
	background: rgba(255, 255, 255, 0.045);
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.enterprise-hero__ticker-marquee {
	display: flex;
	width: max-content;
	min-width: 200%;
	animation: eh-ticker-scroll 38s linear infinite;
	will-change: transform;
}

.enterprise-hero__ticker-track:hover .enterprise-hero__ticker-marquee {
	animation-play-state: paused;
}

.enterprise-hero__ticker-tape {
	display: inline-flex;
	align-items: stretch;
	gap: 3.25rem;
	padding: 0 3.25rem 0 0;
	flex-shrink: 0;
}

@keyframes eh-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.enterprise-hero__ticker-item {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	min-width: 24rem;
	height: 4.25rem;
	padding: 1rem 0;
	flex-shrink: 0;
	font-size: clamp(0.8125rem, 0.92vw, 0.9375rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.15s linear;
}

.enterprise-hero__ticker-item:hover {
	opacity: 0.6;
	color: #fff;
	text-decoration: none;
}

.enterprise-hero__ticker-type {
	flex-shrink: 0;
	min-width: 5.5rem;
	color: #7a73ff;
	opacity: 1;
}

.enterprise-hero__ticker-title {
	max-width: 18rem;
	color: #fff;
}

.enterprise-hero__ticker-arrow {
	flex-shrink: 0;
	width: 13px;
	height: 10px;
	margin-top: 0.125rem;
	margin-left: auto;
	opacity: 1;
}

.enterprise-hero__container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: center;
	max-width: calc(var(--eh-max) + 3rem);
	margin: 0 auto;
	padding: 3rem 1.5rem 5rem;
	min-height: calc(100vh - 11.375rem);
}

.enterprise-hero__copy {
	max-width: 32.5rem;
}

.enterprise-hero__title {
	margin: 0 0 1.5rem;
	font-size: clamp(2.625rem, 5.5vw, 4.125rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: #fff;
	text-wrap: balance;
}

.enterprise-hero__knockout {
	display: inline-block;
	color: transparent;
	background-image: var(--eh-knockout-bg);
	background-size: 100% auto;
	background-repeat: repeat-y;
	background-clip: text;
	-webkit-background-clip: text;
	padding: 0 3px 6px 0;
	animation: eh-knockout-scroll 5s linear infinite;
}

@keyframes eh-knockout-scroll {
	from { background-position-y: 0; }
	to { background-position-y: 100%; }
}

.enterprise-hero__body {
	margin: 0 0 2rem;
	max-width: 28.75rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--eh-text);
}

.enterprise-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 16px 9px;
	border-radius: 999px;
	background: var(--eh-cta-bg);
	color: var(--eh-cta-text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.enterprise-hero__cta:hover {
	opacity: 0.9;
	color: var(--eh-cta-text);
	text-decoration: none;
}

.enterprise-hero__cta:hover .enterprise-hero__arrow-line {
	transform: scaleX(1.2);
	transform-origin: left center;
}

.enterprise-hero__cta:hover .enterprise-hero__arrow-tip {
	transform: translateX(2px);
}

.enterprise-hero__arrow-line,
.enterprise-hero__arrow-tip {
	transition: transform 0.15s ease;
}

.enterprise-hero__cards {
	position: relative;
	height: 520px;
	perspective: 1200px;
}

.enterprise-hero__card {
	position: absolute;
	width: 280px;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.enterprise-hero__card-link {
	display: block;
	border-radius: 8px;
	background: #fff;
	color: var(--eh-cta-text);
	text-decoration: none;
	overflow: hidden;
	box-shadow:
		0 50px 100px -20px rgba(50, 50, 93, 0.25),
		0 30px 60px -30px rgba(0, 0, 0, 0.3);
}

.enterprise-hero__card-graphic {
	aspect-ratio: 1;
	overflow: hidden;
}

.enterprise-hero__card-graphic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.enterprise-hero__card-footer {
	padding: 1.25rem 1.5rem 1.5rem;
}

.enterprise-hero__card-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--eh-cta-text);
}

.enterprise-hero__card-explore {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--eh-cta-text);
}

.enterprise-hero__card--back {
	top: 60px;
	left: 0;
	z-index: 1;
	transform: rotate(8deg) scale(0.84);
	transform-origin: center center;
}

.enterprise-hero__card--mid {
	top: 30px;
	left: 60px;
	z-index: 2;
	transform: rotate(4deg) scale(0.92);
	transform-origin: center center;
}

.enterprise-hero__card--front {
	top: 0;
	left: 120px;
	z-index: 3;
	transform: rotate(0deg) scale(1);
	transform-origin: center center;
}

.enterprise-hero__cards:hover .enterprise-hero__card--back {
	transform: rotate(5deg) scale(0.88) translateY(-6px);
}

.enterprise-hero__cards:hover .enterprise-hero__card--mid {
	transform: rotate(2deg) scale(0.95) translateY(-10px);
}

.enterprise-hero__cards:hover .enterprise-hero__card--front {
	transform: rotate(-2deg) scale(1.02) translateY(-14px);
}

.enterprise-hero__card-link:hover {
	box-shadow:
		0 60px 120px -20px rgba(50, 50, 93, 0.35),
		0 40px 80px -30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
	.enterprise-hero__wave {
		width: 100%;
		opacity: 0.45;
	}

	.enterprise-hero__card {
		width: 240px;
	}

	.enterprise-hero__card--back { left: -20px; }
	.enterprise-hero__card--mid { left: 30px; }
	.enterprise-hero__card--front { left: 80px; }
}

@media (max-width: 899px) {
	.enterprise-hero__container {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-bottom: 3rem;
	}

	.enterprise-hero__cards {
		height: 420px;
		margin: 0 auto;
		max-width: 360px;
	}

	.enterprise-hero__card {
		width: 220px;
	}

	.enterprise-hero__card--back { top: 50px; left: 0; }
	.enterprise-hero__card--mid { top: 25px; left: 40px; }
	.enterprise-hero__card--front { top: 0; left: 80px; }

	.enterprise-hero__ticker-title {
		max-width: 200px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 599px) {
	.enterprise-hero__ticker {
		padding-top: var(--wp-admin-bar-height, 0px);
	}

	.enterprise-hero__ticker-tape {
		gap: 2.25rem;
	}

	.enterprise-hero__ticker-item {
		min-width: 18rem;
		height: 4rem;
		padding-block: 0.875rem;
		font-size: 0.8125rem;
	}

	.enterprise-hero__ticker-type {
		min-width: 4.75rem;
	}

	.enterprise-hero__cards {
		height: 360px;
	}

	.enterprise-hero__card {
		width: 190px;
	}

	.enterprise-hero__card--back { left: -10px; }
	.enterprise-hero__card--mid { left: 25px; }
	.enterprise-hero__card--front { left: 60px; }
}

@media (prefers-reduced-motion: reduce) {
	.enterprise-hero__ticker-track {
		animation: none;
	}

	.enterprise-hero__knockout {
		animation: none;
	}
}
