/**
 * Klicaki — Animated Dark Background (partilhado)
 * Base #0a0e1a · blobs azul/roxo · partículas configuráveis
 */

.adb {
	--adb-base: #0a0e1a;
	--adb-blue: #0055ff;
	--adb-purple: #6b21a8;
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: var(--adb-base);
	contain: paint;
	isolation: isolate;
}

.adb__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.32;
	will-change: transform;
}

.adb__blob--a {
	width: min(52vw, 520px);
	height: min(52vw, 520px);
	top: -10%;
	left: -8%;
	background: radial-gradient(circle, var(--adb-blue) 0%, transparent 70%);
	animation: adb-blob-a 18s ease-in-out infinite;
}

.adb__blob--b {
	width: min(48vw, 460px);
	height: min(48vw, 460px);
	right: -10%;
	bottom: -12%;
	background: radial-gradient(circle, var(--adb-purple) 0%, transparent 70%);
	animation: adb-blob-b 21s ease-in-out 1.2s infinite;
}

.adb__particles {
	position: absolute;
	inset: 0;
}

.adb__particle {
	position: absolute;
	bottom: -1.5rem;
	opacity: 0;
	user-select: none;
	pointer-events: none;
	will-change: transform, opacity;
	animation-name: adb-particle-rise;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.adb__particle--text {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1;
	color: #93a5f7;
}

.adb__particle--icon {
	font-size: 14px;
	line-height: 1;
	color: color-mix(in srgb, #93a5f7 70%, #c4b5fd);
}

.adb__particle--icon .ti {
	display: block;
}

/* Variantes de secção — o fundo fica no .adb; a secção fica transparente */
.scene-hero,
.scene-about,
.scene-services,
.scene-solutions {
	position: relative;
	overflow: hidden;
	background: transparent;
}

.scene-hero > .adb {
	z-index: 0;
}

.scene-hero .hero-glow,
.scene-hero .hero-brand-pattern,
.scene-hero .hero-scanlines,
.scene-hero .hero-vignette {
	z-index: 1;
}

.scene-hero .hero-content {
	position: relative;
	z-index: 2;
}

.scene-about > .adb,
.scene-services > .adb,
.scene-solutions > .adb {
	z-index: 0;
}

.scene-about .about-wireframe-canvas {
	display: none !important;
}

.scene-about .container,
.scene-services .container,
.scene-solutions .container {
	position: relative;
	z-index: 2;
}

@keyframes adb-blob-a {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(8%, 12%, 0) scale(1.08);
	}
}

@keyframes adb-blob-b {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(-10%, -8%, 0) scale(1.1);
	}
}

@keyframes adb-particle-rise {
	0% {
		transform: translate3d(0, 0, 0);
		opacity: 0;
	}
	12% {
		opacity: 0.6;
	}
	100% {
		transform: translate3d(0, -220px, 0);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb__blob,
	.adb__particle {
		animation: none !important;
	}

	.adb__blob {
		opacity: 0.22;
	}

	.adb__particles {
		display: none;
	}
}

.adb--hero .adb__particle--text {
	font-size: 10px;
	color: color-mix(in srgb, #93a5f7 55%, transparent);
}
