/**
 * Services detail page — slider-style schematics + readable B2B · v5.9.5
 */

.services-detail {
	--svc-cyan: #06b6d4;
	--svc-amber: #f59e0b;
	--svc-purple: #8b5cf6;
	--svc-bg: #f8fafc;
	--svc-surface: #ffffff;
	--svc-text: #1e293b;
	--svc-muted: #64748b;
	--svc-line: #e2e8f0;
	background: var(--svc-bg);
	color: var(--svc-text);
}

/* ── Hero ── */
.services-detail__hero {
	position: relative;
	overflow: hidden;
	padding: 44px 0 40px;
	background: linear-gradient(165deg, #030712 0%, #0f172a 48%, #1e293b 100%);
	color: #f1f5f9;
	isolation: isolate;
}

.services-detail__hero-mesh {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(color-mix(in srgb, var(--svc-cyan) 5%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--svc-cyan) 5%, transparent) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.28;
	pointer-events: none;
}

.services-detail__hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	pointer-events: none;
	opacity: 0.32;
}

.services-detail__hero-glow--cyan {
	width: 360px;
	height: 360px;
	top: -90px;
	inset-inline-start: -50px;
	background: radial-gradient(circle, color-mix(in srgb, var(--svc-cyan) 26%, transparent) 0%, transparent 70%);
}

.services-detail__hero-glow--amber {
	width: 280px;
	height: 280px;
	bottom: -40px;
	inset-inline-end: 10%;
	background: radial-gradient(circle, color-mix(in srgb, var(--svc-amber) 22%, transparent) 0%, transparent 70%);
}

.services-detail__hero-glow--purple {
	width: 300px;
	height: 300px;
	top: 30%;
	inset-inline-end: -40px;
	background: radial-gradient(circle, color-mix(in srgb, var(--svc-purple) 24%, transparent) 0%, transparent 70%);
}

.services-detail__hero-wrap {
	position: relative;
	z-index: 1;
}

.services-detail__breadcrumbs {
	margin-bottom: 16px;
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.9);
}

.services-detail__breadcrumbs a {
	color: rgba(226, 232, 240, 0.85);
	transition: color 0.2s ease;
}

.services-detail__breadcrumbs a:hover {
	color: var(--svc-cyan);
}

.services-detail__hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	max-width: 56rem;
	margin: 0 auto;
}

.services-detail__hero-content {
	text-align: center;
}

.services-detail__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--svc-cyan);
	background: color-mix(in srgb, var(--svc-cyan) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--svc-cyan) 28%, transparent);
}

.services-detail__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--svc-cyan);
	box-shadow: 0 0 8px color-mix(in srgb, var(--svc-cyan) 80%, transparent);
	animation: svc-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes svc-badge-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}

.services-detail__title {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 3vw, 1.625rem);
	font-weight: 900;
	line-height: 1.4;
	color: #f8fafc;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.services-detail__subtitle {
	margin: 0 0 12px;
	font-size: clamp(0.875rem, 2vw, 1.0625rem);
	font-weight: 700;
	line-height: 1.55;
	color: #cbd5e1;
	text-wrap: balance;
}

.services-detail__lead {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.85;
	color: rgba(203, 213, 225, 0.95);
	text-wrap: pretty;
}

.services-detail__hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
}

.services-detail__zones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.services-detail__zone {
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.services-detail__zone:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--svc-cyan) 45%, transparent);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--svc-cyan) 12%, transparent);
}

.services-detail__hero-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.services-detail__hero-tag {
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 800;
	border: 1px solid transparent;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-detail__hero-tag--cyan {
	color: var(--svc-cyan);
	background: color-mix(in srgb, var(--svc-cyan) 10%, transparent);
	border-color: color-mix(in srgb, var(--svc-cyan) 25%, transparent);
}

.services-detail__hero-tag--amber {
	color: var(--svc-amber);
	background: color-mix(in srgb, var(--svc-amber) 10%, transparent);
	border-color: color-mix(in srgb, var(--svc-amber) 25%, transparent);
}

.services-detail__hero-tag--purple {
	color: var(--svc-purple);
	background: color-mix(in srgb, var(--svc-purple) 10%, transparent);
	border-color: color-mix(in srgb, var(--svc-purple) 25%, transparent);
}

.services-detail__hero-tag:hover {
	transform: translateY(-2px);
}

.services-detail__hero-visual {
	margin: 0;
	width: 100%;
	max-width: 480px;
	margin-inline: auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.06),
		0 16px 40px rgba(0, 0, 0, 0.35);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.services-detail__hero-visual:hover {
	transform: translateY(-3px);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--svc-cyan) 25%, transparent),
		0 20px 48px rgba(0, 0, 0, 0.4),
		0 0 32px color-mix(in srgb, var(--svc-cyan) 10%, transparent);
}

