/* Plixt marketing site — reuses the app's "Court Noir" design tokens
   (constants/theme.ts) so the site matches the app exactly. */

:root {
	--bg: #121214;
	--surface: #1e1e24;
	--raised: #26262e;
	--raised-high: #2f2f39;

	--border: #2a2a32;
	--border-strong: #3a3a45;

	--text: #f4f5f7;
	--text-strong: #cbd5e1;
	--text-secondary: #94a3b8;
	--text-muted: #6b7280;

	--lime: #ccff00;
	--lime-line: #a8cc00;
	--lime-pressed: #b8e600;
	--on-lime: #0b0b0c;
	--lime-tint: rgba(204, 255, 0, 0.12);

	--teal: #22d3ee;

	--green: #22c55e;
	--green-tint-bg: #15271c;
	--green-tint-line: #204034;

	--font-display: 'Big Shoulders Display', sans-serif;
	--font-body: 'IBM Plex Sans', sans-serif;
	--font-mono: 'Space Mono', monospace;

	--max-width: 1120px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Nav ---- */

.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(18, 18, 20, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--text);
}

.brand .logo {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: block;
}

.footer-grid .brand .logo {
	width: 32px;
	height: 32px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 15px;
	color: var(--text-secondary);
}

.nav-links a {
	text-decoration: none;
	transition: color 0.15s ease;
}

.nav-links a:hover {
	color: var(--text);
}

.nav-cta {
	background: var(--lime);
	color: var(--on-lime);
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
}

/* ---- Hero ---- */

.hero {
	padding: 88px 0 64px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 500px;
	background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0.09), transparent 65%);
	pointer-events: none;
}

h1 {
	font-family: var(--font-display);
	font-size: clamp(44px, 8vw, 84px);
	line-height: 0.98;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
	position: relative;
}

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

.hero p.sub {
	max-width: 560px;
	margin: 0 auto 36px;
	font-size: 19px;
	color: var(--text-secondary);
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--lime);
	color: var(--on-lime);
}

.btn-primary:hover {
	background: var(--lime-pressed);
}

.btn-secondary {
	background: var(--raised);
	color: var(--text);
	border-color: var(--border-strong);
}

.btn-secondary:hover {
	background: var(--raised-high);
}

.btn svg {
	width: 18px;
	height: 18px;
}

.store-note {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
}

/* ---- Phone mockup (CSS-drawn, not a real screenshot) ---- */

.hero-visual {
	margin: 56px auto 0;
	max-width: 300px;
}

.phone {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 32px;
	padding: 14px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.phone-screen {
	background: var(--bg);
	border-radius: 20px;
	padding: 18px 16px;
	text-align: left;
	min-height: 320px;
}

.phone-status {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.phone-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 14px;
}

.phone-card {
	background: var(--raised);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.phone-card .row1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.phone-card .row1 .pill {
	font-family: var(--font-mono);
	font-size: 10px;
	background: var(--lime-tint);
	color: var(--lime);
	padding: 3px 8px;
	border-radius: 999px;
}

.phone-card .row2 {
	font-size: 12px;
	color: var(--text-secondary);
}

.phone-cta {
	background: var(--lime);
	color: var(--on-lime);
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	padding: 12px;
	border-radius: 12px;
	margin-top: 14px;
}

/* ---- Section shell ---- */

section {
	padding: 90px 0;
}

.section-head {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 56px;
}

.section-tag {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 12px;
}

.section-head h2 {
	font-family: var(--font-display);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	margin: 0 0 14px;
}

.section-head p {
	color: var(--text-secondary);
	font-size: 16px;
}

/* ---- Feature grid ---- */

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 28px 24px;
}

.feature-card .icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--raised);
	margin-bottom: 20px;
}

.feature-card .icon svg {
	width: 22px;
	height: 22px;
	color: var(--lime);
}

.feature-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.feature-card p {
	color: var(--text-secondary);
	font-size: 14.5px;
	margin: 0;
}

/* ---- Map section ---- */

.map-section {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.map-layout {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	align-items: center;
}

.map-stage {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 16px;
	position: relative;
}

#us-map {
	width: 100%;
	height: auto;
	display: block;
}

#us-map .state {
	fill: var(--raised);
	stroke: var(--bg);
	stroke-width: 1;
	transition: fill 0.15s ease;
	cursor: pointer;
}

#us-map .state.hovered {
	fill: var(--raised-high);
}

#us-map .court-dot {
	fill: var(--lime);
	stroke: none;
	opacity: 0.65;
}

.map-tooltip {
	position: absolute;
	pointer-events: none;
	background: var(--raised-high);
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, -110%);
	transition: opacity 0.1s ease;
	z-index: 5;
}

.map-tooltip.visible {
	opacity: 1;
}

.map-tooltip .t-state {
	font-weight: 700;
	margin-bottom: 4px;
}

.map-tooltip .t-row {
	color: var(--text-secondary);
	font-family: var(--font-mono);
	font-size: 11px;
}

.map-stats {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stat-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px 22px;
}

.stat-card .label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.stat-card .value {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 700;
	color: var(--lime);
	line-height: 1;
}

.stat-card .sub {
	margin-top: 6px;
	font-size: 13px;
	color: var(--text-secondary);
}

.map-cta {
	margin-top: 8px;
	background: var(--green-tint-bg);
	border: 1px solid var(--green-tint-line);
	border-radius: 14px;
	padding: 16px 18px;
	font-size: 13.5px;
}

.map-cta strong {
	color: var(--green);
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* ---- Bottom CTA ---- */

.cta-section {
	text-align: center;
}

.cta-section h2 {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 52px);
	margin: 0 0 16px;
}

.cta-section p {
	color: var(--text-secondary);
	margin: 0 0 32px;
}

/* ---- Footer ---- */

footer {
	border-top: 1px solid var(--border);
	padding: 48px 0 36px;
}

.footer-grid {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 32px;
}

.footer-links {
	display: flex;
	gap: 28px;
	font-size: 14px;
	color: var(--text-secondary);
	flex-wrap: wrap;
}

.footer-links a {
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-copy {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 24px;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
	.features {
		grid-template-columns: 1fr;
	}

	.map-layout {
		grid-template-columns: 1fr;
	}

	.nav-links {
		display: none;
	}
}
