/* Splash Screen */
.splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #3f2e52;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999999999;
	opacity: 1;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	overflow: hidden;
}

.splash-screen.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Fons animat amb cercles */
.splash-bg {
	display: none;
}

/* Canvas de partícules */
.particle-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.splash-circle {
	position: absolute;
	border-radius: 50%;
	opacity: 0.15;
	animation: float 20s infinite ease-in-out;
}

.splash-circle:nth-child(1) {
	width: 600px;
	height: 600px;
	background: #F27324;
	top: -200px;
	left: -100px;
	animation-delay: 0s;
}

.splash-circle:nth-child(2) {
	width: 500px;
	height: 500px;
	background: #ff6b6b;
	top: 50%;
	right: -150px;
	animation-delay: -5s;
}

.splash-circle:nth-child(3) {
	width: 400px;
	height: 400px;
	background: #4ecdc4;
	bottom: -100px;
	left: 10%;
	animation-delay: -10s;
}

.splash-circle:nth-child(4) {
	width: 350px;
	height: 350px;
	background: #3498db;
	bottom: 20%;
	right: 20%;
	animation-delay: -15s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(30px, -30px) scale(1.05); }
	50% { transform: translate(-20px, 20px) scale(0.95); }
	75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Contingut principal */
.splash-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 40px;
}

/* Logo/Títol principal */
.splash-logo {
	margin-bottom: 20px;
}

.splash-title {
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 56px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	letter-spacing: -1px;
	animation: fadeInUp 1s ease forwards;
	opacity: 0;
}

.splash-title span {
	color: #F27324;
}

/* Subtítol */
.splash-subtitle {
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	margin: 12px 0 0 0;
	letter-spacing: 4px;
	text-transform: uppercase;
	font-weight: 400;
	animation: fadeInUp 1s ease 0.2s forwards;
	opacity: 0;
}

/* Tagline principal */
.splash-tagline {
	margin: 50px 0;
	animation: fadeInUp 1s ease 0.4s forwards;
	opacity: 0;
}

.splash-tagline h2 {
	font-family: 'Arial', sans-serif;
	font-size: 28px;
	font-weight: 300;
	color: #ffffff;
	margin: 0 0 15px 0;
	line-height: 1.4;
}

.splash-tagline p {
	font-family: 'Arial', sans-serif;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	max-width: 500px;
}

/* Features */
.splash-features {
	display: flex;
	gap: 40px;
	margin: 40px 0;
	animation: fadeInUp 1s ease 0.6s forwards;
	opacity: 0;
}

.splash-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Arial', sans-serif;
	font-size: 14px;
}

.splash-feature-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.splash-feature:nth-child(1) .splash-feature-icon { background: #F27324; }
.splash-feature:nth-child(2) .splash-feature-icon { background: #ff6b6b; }
.splash-feature:nth-child(3) .splash-feature-icon { background: #4ecdc4; }

/* Botó Enter */
.splash-enter {
	margin-top: 50px;
	animation: fadeInUp 1s ease 0.8s forwards, pulse 2s ease-in-out 1.8s infinite;
	opacity: 0;
}

.splash-enter-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #ffffff;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.splash-enter-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.splash-enter-btn svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.splash-enter-btn:hover svg {
	transform: translateX(5px);
}

/* Footer amb crèdits */
.splash-footer {
	position: absolute;
	bottom: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	animation: fadeIn 1s ease 1s forwards;
	opacity: 0;
}

.splash-powered {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}

.splash-powered strong {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

.splash-ai {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
}

.splash-ai .sparkles-icon {
	width: 20px;
	height: 20px;
	color: #F27324;
}

/* Demo badge */
.splash-demo-badge {
	position: absolute;
	top: 30px;
	right: 30px;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
	animation: fadeIn 1s ease 0.5s forwards;
	opacity: 0;
}

/* Animacions */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
	.splash-title {
		font-size: 48px;
	}
	
	.splash-subtitle {
		font-size: 14px;
		letter-spacing: 4px;
	}
	
	.splash-tagline h2 {
		font-size: 22px;
	}
	
	.splash-features {
		flex-direction: column;
		gap: 20px;
	}
	
	.splash-demo-badge {
		top: 15px;
		right: 15px;
	}
}
