:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--text: #1b1f24;
	--muted: #4d5560;
	--border: #d8dde3;
	--accent: #1659c7;
	--accent-text: #ffffff;
	--code-bg: #eceff3;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15171a;
		--surface: #1e2125;
		--text: #e8eaed;
		--muted: #a9b0b9;
		--border: #343a41;
		--accent: #7ab4ff;
		--accent-text: #0b1a30;
		--code-bg: #2a2e33;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
}

code {
	background: var(--code-bg);
	border-radius: 4px;
	padding: 0.1em 0.35em;
	font-size: 0.92em;
	overflow-wrap: anywhere;
}

h1,
h2,
h3 {
	line-height: 1.25;
}

.skip {
	position: absolute;
	left: -999px;
	top: 0;
}

.skip:focus {
	left: 16px;
	top: 16px;
	background: var(--surface);
	padding: 8px 12px;
	z-index: 10;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hero,
main,
footer {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
}

.hero {
	text-align: center;
	padding-top: 48px;
}

.hero-icon {
	border-radius: 22px;
}

.hero h1 {
	font-size: clamp(2rem, 6vw, 2.8rem);
	margin: 12px 0 8px;
}

.tagline {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 640px;
	margin: 0 auto;
}

.tagline strong {
	color: var(--text);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 24px 0 0;
}

.button {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
}

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

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

.button[aria-pressed="true"] {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}

section {
	margin: 48px 0;
}

.demo figure {
	margin: 0;
	text-align: center;
}

.demo img {
	display: block;
	margin: 0 auto;
	border-radius: 10px;
	border: 1px solid var(--border);
	box-shadow: 0 8px 30px rgb(0 0 0 / 0.18);
}

figcaption,
.music-note {
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 10px;
}

.music {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 16px;
	margin-top: 12px;
	text-align: center;
}

.music[hidden] {
	display: none;
}

.music-note {
	margin: 0;
	max-width: 420px;
}

.features {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.features li {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 16px 18px;
}

.features h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.features p {
	margin: 0;
	color: var(--muted);
}

.stills {
	margin: 24px 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.stills img {
	border-radius: 8px;
	border: 1px solid var(--border);
}

ol {
	padding-left: 1.4em;
}

.note {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: 6px;
	padding: 12px 16px;
}

footer {
	border-top: 1px solid var(--border);
	padding-top: 16px;
	padding-bottom: 40px;
	color: var(--muted);
	font-size: 0.9rem;
}
