.vision-hero-stage {
	--bg-color: #FAF7F1;
	--main-text-color: #0B4F4A;
	--subtext-color: rgba(11, 79, 74, 0.7);

	--highlight-color-1: #00D4AA;
	--highlight-color-2: #4FD1FF;
	--highlight-color-3: #7B61FF;

	--cursor-light-color: rgba(0, 212, 170, 0.14);
	--blob-far-color: rgba(23, 126, 117, 0.08);
	--blob-mid-color: rgba(0, 212, 170, 0.07);
	--card-bg-color: rgba(250, 247, 241, 0.35);

	--number-scale: 1.08;
	--container-radius: 24px;
	--card-radius: 32px;
	--card-blur: 12px;

	--perspective: 1200px;

	position: relative;
	width: 100%;
	height: fit-content;
	box-sizing: border-box;
	background-color: var(--bg-color);
	padding: 2rem 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	perspective: var(--perspective);
	-webkit-perspective: var(--perspective);
	cursor: default;
	border-radius: var(--container-radius);
}

/* LAYER 0: cursor spotlight + parallax blobs */
.vision-hero-stage .vision-cursor-light {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: radial-gradient(
		600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
		var(--cursor-light-color),
		transparent 70%
	);
	will-change: background;
	transition: opacity 0.5s ease;
}

.vision-hero-stage .vision-parallax-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	-webkit-filter: blur(90px);
	pointer-events: none;
	will-change: transform;
	opacity: 0.65;
}

.vision-hero-stage .blob-far {
	top: 15%;
	left: 15%;
	width: 35vw;
	height: 35vw;
	background: var(--blob-far-color);
	z-index: 0;
}

.vision-hero-stage .blob-mid {
	bottom: 10%;
	right: 15%;
	width: 40vw;
	height: 40vw;
	background: var(--blob-mid-color);
	z-index: 2;
}

/* LAYER 1: particle canvas + grain */
.vision-hero-stage .vision-particle-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 3;
}

.vision-hero-stage .vision-noise-overlay {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	pointer-events: none;
	z-index: 4;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* LAYER 2: foreground glass card */
.vision-hero-stage .vision-content-card {
	position: relative;
	z-index: 5;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	will-change: transform;

	background: var(--card-bg-color);
	backdrop-filter: blur(var(--card-blur));
	-webkit-backdrop-filter: blur(var(--card-blur));
	padding: 1.5rem 2rem;
	border-radius: var(--card-radius);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow:
		0 30px 60px -12px rgba(11, 79, 74, 0.04),
		0 18px 36px -18px rgba(0, 0, 0, 0.02),
		inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.vision-hero-stage .vision-hero-heading {
	position: relative;
	font-size: clamp(2.8rem, 5.2vw, 5.2rem);
	color: var(--main-text-color);
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0;
	padding: 0.1em 0.2em;
	white-space: nowrap;
	display: inline-block;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transform: translateZ(40px);
}

.vision-hero-stage .vision-subtitle {
	position: relative;
	z-index: 5;
	color: var(--subtext-color);
	margin: 1rem 0 0;
	max-width: 640px;
}

.vision-hero-stage .vision-hero-heading .highlight-number {
	position: relative;
	display: inline-block;
	font-size: calc(1em * var(--number-scale));
	vertical-align: baseline;
	margin: 0 0.08em;

	background: linear-gradient(135deg, var(--highlight-color-1) 0%, var(--highlight-color-2) 50%, var(--highlight-color-3) 100%);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;

	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transform: translateZ(25px);
	will-change: background-position;
	animation: gradientFlow 8s ease-in-out infinite;
}

.vision-hero-stage.zrj-no-gradient-anim .vision-hero-heading .highlight-number,
.vision-hero-stage.zrj-no-gradient-anim .vision-hero-heading .highlight-number::after {
	animation: none !important;
}

.vision-hero-stage .vision-hero-heading .highlight-number::after {
	content: attr(data-value);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;

	background: linear-gradient(135deg, var(--highlight-color-1) 0%, var(--highlight-color-2) 50%, var(--highlight-color-3) 100%);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;

	filter: blur(22px);
	-webkit-filter: blur(22px);
	opacity: 0.45;
	will-change: background-position, opacity;
	animation: gradientFlow 8s ease-in-out infinite, glowPulse 5s ease-in-out infinite;
}

.vision-hero-stage .vision-hero-heading::before {
	content: "";
	position: absolute;
	top: -20%;
	left: -100%;
	width: 50%;
	height: 140%;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-25deg) translateZ(50px);
	pointer-events: none;
	mix-blend-mode: overlay;
	will-change: transform;
	animation: specularPass 10s ease-in-out infinite;
}

.vision-hero-stage.zrj-no-specular .vision-hero-heading::before {
	content: none;
}

@keyframes gradientFlow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 0.6; }
}

@keyframes specularPass {
	0%, 80% { left: -100%; }
	100% { left: 200%; }
}

@media (max-width: 1024px) {
	.vision-hero-stage .vision-hero-heading {
		font-size: clamp(2rem, 4.5vw, 3.6rem);
	}
}

@media (max-width: 767px) {
	.vision-hero-stage {
		padding: 1.5rem 1rem;
		border-radius: 16px;
	}
	.vision-hero-stage .vision-content-card {
		padding: 1.25rem 1rem;
		border-radius: 20px;
		transform: none !important;
	}
	.vision-hero-stage .vision-hero-heading {
		font-size: clamp(1.2rem, 5.2vw, 2.2rem);
		transform: none !important;
		white-space: normal;
	}
	.vision-hero-stage .vision-hero-heading .highlight-number {
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vision-hero-stage .vision-content-card,
	.vision-hero-stage .vision-hero-heading,
	.vision-hero-stage .vision-hero-heading .highlight-number,
	.vision-hero-stage .vision-parallax-blob,
	.vision-hero-stage .vision-hero-heading::before {
		animation: none !important;
		transform: none !important;
	}
	.vision-hero-stage .vision-particle-canvas {
		display: none;
	}
}
