:root {
	color-scheme: light dark;

	/* Light mode (default) - derived from DSColors */
	--bg: #dbf2db;
	--bg-subtle: #e8f5e8;
	--surface: #bae0ba;
	--surface-elevated: #ffffff;
	--card: #b8deb8;
	--text: #0f3d24;
	--text-secondary: #2e5a34;
	--text-muted: #3d6544;
	--brand: #4db04e;
	--accent: #1e6b28;
	--accent-hover: #175520;
	--border: #85b38e;
	--border-subtle: rgba(82, 179, 143, 0.18);
	--shadow-sm: 0 1px 3px rgba(15, 61, 36, 0.06);
	--shadow: 0 8px 30px rgba(15, 61, 36, 0.08);
	--shadow-lg: 0 24px 60px rgba(15, 61, 36, 0.12);
	--gradient-hero: linear-gradient(
		135deg,
		rgba(77, 176, 78, 0.12) 0%,
		rgba(41, 125, 51, 0.06) 50%,
		rgba(143, 227, 148, 0.1) 100%
	);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1410;
		--bg-subtle: #121a14;
		--surface: #17231c;
		--surface-elevated: #1c2e22;
		--card: #1c2e24;
		--text: #e3f5e8;
		--text-secondary: #b8d6c6;
		--text-muted: #99bfaa;
		--brand: #00e674;
		--accent: #2effb3;
		--accent-hover: #5cffca;
		--border: #334f3f;
		--border-subtle: rgba(51, 79, 63, 0.4);
		--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
		--shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
		--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
		--gradient-hero: linear-gradient(
			135deg,
			rgba(0, 230, 116, 0.06) 0%,
			rgba(46, 255, 179, 0.03) 50%,
			rgba(0, 144, 70, 0.06) 100%
		);
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
		system-ui, sans-serif;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */

.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text);
	text-decoration: none;
}

.nav-brand svg {
	flex-shrink: 0;
}

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

.nav-links a {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 10px;
	transition: color 0.2s, background 0.2s;
}

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

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--text);
}

/* ─── Hero ─── */

.hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 24px 60px;
	text-align: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px 6px 8px;
	background: var(--surface-elevated);
	border: 1px solid var(--border-subtle);
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 28px;
}

.hero-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand);
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.hero h1 {
	font-size: clamp(2.8rem, 7vw, 5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
	max-width: 14ch;
	margin: 0 auto 24px;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.65;
	color: var(--text-secondary);
	max-width: 540px;
	margin: 0 auto 40px;
}

.hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	border-radius: 14px;
	padding: 14px 28px;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn:active {
	transform: translateY(0);
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-sm),
		0 0 0 1px rgba(41, 125, 51, 0.15);
}

.btn-primary:hover {
	background: var(--accent-hover);
	box-shadow: var(--shadow),
		0 0 0 1px rgba(41, 125, 51, 0.2);
}

.btn-secondary {
	background: var(--surface-elevated);
	color: var(--text);
	box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
}

.btn-secondary:hover {
	box-shadow: var(--shadow), 0 0 0 1px var(--border-subtle);
}

/* ─── Screenshot Showcase ─── */

.showcase {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.showcase-frame {
	position: relative;
	background: var(--gradient-hero);
	border: 1px solid var(--border-subtle);
	border-radius: 24px;
	padding: 48px 32px;
	overflow: hidden;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.showcase-placeholder {
	text-align: center;
	color: var(--text-muted);
}

.showcase-placeholder svg {
	margin-bottom: 16px;
	opacity: 0.4;
}

.showcase-placeholder p {
	font-size: 1rem;
	font-weight: 500;
}

.showcase-placeholder span {
	display: block;
	font-size: 0.85rem;
	margin-top: 6px;
}

/* ─── Features ─── */

.features {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.features-header {
	text-align: center;
	margin-bottom: 48px;
}

.features-header h2 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 12px;
}

.features-header p {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 480px;
	margin: 0 auto;
	line-height: 1.6;
}

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

.feature-card {
	background: var(--surface-elevated);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
	padding: 28px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.feature-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--brand) 14%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--accent);
}

.feature-card h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.feature-card p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ─── Highlights (2-col) ─── */

.highlights {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.highlight-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.highlight-card {
	background: var(--surface-elevated);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.highlight-card .label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
}

.highlight-card h3 {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.highlight-card p {
	color: var(--text-muted);
	line-height: 1.65;
	font-size: 0.95rem;
}

/* ─── CTA Banner ─── */

.cta {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.cta-card {
	position: relative;
	background: var(--accent);
	border-radius: 24px;
	padding: 56px 40px;
	text-align: center;
	overflow: hidden;
}

.cta-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
			circle at 20% 50%,
			rgba(255, 255, 255, 0.08),
			transparent 50%
		),
		radial-gradient(
			circle at 80% 50%,
			rgba(255, 255, 255, 0.05),
			transparent 50%
		);
	pointer-events: none;
}

.cta-card h2 {
	position: relative;
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	margin-bottom: 12px;
}

.cta-card p {
	position: relative;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	max-width: 460px;
	margin: 0 auto 28px;
	line-height: 1.6;
}

.cta-card .btn {
	position: relative;
	background: #fff;
	color: var(--accent);
	font-weight: 700;
}

.cta-card .btn:hover {
	background: rgba(255, 255, 255, 0.92);
}

/* ─── Footer ─── */

.footer {
	border-top: 1px solid var(--border-subtle);
	padding: 32px 24px;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.footer-links {
	display: flex;
	gap: 24px;
	list-style: none;
}

.footer-links a {
	font-size: 0.875rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s;
}

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

.footer-copy {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero {
		padding: 60px 24px 48px;
	}
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: color-mix(in srgb, var(--bg) 96%, transparent);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		flex-direction: column;
		padding: 12px 16px;
		border-bottom: 1px solid var(--border-subtle);
		gap: 4px;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links a {
		width: 100%;
		padding: 12px 16px;
	}

	.nav-toggle {
		display: flex;
	}

	.hero {
		padding: 48px 20px 40px;
	}

	.hero h1 {
		font-size: 2.4rem;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.highlight-row {
		grid-template-columns: 1fr;
	}

	.showcase-frame {
		padding: 32px 20px;
		border-radius: 18px;
	}

	.cta-card {
		padding: 40px 24px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
