<div class="loading-overlay">
	<div class="loading-squircle"></div>
</div>

<!-- Animated background -->
<div class="hero-bg"></div>
<div class="particles" id="particles"></div>

<div class="hero-container">
	<!-- Hero content -->
	<div class="hero-content">
		<h1 class="hero-title">NeuralSync Pro</h1>
		<p class="hero-subtitle">Next-Generation AI Platform</p>
		<p class="hero-description">
			Revolutionizing how businesses integrate artificial intelligence with unprecedented speed,
			precision, and scalability. Experience the future of automated decision-making.
		</p>
	</div>

	<!-- Feature cards -->
	<div class="features-grid">
		<div class="feature-card" data-delay="1.2">
			<div class="card-icon">🧠</div>
			<h3 class="card-title">Neural Processing</h3>
			<p class="card-description">
				Advanced machine learning algorithms that adapt and evolve with your data patterns.
			</p>
			<ul class="card-features">
				<li>Real-time data analysis</li>
				<li>Pattern recognition</li>
				<li>Predictive modeling</li>
				<li>Auto-optimization</li>
			</ul>
		</div>

		<div class="feature-card" data-delay="1.4">
			<div class="card-icon">⚡</div>
			<h3 class="card-title">Lightning Speed</h3>
			<p class="card-description">
				Process millions of operations per second with our quantum-inspired architecture.
			</p>
			<ul class="card-features">
				<li>Sub-millisecond response</li>
				<li>Parallel processing</li>
				<li>Edge computing ready</li>
				<li>99.9% uptime guarantee</li>
			</ul>
		</div>

		<div class="feature-card" data-delay="1.6">
			<div class="card-icon">🔒</div>
			<h3 class="card-title">Enterprise Security</h3>
			<p class="card-description">
				Military-grade encryption with zero-trust architecture for complete data protection.
			</p>
			<ul class="card-features">
				<li>End-to-end encryption</li>
				<li>Biometric authentication</li>
				<li>Compliance ready</li>
				<li>Audit trails</li>
			</ul>
		</div>

		<div class="feature-card" data-delay="1.8">
			<div class="card-icon">🚀</div>
			<h3 class="card-title">Seamless Integration</h3>
			<p class="card-description">
				Deploy in minutes with our universal API and pre-built connectors.
			</p>
			<ul class="card-features">
				<li>RESTful API</li>
				<li>SDK libraries</li>
				<li>Cloud agnostic</li>
				<li>No-code interface</li>
			</ul>
		</div>

		<div class="feature-card" data-delay="2.0">
			<div class="card-icon">📊</div>
			<h3 class="card-title">Smart Analytics</h3>
			<p class="card-description">
				Comprehensive insights with interactive dashboards and automated reporting.
			</p>
			<ul class="card-features">
				<li>Real-time dashboards</li>
				<li>Custom metrics</li>
				<li>Automated alerts</li>
				<li>Export capabilities</li>
			</ul>
		</div>

		<div class="feature-card" data-delay="2.2">
			<div class="card-icon">🌐</div>
			<h3 class="card-title">Global Scale</h3>
			<p class="card-description">
				Worldwide infrastructure with intelligent load balancing and auto-scaling.
			</p>
			<ul class="card-features">
				<li>Multi-region deployment</li>
				<li>Auto-scaling</li>
				<li>CDN integration</li>
				<li>Disaster recovery</li>
			</ul>
		</div>
	</div>

	<!-- CTA section -->
	<div class="cta-section">
		<button class="cta-button" onclick="startDemo()">Start Free Trial</button>

		<div class="tech-stats">
			<div class="stat-item">
				<span class="stat-number">10M+</span>
				<span class="stat-label">Operations/Sec</span>
			</div>
			<div class="stat-item">
				<span class="stat-number">99.9%</span>
				<span class="stat-label">Uptime</span>
			</div>
			<div class="stat-item">
				<span class="stat-number">50ms</span>
				<span class="stat-label">Avg Response</span>
			</div>
		</div>
	</div>
</div>
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	background: #0a0a0f;
	color: white;
	overflow-x: hidden;
	min-height: 100vh;
}

