/* Use Cases Showcase — front end (v1.1) */
.ucs-wrap {
	--ucs-primary: #5b4cf5;
	--ucs-primary-dark: #4335e0;
	--ucs-ink: #0f0d2e;
	--ucs-text: #1f2937;
	--ucs-muted: #4b5563;
	--ucs-soft: #6b7280;
	--ucs-line: #e8e8f0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ucs-text);
	max-width: 1312px;
	margin: 0 auto;
	padding: 48px 16px 64px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.ucs-wrap *, .ucs-wrap *::before, .ucs-wrap *::after { box-sizing: border-box; }

/* Neutralise theme styles on our elements */
.ucs-wrap h2, .ucs-wrap h3, .ucs-wrap p, .ucs-wrap ul, .ucs-wrap li,
.ucs-wrap button, .ucs-wrap input, .ucs-wrap label, .ucs-wrap aside, .ucs-wrap article {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	min-height: 0;
	min-width: 0;
}
.ucs-wrap button { -webkit-appearance: none; appearance: none; line-height: 1.2; }
.ucs-wrap ul, .ucs-wrap li { list-style: none; }
.ucs-wrap li::before, .ucs-wrap li::marker { content: none; }

/* Visually hidden label (in case the theme lacks .screen-reader-text) */
.ucs-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.ucs-wrap .ucs-header {
	display: block;
	margin: 0 0 32px;
}
.ucs-wrap .ucs-title {
	margin: 0;
	padding: 0;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ucs-ink);
}
.ucs-wrap .ucs-subtitle {
	max-width: 720px;
	margin: 12px 0 0;
	padding: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--ucs-muted);
}
.ucs-wrap .ucs-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}
.ucs-wrap .ucs-search svg {
	position: absolute;
	left: 18px;
	width: 16px;
	height: 16px;
	color: var(--ucs-soft);
	pointer-events: none;
}
.ucs-wrap .ucs-search-input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 18px 0 44px;
	border: 1px solid #d9d9e3;
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	line-height: 48px;
	color: var(--ucs-text);
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.ucs-wrap .ucs-search-input::placeholder { color: var(--ucs-soft); opacity: 1; }
.ucs-wrap .ucs-search-input:focus {
	border-color: var(--ucs-primary);
	box-shadow: 0 0 0 4px rgba(91, 76, 245, .12);
}

/* Tabs */
.ucs-wrap .ucs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

/* Scroll arrows (shown on mobile only) */
.ucs-wrap .ucs-scroller { position: relative; }
.ucs-wrap .ucs-scroller-tabs { margin: 0; }
.ucs-wrap .ucs-arrow { display: none; }
.ucs-wrap .ucs-tab {
	height: 44px;
	padding: 0 20px;
	margin: 0;
	border: 1px solid #e3e3ec;
	border-radius: 999px;
	background: #fff;
	color: var(--ucs-ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s, color .2s, border-color .2s;
}
.ucs-wrap .ucs-tab:hover { border-color: var(--ucs-primary); color: var(--ucs-primary); background: #fff; }
.ucs-wrap .ucs-tab.is-active,
.ucs-wrap .ucs-tab.is-active:hover {
	background: var(--ucs-primary);
	border-color: var(--ucs-primary);
	color: #fff;
}

/* Layout */
.ucs-wrap .ucs-body {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-areas:
		"search tabs"
		"side   main";
	column-gap: 36px;
	row-gap: 28px;
	align-items: start;
}
.ucs-wrap .ucs-area-search { grid-area: search; align-self: start; }
.ucs-wrap .ucs-area-tabs   { grid-area: tabs; align-self: start; padding-top: 2px; }
.ucs-wrap .ucs-area-side   { grid-area: side; }
.ucs-wrap .ucs-area-main   { grid-area: main; }
.ucs-wrap.ucs-no-sidebar .ucs-body {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "search" "tabs" "main";
	row-gap: 20px;
}
.ucs-wrap.ucs-no-sidebar .ucs-area-search { max-width: 340px; }

/* Sidebar */
.ucs-wrap .ucs-sidebar {
	position: sticky;
	top: 32px;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--ucs-line);
}
.ucs-wrap .ucs-sidebar-label {
	padding: 0 0 0 16px;
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #4b5068;
}
.ucs-wrap .ucs-cats { margin: 0; padding: 0; }
.ucs-wrap .ucs-cats li { margin: 0; padding: 0; }
.ucs-wrap .ucs-cat {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 0 11px 16px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #374151;
	font-size: 15px;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	transition: color .2s;
}
.ucs-wrap .ucs-cat::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: transparent;
	transition: background .2s;
}
.ucs-wrap .ucs-cat:hover { color: var(--ucs-primary); background: transparent; }
.ucs-wrap .ucs-cat.is-active { color: var(--ucs-primary); font-weight: 600; }
.ucs-wrap .ucs-cat.is-active::before { background: var(--ucs-primary); }
.ucs-wrap .ucs-count { font-size: 12px; color: var(--ucs-soft); font-weight: 400; }
.ucs-wrap .ucs-cat.is-active .ucs-count { color: var(--ucs-primary); font-weight: 600; }

