/* ==================================================
   Background
================================================== */

.background {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.grid {
	position: absolute;
	inset: -20%;
	background-image:
		linear-gradient(rgba(147, 164, 193, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(147, 164, 193, 0.025) 1px, transparent 1px);
	background-size: 55px 55px;
	transform: perspective(600px) rotateX(58deg) translateY(20%);
	transform-origin: center;
	mask-image: linear-gradient(to bottom, transparent, black 45%, transparent);
}

.glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 600px;
	height: 600px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(34, 57, 111, 0.18);
	filter: blur(100px);
}

/* ==================================================
   LiDAR Visualization
================================================== */

.lidar {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(900px, 90vw);
	height: min(900px, 90vw);
	transform: translate(-50%, -50%);
	opacity: 0.38;
}

.ring {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border: 1px solid rgba(147, 164, 193, 0.1);
	border-radius: 50%;
}

.ring-1 {
	width: 25%;
	height: 25%;
}

.ring-2 {
	width: 46%;
	height: 46%;
}

.ring-3 {
	width: 68%;
	height: 68%;
}

.ring-4 {
	width: 91%;
	height: 91%;
}

.scan {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46%;
	height: 1px;
	transform-origin: left center;
	background: linear-gradient(90deg, rgba(252, 241, 208, 0.8), transparent);
	box-shadow: 0 0 16px rgba(252, 241, 208, 0.35);
	animation: scan 5s linear infinite;
}

.scan::after {
	content: "";
	position: absolute;
	right: 0;
	top: -2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--cream-100);
	box-shadow: 0 0 12px var(--cream-100);
}

@keyframes scan {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.sensor {
	opacity: 0.35;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--cream-100);
	box-shadow:
		0 0 0 5px rgba(252, 241, 208, 0.05),
		0 0 22px rgba(252, 241, 208, 0.6);
}

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

.point {
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--slate-400);
	opacity: 0;
	animation: appear 4s ease-in-out infinite;
}

@keyframes appear {
	0%,
	100% {
		opacity: 0.02;
		transform: scale(0.6);
	}

	45%,
	65% {
		opacity: 0.5;
		transform: scale(1);
	}
}

/* ==================================================
   Hero
================================================== */

main {
	position: relative;
	z-index: 5;
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 32px;
}

.content {
	width: min(680px, 100%);
	padding: 48px 36px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 24px;
	color: var(--slate-400);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cream-100);
	box-shadow: 0 0 12px rgba(252, 241, 208, 0.7);
}

h1 {
	margin: 0;
	font-size: clamp(3.5rem, 9vw, 7rem);
	line-height: 0.86;
	font-weight: 700;
	letter-spacing: -0.065em;
	text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

h1 span {
	color: var(--slate-400);
}

.description {
	max-width: 520px;
	margin: 30px auto 0;
	color: var(--slate-400);
	font-size: clamp(0.9rem, 1.8vw, 1.05rem);
	line-height: 1.7;
}

.actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

.btn {
	min-width: 145px;
	padding: 13px 22px;
	border: 1px solid var(--cream-100);
	border-radius: 5px;
	background: var(--cream-100);
	color: var(--navy-950);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	transition:
		transform var(--transition),
		background var(--transition),
		box-shadow var(--transition);
}

.btn:hover {
	transform: translateY(-3px);
	background: var(--white);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.btn.secondary {
	background: rgba(6, 13, 32, 0.75);
	color: var(--cream-100);
	border-color: rgba(147, 164, 193, 0.25);
	backdrop-filter: blur(8px);
}

.btn.secondary:hover {
	background: var(--navy-800);
	border-color: var(--navy-800);
}

/* ==================================================
   Metrics
================================================== */

.metrics {
	display: flex;
	justify-content: center;
	gap: 34px;
	margin-top: 38px;
}

.metric {
	position: relative;
	min-width: 125px;
}

.metric:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -17px;
	top: 4px;
	width: 1px;
	height: 30px;
	background: rgba(147, 164, 193, 0.16);
}

.metric strong {
	display: block;
	font-size: 1rem;
}

.metric small {
	color: var(--muted);
	font-size: 0.68rem;
}

.metric-note {
	margin: 10px auto 0;
	color: rgba(147, 164, 193, 0.5);
	font-size: 0.62rem;
	line-height: 1.4;
}

.metric-note a {
	color: var(--slate-400);
	text-decoration: none;
	border-bottom: 1px solid rgba(147, 164, 193, 0.2);
	transition: var(--transition);
}

.metric-note a:hover {
	color: var(--cream-100);
	border-color: var(--cream-100);
}

/* ==================================================
   Short Screens
================================================== */

@media (max-height: 700px) and (min-width: 601px) {
	main {
		padding: 20px;
	}

	.content {
		padding: 24px 30px;
	}

	.eyebrow {
		margin-bottom: 18px;
	}

	.description {
		margin-top: 22px;
	}

	.actions {
		margin-top: 26px;
	}

	.metrics {
		margin-top: 30px;
	}
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 600px) {
	.lidar {
		width: 125vw;
		height: 125vw;
		opacity: 0.3;
	}

	main {
		padding: 16px;
	}

	.content {
		padding: 24px 12px;
	}

	.eyebrow {
		margin-bottom: 18px;
	}

	h1 {
		font-size: clamp(3.3rem, 18vw, 5rem);
	}

	.description {
		font-size: 0.88rem;
		line-height: 1.6;
		margin-top: 22px;
	}

	.actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 260px;
		margin: 26px auto 0;
	}

	.metrics {
		gap: 20px;
		margin-top: 30px;
	}

	.metric {
		min-width: 110px;
	}

	.metric:not(:last-child)::after {
		right: -10px;
	}

	.metric-note {
		max-width: 280px;
		margin-top: 9px;
	}
}
