/* Colours follow the app's own tokens (Kivarion src/App.vue). */
:root {
	--bg: #f8fafc;
	--bg-alt: #f1f5f9;
	--card: #ffffff;
	--line: #e2e8f0;
	--text: #0f172a;
	--text-soft: #64748b;
	--accent: #6366f1;
	--accent-hover: #4f46e5;
	--accent-soft: #eef2ff;
	--on-accent: #ffffff;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	--shot-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1117;
		--bg-alt: #13141b;
		--card: #1a1b23;
		--line: #2a2b35;
		--text: #e4e4e7;
		--text-soft: #a1a1aa;
		--accent: #6366f1;
		--accent-hover: #818cf8;
		--accent-soft: #1e1f3a;
		--shadow: none;
		--shot-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	background-color: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--accent);
}

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

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	padding: 1px 5px;
	border-radius: 4px;
	background-color: var(--accent-soft);
}

h1, h2, h3 {
	line-height: 1.2;
	margin: 0;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px;
}

.wrap-wide {
	max-width: 1200px;
}

/* Top bar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

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

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

.brand:hover {
	color: var(--text);
}

.brand img {
	border-radius: 8px;
}

.topnav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 15px;
	font-weight: 500;
}

.topnav a {
	color: var(--text-soft);
	text-decoration: none;
}

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

.topnav .topnav-cta {
	padding: 6px 14px;
	border-radius: 8px;
	background-color: var(--accent);
	color: var(--on-accent);
}

.topnav .topnav-cta:hover {
	background-color: var(--accent-hover);
	color: var(--on-accent);
}

/* Hero */

.hero {
	padding: 72px 0 24px;
	text-align: center;
	overflow: hidden;
}

.hero h1 {
	font-size: clamp(34px, 6vw, 58px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.lead {
	max-width: 660px;
	margin: 22px auto 0;
	font-size: 19px;
	color: var(--text-soft);
}

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

.hero-meta {
	margin: 16px 0 48px;
	font-size: 14px;
	color: var(--text-soft);
}

.screenshot {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: var(--shot-shadow);
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background-color: var(--card);
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
	border-color: var(--accent);
	color: var(--text);
}

.button-primary {
	border-color: var(--accent);
	background-color: var(--accent);
	color: var(--on-accent);
}

.button-primary:hover {
	border-color: var(--accent-hover);
	background-color: var(--accent-hover);
	color: var(--on-accent);
}

.button span {
	font-weight: 400;
	font-size: 14px;
	opacity: 0.8;
}

/* Sections */

.section {
	padding: 80px 0;
}

.section-alt {
	background-color: var(--bg-alt);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.section h2 {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin-bottom: 32px;
}

.section h3 {
	font-size: 18px;
	font-weight: 700;
}

.section-lead {
	margin: -20px 0 28px;
	color: var(--text-soft);
}

.grid {
	display: grid;
	gap: 20px;
}

.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background-color: var(--card);
	box-shadow: var(--shadow);
}

.card p,
.feature p {
	margin: 10px 0 0;
	color: var(--text-soft);
}

.feature {
	padding-left: 16px;
	border-left: 3px solid var(--accent);
}

.feature p {
	font-size: 16px;
}

/* Security and limits */

.checklist,
.nolist {
	max-width: 820px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.checklist li,
.nolist li {
	position: relative;
	padding: 0 0 18px 34px;
}

.checklist li::before,
.nolist li::before {
	position: absolute;
	left: 0;
	top: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.checklist li::before {
	content: '✓';
	background-color: var(--accent-soft);
	color: var(--accent);
}

.nolist li::before {
	content: '–';
	background-color: var(--line);
	color: var(--text-soft);
}

/* Downloads */

.platform {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.platform .req {
	margin: 0 0 8px;
	font-size: 14px;
}

.platform .button {
	justify-content: space-between;
}

.downloads-more {
	margin-top: 24px;
	font-size: 15px;
}

/* Footer */

.footer {
	padding: 32px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--text-soft);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.footer p {
	margin: 0;
}

/* Narrow screens */

@media (max-width: 860px) {
	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.hero {
		padding-top: 48px;
	}

	.lead {
		font-size: 17px;
	}

	.hero h1 br {
		display: none;
	}

	.grid-2,
	.grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.section {
		padding: 56px 0;
	}

	.topnav {
		gap: 14px;
	}

	.topnav a:not(.topnav-cta) {
		display: none;
	}

	.screenshot {
		border-radius: 8px;
	}
}
