/* ==========================================================================
   Home hero: dark editorial band with a layered partner-portal preview.
   Loaded on the front page only (functions.php).
   ========================================================================== */
.home-hero {
	--hero-bg: var(--wp--preset--color--midnight, #0A192F);
	--hero-text: #F4F7FC;
	--hero-muted: #AEBBD0;
	--hero-faint: #7F8CA3;
	--hero-line: rgba(228, 233, 242, 0.12);
	--hero-glass: rgba(14, 30, 58, 0.74);
	--hero-accent-start: #7DB2FF;
	--hero-accent-end: #C3A6FF;
	--hero-success: #7EE2B8;
	--hero-ease: cubic-bezier(0.16, 1, 0.3, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-block: 0 !important;
	padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
	background: var(--hero-bg);
	color: var(--hero-text);
}

.home-hero *,
.home-hero *::before,
.home-hero *::after {
	box-sizing: border-box;
}

.home-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(55% 60% at 8% 0%, rgba(40, 100, 232, 0.34), transparent 70%),
		radial-gradient(45% 55% at 92% 78%, rgba(121, 84, 232, 0.3), transparent 70%),
		linear-gradient(rgba(228, 233, 242, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
		linear-gradient(90deg, rgba(228, 233, 242, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 40% 30%, #000 45%, transparent 100%);
	mask-image: radial-gradient(ellipse 90% 80% at 40% 30%, #000 45%, transparent 100%);
}

.home-hero__container {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 20px;
}

.home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
}

/* ---------- Copy ---------- */
.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--hero-muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.home-hero__pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hero-accent-start);
	box-shadow: 0 0 0 0 rgba(125, 178, 255, 0.6);
	animation: home-hero-pulse 2.4s var(--hero-ease) infinite;
}

.home-hero__title {
	margin: 1.5rem 0 1.5rem;
	color: var(--hero-text);
	font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.045em;
}

.home-hero__line {
	display: block;
}

.home-hero__line--accent {
	padding-bottom: 0.06em; /* keeps descenders inside the clipped gradient */
	background: linear-gradient(90deg, var(--hero-accent-start), var(--hero-accent-end));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.home-hero__desc {
	max-width: 34rem;
	margin: 0 0 2.25rem;
	color: var(--hero-muted);
	font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.18rem);
	line-height: 1.65;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.home-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 650;
	text-decoration: none;
	transition: transform 200ms var(--hero-ease), box-shadow 200ms var(--hero-ease), background-color 200ms ease, border-color 200ms ease;
}

.home-hero__btn svg {
	transition: transform 200ms var(--hero-ease);
}

.home-hero__btn--primary {
	background: linear-gradient(145deg var(--in-oklab, ), #3985FF 0%, #2864E8 50%, #7954E8 100%);
	color: #FFFFFF;
	box-shadow:
		0 16px 34px -10px rgba(57, 133, 255, 0.85),
		0 4px 10px rgba(0, 0, 0, 0.25),
		inset 0 3px 6px rgba(255, 255, 255, 0.45),
		inset 0 -4px 8px rgba(15, 20, 75, 0.48);
}

.home-hero__btn--primary:hover {
	color: #FFFFFF;
	transform: translateY(-3px);
	box-shadow:
		0 20px 42px -10px rgba(57, 133, 255, 0.95),
		0 6px 14px rgba(0, 0, 0, 0.3),
		inset 0 4px 7px rgba(255, 255, 255, 0.55),
		inset 0 -5px 9px rgba(15, 20, 75, 0.52);
}

.home-hero__btn--primary:hover svg {
	transform: translateX(3px);
}

.home-hero__btn--ghost {
	border: 1px solid rgba(228, 233, 242, 0.28);
	background: linear-gradient(155deg var(--in-oklab, ), rgba(32, 52, 92, 0.72), rgba(16, 30, 58, 0.82));
	color: var(--hero-text);
	box-shadow:
		0 12px 24px -8px rgba(0, 0, 0, 0.55),
		inset 0 2px 4px rgba(255, 255, 255, 0.22),
		inset 0 -4px 7px rgba(0, 0, 0, 0.45);
}

.home-hero__btn--ghost:hover {
	border-color: rgba(228, 233, 242, 0.55);
	background: linear-gradient(155deg var(--in-oklab, ), rgba(42, 66, 114, 0.82), rgba(22, 40, 76, 0.88));
	color: var(--hero-text);
	transform: translateY(-3px);
}

.home-hero__btn:active {
	transform: translateY(1px) scale(0.98);
}

.home-hero :where(a):focus-visible {
	outline: 3px solid #9EC5FF;
	outline-offset: 3px;
}

.home-hero__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 1.5rem 0 0;
	color: var(--hero-faint);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.home-hero__contact a {
	padding-block: 2px;
	color: var(--hero-text);
	text-decoration: underline;
	text-decoration-color: rgba(125, 178, 255, 0.6);
	text-underline-offset: 4px;
}

.home-hero__contact a:hover {
	color: var(--hero-accent-start);
}

/* ---------- Visual: photo + layered portal cards ---------- */
.home-hero__visual {
	position: relative;
	padding: 2.75rem 0 4.5rem 2.75rem;
}

.home-hero__photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1.05;
	border: 1.5px solid rgba(255, 255, 255, 0.16);
	border-radius: 32px;
	background: #12233F;
	box-shadow:
		0 44px 84px -28px rgba(0, 0, 0, 0.82),
		inset 0 3px 6px rgba(255, 255, 255, 0.22),
		inset 0 -6px 14px rgba(0, 0, 0, 0.55);
}

.home-hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 25, 47, 0) 45%, rgba(10, 25, 47, 0.55) 100%);
	box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.20), inset 0 -5px 12px rgba(0, 0, 0, 0.45);
	border-radius: inherit;
	pointer-events: none;
}

