:root {
	--ink: #211920;
	--muted: #715e67;
	--soft: #fff4f6;
	--panel: #ffffff;
	--panel-strong: #ffe8ee;
	--raspberry: #d12e5d;
	--raspberry-dark: #9f2146;
	--leaf: #659a45;
	--leaf-soft: #e9f5e4;
	--line: rgba(117, 75, 91, 0.18);
	--shadow: 0 24px 70px rgba(85, 24, 48, 0.16);
	--radius: 28px;
	color-scheme: light;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at top left, rgba(209, 46, 93, 0.18), transparent 32rem),
		linear-gradient(180deg, #fff8fa 0%, #fff 42%, #fff7f9 100%);
	color: var(--ink);
}

a {
	color: inherit;
	text-decoration: none;
}

pre {
	position: relative;
	margin: 1rem 0 0;
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #24171d;
	color: #ffeef3;
	padding: 1rem 5.15rem 1rem 1rem;
	font-size: 0.92rem;
}

code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre code {
	white-space: inherit;
	overflow-wrap: inherit;
	word-break: inherit;
}

.copy-code {
	position: absolute;
	top: 0.68rem;
	right: 0.7rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 3.95rem;
	min-height: 2rem;
	border: 1px solid rgba(255, 238, 243, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffeef3;
	font: inherit;
	font-size: 0.76rem;
	font-weight: 850;
	line-height: 1;
	backdrop-filter: blur(10px);
	box-shadow: 0 0 0 rgba(255, 123, 159, 0);
	cursor: pointer;
	transition:
		background 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.copy-code:hover {
	background: rgba(255, 232, 238, 0.16);
	border-color: rgba(255, 238, 243, 0.36);
	transform: translateY(-1px) scale(1.03);
}

.copy-code svg {
	width: 0.95rem;
	height: 0.95rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
}

.copy-code.copied {
	background: rgba(101, 154, 69, 0.22);
	border-color: rgba(191, 232, 169, 0.52);
	color: #e9f5e4;
	box-shadow: 0 0 0 6px rgba(101, 154, 69, 0.08);
}

.copy-code.copy-failed {
	background: rgba(209, 46, 93, 0.24);
	border-color: rgba(255, 123, 159, 0.5);
}

.clipboard-fallback {
	position: fixed;
	left: -9999px;
	top: 0;
	opacity: 0;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem clamp(1rem, 4vw, 4rem);
	background: rgba(255, 248, 250, 0.78);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
}

.brand,
.site-footer > div:first-child {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 800;
}

.brand-mark {
	width: 2.35rem;
	height: 2.35rem;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.95rem;
}

.top-nav a {
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	color: var(--muted);
	transition: background 160ms ease, color 160ms ease;
}

.top-nav a:hover {
	background: var(--panel-strong);
	color: var(--raspberry-dark);
}

.section-pad {
	padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	max-width: 100%;
	min-width: 0;
	min-height: calc(100vh - 4.5rem);
}

.hero-copy,
.section-heading,
.lead,
.hero-actions,
.hero-badges,
.hero-device,
.device-body,
.device-sidebar,
.device-content {
	max-width: 100%;
	min-width: 0;
}

.eyebrow {
	margin: 0 0 0.9rem;
	color: var(--raspberry-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: min(10ch, 100%);
	margin-bottom: 1.2rem;
	font-size: clamp(4rem, 9vw, 7.4rem);
	line-height: 0.88;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

h2 {
	margin-bottom: 0.9rem;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1;
	letter-spacing: 0;
}

h3 {
	margin-bottom: 0.7rem;
	font-size: 1.22rem;
}

.lead {
	max-width: 44rem;
	color: var(--muted);
	font-size: clamp(1.05rem, 1.7vw, 1.28rem);
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 2rem 0 1.3rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem;
	padding: 0.85rem 1.25rem;
	border-radius: 999px;
	font-weight: 800;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.primary {
	background: var(--raspberry);
	color: #fff;
	box-shadow: 0 14px 30px rgba(209, 46, 93, 0.28);
}

.secondary {
	background: #fff;
	color: var(--raspberry-dark);
	border: 1px solid var(--line);
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.hero-badges span {
	max-width: 100%;
	min-width: 0;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.64);
	color: var(--muted);
	font-size: 0.88rem;
	overflow-wrap: anywhere;
}

.hero-device {
	overflow: hidden;
	border: 1px solid rgba(209, 46, 93, 0.18);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.device-topbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 3.15rem;
	padding: 0 1rem;
	background: #807b84;
	color: #fff;
}

.window-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	font-size: 0.92rem;
}

.window-controls {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-left: auto;
}

.dot {
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(36, 23, 29, 0.1);
}

.dot.red {
	background: #ff7b9f;
}

.dot.green {
	background: #9fd675;
}

.dot.dark {
	background: #34262d;
}

.device-body {
	display: grid;
	grid-template-columns: 15.5rem 1fr;
	min-height: 31rem;
}

.device-sidebar {
	padding: 1.7rem;
	background: #fff0f3;
}

.device-sidebar strong {
	display: block;
	font-size: 1.45rem;
	font-weight: 700;
}

.small-label {
	display: block;
	color: var(--muted);
	font-size: 0.88rem;
}

.spacing {
	margin-top: 4rem;
}

.device-sidebar p {
	margin-top: 1.2rem;
	color: var(--muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

.device-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	border-top-left-radius: 3rem;
	background: #fff;
}

.pulse-orbit {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 2.4rem 0;
	border-radius: 50%;
	background: rgba(209, 46, 93, 0.08);
	animation: breathe 2.8s ease-in-out infinite;
}

.pulse-orbit span {
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #111;
}

@keyframes breathe {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(209, 46, 93, 0.2);
	}
	50% {
		box-shadow: 0 0 0 1.1rem rgba(209, 46, 93, 0);
	}
}

.drop-zone {
	width: min(100%, 25rem);
	padding: 1.6rem;
	border: 1px solid var(--line);
	border-radius: 22px;
	text-align: center;
}

.upload-glyph {
	font-size: 1.8rem;
	font-weight: 800;
}

.drop-zone button {
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
}

.section-heading,
.wiki-heading {
	max-width: 58rem;
	margin-bottom: 2rem;
}

.section-heading p,
.wiki-heading p {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.install-grid,
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	min-width: 0;
}

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

.install-grid article,
.feature-grid article,
.wiki-layout {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 18px 45px rgba(85, 24, 48, 0.08);
}

.install-grid article,
.feature-grid article {
	min-width: 0;
	padding: 1.35rem;
}

.install-grid a {
	color: var(--raspberry-dark);
	font-weight: 800;
}

.install-grid p,
.feature-grid p {
	color: var(--muted);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.step {
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--leaf-soft);
	color: var(--leaf);
	font-weight: 900;
}

.wiki-shell {
	background:
		linear-gradient(180deg, rgba(255, 232, 238, 0.48), rgba(255, 255, 255, 0.82)),
		radial-gradient(circle at right top, rgba(101, 154, 69, 0.15), transparent 28rem);
}

.wiki-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: none;
}

.wiki-search {
	display: grid;
	gap: 0.45rem;
	min-width: min(100%, 22rem);
	color: var(--muted);
	font-weight: 700;
}

.wiki-search input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	padding: 0.85rem 1rem;
	color: var(--ink);
	font: inherit;
	outline: none;
}

.wiki-search input:focus {
	border-color: rgba(209, 46, 93, 0.55);
	box-shadow: 0 0 0 4px rgba(209, 46, 93, 0.12);
}

.wiki-layout {
	display: grid;
	grid-template-columns: 17rem 1fr;
	overflow: hidden;
	min-height: 34rem;
}

.wiki-nav {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem;
	border-right: 1px solid var(--line);
	background: rgba(255, 240, 243, 0.74);
}

.wiki-tab {
	width: 100%;
	border: 0;
	border-radius: 16px;
	background: transparent;
	padding: 0.85rem 1rem;
	color: var(--muted);
	font: inherit;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.wiki-tab:hover,
.wiki-tab.active {
	background: #fff;
	color: var(--raspberry-dark);
	transform: translateX(2px);
}

.wiki-pages {
	min-width: 0;
	padding: clamp(1.25rem, 4vw, 2.4rem);
}

.wiki-page {
	display: none;
	min-width: 0;
	max-width: 55rem;
	animation: rise 200ms ease both;
}

.wiki-page.active {
	display: block;
}

.wiki-page h3 {
	font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.wiki-page p,
.wiki-page li {
	color: var(--muted);
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.wiki-page ol {
	padding-left: 1.2rem;
}

.wiki-note {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(209, 46, 93, 0.18);
	border-radius: 18px;
	background: rgba(255, 240, 243, 0.72);
}

.wiki-note.soft {
	background: rgba(233, 245, 228, 0.56);
	border-color: rgba(101, 154, 69, 0.2);
}

.wiki-note strong {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--ink);
	font-size: 0.95rem;
}

.wiki-note p {
	margin: 0;
}

.wiki-note code {
	padding: 0.08rem 0.32rem;
	border-radius: 7px;
	background: rgba(36, 23, 29, 0.08);
	color: var(--raspberry-dark);
	font-size: 0.92em;
	font-weight: 750;
}

.wiki-empty {
	display: none;
	color: var(--muted);
	font-weight: 800;
}

.credit-disclosure,
.footer-credits,
.support-card {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.78);
}

.support-shell {
	background:
		radial-gradient(circle at left top, rgba(209, 46, 93, 0.14), transparent 32rem),
		linear-gradient(180deg, #fff 0%, #fff8fa 100%);
}

.support-panel {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.72fr);
	align-items: center;
	gap: clamp(1.5rem, 5vw, 4rem);
	max-width: 76rem;
	margin: 0 auto;
}

.support-copy p {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.support-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.2rem;
	padding: clamp(1rem, 3vw, 1.4rem);
	box-shadow: 0 18px 45px rgba(85, 24, 48, 0.08);
}

.support-mark {
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 24px;
	background: linear-gradient(145deg, var(--panel-strong), #fff);
	border: 1px solid var(--line);
}

.support-mark img {
	width: 2.75rem;
	height: auto;
}

.support-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 2.85rem;
	margin-top: 0.35rem;
	padding: 0.8rem 1rem;
	border-radius: 999px;
	background: var(--raspberry);
	color: #fff;
	font-weight: 850;
	box-shadow: 0 14px 30px rgba(209, 46, 93, 0.2);
}

.support-button img {
	width: 1.35rem;
	height: auto;
	filter: brightness(0) invert(1);
}

.credit-disclosure summary,
.footer-credits summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 1rem;
	color: var(--raspberry-dark);
	font-weight: 850;
	cursor: pointer;
	list-style: none;
}

.credit-disclosure summary::-webkit-details-marker,
.footer-credits summary::-webkit-details-marker {
	display: none;
}

.credit-disclosure summary::after,
.footer-credits summary::after {
	content: "›";
	font-size: 1.45rem;
	line-height: 1;
	transition: transform 160ms ease;
}

.credit-disclosure[open] summary::after,
.footer-credits[open] summary::after {
	transform: rotate(90deg);
}

.credit-disclosure div,
.footer-credits p {
	padding: 0 1rem 1rem;
}

.footer-notices {
	display: grid;
	gap: 0.65rem;
	max-width: 46rem;
}

.footer-credits {
	width: 100%;
}

.footer-credits p {
	margin: 0;
	color: var(--muted);
	line-height: 1.65;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 2rem clamp(1rem, 4vw, 4rem);
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.footer-mark {
	width: 2rem;
	height: 2rem;
}

.site-footer a {
	color: var(--raspberry-dark);
	font-weight: 800;
}

@media (max-width: 980px) {
	.hero,
	.wiki-layout,
	.device-body,
	.support-panel {
		grid-template-columns: 1fr;
	}

	.device-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem 1.2rem;
	}

	.device-sidebar p,
	.spacing {
		margin-top: 0;
	}

	.install-grid,
	.feature-grid {
		grid-template-columns: 1fr 1fr;
	}

	.wiki-nav {
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.wiki-tab {
		min-width: max-content;
	}
}

@media (max-width: 680px) {
	.site-header,
	.site-footer,
	.wiki-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.top-nav {
		flex-wrap: wrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
	}

	.hero {
		min-height: auto;
	}

	h1 {
		font-size: clamp(2.85rem, 15vw, 3.85rem);
		line-height: 0.95;
	}

	.install-grid,
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.install-grid article,
	.feature-grid article,
	.wiki-layout {
		width: 100%;
		max-width: 100%;
	}

	pre {
		overflow-x: hidden;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		word-break: break-word;
		font-size: 0.82rem;
		line-height: 1.55;
	}

	.device-sidebar {
		grid-template-columns: 1fr;
	}

	.support-card {
		grid-template-columns: 1fr;
	}

	.support-mark {
		width: 3.75rem;
		height: 3.75rem;
	}
}
