:root {
	/* Light theme tokens */
	--bg: oklch(98.5% 0.002 90); /* #FAFAFA warm minimal off-white */
	--surface: oklch(100% 0 0); /* Pure white cards */
	--surface-elevated: oklch(99.5% 0.001 90);
	--fg: oklch(20% 0.015 250); /* Deep charcoal typography */
	--fg-secondary: oklch(35% 0.015 250);
	--muted: oklch(54% 0.012 250); /* Secondary captions & meta */
	--border: oklch(91% 0.005 250); /* Hairline crisp borders */
	--border-subtle: oklch(94% 0.003 250);
	--accent: oklch(76% 0.14 85); /* Warm blinder amber / focus accent */
	--accent-hover: oklch(72% 0.16 85);
	--accent-fg: oklch(20% 0.02 85);
	--badge-bg: oklch(95% 0.008 85);
	--badge-border: oklch(88% 0.02 85);
	--card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
	--nav-bg: rgba(250, 250, 250, 0.85);
	--yt-red: #ff0000;
}

[data-theme="dark"] {
	/* YouTube-authentic Dark Mode tokens */
	--bg: #0f0f0f; /* Authentic YouTube dark canvas */
	--surface: #212121; /* Authentic YouTube surface card */
	--surface-elevated: #282828;
	--fg: #f1f1f1; /* Authentic YouTube high-contrast text */
	--fg-secondary: #cccccc;
	--muted: #aaaaaa; /* Authentic YouTube secondary text */
	--border: #303030; /* Authentic hairline YouTube dividers */
	--border-subtle: #242424;
	--accent: oklch(78% 0.15 85);
	--accent-hover: oklch(82% 0.16 85);
	--accent-fg: #121212;
	--badge-bg: rgba(242, 169, 0, 0.12);
	--badge-border: rgba(242, 169, 0, 0.28);
	--card-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
	--nav-bg: rgba(15, 15, 15, 0.88);
	--yt-red: #ff0000;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
	color: var(--fg);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Navigation */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background-color: var(--nav-bg);
	border-bottom: 1px solid var(--border);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease;
}

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

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	color: var(--fg);
	text-decoration: none;
}

/* Authentic SVG Logo Icon */
.brand-logo-img {
	width: 32px;
	height: 32px;
	border-radius: 7px;
	flex-shrink: 0;
	display: block;
	object-fit: contain;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
}

.nav-link {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nav-link:hover {
	color: var(--fg);
}

.nav-star-pill {
	font-size: 0.75rem;
	padding: 2px 7px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--fg-secondary);
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.nav-star-badge {
	vertical-align: middle;
	border-radius: 12px;
}

/* Theme Toggle */
.theme-toggle {
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--fg);
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
}

.theme-toggle:hover {
	border-color: var(--muted);
	background: var(--surface-elevated);
}

.theme-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.15s ease;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.btn-primary {
	background-color: var(--accent);
	color: var(--accent-fg);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
	background-color: var(--accent-hover);
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: var(--surface);
	color: var(--fg);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background-color: var(--surface-elevated);
	border-color: var(--muted);
	transform: translateY(-1px);
}

.btn-nav {
	padding: 7px 14px;
	font-size: 0.84rem;
}

/* Hero Section */
.hero {
	padding: 64px 0 36px 0;
	text-align: center;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent-fg);
	background: var(--badge-bg);
	border: 1px solid var(--badge-border);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
}

[data-theme="dark"] .hero-eyebrow {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
}

.hero-title {
	font-size: clamp(2.2rem, 5.2vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.12;
	color: var(--fg);
	max-width: 780px;
	margin: 0 auto 18px auto;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2.2vw, 1.22rem);
	color: var(--muted);
	max-width: 620px;
	margin: 0 auto 28px auto;
	font-weight: 400;
	line-height: 1.5;
}

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

/* Trust & Verification Row with Badges */
.hero-proof-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
	margin-bottom: 12px;
}

.proof-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 0.8rem;
	color: var(--fg-secondary);
	box-shadow: var(--card-shadow);
	text-decoration: none;
	transition: all 0.15s ease;
}

.proof-badge:hover {
	border-color: var(--muted);
	transform: translateY(-1px);
}

.proof-badge-img {
	display: inline-flex;
	line-height: 0;
	border-radius: 20px;
	transition: transform 0.15s ease;
}

.proof-badge-img:hover {
	transform: translateY(-1px);
}

.proof-badge-img img {
	border-radius: 20px;
	display: block;
}

.stars-group {
	color: #f59e0b;
	letter-spacing: 1px;
	font-size: 0.85rem;
}

.proof-bold {
	font-weight: 700;
	color: var(--fg);
}

.proof-dot {
	width: 3px;
	height: 3px;
	background-color: var(--muted);
	border-radius: 50%;
}

.hero-trust-text {
	font-size: 0.8rem;
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}

/* Demo Video Section */
.demo-section {
	padding: 24px 0 54px 0;
}

.video-wrapper {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px;
	box-shadow: var(--card-shadow);
	max-width: 860px;
	margin: 0 auto;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease;
}

.video-aspect {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 ratio */
	border-radius: 8px;
	overflow: hidden;
	background-color: #000;
}

.video-aspect iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-caption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pulse-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #10b981;
}

/* Section Headers */
.section-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 36px auto;
}

.section-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 8px;
}

