/* WEBLIFY DIGITAL — maintenance / coming soon */

:root {
	/* From logo */
	--blue: #008bff;
	--blue-soft: rgba(0, 139, 255, 0.18);
	--navy: #04192e;
	--navy-deep: #020e1a;
	--navy-mid: #0a2744;

	--text: #e8eef6;
	--text-muted: #8fa3bc;

	--font-display: "Syne", sans-serif;
	--font-body: "DM Sans", sans-serif;

	--space: clamp(1.25rem, 4vw, 2.5rem);
	--brand-size: clamp(2.25rem, 7.5vw, 5.25rem);
	--headline-size: clamp(1.2rem, 2.6vw, 1.55rem);
	--lede-size: clamp(0.95rem, 1.6vw, 1.1rem);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100dvh;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--navy);
	-webkit-font-smoothing: antialiased;
}

.stage {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: 100dvh;
	padding: var(--space);
	overflow: hidden;
}

/* —— Atmosphere —— */
.atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.atmosphere__grid {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image:
		linear-gradient(rgba(0, 139, 255, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 139, 255, 0.09) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 20%, transparent 75%);
}

.atmosphere__wash {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(90% 60% at 50% 0%, var(--blue-soft), transparent 55%),
		radial-gradient(70% 50% at 80% 85%, rgba(0, 139, 255, 0.1), transparent 50%),
		linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 42%, var(--navy-deep) 100%);
}

.atmosphere__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(56px);
	opacity: 0.7;
	will-change: transform;
}

.atmosphere__orb--one {
	width: min(55vw, 460px);
	height: min(55vw, 460px);
	top: -12%;
	left: 50%;
	translate: -50% 0;
	background: radial-gradient(circle, rgba(0, 139, 255, 0.35), transparent 68%);
	animation: drift-a 26s ease-in-out infinite alternate;
}

.atmosphere__orb--two {
	width: min(48vw, 400px);
	height: min(48vw, 400px);
	bottom: -16%;
	right: 8%;
	background: radial-gradient(circle, rgba(10, 39, 68, 0.9), transparent 70%);
	animation: drift-b 32s ease-in-out infinite alternate;
}

.atmosphere__grain {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 160px 160px;
}

/* —— Content —— */
.content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 48rem;
	text-align: center;
}

.brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--brand-size);
	line-height: 0.95;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	animation: rise-in 0.95s var(--ease-out) both, brand-settle 1.4s var(--ease-out) both;
}

.brand__weblify {
	color: var(--blue);
}

.brand__digital {
	color: var(--text);
}

h1 {
	margin-top: clamp(1.35rem, 3.5vw, 2rem);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--headline-size);
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--text);
	animation: rise-in 0.9s var(--ease-out) 0.16s both;
}

.lede {
	margin-top: 0.75rem;
	font-size: var(--lede-size);
	font-weight: 400;
	line-height: 1.55;
	color: var(--text-muted);
	animation: rise-in 0.9s var(--ease-out) 0.3s both;
}

/* —— Motion —— */
@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes brand-settle {
	from {
		letter-spacing: 0.16em;
		opacity: 0.65;
	}

	to {
		letter-spacing: 0.08em;
		opacity: 1;
	}
}

@keyframes drift-a {
	from {
		transform: translateY(0) scale(1);
	}

	to {
		transform: translateY(8%) scale(1.08);
	}
}

@keyframes drift-b {
	from {
		transform: translate(0, 0) scale(1);
	}

	to {
		transform: translate(-6%, -5%) scale(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {

	.brand,
	h1,
	.lede,
	.atmosphere__orb--one,
	.atmosphere__orb--two {
		animation: none;
	}

	.brand {
		letter-spacing: 0.08em;
		opacity: 1;
	}
}

@media (max-width: 480px) {
	.brand {
		letter-spacing: 0.06em;
	}

	@keyframes brand-settle {
		from {
			letter-spacing: 0.12em;
			opacity: 0.65;
		}

		to {
			letter-spacing: 0.06em;
			opacity: 1;
		}
	}
}