.home-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
}

.hero-card {
	position: absolute;
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	background: linear-gradient(155deg var(--in-oklab, ), rgba(24, 44, 84, 0.90) 0%, rgba(13, 26, 52, 0.94) 100%);
	color: var(--hero-text);
	box-shadow:
		0 28px 56px -18px rgba(0, 0, 0, 0.78),
		0 8px 20px -6px rgba(0, 0, 0, 0.45),
		inset 0 3px 6px rgba(255, 255, 255, 0.24),
		inset 0 -5px 12px rgba(0, 0, 0, 0.52);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	animation: home-hero-float 8s ease-in-out infinite;
}

.hero-card__label,
.hero-card__tag {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hero-muted);
}

.hero-card--commission {
	top: 0;
	right: -8px;
	width: min(260px, 64%);
	padding: 16px 18px;
	animation-delay: -4s;
}

.hero-card__value {
	display: block;
	margin: 8px 0 10px;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.3;
}

.hero-card__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hero-success);
	font-size: 0.8125rem;
	font-weight: 550;
}

.hero-card--pipeline {
	left: 0;
	bottom: 0;
	width: min(300px, 72%);
	padding: 18px 20px 20px;
}

.hero-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hero-card__title {
	font-size: 0.9375rem;
	font-weight: 650;
}

.hero-card__tag {
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	font-size: 0.625rem;
	white-space: nowrap;
}

.hero-pipeline {
	position: relative;
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.hero-pipeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 5px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--hero-accent-start) 0%, var(--hero-accent-end) 55%, rgba(255, 255, 255, 0.14) 62%);
}

.hero-pipeline__step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--hero-muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.hero-pipeline__dot {
	position: relative;
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hero-accent-start);
}

.hero-pipeline__step.is-current {
	color: var(--hero-text);
	font-weight: 600;
}

.hero-pipeline__step.is-current .hero-pipeline__dot {
	background: var(--hero-accent-end);
	box-shadow: 0 0 0 4px rgba(195, 166, 255, 0.25);
	animation: home-hero-pulse-violet 2.4s var(--hero-ease) infinite;
}

.hero-pipeline__step.is-next {
	color: var(--hero-faint);
}

.hero-pipeline__step.is-next .hero-pipeline__dot {
	border: 2px solid rgba(255, 255, 255, 0.24);
	background: var(--hero-bg);
}

/* ---------- Capability strip ---------- */
.home-hero__strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px 32px;
	margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--hero-line);
	list-style: none;
	color: var(--hero-muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.home-hero__strip li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.home-hero__strip li::before {
	content: "";
	width: 6px;
	height: 6px;
	background: linear-gradient(135deg, var(--hero-accent-start), var(--hero-accent-end));
	transform: rotate(45deg);
}

/* ---------- Motion ---------- */
@keyframes home-hero-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -8px, 0); }
}

@keyframes home-hero-pulse {
	0% { box-shadow: 0 0 0 0 rgba(125, 178, 255, 0.55); }
	70%, 100% { box-shadow: 0 0 0 10px rgba(125, 178, 255, 0); }
}

@keyframes home-hero-pulse-violet {
	0% { box-shadow: 0 0 0 0 rgba(195, 166, 255, 0.55); }
	70%, 100% { box-shadow: 0 0 0 9px rgba(195, 166, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.home-hero *,
	.home-hero *::before {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.home-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-hero__visual {
		width: 100%;
		max-width: 600px;
		margin-inline: auto;
	}

	.home-hero__strip {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.home-hero__visual {
		padding: 1.25rem 0 0;
	}

	.home-hero__photo {
		aspect-ratio: 4 / 3.3;
		border-radius: 22px;
	}

	.hero-card--commission {
		top: 0;
		right: -4px;
		width: min(230px, 68%);
		padding: 12px 14px;
	}

	.hero-card__value {
		margin: 6px 0 8px;
		font-size: 0.875rem;
	}

	.hero-card--pipeline {
		position: relative;
		width: auto;
		margin: -3.5rem 12px 0;
	}

	.home-hero__actions {
		flex-direction: column;
	}

	.home-hero__btn {
		width: 100%;
	}

	.home-hero__strip {
		display: grid;
		gap: 12px;
	}
}

@media (forced-colors: active) {
	.home-hero__line--accent {
		background: none;
		color: CanvasText;
	}

	.hero-card {
		border-color: CanvasText;
	}
}
