/* ========================================================
   LiDimension - Comparison Page Stylesheet
   Uses global.css variables & visual design system
   ======================================================== */

:root {
	--raw-accent: #ff3b30;
	--lidar-accent: #4fd1c5;
	--comp-accent: #f2b705;

	--font-mono:
		ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Consolas, monospace;
}

/* Allow vertical scroll for content while preventing horizontal overflow */
body {
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 100vh;
	position: relative;
}

/* ========================================================
   Ambient Background (Matches index.html)
   ======================================================== */

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

.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: 35%;
	width: 650px;
	height: 650px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(34, 57, 111, 0.2);
	filter: blur(120px);
}

/* ========================================================
   Top Header (Matches render/index.html & index.html)
   ======================================================== */

.top-header {
	position: relative;
	z-index: 10;
	width: 100%;
	height: 54px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(6, 13, 32, 0.88);
	border-bottom: 1px solid rgba(147, 164, 193, 0.16);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--cream-100);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.04em;
	user-select: none;
}

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

.brand-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--slate-400);
	background: rgba(24, 43, 87, 0.45);
	border: 1px solid rgba(147, 164, 193, 0.2);
	padding: 3px 8px;
	border-radius: 4px;
}

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

.nav-btn {
	color: var(--slate-400);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 5px;
	border: 1px solid rgba(147, 164, 193, 0.2);
	background: rgba(6, 13, 32, 0.6);
	transition:
		color var(--transition),
		background var(--transition),
		border-color var(--transition),
		box-shadow var(--transition);
}

.nav-btn:hover {
	color: var(--cream-100);
	background: var(--navy-800);
	border-color: rgba(252, 241, 208, 0.35);
	box-shadow: 0 0 10px rgba(252, 241, 208, 0.15);
}

/* ========================================================
   Main Container
   ======================================================== */

main {
	position: relative;
	z-index: 5;
	max-width: 1040px;
	margin: 0 auto;
	padding: 56px 24px 88px;
}

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

.hero {
	margin-bottom: 52px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--slate-400);
	font-size: 0.72rem;
	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(2.2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
	color: var(--cream-100);
	max-width: 820px;
	text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

h1 .teal {
	color: var(--lidar-accent);
}

/* ========================================================
   Pipeline Cards Grid
   ======================================================== */

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.card {
	background: rgba(6, 13, 32, 0.82);
	border: 1px solid rgba(147, 164, 193, 0.18);
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: relative;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	transition:
		border-color var(--transition),
		transform var(--transition);
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 8px 8px 0 0;
}

.card.raw::before {
	background: var(--raw-accent);
}

.card.lidar::before {
	background: var(--lidar-accent);
}

.card.comp::before {
	background: var(--comp-accent);
}

.card:hover {
	transform: translateY(-2px);
}

.card.raw:hover {
	border-color: rgba(255, 59, 48, 0.4);
}

.card.lidar:hover {
	border-color: rgba(79, 209, 197, 0.4);
}

.card.comp:hover {
	border-color: rgba(242, 183, 5, 0.4);
}

.card-header {
	margin-bottom: 20px;
}

.card-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.card.raw .card-title {
	color: var(--raw-accent);
}

.card.lidar .card-title {
	color: var(--lidar-accent);
}

.card.comp .card-title {
	color: var(--comp-accent);
}

.stat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stat-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	border-top: 1px solid rgba(147, 164, 193, 0.1);
	padding-top: 12px;
	color: var(--slate-400);
}

.stat-item:first-child {
	border-top: none;
	padding-top: 0;
}

.stat-bullet {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex-shrink: 0;
	transform: translateY(-2px);
}

.card.raw .stat-bullet {
	background: var(--raw-accent);
	box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
}

.card.lidar .stat-bullet {
	background: var(--lidar-accent);
	box-shadow: 0 0 8px rgba(79, 209, 197, 0.6);
}

.card.comp .stat-bullet {
	background: var(--comp-accent);
	box-shadow: 0 0 8px rgba(242, 183, 5, 0.6);
}

.stat-text {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--slate-400);
	line-height: 1.45;
}

.stat-text strong {
	color: var(--cream-100);
	font-weight: 600;
}

.card.raw .stat-item:last-child .stat-text strong {
	color: var(--raw-accent);
}

.card.lidar .stat-item:last-child .stat-text strong {
	color: var(--lidar-accent);
}

.card.comp .stat-item:last-child .stat-text strong {
	color: var(--comp-accent);
}

/* ========================================================
   Comparison Table
   ======================================================== */

.table-section {
	margin-bottom: 48px;
}

.table-container {
	width: 100%;
	border: 1px solid rgba(147, 164, 193, 0.18);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(6, 13, 32, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

thead {
	background: rgba(24, 43, 87, 0.35);
	border-bottom: 1px solid rgba(147, 164, 193, 0.18);
}

th {
	padding: 15px 22px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slate-400);
}

th.raw-col {
	color: var(--raw-accent);
}

th.lidar-col {
	color: var(--lidar-accent);
}

td {
	padding: 16px 22px;
	border-bottom: 1px solid rgba(147, 164, 193, 0.08);
}

tbody tr:last-child td {
	border-bottom: none;
}

td.metric-name {
	color: var(--slate-400);
	font-weight: 500;
	width: 28%;
}

td.metric-raw {
	font-family: var(--font-mono);
	color: var(--cream-100);
	width: 36%;
}

td.metric-lidar {
	font-family: var(--font-mono);
	color: var(--cream-100);
	font-weight: 600;
	width: 36%;
}

tbody tr:hover td {
	background: rgba(147, 164, 193, 0.03);
}

/* ========================================================
   Impact Callout & CTA
   ======================================================== */

.impact-banner {
	border: 1px solid rgba(147, 164, 193, 0.2);
	border-radius: 8px;
	background: rgba(6, 13, 32, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 38px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.rate-delta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	font-family: var(--font-mono);
	font-size: clamp(1.5rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.rate-raw {
	color: var(--raw-accent);
}

.rate-arrow {
	color: var(--muted);
	font-weight: 400;
}

.rate-final {
	color: var(--lidar-accent);
}

.impact-note {
	margin: 0;
	font-size: 14px;
	color: var(--slate-400);
	max-width: 520px;
}

.actions {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	padding: 13px 26px;
	border: 1px solid var(--cream-100);
	border-radius: 5px;
	background: var(--cream-100);
	color: var(--navy-950);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition:
		transform var(--transition),
		background var(--transition),
		box-shadow var(--transition);
}

.btn-cta:hover {
	transform: translateY(-2px);
	background: var(--white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   Responsive
   ======================================================== */

@media (max-width: 840px) {
	.cards-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	main {
		padding-top: 36px;
		padding-bottom: 60px;
	}

	.table-container {
		overflow-x: auto;
	}

	table {
		min-width: 520px;
	}
}

@media (max-width: 480px) {
	.top-header {
		padding: 0 16px;
	}

	.brand-eyebrow {
		display: none;
	}

	.rate-delta {
		flex-direction: column;
		gap: 4px;
	}

	.rate-arrow {
		transform: rotate(90deg);
	}
}
