/* HiIPC Tools Showcase — homepage carousel */

.hz {
	--hz-ink: #1e293b;
	--hz-muted: #5b6b85;
	--hz-line: #e6ebf2;
	--hz-brand: #060097;
	--hz-green: #00a884;
	--hz-soft: #f4f7fb;
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 20px 8px;
	box-sizing: border-box;
}

.hz *,
.hz *::before,
.hz *::after {
	box-sizing: border-box;
}

.hz-head {
	text-align: center;
	margin: 0 0 28px;
}

.hz .hz-h2 {
	font-size: 28px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--hz-ink);
	margin: 0 0 10px;
	border: 0;
	padding: 0;
	text-align: center;
}

.hz-sub {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hz-muted);
	margin: 0 auto;
	max-width: 620px;
}

.hz-stage {
	background: #fff;
	border: 1px solid var(--hz-line);
	border-radius: 16px;
	padding: 26px 28px 16px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}

.hz-track {
	display: grid;
	min-height: 1px;
}

.hz-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
	gap: 34px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease 0s, visibility 0s linear .22s;
}

.hz-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition: opacity .26s ease .16s, visibility 0s linear 0s;
}

/* copy */
.hz-kicker {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #9aa6b8;
	margin: 0 0 10px;
}

.hz .hz-title {
	font-size: 22px;
	line-height: 1.28;
	font-weight: 600;
	color: var(--hz-ink);
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

.hz-tag {
	font-size: 15px;
	line-height: 1.7;
	color: var(--hz-muted);
	margin: 0 0 16px;
}

.hz-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.hz-list li {
	position: relative;
	padding-left: 26px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #334155;
}

.hz-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a884' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

.hz-meta {
	font-size: 13px;
	color: #7a869a;
	margin: 0 0 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hz-meta i {
	font-style: normal;
	opacity: .45;
}

.hz-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hz .hz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}

.hz-btn svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.hz-btn-primary {
	background: var(--hz-brand);
	color: #fff !important;
}

.hz-btn-primary:hover {
	background: #0c0cb0;
	color: #fff !important;
}

.hz-btn-ghost {
	background: #fff;
	color: var(--hz-ink) !important;
	border-color: #d8e0ea;
}

.hz-btn-ghost:hover {
	border-color: var(--hz-brand);
	color: var(--hz-brand) !important;
}

/* media */
.hz-media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--hz-soft);
	border: 1px solid var(--hz-line);
	border-radius: 12px;
	padding: 10px;
	overflow: hidden;
}

.hz-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 6px;
}

.hz-soon {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: #a8b4c6;
}

.hz-soon svg {
	width: 56px;
	height: 56px;
}

.hz-soon span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* controls */
.hz-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--hz-line);
}

.hz-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hz-dot {
	width: 26px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: #d8e0ea;
	cursor: pointer;
	transition: background .2s, width .2s;
}

.hz-dot:hover {
	background: #b9c8f5;
}

.hz-dot[aria-current="true"] {
	width: 34px;
	background: var(--hz-brand);
}

.hz-dot:focus-visible,
.hz-arrow:focus-visible,
.hz-btn:focus-visible {
	outline: 2px solid var(--hz-brand);
	outline-offset: 2px;
}

.hz-arrows {
	display: flex;
	gap: 8px;
}

.hz-arrow {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d8e0ea;
	border-radius: 9px;
	background: #fff;
	color: #475569;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}

.hz-arrow:hover {
	border-color: var(--hz-brand);
	color: var(--hz-brand);
}

.hz-arrow {
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hz-arrow[data-hz-prev] {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}

.hz-arrow:hover {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060097' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hz-arrow[data-hz-prev]:hover {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060097' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}

.hz .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* no-JS fallback: stack every slide, hide the controls */
.hz:not(.hz-ready) .hz-track {
	display: block;
}

.hz:not(.hz-ready) .hz-slide {
	position: static;
	opacity: 1;
	visibility: visible;
	margin-bottom: 26px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--hz-line);
}

.hz:not(.hz-ready) .hz-slide:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.hz:not(.hz-ready) .hz-nav {
	display: none;
}

@media (max-width: 860px) {
	.hz {
		padding: 28px 16px 4px;
	}

	.hz .hz-h2 {
		font-size: 22px;
	}

	.hz-sub {
		font-size: 14px;
	}

	.hz-head {
		margin-bottom: 20px;
	}

	.hz-stage {
		padding: 14px 14px 12px;
		border-radius: 14px;
	}

	.hz-slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.hz-media {
		order: -1;
		aspect-ratio: 16 / 10;
		padding: 8px;
	}

	.hz .hz-title {
		font-size: 19px;
	}

	.hz-tag {
		font-size: 14px;
		margin-bottom: 14px;
	}

	.hz-list {
		margin-bottom: 16px;
	}

	.hz-list li {
		font-size: 14px;
	}

	.hz-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hz .hz-btn {
		padding: 13px 18px;
	}

	.hz-arrows {
		display: none;
	}

	.hz-nav {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hz-slide,
	.hz-dot,
	.hz-btn {
		transition: none;
	}
}