.services-schematic {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Sticky nav ── */
.services-detail__nav-wrap {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(248, 250, 252, 0.92);
	border-bottom: 1px solid var(--svc-line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.services-detail__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 10px 0;
}

.services-detail__nav-link {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--svc-muted);
	background: var(--svc-surface);
	border: 1px solid var(--svc-line);
	transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.services-detail__nav-link:hover {
	color: var(--svc-text);
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

.services-detail__nav-link--cyan:hover,
.services-detail__nav-link--cyan:focus-visible {
	border-color: var(--svc-cyan);
	box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
	color: #0e7490;
}

.services-detail__nav-link--amber:hover,
.services-detail__nav-link--amber:focus-visible {
	border-color: var(--svc-amber);
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
	color: #b45309;
}

.services-detail__nav-link--purple:hover,
.services-detail__nav-link--purple:focus-visible {
	border-color: var(--svc-purple);
	box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
	color: #6d28d9;
}

/* ── Sections ── */
.services-detail__section {
	padding: 44px 0;
	border-bottom: 1px solid var(--svc-line);
}

.services-detail__section-head {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: center;
	max-width: 48rem;
	margin: 0 auto 28px;
	text-align: center;
}

.services-detail__section-visual {
	margin: 0 auto;
	width: 100%;
	max-width: 200px;
}

.services-schematic--section {
	border-radius: 12px;
}

.services-detail__section-title {
	margin: 0 0 10px;
	font-size: clamp(1.125rem, 2.2vw, 1.375rem);
	font-weight: 800;
	line-height: 1.45;
	color: var(--svc-text);
}

.services-detail__section--cyan .services-detail__section-title {
	color: #0e7490;
}

.services-detail__section--amber .services-detail__section-title {
	color: #b45309;
}

.services-detail__section--purple .services-detail__section-title {
	color: #6d28d9;
}

.services-detail__section-intro {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--svc-muted);
	text-wrap: pretty;
}

/* ── Cards ── */
.services-detail__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 52rem;
	margin: 0 auto;
}

.services-detail__card {
	display: flex;
	gap: 16px;
	padding: 22px;
	background: var(--svc-surface);
	border: 1px solid var(--svc-line);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.35s ease, border-color 0.35s ease;
	transform-style: preserve-3d;
}

.services-detail__card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.services-detail__card--featured {
	border-color: color-mix(in srgb, var(--svc-purple) 35%, var(--svc-line));
	background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--svc-purple) 4%, #fff) 100%);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--svc-purple) 12%, transparent),
		0 8px 28px color-mix(in srgb, var(--svc-purple) 8%, transparent);
}

.services-detail__card--featured:hover {
	border-color: color-mix(in srgb, var(--svc-purple) 45%, transparent);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--svc-purple) 18%, transparent),
		0 16px 40px color-mix(in srgb, var(--svc-purple) 12%, transparent);
}

.services-detail__section--cyan .services-detail__card:not(.services-detail__card--featured) {
	border-inline-start: 3px solid var(--svc-cyan);
}

.services-detail__section--amber .services-detail__card {
	border-inline-start: 3px solid var(--svc-amber);
}

.services-detail__section--purple .services-detail__card:not(.services-detail__card--featured) {
	border-inline-start: 3px solid var(--svc-purple);
}

.services-detail__featured-badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 800;
	color: #6d28d9;
	background: color-mix(in srgb, var(--svc-purple) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--svc-purple) 30%, transparent);
}

.services-detail__card-icon {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid var(--svc-line);
	transition: transform 0.3s ease;
}

.services-detail__card:hover .services-detail__card-icon {
	transform: scale(1.05);
}