/* Grid + cards */
.ucs-wrap .ucs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.ucs-wrap .ucs-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 22px;
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 16px;
	box-shadow: none;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ucs-wrap .ucs-card:hover {
	border-color: #cfc9fb;
	box-shadow: 0 12px 30px -12px rgba(91, 76, 245, .25);
	transform: translateY(-3px);
}
.ucs-wrap .ucs-card[hidden] { display: none; }
.ucs-wrap .ucs-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}
.ucs-wrap .ucs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: #fff;
}
.ucs-wrap .ucs-icon svg { width: 20px; height: 20px; display: block; }
.ucs-wrap .ucs-icon img { width: 22px; height: 22px; object-fit: contain; }
.ucs-wrap .ucs-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.ucs-wrap .ucs-card-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.01em;
	color: var(--ucs-ink);
}
.ucs-wrap .ucs-card-desc {
	margin: 0 0 18px;
	padding: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ucs-muted);
}
.ucs-wrap .ucs-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 16px;
	row-gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #ececf3;
}
.ucs-wrap .ucs-card-role {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ucs-soft);
}
.ucs-wrap .ucs-demo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	height: auto;
	border: 0;
	background: transparent;
	color: var(--ucs-primary);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none;
}
.ucs-wrap a.ucs-demo-btn:visited { color: var(--ucs-primary); }
.ucs-wrap .ucs-demo-btn:hover,
.ucs-wrap .ucs-demo-btn:focus { background: transparent; color: var(--ucs-primary-dark); }
.ucs-wrap .ucs-demo-btn svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .2s; }
.ucs-wrap .ucs-demo-btn:hover svg { transform: translateX(3px); }

.ucs-wrap .ucs-empty {
	padding: 56px 20px;
	text-align: center;
	color: var(--ucs-soft);
	border: 1px dashed var(--ucs-line);
	border-radius: 16px;
}
.ucs-wrap .ucs-empty[hidden] { display: none; }

.ucs-wrap :focus-visible { outline: 2px solid var(--ucs-primary); outline-offset: 3px; }

/* Modal */
.ucs-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.ucs-modal[hidden] { display: none; }
.ucs-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 8, 30, .78);
	backdrop-filter: blur(3px);
	animation: ucs-fade .2s ease;
}
.ucs-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 1000px;
	animation: ucs-pop .25s ease;
}
.ucs-modal-video {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.ucs-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ucs-modal .ucs-modal-close {
	position: absolute;
	top: -52px;
	right: 0;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0f0d2e;
	cursor: pointer;
	box-shadow: none;
}
.ucs-modal-close svg { width: 20px; height: 20px; }
body.ucs-modal-open { overflow: hidden; }
@keyframes ucs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ucs-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1180px) {
	.ucs-wrap .ucs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ucs-wrap { padding: 28px 16px 48px; }
	.ucs-wrap .ucs-header { margin-bottom: 22px; }
	.ucs-wrap .ucs-title { font-size: 36px; }
	.ucs-wrap .ucs-subtitle { margin-top: 10px; font-size: 16px; }
	.ucs-wrap.ucs-no-sidebar .ucs-area-search { max-width: none; }

	.ucs-wrap .ucs-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin: 0 -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.ucs-wrap .ucs-tabs::-webkit-scrollbar { display: none; }
	.ucs-wrap .ucs-tab { height: 40px; padding: 0 16px; flex: 0 0 auto; }

	.ucs-wrap .ucs-body,
	.ucs-wrap.ucs-no-sidebar .ucs-body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "search" "tabs" "side" "main";
		row-gap: 18px;
	}

	.ucs-wrap .ucs-sidebar { position: static; border-left: 0; }
	.ucs-wrap .ucs-sidebar-label { padding: 0; margin-bottom: 10px; }
	.ucs-wrap .ucs-cats {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		margin: 0 -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}
	.ucs-wrap .ucs-cats::-webkit-scrollbar { display: none; }
	.ucs-wrap .ucs-cats li { flex: 0 0 auto; }
	.ucs-wrap .ucs-cat {
		gap: 8px;
		width: auto;
		padding: 7px 14px;
		border: 1px solid var(--ucs-line);
		border-radius: 999px;
		font-size: 14px;
		white-space: nowrap;
	}
	.ucs-wrap .ucs-cat::before { display: none; }
	.ucs-wrap .ucs-cat.is-active { background: #f0eeff; border-color: #d6d1fd; }
}
@media (max-width: 900px) {
	.ucs-wrap .ucs-arrow {
		position: absolute;
		top: calc(50% - 2px);
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		margin: 0;
		padding: 0;
		border: 1px solid #e3e3ec;
		border-radius: 50%;
		background: #fff;
		color: var(--ucs-ink);
		cursor: pointer;
		transform: translateY(-50%);
		transition: color .2s, border-color .2s, opacity .2s;
	}
	.ucs-wrap .ucs-arrow[hidden] { display: none; }
	.ucs-wrap .ucs-arrow:hover,
	.ucs-wrap .ucs-arrow:focus { background: #fff; color: var(--ucs-primary); border-color: var(--ucs-primary); }
	.ucs-wrap .ucs-arrow svg { width: 16px; height: 16px; display: block; }
	.ucs-wrap .ucs-arrow-prev { left: -6px; box-shadow: 0 2px 8px rgba(15, 13, 46, .12), 16px 0 14px 4px #fff, -14px 0 0 10px #fff; }
	.ucs-wrap .ucs-arrow-next { right: -6px; box-shadow: 0 2px 8px rgba(15, 13, 46, .12), -16px 0 14px 4px #fff, 14px 0 0 10px #fff; }
	.ucs-wrap .ucs-scroller-cats .ucs-arrow { width: 30px; height: 30px; }
}

@media (max-width: 640px) {
	.ucs-wrap .ucs-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ucs-wrap .ucs-title { font-size: 32px; }
	.ucs-wrap .ucs-subtitle { font-size: 15px; }
	.ucs-wrap .ucs-card { padding: 20px; }
	.ucs-modal { padding: 12px; }
	.ucs-modal-video { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.ucs-wrap .ucs-card, .ucs-wrap .ucs-demo-btn svg, .ucs-modal-overlay, .ucs-modal-dialog { transition: none; animation: none; }
}
@media (max-width: 900px) {
	.ucs-wrap .ucs-area-tabs { padding-top: 0; }
}
