/**
 * Premium stats section
 */

.stats-premium {
	position: relative;
	padding: 3rem 0 2.5rem;
	margin-top: 0;
	z-index: 5;
}

.stats-premium__inner {
	position: relative;
}

.stats-premium__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.stats-premium__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.75rem 1.5rem;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 16px;
	box-shadow:
		0 1px 2px rgba(26, 31, 38, 0.04),
		0 8px 24px rgba(26, 31, 38, 0.06);
	transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.35s ease;
	overflow: hidden;
}

.stats-premium__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #f26522, transparent);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.stats-premium__card:hover {
	transform: translateY(-6px);
	border-color: rgba(242, 101, 34, 0.25);
	box-shadow:
		0 4px 8px rgba(26, 31, 38, 0.04),
		0 20px 48px rgba(242, 101, 34, 0.12);
}

.stats-premium__card:hover::before {
	opacity: 1;
}

.stats-premium__card--highlight {
	background: linear-gradient(160deg, #fff9f5 0%, #ffffff 55%);
	border-color: rgba(242, 101, 34, 0.2);
}

.stats-premium__card--highlight::before {
	opacity: 1;
	background: linear-gradient(90deg, #f26522, #ff9a3c);
}

.stats-premium__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, #fff1e8, #ffe8d6);
	color: #f26522;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stats-premium__card--highlight .stats-premium__icon {
	background: linear-gradient(145deg, #f26522, #ff8c2a);
	color: #fff;
	box-shadow: 0 8px 20px rgba(242, 101, 34, 0.35);
}

.stats-premium__value {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	line-height: 1;
	letter-spacing: -0.03em;
	background: linear-gradient(135deg, #f26522 0%, #ff9a3c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
	transition: opacity 0.3s ease;
}

.stats-premium__value.is-counting {
	opacity: 0.85;
}

.stats-premium__card--highlight .stats-premium__value {
	background: linear-gradient(135deg, #e85d04, #f26522);
	-webkit-background-clip: text;
	background-clip: text;
}

.stats-premium__label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #4d5560;
	line-height: 1.35;
	max-width: 12rem;
}

/* Clear gap after dark hero — no overlap on title */
.hero--dark + .stats-premium {
	padding-top: 2rem;
	margin-top: 0;
	background: #f7f8fa;
}

@media (max-width: 1024px) {
	.stats-premium__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats-premium {
		margin-top: 0;
		padding-top: 2rem;
	}
}

@media (max-width: 640px) {
	.stats-premium {
		padding: 2rem 0 1.5rem;
	}

	.stats-premium__grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.stats-premium__card {
		display: grid;
		grid-template-columns: 2.75rem 1fr;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 1rem;
		row-gap: 0.15rem;
		padding: 1rem 1.15rem;
	}

	.stats-premium__card:hover {
		transform: none;
	}

	.stats-premium__icon {
		grid-row: 1 / -1;
		grid-column: 1;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 10px;
	}

	.stats-premium__icon svg {
		width: 1.15rem;
		height: 1.15rem;
	}

	.stats-premium__value {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		justify-self: start;
		font-size: 1.65rem;
	}

	.stats-premium__label {
		grid-column: 2;
		grid-row: 2;
		max-width: none;
		font-size: 0.85rem;
		line-height: 1.3;
	}

	.stats-premium__card--highlight {
		background: #ffffff;
	}

	.stats-premium__card--highlight::before {
		opacity: 0;
	}

	.stats-premium__card--highlight .stats-premium__icon {
		background: linear-gradient(145deg, #fff1e8, #ffe8d6);
		color: #f26522;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	}

	.stats-premium__card--highlight .stats-premium__value {
		background: linear-gradient(135deg, #f26522 0%, #ff9a3c 100%);
		-webkit-background-clip: text;
		background-clip: text;
	}
}
