.hero {
	position: relative;
	background: linear-gradient(
		to bottom,
		#fefcfb 0%,
		#fefcfb calc(100% - 120px),
		transparent 100%
	);
	padding: 8vw 5vw 5vw;
	overflow: visible; /* Allow blob background to extend beyond */
}

/* Animated blob background container - extends into next section */
.hero-background {
	bottom: -120px; /* Extend into next section for seamless blend */
	filter: url('#hero-plasma');
}

/* Blob color customization for hero section */
.hero-background .blob {
	background: radial-gradient(
		circle,
		#ffc0cb 0%,
		rgba(255, 192, 203, 0.1) 100%
	);
	opacity: 0.8;
}

/* Blob animations with unique timings */
#hero-blob-1 {
	animation: blob-float-1 20s ease-in-out infinite;
}

#hero-blob-2 {
	animation: blob-float-2 25s ease-in-out infinite 5s;
}

#hero-blob-3 {
	animation: blob-float-3 30s ease-in-out infinite 10s;
}

#hero-blob-4 {
	animation: blob-float-4 22s ease-in-out infinite 3s;
}

#hero-blob-5 {
	animation: blob-float-5 28s ease-in-out infinite 7s;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	position: relative;
	z-index: 1;
}

.hero-copy h1 {
	font-size: clamp(28px, 5vw, 50px);
	line-height: 1.08;
	margin: 0;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.hero-copy h1 .accent {
	background: var(--gradient-pink);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #831843;
	display: block;
}

.actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero-card {
	position: relative;
}

/* Infographic Container - Apple-inspired grid */
.infographic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 0;
}

/* Stat Counter - Large counting number */
.stat-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	will-change: transform, opacity;
}

.stat-number {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	letter-spacing: -0.02em;
}

.counter-suffix {
	font-size: 32px;
	opacity: 0.7;
	margin-left: -4px;
}

.stat-label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.01em;
}

/* Pie Chart - Circular progress */
.pie-chart {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	will-change: transform, opacity;
}

.pie-svg {
	width: 120px;
	height: 120px;
	will-change: auto; /* Reset will-change for SVG */
}

.pie-progress {
	will-change: stroke-dashoffset;
}

.pie-percentage {
	font-size: 24px;
	font-weight: 700;
	fill: var(--ink);
}

.pie-label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.01em;
}

/* Bar Chart - Horizontal comparison design */
.bar-chart {
	display: flex;
	flex-direction: column;
	gap: 20px;
	will-change: transform, opacity;
}

.bar-title {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.01em;
}

.bars {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bar-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bar-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.bar-label {
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
}

.bar-value {
	font-size: 14px;
	color: var(--ink);
	font-weight: 700;
}

.bar-track {
	position: relative;
	width: 100%;
	height: 24px;
	background: rgba(229, 231, 235, 0.4);
	border-radius: 12px;
	overflow: hidden;
}

.bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	background: var(--gradient-pink);
	border-radius: 12px;
	transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: width;
}

.bar-group:first-child .bar {
	background: linear-gradient(90deg, rgba(190, 24, 93, 0.7) 0%, rgba(131, 24, 67, 0.8) 100%);
}

.bar-group:last-child .bar {
	background: var(--gradient-pink);
}

/* Metric Display - Badge style */
.metric-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	will-change: transform, opacity;
}

.metric-icon {
	color: #9d174d;
	width: 32px;
	height: 32px;
}

.metric-value {
	font-size: 32px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1;
}

.metric-label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.01em;
}

/* Icon Grid - Tasks Automated Display */
.icon-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.tasks-title {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.01em;
}

.task-icons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	width: 100%;
	max-width: 120px;
}

.task-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(190, 24, 93, 0.15);
	color: #9d174d;
	transition: all 0.3s ease;
	opacity: 0;
	transform: scale(0.8);
	will-change: transform, opacity;
}

.task-icon svg {
	width: 24px;
	height: 24px;
}

/* Utility for screen readers */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* CSS Animations - Keyframes */
@keyframes counter-appear {
	from {
		opacity: 0;
		transform: scale(0.8) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes pie-fill {
	from {
		stroke-dashoffset: 283;
	}
	to {
		stroke-dashoffset: 19.81; /* 93% of 283 */
	}
}


@keyframes bar-grow {
	from {
		transform: scaleY(0);
	}
	to {
		transform: scaleY(1);
	}
}

/* Animation States - Initial hidden state */
.stat-counter,
.pie-chart,
.bar-chart,
.metric-display {
	opacity: 0;
	transform: translateY(20px);
}

/* Triggered animation classes */
.infographic.in-view .stat-counter {
	animation: counter-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.infographic.in-view .pie-chart {
	animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.infographic.in-view .pie-chart .pie-progress {
	animation: pie-fill 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.infographic.in-view .bar-chart {
	animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.infographic.in-view .metric-display {
	animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.infographic.in-view .task-icon:nth-child(1) {
	animation: icon-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.infographic.in-view .task-icon:nth-child(2) {
	animation: icon-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.infographic.in-view .task-icon:nth-child(3) {
	animation: icon-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.infographic.in-view .task-icon:nth-child(4) {
	animation: icon-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}



@media (max-width: 1100px) {
	.hero-inner {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	/* Infographic: Maintain 2-column grid on tablet */
	.infographic {
		gap: 12px;
	}

	.stat-number {
		font-size: 40px;
	}

	.metric-value {
		font-size: 28px;
	}

	.pie-svg {
		width: 100px;
		height: 100px;
	}

	.bar-track {
		height: 20px;
	}

	.task-icon {
		width: 44px;
		height: 44px;
	}

	.task-icon svg {
		width: 22px;
		height: 22px;
	}
}

/* Responsive: Mobile (<680px) */
@media (max-width: 680px) {
	/* Infographic: Stack vertically on mobile */
	.infographic {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stat-number {
		font-size: 36px;
	}

	.stat-label,
	.pie-label,
	.bar-title,
	.metric-label {
		font-size: 12px;
	}

	.metric-value {
		font-size: 24px;
	}

	.pie-svg {
		width: 90px;
		height: 90px;
	}

	.pie-percentage {
		font-size: 20px;
	}

	.bar-track {
		height: 18px;
	}

	.bar-value {
		font-size: 12px;
	}

	.task-icons {
		max-width: 100px;
		gap: 10px;
	}

	.task-icon {
		width: 40px;
		height: 40px;
	}

	.task-icon svg {
		width: 20px;
		height: 20px;
	}

	.tasks-count {
		font-size: 18px;
	}

	.tasks-title,
	.tasks-label {
		font-size: 11px;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	/* Remove all infographic animations */
	.stat-counter,
	.pie-chart,
	.bar-chart,
	.metric-display {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	.infographic.in-view .stat-counter,
	.infographic.in-view .pie-chart,
	.infographic.in-view .bar-chart,
	.infographic.in-view .metric-display {
		animation: none !important;
	}

	.infographic.in-view .pie-chart .pie-progress {
		animation: none !important;
		stroke-dashoffset: 19.81 !important; /* Show final state immediately - 93% */
	}

	.infographic.in-view .task-icon {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	/* Disable hover animations */
	.infographic.in-view .stat-counter:hover,
	.infographic.in-view .pie-chart:hover,
	.infographic.in-view .metric-display:hover {
		animation: none !important;
	}

	/* Disable transition for bars */
	.bar {
		transition: none !important;
	}
}
