/**
 * Module hub hero — single image backdrop (home slideshow parity).
 */

.fsp-mhero--has-image {
	background: #090d12;
}

.fsp-mhero--has-image::before,
.fsp-mhero--has-image::after {
	display: none !important;
}

.fsp-mhero-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.fsp-mhero-backdrop__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: var(--fsp-mhero-img-opacity, 1);
	filter: saturate(0.88) contrast(1.05) brightness(var(--fsp-mhero-img-brightness, 1));
	transform: scale(1.04);
	transform-origin: center center;
}

@media (max-width: 1024px) {
	.fsp-mhero-backdrop__img {
		transform: none;
		width: 100%;
		height: 100%;
		left: 0;
		right: 0;
	}
}

/* Tools hub — steel-gray grade: less yellow, two steps softer */
body.fsp-tools--hub .fsp-mhero-backdrop__img {
	opacity: calc(var(--fsp-mhero-img-opacity, 1) * 0.8);
	filter:
		grayscale(0.32)
		saturate(0.48)
		contrast(1.03)
		brightness(calc(var(--fsp-mhero-img-brightness, 1) * 0.92));
}

body.fsp-tools--hub .fsp-mhero-backdrop__steel {
	background:
		linear-gradient(180deg, rgba(16, 20, 26, 0.22) 0%, rgba(16, 20, 26, 0.58) 100%),
		linear-gradient(90deg, rgba(176, 184, 196, 0.1) 0%, transparent 35%, rgba(176, 184, 196, 0.06) 100%);
}

.fsp-mhero-backdrop__steel {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(9, 13, 18, 0.15) 0%, rgba(9, 13, 18, 0.55) 100%),
		linear-gradient(90deg, rgba(200, 208, 220, 0.08) 0%, transparent 35%, rgba(200, 208, 220, 0.05) 100%);
	mix-blend-mode: soft-light;
}

.fsp-mhero-backdrop__sheen {
	position: absolute;
	inset: -20% -40%;
	background: linear-gradient(
		105deg,
		transparent 35%,
		rgba(238, 242, 247, 0.16) 48%,
		rgba(200, 208, 220, 0.08) 52%,
		transparent 65%
	);
	transform: translateX(-30%);
	opacity: 0.55;
}

.fsp-mhero-backdrop__mist {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 70%, rgba(148, 163, 184, 0.12), transparent 42%),
		radial-gradient(circle at 10% 80%, rgba(30, 64, 175, 0.08), transparent 38%);
}

.fsp-mhero-backdrop__veil {
	position: absolute;
	inset: 0;
	opacity: var(--fsp-mhero-veil, 1);
	background:
		linear-gradient(0deg, rgba(9, 13, 18, 0.92) 0%, rgba(9, 13, 18, 0.35) 42%, rgba(9, 13, 18, 0.55) 100%),
		linear-gradient(270deg, rgba(9, 13, 18, 0.78) 0%, transparent 55%);
	pointer-events: none;
}

.fsp-mhero-backdrop__glass {
	position: absolute;
	inset: 0;
	background: transparent;
	pointer-events: none;
}

.fsp-mhero--has-image > .fsp-thub-console__grid,
.fsp-mhero--has-image > .fsp-thub-console__inner,
.fsp-mhero--has-image > .fsp-phub-hero__frame,
.fsp-mhero--has-image > .fsp-phub-chrome,
.fsp-mhero--has-image > .fsp-phub-deck,
.fsp-mhero--has-image > .fsp-knowledge-hero__inner,
.fsp-mhero--has-image > .fsp-quote-hero__inner,
.fsp-mhero--has-image > .fsp-catalogs-hero__inner,
.fsp-mhero--has-image > *:not(.fsp-mhero-backdrop) {
	position: relative;
	z-index: 1;
}

/* ─── Hero content typography (home slideshow +2 size, +1 weight) ─ */
.fsp-module-hero h1,
.fsp-mhero--has-image h1 {
	margin: 0 0 16px;
	font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #f1f5f9;
	text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.fsp-module-hero .fsp-mhero-kicker,
.fsp-module-hero .fsp-thub-console__kicker,
.fsp-module-hero .fsp-phub-deck__label,
.fsp-module-hero .fsp-knowledge-kicker,
.fsp-module-hero .fsp-quote-kicker,
.fsp-module-hero .fsp-catalogs-kicker {
	font-size: 15px;
	font-weight: 900;
	color: #94a3b8;
	letter-spacing: 0.02em;
}

.fsp-module-hero .fsp-mhero-lead,
.fsp-module-hero .fsp-thub-lead,
.fsp-module-hero .fsp-phub-deck__lead,
.fsp-module-hero .fsp-knowledge-hero__lead,
.fsp-module-hero .fsp-quote-hero__lead,
.fsp-module-hero .fsp-catalogs-hero__lead,
.fsp-module-hero > p:not(.fsp-knowledge-kicker):not(.fsp-quote-kicker):not(.fsp-catalogs-kicker) {
	max-width: 640px;
	font-size: 20px;
	line-height: 1.75;
	font-weight: 800;
	color: #cbd5e1;
}

/* Hub copy — knowledge, quote, catalogs */
.fsp-mhero-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
}

.fsp-mhero-copy .fsp-mhero-kicker {
	margin: 0 0 12px;
	text-transform: none;
	letter-spacing: 0.02em;
}

.fsp-mhero-copy .fsp-mhero-kicker::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 2px;
	margin-left: 8px;
	vertical-align: middle;
	border-radius: 999px;
	background: linear-gradient(90deg, #94a3b8, transparent);
}

.fsp-mhero-copy h1 {
	margin: 0 0 16px;
}