.services-detail__icon-ring {
	position: absolute;
	inset: -4px;
	border-radius: 16px;
	border: 1px solid transparent;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.services-detail__card:hover .services-detail__icon-ring {
	opacity: 1;
}

.services-detail__card-icon--cyan { color: var(--svc-cyan); }
.services-detail__card-icon--cyan .services-detail__icon-ring {
	border-color: rgba(6, 182, 212, 0.4);
	box-shadow: 0 0 20px rgba(6, 182, 212, 0.22);
}

.services-detail__card-icon--amber { color: var(--svc-amber); }
.services-detail__card-icon--amber .services-detail__icon-ring {
	border-color: rgba(245, 158, 11, 0.4);
	box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.services-detail__card-icon--purple { color: var(--svc-purple); }
.services-detail__card-icon--purple .services-detail__icon-ring {
	border-color: rgba(139, 92, 246, 0.4);
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.22);
}

.services-detail__card-icon svg {
	position: relative;
	z-index: 1;
	width: 24px;
	height: 24px;
}

.services-detail__card-body {
	min-width: 0;
	flex: 1;
}

.services-detail__tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--svc-muted);
	background: #f1f5f9;
	border: 1px solid var(--svc-line);
}

.services-detail__card-title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--svc-text);
}

.services-detail__card-summary {
	margin: 0 0 10px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.65;
	color: #334155;
}

.services-detail__card-detail {
	margin: 0 0 12px;
	font-size: 0.875rem;
	line-height: 1.85;
	color: var(--svc-muted);
	text-wrap: pretty;
}

.services-detail__use-cases {
	padding: 12px 14px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid var(--svc-line);
}

.services-detail__use-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--svc-muted);
}

.services-detail__use-cases ul {
	margin: 0;
	padding: 0 1.1rem 0 0;
	list-style: disc;
}

.services-detail__use-cases li {
	margin-bottom: 4px;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: #475569;
}

.services-detail__use-cases li:last-child {
	margin-bottom: 0;
}

/* ── CTA ── */
.services-detail__cta {
	padding: 44px 0 56px;
	background: linear-gradient(165deg, #030712 0%, #0f172a 100%);
	color: #e2e8f0;
}

.services-detail__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 52rem;
	margin: 0 auto;
}

.services-detail__cta-title {
	margin: 0 0 6px;
	font-size: 1.125rem;
	font-weight: 800;
	color: #f8fafc;
}

.services-detail__cta-text p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(203, 213, 225, 0.9);
	max-width: 30rem;
}

.services-detail__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.services-detail__cta .btn-outline {
	color: #e2e8f0;
	border-color: rgba(255, 255, 255, 0.25);
	background: transparent;
}

.services-detail__cta .btn-outline:hover {
	border-color: var(--svc-cyan);
	color: #fff;
}

/* ── Responsive ── */
@media (min-width: 900px) {
	.services-detail__hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 32px;
		text-align: start;
	}

	.services-detail__hero-content {
		text-align: start;
	}

	.services-detail__hero-meta,
	.services-detail__zones,
	.services-detail__hero-tags {
		justify-content: flex-start;
	}

	.services-detail__hero-visual {
		margin-inline: 0;
	}

	.services-detail__section-head {
		grid-template-columns: auto 1fr;
		text-align: start;
		gap: 20px;
	}

	.services-detail__section-visual {
		margin: 0;
	}
}

@media (max-width: 768px) {
	.services-detail__hero {
		padding: 32px 0 28px;
	}

	.services-detail__section {
		padding: 32px 0;
	}

	.services-detail__card {
		flex-direction: column;
		padding: 16px;
		gap: 12px;
	}

	.services-detail__nav {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 12px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.services-detail__nav::-webkit-scrollbar {
		display: none;
	}

	.services-detail__nav-link {
		flex-shrink: 0;
	}

	.services-detail__cta-inner {
		flex-direction: column;
		text-align: center;
	}

	.services-detail__cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.services-detail__cta-actions .btn {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.services-detail__card,
	.services-detail__nav-link,
	.services-detail__icon-ring,
	.services-detail__zone,
	.services-detail__hero-tag,
	.services-detail__badge-dot,
	.services-detail__hero-visual,
	.services-schematic animate,
	.services-schematic animateMotion {
		transition: none;
		animation: none;
	}
}
