/**
 * Vertex technology hero slideshow — lightweight SaaS carousel.
 */

.vx-tech-show {
	--vx-show-ink: #f4f8fc;
	--vx-show-muted: rgba(215, 243, 251, 0.82);
	--vx-show-accent: #1493c4;
	--vx-show-primary: #0055d4;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(36rem, 92svh, 54rem);
	color: var(--vx-show-ink);
	background: #070b12;
}

.vx-tech-show__atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 45% at 78% 42%, rgba(0, 85, 212, 0.22), transparent 70%),
		radial-gradient(ellipse 40% 35% at 18% 70%, rgba(20, 147, 196, 0.12), transparent 65%);
}

.vx-tech-show__ethiopia {
	position: absolute;
	inset: auto -8% -18% auto;
	z-index: 0;
	width: min(42vw, 28rem);
	height: min(42vw, 28rem);
	pointer-events: none;
	opacity: 0.07;
	background:
		radial-gradient(circle at 50% 42%, transparent 28%, rgba(127, 212, 238, 0.5) 29%, transparent 31%),
		radial-gradient(circle at 38% 55%, rgba(20, 147, 196, 0.35) 0 1.5px, transparent 2px),
		radial-gradient(circle at 62% 52%, rgba(20, 147, 196, 0.35) 0 1.5px, transparent 2px),
		radial-gradient(circle at 48% 68%, rgba(0, 85, 212, 0.4) 0 1.5px, transparent 2px);
}

.vx-tech-show__viewport {
	position: relative;
	z-index: 1;
	min-height: inherit;
}

.vx-tech-show__slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateX(12px);
	transition: opacity 600ms ease, transform 600ms ease, visibility 600ms ease;
	pointer-events: none;
}

.vx-tech-show__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}

.vx-tech-show__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.vx-tech-show__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
	opacity: 0.42;
}

.vx-tech-show__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.72) 42%, rgba(7, 11, 18, 0.35) 72%, rgba(7, 11, 18, 0.55) 100%),
		linear-gradient(180deg, rgba(7, 11, 18, 0.35) 0%, transparent 28%, rgba(7, 11, 18, 0.55) 100%);
	pointer-events: none;
}

.vx-tech-show__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
	width: min(1480px, calc(100% - 1.5rem));
	padding-block: clamp(5.75rem, 11vh, 7.5rem) clamp(5.5rem, 10vh, 7rem);
}

.vx-tech-show__copy {
	max-width: 36rem;
}