.fsp-mhero-copy .fsp-mhero-lead {
	margin: 0 auto 28px;
	max-width: 580px;
}

.fsp-mhero-points {
	list-style: none;
	margin: 0;
	padding: 16px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 720px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 16px 40px rgba(0, 0, 0, 0.2);
	-webkit-backdrop-filter: blur(12px) saturate(1.06);
	backdrop-filter: blur(12px) saturate(1.06);
}

.fsp-mhero-points li {
	margin: 0;
	padding: 14px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #e2e8f0;
}

/* Stat / readout tiles — tools hub + home parity (products hub styled in products-hub.css) */
.fsp-mhero-stat,
.fsp-module-hero .fsp-thub-console__readouts > div {
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 8px 28px rgba(0, 0, 0, 0.28);
}

.fsp-mhero-stat dt,
.fsp-module-hero .fsp-thub-console__readouts dt {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

.fsp-mhero-stat dd,
.fsp-module-hero .fsp-thub-console__readouts dd {
	margin: 0;
	font-size: 26px;
	font-weight: 900;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.fsp-mhero--has-image .fsp-thub-console__lcd,
.fsp-module-hero .fsp-thub-console__lcd {
	background: rgba(255, 255, 255, 0.11);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 8px 28px rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.fsp-mhero--has-image .fsp-thub-console__lcd-label,
.fsp-module-hero .fsp-thub-console__lcd-label {
	font-size: 13px;
	font-weight: 900;
	color: #94a3b8;
	text-shadow: none;
}

.fsp-mhero--has-image .fsp-thub-console__lcd-val,
.fsp-module-hero .fsp-thub-console__lcd-val {
	font-size: 1.75rem;
	font-weight: 900;
	color: #fff;
}

body.fsp-knowledge--hub .fsp-module-hero.fsp-knowledge-hero {
	border-right: 0;
	padding-right: 0;
}

@media (max-width: 1024px) {
	.fsp-module-hero h1,
	.fsp-mhero--has-image h1,
	.fsp-thub-console h1,
	.fsp-phub-deck h1 {
		font-size: clamp(20px, 5.5vw, 28px);
		font-weight: 900;
		margin-bottom: 10px;
	}

	.fsp-module-hero .fsp-mhero-lead,
	.fsp-module-hero .fsp-thub-lead,
	.fsp-module-hero .fsp-phub-deck__lead,
	.fsp-module-hero .fsp-knowledge-hero__lead,
	.fsp-module-hero .fsp-quote-hero__lead,
	.fsp-module-hero .fsp-catalogs-hero__lead,
	.fsp-module-hero > p:not(.fsp-knowledge-kicker):not(.fsp-quote-kicker):not(.fsp-catalogs-kicker) {
		font-size: 14px;
		font-weight: 700;
		line-height: 1.65;
		margin-bottom: 14px;
	}

	.fsp-module-hero .fsp-mhero-kicker,
	.fsp-module-hero .fsp-thub-console__kicker,
	.fsp-module-hero .fsp-phub-deck__label,
	.fsp-module-hero .fsp-knowledge-kicker,
	.fsp-module-hero .fsp-quote-kicker,
	.fsp-module-hero .fsp-catalogs-kicker {
		font-size: 12px;
		font-weight: 900;
	}

	body.fsp-tools--hub .fsp-thub-console__inner,
	body.fsp-products--hub .fsp-phub-hero__frame,
	.fsp-mhero-copy {
		padding-top: calc(var(--fsp-chrome-content-offset, 52px) + 8px);
		box-sizing: border-box;
	}

	.fsp-mhero-stat,
	.fsp-module-hero .fsp-thub-console__readouts > div,
	.fsp-phub-deck__stats > div {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}

@media (max-width: 640px) {
	.fsp-module-hero h1,
	.fsp-mhero--has-image h1 {
		font-size: clamp(24px, 6.5vw, 32px);
		margin-bottom: 12px;
	}

	.fsp-module-hero .fsp-mhero-lead,
	.fsp-module-hero .fsp-thub-lead,
	.fsp-module-hero .fsp-phub-deck__lead,
	.fsp-module-hero .fsp-knowledge-hero__lead,
	.fsp-module-hero .fsp-quote-hero__lead,
	.fsp-module-hero .fsp-catalogs-hero__lead,
	.fsp-module-hero > p:not(.fsp-knowledge-kicker):not(.fsp-quote-kicker):not(.fsp-catalogs-kicker) {
		font-size: 16px;
		line-height: 1.65;
		margin-bottom: 16px;
	}

	.fsp-mhero-copy .fsp-mhero-lead {
		margin-bottom: 16px;
	}

	.fsp-mhero-points {
		grid-template-columns: 1fr;
		padding: 10px;
		gap: 8px;
	}

	.fsp-mhero-points li {
		padding: 12px 10px;
		font-size: 13px;
	}

	.fsp-phub-deck__stats,
	.fsp-thub-console__readouts {
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
		padding-inline: 0;
	}

	.fsp-phub-deck__stats {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px;
	}

	.fsp-thub-console__readouts {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.fsp-thub-console__readouts > div {
		min-width: 0;
	}

	.fsp-thub-console__lcd {
		margin-bottom: 12px;
		padding: 10px 16px;
	}

	.fsp-mhero-stat dd,
	.fsp-module-hero .fsp-thub-console__readouts dd {
		font-size: 22px;
	}
}

@supports not (backdrop-filter: blur(1px)) {
	.fsp-mhero-stat,
	.fsp-module-hero .fsp-thub-console__readouts > div {
		background: rgba(26, 35, 50, 0.82);
	}
}