.section-title {
	font-size: clamp(1.6rem, 3.2vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--fg);
	line-height: 1.25;
}

.section-desc {
	font-size: 0.96rem;
	color: var(--muted);
	margin-top: 8px;
}

/* Problem Section */
.problem-section {
	padding: 48px 0;
}

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

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: var(--card-shadow);
	transition:
		transform 0.15s ease,
		border-color 0.15s ease,
		background-color 0.2s ease;
}

.card:hover {
	border-color: var(--muted);
	transform: translateY(-2px);
}

.card-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--fg);
}

.card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fg);
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.card-body {
	font-size: 0.88rem;
	color: var(--muted);
	line-height: 1.5;
}

/* How It Works / Modes Matrix */
.modes-section {
	padding: 56px 0;
}

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

.mode-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: var(--card-shadow);
	position: relative;
}

.mode-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	color: var(--fg-secondary);
	margin-bottom: 12px;
	display: inline-block;
}

.mode-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fg);
	margin-bottom: 6px;
}

.mode-desc {
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 18px;
}

/* Visual preview simulator inside card */
.sim-box {
	border: 1px dashed var(--border);
	border-radius: 8px;
	padding: 12px;
	background: var(--surface-elevated);
	display: flex;
	gap: 12px;
	align-items: center;
}

.sim-thumb {
	width: 72px;
	height: 48px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 600;
	flex-shrink: 0;
}

.sim-thumb.greyed {
	background: var(--border);
	color: var(--muted);
}

.sim-thumb.hidden {
	display: none;
}

.sim-content {
	flex: 1;
}

.sim-line {
	height: 8px;
	background: var(--border);
	border-radius: 4px;
	margin-bottom: 6px;
}

.sim-line.w-80 {
	width: 80%;
}
.sim-line.w-50 {
	width: 50%;
}

/* Surface toggles row */
.surface-toggles-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: var(--card-shadow);
}

.surface-toggles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 12px;
}

.surface-toggles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.surface-toggle-item {
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toggle-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.toggle-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--fg);
}

.toggle-path {
	font-size: 0.75rem;
	color: var(--muted);
	font-family: ui-monospace, Menlo, monospace;
}

.toggle-switch-ui {
	width: 32px;
	height: 18px;
	background-color: var(--accent);
	border-radius: 12px;
	position: relative;
}

.toggle-switch-ui::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	background: var(--accent-fg);
	border-radius: 50%;
}

.hover-reveal-banner {
	margin-top: 18px;
	padding: 12px 16px;
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.84rem;
	color: var(--fg-secondary);
}

/* Privacy & Trust Section */
.privacy-section {
	padding: 48px 0;
}

.privacy-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 32px;
	box-shadow: var(--card-shadow);
}

.privacy-points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

.privacy-point {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.check-icon-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--badge-bg);
	border: 1px solid var(--badge-border);
	color: var(--accent-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.point-title {
	font-size: 0.96rem;
	font-weight: 700;
	color: var(--fg);
}

.point-body {
	font-size: 0.84rem;
	color: var(--muted);
	line-height: 1.45;
}

/* Install Steps Section */
.install-section {
	padding: 56px 0;
	text-align: center;
}

.steps-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 36px;
	text-align: left;
}

.step-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	box-shadow: var(--card-shadow);
	position: relative;
}

.step-number {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	margin-bottom: 12px;
	display: inline-block;
}

.step-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--fg);
	margin-bottom: 6px;
}

.step-desc {
	font-size: 0.84rem;
	color: var(--muted);
}

/* Footer */
.footer {
	border-top: 1px solid var(--border);
	padding: 48px 0 36px 0;
	background: var(--surface);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.footer-support-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.support-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.15s ease;
}

.bmac-btn {
	background: #ffdd00;
	color: #000000;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.bmac-btn:hover {
	background: #ffe433;
	transform: translateY(-1px);
}

.yt-channel-btn {
	background: var(--surface-elevated);
	color: var(--fg);
	border: 1px solid var(--border);
}

.yt-channel-btn:hover {
	border-color: var(--muted);
	transform: translateY(-1px);
}

.yt-channel-btn svg {
	width: 18px;
	height: 18px;
}

.gh-btn {
	background: var(--surface-elevated);
	color: var(--fg);
	border: 1px solid var(--border);
}

.gh-btn:hover {
	border-color: var(--muted);
	transform: translateY(-1px);
}

/* Made with love attribution */
.footer-attribution {
	font-size: 0.9rem;
	color: var(--fg-secondary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.footer-attribution a {
	color: var(--fg);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.footer-attribution a:hover {
	color: var(--accent-hover);
}

.heart-icon {
	color: #ef4444;
	display: inline-block;
	animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
	0%,
	100% {
		transform: scale(1);
	}
	14% {
		transform: scale(1.18);
	}
	28% {
		transform: scale(1);
	}
	42% {
		transform: scale(1.18);
	}
	70% {
		transform: scale(1);
	}
}

.footer-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 0.8rem;
	color: var(--muted);
	flex-wrap: wrap;
}

.footer-meta a {
	color: var(--muted);
	text-decoration: none;
}

.footer-meta a:hover {
	color: var(--fg);
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.grid-3,
	.mode-cards-grid,
	.steps-row,
	.privacy-points {
		grid-template-columns: 1fr;
	}
	.surface-toggles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.nav-links {
		display: none;
	}
	.hero {
		padding: 44px 0 24px 0;
	}
}