.vx-tech-show .vx-ent__kicker {
	margin: 0 0 0.75rem;
	color: var(--vx-show-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vx-tech-show__title {
	margin: 0 0 0.85rem;
	color: #fff;
	font-size: clamp(2rem, 3.8vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
	max-width: 14ch;
}

.vx-tech-show__lead {
	margin: 0 0 1.45rem;
	max-width: 34rem;
	color: var(--vx-show-muted);
	font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.1rem);
	line-height: 1.55;
}

.vx-tech-show__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.vx-tech-show__visual {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 16rem;
}

.vx-tech-show__diagram {
	width: min(100%, 26rem);
	filter: drop-shadow(0 18px 40px rgba(0, 85, 212, 0.18));
}

.vx-tech-show__svg {
	width: 100%;
	height: auto;
	display: block;
}

.vx-tech-show__diagram circle {
	transform-origin: center;
	animation: vx-tech-node 4.8s ease-in-out infinite;
}

.vx-tech-show__diagram circle:nth-child(odd) {
	animation-delay: 0.7s;
}

@keyframes vx-tech-node {
	0%,
	100% { opacity: 0.75; }
	50% { opacity: 1; }
}

.vx-tech-show__chrome {
	position: absolute;
	z-index: 3;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	width: min(1480px, calc(100% - 1.5rem));
	margin-inline: auto;
	padding-bottom: 1.15rem;
	pointer-events: none;
}

.vx-tech-show__chrome > * {
	pointer-events: auto;
}

.vx-tech-show__progress {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	max-width: min(100%, 42rem);
}

.vx-tech-show__tab {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.28rem;
	min-height: 2.75rem;
	padding: 0.2rem 0.15rem 0.45rem;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.vx-tech-show__tab-num {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.vx-tech-show__tab-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.vx-tech-show__tab-bar {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.vx-tech-show__tab-bar::after {
	content: "";
	display: block;
	width: 0;
	height: 100%;
	background: var(--vx-show-accent);
}

.vx-tech-show.is-playing .vx-tech-show__tab.is-active .vx-tech-show__tab-bar::after {
	animation: vx-tech-bar 6s linear forwards;
}

.vx-tech-show__tab.is-active {
	color: #fff;
}

.vx-tech-show__tab.is-active .vx-tech-show__tab-bar {
	background: rgba(127, 212, 238, 0.28);
}

.vx-tech-show__tab.is-active .vx-tech-show__tab-bar::after {
	width: 100%;
}

.vx-tech-show__tab:focus-visible {
	outline: 2px solid var(--vx-show-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

@keyframes vx-tech-bar {
	from { width: 0; }
	to { width: 100%; }
}

.vx-tech-show__dots {
	display: none;
	gap: 0.45rem;
	align-items: center;
}

.vx-tech-show__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.vx-tech-show__dot.is-active {
	width: 0.7rem;
	height: 0.7rem;
	background: var(--vx-show-accent);
	box-shadow: 0 0 0 2px rgba(20, 147, 196, 0.35);
}

.vx-tech-show__controls {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(7, 11, 18, 0.45);
	backdrop-filter: blur(10px);
}

.vx-tech-show__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.vx-tech-show__btn:hover,
.vx-tech-show__btn:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.vx-tech-show__btn:focus-visible {
	outline: 2px solid var(--vx-show-accent);
	outline-offset: 2px;
}

.vx-tech-show__status {
	margin: 0 0.45rem 0 0.15rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.vx-tech-show.is-paused .vx-tech-show__icon-pause {
	display: none;
}

.vx-tech-show.is-paused .vx-tech-show__icon-play {
	display: block !important;
}

@media (max-width: 991.98px) {
	.vx-tech-show__grid {
		grid-template-columns: 1fr;
		padding-block: clamp(5.25rem, 10vh, 6.5rem) clamp(6.5rem, 12vh, 8rem);
	}

	.vx-tech-show__title {
		max-width: 18ch;
	}

	.vx-tech-show__visual {
		order: 2;
		min-height: 12rem;
	}

	.vx-tech-show__diagram {
		width: min(100%, 18rem);
	}

	.vx-tech-show__progress {
		display: none;
	}

	.vx-tech-show__dots {
		display: inline-flex;
	}

	.vx-tech-show__cta {
		flex-direction: column;
		align-items: stretch;
	}

	.vx-tech-show__cta .vx-btn {
		justify-content: center;
		text-align: center;
	}

	.vx-tech-show__bg img {
		object-position: center;
		opacity: 0.32;
	}
}

@media (max-width: 575.98px) {
	.vx-tech-show {
		min-height: auto;
	}

	.vx-tech-show__viewport {
		min-height: 0;
	}

	.vx-tech-show__slide.is-active {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vx-tech-show__slide {
		transition: opacity 250ms ease;
		transform: none;
	}

	.vx-tech-show__slide.is-active {
		transform: none;
	}

	.vx-tech-show__diagram circle,
	.vx-tech-show.is-playing .vx-tech-show__tab.is-active .vx-tech-show__tab-bar::after {
		animation: none;
	}
}


/* Capability flow chain */
.vx-tech-show__flow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.55rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}
.vx-tech-show__flow li {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid rgba(127, 212, 238, 0.28);
	border-radius: 999px;
	background: rgba(0, 32, 80, 0.35);
	color: rgba(223, 242, 250, 0.92);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.vx-tech-show__flow li:not(:last-child)::after {
	content: "→";
	margin-left: 0.15rem;
	color: rgba(127, 212, 238, 0.7);
	font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
	.vx-tech-show__flow li { transition: none; }
}

/* ===== Hero storytelling upgrade ===== */
.vx-tech-show__brandline {
	position: absolute;
	top: 1rem;
	left: 50%;
	z-index: 4;
	width: min(920px, calc(100% - 2rem));
	transform: translateX(-50%);
	margin: 0;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(127, 212, 238, 0.22);
	border-radius: 999px;
	background: rgba(0, 24, 56, 0.45);
	color: rgba(223, 242, 250, 0.88);
	font-size: clamp(0.72rem, 1.1vw, 0.84rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	backdrop-filter: blur(8px);
}
.vx-tech-show__slide {
	transition: opacity 650ms ease, transform 650ms ease, visibility 650ms ease;
}
.vx-tech-show__slide.is-active .vx-tech-show__copy {
	animation: vxHeroReveal 700ms ease both;
}
.vx-tech-show__slide.is-active .vx-tech-show__diagram {
	animation: vxHeroFloat 7s ease-in-out infinite;
}
@keyframes vxHeroReveal {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes vxHeroFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
.vx-tech-show__cta .vx-btn {
	min-height: 44px;
}
.vx-tech-show__cta .vx-tech-show__ask {
	border-color: rgba(127, 212, 238, 0.45);
}
.vx-tech-show__tab {
	min-height: 44px;
}
.vx-tech-show__progress {
	gap: 0.35rem;
}
@media (max-width: 900px) {
	.vx-tech-show__brandline {
		position: static;
		transform: none;
		width: auto;
		margin: 0.75rem 1rem 0;
	}
	.vx-tech-show__grid {
		display: flex;
		flex-direction: column;
	}
	.vx-tech-show__visual {
		order: 2;
	}
	.vx-tech-show__copy {
		order: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vx-tech-show__slide.is-active .vx-tech-show__copy,
	.vx-tech-show__slide.is-active .vx-tech-show__diagram {
		animation: none !important;
	}
	.vx-tech-show__slide {
		transition: opacity 250ms ease !important;
	}
}