/* Animated background */
.hero-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
			circle at 20% 50%,
			rgba(120, 119, 198, 0.3) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(255, 119, 198, 0.3) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 80%,
			rgba(119, 198, 255, 0.3) 0%,
			transparent 50%
		),
		linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
	z-index: -1;
}

/* Floating particles */
.particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.particle {
	position: absolute;
	width: 2px;
	height: 2px;
	background: #00f5ff;
	border-radius: 50%;
	opacity: 0.7;
	animation: float 20s infinite linear;
}

@keyframes float {
	0% {
		transform: translateY(100vh) translateX(0px);
		opacity: 0;
	}
	10% {
		opacity: 0.7;
	}
	90% {
		opacity: 0.7;
	}
	100% {
		transform: translateY(-10vh) translateX(100px);
		opacity: 0;
	}
}

.hero-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
}

.hero-content {
	text-align: center;
	margin-bottom: 80px;
	opacity: 0;
	animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-title {
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 800;
	background: linear-gradient(135deg, #00f5ff, #ff00aa, #00f5ff);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 20px;
	animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	color: #a0a0ff;
	margin-bottom: 15px;
	font-weight: 300;
}

.hero-description {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: #888;
	max-width: 600px;
	line-height: 1.6;
}

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

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Feature cards grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

.feature-card {
	position: relative;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 40px;
	padding: 40px 30px;
	backdrop-filter: blur(20px);
	transform: perspective(1000px) rotateY(-90deg);
	opacity: 0;
	transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	cursor: pointer;
	overflow: hidden;
}

.feature-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 40px;
	padding: 2px;
	background: linear-gradient(
		135deg,
		transparent,
		rgba(0, 245, 255, 0.5),
		rgba(255, 0, 170, 0.5),
		transparent
	);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.feature-card:hover::before {
	opacity: 1;
}

.feature-card.animate-in {
	transform: perspective(1000px) rotateY(0deg);
	opacity: 1;
}

.feature-card:hover {
	transform: perspective(1000px) rotateY(0deg) translateY(-10px) scale(1.02);
	box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2),
		0 0 100px rgba(0, 245, 255, 0.1);
}

.card-icon {
	width: 80px;
	height: 80px;
	border-radius: 20px;
	background: linear-gradient(135deg, #00f5ff, #ff00aa);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	margin-bottom: 25px;
	position: relative;
	overflow: hidden;
}

.card-icon::after {
	content: "";
	position: absolute;
	inset: 2px;
	background: rgba(10, 10, 15, 0.9);
	border-radius: 18px;
	z-index: -1;
}

.card-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: #fff;
}

.card-description {
	color: #aaa;
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.card-features {
	list-style: none;
	opacity: 0;
	max-height: 0;
	transition: all 0.5s ease;
	overflow: hidden;
}

.feature-card:hover .card-features {
	opacity: 1;
	max-height: 200px;
}

.card-features li {
	padding: 8px 0;
	color: #00f5ff;
	position: relative;
	padding-left: 20px;
	font-size: 0.9rem;
}

.card-features li::before {
	content: "⟩";
	position: absolute;
	left: 0;
	color: #ff00aa;
	font-weight: bold;
}

.cta-section {
	margin-top: 60px;
	text-align: center;
	opacity: 0;
	animation: fadeInUp 1s ease-out 2s forwards;
}

.cta-button {
	background: linear-gradient(135deg, #00f5ff, #ff00aa);
	border: none;
	color: white;
	padding: 18px 40px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 30px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cta-button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.5s ease;
}

.cta-button:hover::before {
	left: 100%;
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(0, 245, 255, 0.4);
}

.tech-stats {
	display: flex;
	justify-content: center;
	gap: 50px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.stat-item {
	text-align: center;
	opacity: 0;
	animation: fadeInUp 1s ease-out forwards;
}

.stat-item:nth-child(1) {
	animation-delay: 2.2s;
}
.stat-item:nth-child(2) {
	animation-delay: 2.4s;
}
.stat-item:nth-child(3) {
	animation-delay: 2.6s;
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 800;
	color: #00f5ff;
	display: block;
}

.stat-label {
	color: #888;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
	.hero-container {
		padding: 15px;
		min-height: 100vh;
	}

	.hero-content {
		margin-bottom: 40px;
		padding: 0 10px;
	}

	.hero-title {
		font-size: clamp(2.5rem, 10vw, 4rem);
		line-height: 1.1;
		margin-bottom: 15px;
	}

	.hero-subtitle {
		font-size: clamp(1.1rem, 4vw, 1.4rem);
		margin-bottom: 12px;
	}

	.hero-description {
		font-size: clamp(0.9rem, 3vw, 1.1rem);
		max-width: 90%;
		margin: 0 auto;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0;
		max-width: 100%;
	}

	.feature-card {
		padding: 25px 20px;
		border-radius: 30px;
		margin: 0 10px;
		/* Reduce 3D effects on mobile for performance */
		transform: translateY(50px);
		opacity: 0;
	}

	.feature-card.animate-in {
		transform: translateY(0);
		opacity: 1;
	}

	.feature-card:hover {
		transform: translateY(-5px) scale(1.01);
		box-shadow: 0 10px 25px rgba(0, 245, 255, 0.15);
	}

	.card-icon {
		width: 60px;
		height: 60px;
		border-radius: 15px;
		font-size: 2rem;
		margin-bottom: 20px;
	}

	.card-title {
		font-size: 1.3rem;
		margin-bottom: 12px;
	}

	.card-description {
		font-size: 0.9rem;
		line-height: 1.5;
		margin-bottom: 15px;
	}

	.card-features {
		/* Always show features on mobile - no hover needed */
		opacity: 1;
		max-height: none;
	}

	.card-features li {
		padding: 6px 0;
		font-size: 0.85rem;
	}

	.tech-stats {
		gap: 25px;
		margin-top: 30px;
		flex-direction: row;
		justify-content: space-around;
	}

	.stat-number {
		font-size: 2rem;
	}

	.stat-label {
		font-size: 0.8rem;
	}

	.cta-section {
		margin-top: 40px;
		padding: 0 20px;
	}

	.cta-button {
		padding: 16px 35px;
		font-size: 1rem;
		border-radius: 25px;
		width: 100%;
		max-width: 280px;
	}

	/* Reduce particles on mobile */
	.particles {
		display: none;
	}

	/* Simplify background on mobile */
	.hero-bg {
		background: radial-gradient(
				circle at 50% 20%,
				rgba(120, 119, 198, 0.2) 0%,
				transparent 60%
			),
			linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
	}
}

@media (max-width: 480px) {
	.hero-container {
		padding: 10px;
	}

	.feature-card {
		margin: 0 5px;
		padding: 20px 15px;
		border-radius: 25px;
	}

	.features-grid {
		gap: 15px;
	}

	.tech-stats {
		flex-direction: column;
		gap: 20px;
		align-items: center;
	}

	.stat-item {
		min-width: 120px;
	}

	.cta-button {
		padding: 14px 30px;
		font-size: 0.95rem;
	}
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
	.feature-card:hover {
		transform: none;
	}

	.feature-card:active {
		transform: scale(0.98);
		transition: transform 0.1s ease;
	}

	.cta-button:hover {
		transform: none;
	}

	.cta-button:active {
		transform: scale(0.95);
	}

	/* Always show card features on touch devices */
	.card-features {
		opacity: 1 !important;
		max-height: none !important;
	}
}

/* Loading animation */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0a0a0f;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	animation: fadeOut 1s ease-out 0.5s forwards;
}

.loading-squircle {
	width: 60px;
	height: 60px;
	border-radius: 20px;
	background: linear-gradient(45deg, #00f5ff, #ff00aa);
	animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
	0%,
	100% {
		transform: scale(1) rotate(0deg);
		border-radius: 20px;
	}
	50% {
		transform: scale(1.2) rotate(180deg);
		border-radius: 30px;
	}
}

@keyframes fadeOut {
	to {
		opacity: 0;
		visibility: hidden;
	}
}
function createParticles() {
	const particlesContainer = document.getElementById("particles");
	const isMobile = window.innerWidth <= 768;
	const particleCount = isMobile ? 0 : 30; // Reduce particles on mobile

	for (let i = 0; i < particleCount; i++) {
		const particle = document.createElement("div");
		particle.className = "particle";
		particle.style.left = Math.random() * 100 + "%";
		particle.style.animationDelay = Math.random() * 20 + "s";
		particle.style.animationDuration = Math.random() * 10 + 10 + "s";
		particlesContainer.appendChild(particle);
	}
}

// Animate feature cards on load
function animateCards() {
	const cards = document.querySelectorAll(".feature-card");

	cards.forEach((card) => {
		const delay = parseFloat(card.dataset.delay) * 1000;

		setTimeout(() => {
			card.classList.add("animate-in");
		}, delay);
	});
}

// Start demo function
function startDemo() {
	// Create ripple effect
	const button = event.target;
	const ripple = document.createElement("div");
	const rect = button.getBoundingClientRect();
	const size = Math.max(rect.width, rect.height);
	const x = event.clientX - rect.left - size / 2;
	const y = event.clientY - rect.top - size / 2;

	ripple.style.cssText = `
                position: absolute;
                width: ${size}px;
                height: ${size}px;
                left: ${x}px;
                top: ${y}px;
                background: rgba(255, 255, 255, 0.3);
                border-radius: 50%;
                transform: scale(0);
                animation: ripple 0.6s ease-out;
                pointer-events: none;
            `;

	// Add ripple animation
	const style = document.createElement("style");
	style.textContent = `
                @keyframes ripple {
                    to {
                        transform: scale(2);
                        opacity: 0;
                    }
                }
            `;
	document.head.appendChild(style);

	button.style.position = "relative";
	button.appendChild(ripple);

	setTimeout(() => ripple.remove(), 600);

	// Simulate demo start
	setTimeout(() => {
		alert("🚀 Demo starting! Welcome to NeuralSync Pro!");
	}, 300);
}

// Add mouse movement parallax effect (desktop only)
document.addEventListener("mousemove", (e) => {
	// Skip parallax on mobile devices
	if (window.innerWidth <= 768) return;

	const cards = document.querySelectorAll(".feature-card");
	const mouseX = e.clientX / window.innerWidth;
	const mouseY = e.clientY / window.innerHeight;

	cards.forEach((card, index) => {
		const intensity = index % 2 === 0 ? 8 : -8; // Reduced intensity
		const xOffset = (mouseX - 0.5) * intensity;
		const yOffset = (mouseY - 0.5) * intensity;

		if (card.classList.contains("animate-in")) {
			card.style.transform = `
                        perspective(1000px) 
                        rotateY(0deg) 
                        translateX(${xOffset}px) 
                        translateY(${yOffset}px)
                    `;
		}
	});
});

// Initialize everything
document.addEventListener("DOMContentLoaded", () => {
	createParticles();
	animateCards();

	// Add scroll-triggered animations
	const observerOptions = {
		threshold: 0.1,
		rootMargin: "0px 0px -50px 0px"
	};

	const observer = new IntersectionObserver((entries) => {
		entries.forEach((entry) => {
			if (entry.isIntersecting) {
				entry.target.style.animationPlayState = "running";
			}
		});
	}, observerOptions);

	document.querySelectorAll(".feature-card").forEach((card) => {
		observer.observe(card);
	});
});

// Handle window resize for responsive particles
let resizeTimeout;
window.addEventListener("resize", () => {
	clearTimeout(resizeTimeout);
	resizeTimeout = setTimeout(() => {
		// Recreate particles on resize
		const particlesContainer = document.getElementById("particles");
		particlesContainer.innerHTML = "";
		createParticles();
	}, 250);
});

// Add dynamic gradient animation to background (desktop only)
if (window.innerWidth > 768) {
	setInterval(() => {
		const heroBg = document.querySelector(".hero-bg");
		const hue = Date.now() / 50;
		heroBg.style.filter = `hue-rotate(${hue % 360}deg)`;
	}, 100);
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.