:root {
	color-scheme: light dark;
	/* Ethereal Horizons (light) */
	--bg: #f0ece4;
	--bg-deep: #e6dfd3;
	--surface: rgba(217, 232, 230, 0.45);
	--surface-strong: rgba(240, 236, 228, 0.88);
	--surface-heavy: rgba(26, 26, 46, 0.94);
	--text: #1a1a2e;
	--muted: rgba(26, 26, 46, 0.55);
	--muted-strong: rgba(26, 26, 46, 0.78);
	--line: rgba(26, 26, 46, 0.08);
	--line-strong: rgba(26, 26, 46, 0.14);
	--glow: rgba(232, 213, 163, 0.12);
	--glow-strong: rgba(151, 167, 214, 0.14);
	--accent: #97a7d6;
	--accent-soft: rgba(151, 167, 214, 0.18);
	--button: #1a1a2e;
	--button-text: #f0ece4;
	--shadow: 0 28px 72px rgba(26, 26, 46, 0.12);
	--shadow-soft: 0 18px 48px rgba(26, 26, 46, 0.07);
	--shadow-deep: 0 48px 160px rgba(26, 26, 46, 0.16);
}

@media (prefers-color-scheme: dark) {
	:root {
		/* Celestial Shadows (dark) */
		--bg: #1a1a2e;
		--bg-deep: #2d1b4e;
		--surface: rgba(61, 90, 128, 0.08);
		--surface-strong: rgba(250, 235, 215, 0.08);
		--surface-heavy: rgba(250, 235, 215, 0.94);
		--text: #faebd7;
		--muted: rgba(250, 235, 215, 0.52);
		--muted-strong: rgba(250, 235, 215, 0.78);
		--line: rgba(250, 235, 215, 0.08);
		--line-strong: rgba(250, 235, 215, 0.14);
		--glow: rgba(0, 119, 182, 0.08);
		--glow-strong: rgba(61, 90, 128, 0.16);
		--accent: #0077b6;
		--accent-soft: rgba(0, 119, 182, 0.15);
		--button: #faebd7;
		--button-text: #1a1a2e;
		--shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
		--shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
		--shadow-deep: 0 48px 180px rgba(0, 0, 0, 0.55);
	}
}

:root[data-theme="light"] {
	color-scheme: light;
	--bg: #f0ece4;
	--bg-deep: #e6dfd3;
	--surface: rgba(217, 232, 230, 0.45);
	--surface-strong: rgba(240, 236, 228, 0.88);
	--surface-heavy: rgba(26, 26, 46, 0.94);
	--text: #1a1a2e;
	--muted: rgba(26, 26, 46, 0.55);
	--muted-strong: rgba(26, 26, 46, 0.78);
	--line: rgba(26, 26, 46, 0.08);
	--line-strong: rgba(26, 26, 46, 0.14);
	--glow: rgba(232, 213, 163, 0.12);
	--glow-strong: rgba(151, 167, 214, 0.14);
	--accent: #97a7d6;
	--accent-soft: rgba(151, 167, 214, 0.18);
	--button: #1a1a2e;
	--button-text: #f0ece4;
	--shadow: 0 28px 72px rgba(26, 26, 46, 0.12);
	--shadow-soft: 0 18px 48px rgba(26, 26, 46, 0.07);
	--shadow-deep: 0 48px 160px rgba(26, 26, 46, 0.16);
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #1a1a2e;
	--bg-deep: #2d1b4e;
	--surface: rgba(61, 90, 128, 0.08);
	--surface-strong: rgba(250, 235, 215, 0.08);
	--surface-heavy: rgba(250, 235, 215, 0.94);
	--text: #faebd7;
	--muted: rgba(250, 235, 215, 0.52);
	--muted-strong: rgba(250, 235, 215, 0.78);
	--line: rgba(250, 235, 215, 0.08);
	--line-strong: rgba(250, 235, 215, 0.14);
	--glow: rgba(0, 119, 182, 0.08);
	--glow-strong: rgba(61, 90, 128, 0.16);
	--accent: #0077b6;
	--accent-soft: rgba(0, 119, 182, 0.15);
	--button: #faebd7;
	--button-text: #1a1a2e;
	--shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
	--shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
	--shadow-deep: 0 48px 180px rgba(0, 0, 0, 0.55);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	min-height: 100vh;
	overflow-x: clip; /* absorb decorative glow/aura bleed; keeps sticky nav working */
	font-family:
		"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	background:
		radial-gradient(circle at 50% -14%, var(--glow-strong), transparent 34%),
		radial-gradient(circle at 18% 18%, var(--glow), transparent 18%),
		radial-gradient(circle at 82% 22%, var(--glow), transparent 16%),
		linear-gradient(180deg, var(--bg), var(--bg-deep));
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}

body::before {
	background:
		radial-gradient(
			circle at 15% 25%,
			rgba(255, 255, 255, 0.07) 0 1px,
			transparent 1px
		),
		radial-gradient(
			circle at 70% 12%,
			rgba(255, 255, 255, 0.05) 0 1px,
			transparent 1px
		),
		radial-gradient(
			circle at 85% 72%,
			rgba(255, 255, 255, 0.05) 0 1px,
			transparent 1px
		);
	background-size:
		240px 240px,
		320px 320px,
		280px 280px;
	opacity: 0.28;
}

body::after {
	background:
		linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent),
		linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
	mask-image: radial-gradient(circle at center, black, transparent 82%);
	opacity: 0.4;
}

:root[data-theme="light"] body::before {
	background:
		radial-gradient(
			circle at 15% 25%,
			rgba(26, 26, 46, 0.12) 0 1px,
			transparent 1px
		),
		radial-gradient(
			circle at 70% 12%,
			rgba(26, 26, 46, 0.08) 0 1px,
			transparent 1px
		),
		radial-gradient(
			circle at 85% 72%,
			rgba(26, 26, 46, 0.08) 0 1px,
			transparent 1px
		);
	opacity: 0.34;
}

:root[data-theme="light"] body::after {
	background:
		linear-gradient(90deg, transparent, rgba(26, 26, 46, 0.04), transparent),
		linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.02) 100%);
	opacity: 0.42;
}

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

button,
a,
span,
div,
article,
section,
p,
h1,
h2,
h3,
li {
	transition:
		color 220ms ease,
		background-color 220ms ease,
		border-color 220ms ease,
		opacity 220ms ease,
		box-shadow 220ms ease,
		transform 220ms ease;
}

.page {
	width: min(1480px, calc(100% - 80px));
	margin: 0 auto;
	padding: 32px 0 200px;
}

.site-nav {
	position: sticky;
	top: 24px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 24px;
	margin-bottom: 56px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	backdrop-filter: blur(40px) saturate(140%);
	box-shadow: var(--shadow-soft);
}

.brand-mark {
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.72rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font-size: 0.82rem;
}

.theme-toggle {
	position: relative;
	appearance: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 2px;
	min-width: 132px;
	min-height: 42px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-soft);
	color: var(--muted);
	cursor: pointer;
	isolation: isolate;
}

.theme-toggle:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 2px;
}

.theme-toggle__option {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.52rem 0.64rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.theme-toggle__thumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	border-radius: 999px;
	background: var(--button);
	box-shadow: var(--shadow-soft);
	transition:
		transform 220ms ease,
		background-color 220ms ease,
		box-shadow 220ms ease;
}

.theme-toggle--dark .theme-toggle__thumb {
	transform: translateX(100%);
}

.theme-toggle--light .theme-toggle__option:first-of-type,
.theme-toggle--dark .theme-toggle__option:nth-of-type(2) {
	color: var(--button-text);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
	gap: clamp(72px, 11vw, 160px);
	align-items: center;
	min-height: calc(100svh - 100px);
	padding: 96px 0 210px;
}

.hero-copy {
	max-width: 38rem;
}

.eyebrow {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero-title,
.section-title {
	margin: 0;
	letter-spacing: -0.078em;
}

.hero-title {
	margin-top: 20px;
	font-size: clamp(5.6rem, 16vw, 12.5rem);
	line-height: 0.8;
}

.hero-subtitle {
	margin: 32px 0 0;
	max-width: 28rem;
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.4;
	color: var(--muted-strong);
}

.hero-description,
.section-copy,
.feature-card p,
.step-card p,
.download-note,
.principles-list li {
	font-size: 1rem;
	line-height: 1.82;
	color: var(--muted);
}

.hero-description {
	max-width: 26rem;
	margin: 24px 0 0;
}

.cta-row,
.hero-meta,
.download-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.cta-row {
	margin-top: 48px;
}

.hero-meta {
	margin-top: 32px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 1rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--button);
	color: var(--button-text);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: -0.01em;
	box-shadow: var(--shadow-soft);
	transition:
		transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 220ms ease,
		color 220ms ease;
}

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

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

.button--ghost {
	background: var(--surface);
	color: var(--text);
	border-color: var(--line);
}

.button--small {
	min-height: 44px;
	padding: 0.76rem 1.12rem;
	font-size: 0.88rem;
}

.button--inverted {
	background: var(--surface-heavy);
	color: var(--bg);
}

.hero-visual,
.section-visual-stack {
	position: relative;
}

.hero-visual::before,
.section-visual-stack::before {
	content: "";
	position: absolute;
	inset: 6% -4% -6%;
	background: radial-gradient(circle, var(--glow-strong), transparent 60%);
	filter: blur(30px);
	z-index: -1;
}

:root[data-theme="light"] .hero-visual::before,
:root[data-theme="light"] .section-visual-stack::before {
	background: radial-gradient(circle, rgba(26, 26, 46, 0.18), transparent 60%);
}

.wave-shell {
	position: relative;
	min-height: 720px;
	border: 1px solid var(--line-strong);
	border-radius: 52px;
	background:
		radial-gradient(
			circle at 50% 70%,
			rgba(255, 255, 255, 0.08),
			transparent 42%
		),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 62%),
		var(--surface);
	overflow: hidden;
	box-shadow: var(--shadow-deep);
	isolation: isolate;
}

.wave-shell--inset {
	min-height: 520px;
	border-radius: 44px;
}

.wave-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.wave-aura {
	position: absolute;
	inset: -18%;
	background: radial-gradient(
		circle at 50% 66%,
		rgba(255, 255, 255, 0.16),
		transparent 46%
	);
	filter: blur(34px);
	pointer-events: none;
	animation: drift 22s ease-in-out infinite alternate;
}

.wave-vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(
		ellipse 78% 70% at 50% 56%,
		transparent 48%,
		var(--bg-deep) 116%
	);
	opacity: 0.55;
}

:root[data-theme="light"] .wave-shell {
	background:
		radial-gradient(circle at 50% 70%, rgba(26, 26, 46, 0.07), transparent 42%),
		linear-gradient(180deg, rgba(26, 26, 46, 0.04), transparent 62%),
		var(--surface);
}

:root[data-theme="light"] .wave-aura {
	background: radial-gradient(
		circle at 50% 66%,
		rgba(26, 26, 46, 0.12),
		transparent 46%
	);
	opacity: 0.8;
}

.section {
	padding: 160px 0;
}

.section--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(56px, 9vw, 120px);
	align-items: center;
}

.section-headline {
	margin-bottom: 44px;
}

.section-title {
	margin-top: 20px;
	font-size: clamp(3rem, 5.2vw, 5.8rem);
	line-height: 0.92;
}

.section-title--serif,
.quote-panel__text {
	font-family: "Cormorant Garamond", Georgia, serif;
	letter-spacing: -0.03em;
}

.section-copy {
	margin: 24px 0 0;
	max-width: 40rem;
}

.section-copy--narrow {
	max-width: 28rem;
}

.quote-panel,
.feature-card,
.step-card,
.download-panel {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 44px;
	background: var(--surface);
	backdrop-filter: blur(32px) saturate(135%);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	transition:
		transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-panel:hover,
.feature-card:hover,
.step-card:hover,
.download-panel:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.quote-panel::before,
.feature-card::before,
.step-card::before,
.download-panel::before {
	content: "";
	position: absolute;
	inset: -32% auto auto -10%;
	width: 58%;
	height: 58%;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.1),
		transparent 72%
	);
	pointer-events: none;
}

:root[data-theme="light"] .quote-panel::before,
:root[data-theme="light"] .feature-card::before,
:root[data-theme="light"] .step-card::before,
:root[data-theme="light"] .download-panel::before {
	background: radial-gradient(circle, rgba(26, 26, 46, 0.12), transparent 72%);
}

.quote-panel {
	padding: 48px;
}

.quote-panel__text {
	margin: 0;
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	line-height: 1.35;
}

.quote-panel__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 36px;
	color: var(--muted);
	font-size: 0.76rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.feature-grid,
.steps-grid {
	display: grid;
	gap: 36px;
}

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

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

.feature-card,
.step-card {
	min-height: 300px;
	padding: 38px;
}

.feature-card__eyebrow,
.step-card__index {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.feature-card h3,
.step-card h3 {
	margin: 22px 0 0;
	font-size: 1.68rem;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.feature-card p,
.step-card p {
	margin: 20px 0 0;
	max-width: 22rem;
}

.principles-list {
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.principles-list li {
	position: relative;
	padding-left: 30px;
}

.principles-list li + li {
	margin-top: 16px;
}

.principles-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--text);
}

.section--download {
	padding-bottom: 64px;
}

.download-panel {
	display: grid;
	grid-template-columns: auto minmax(0, 1.1fr) minmax(260px, 0.8fr);
	gap: clamp(28px, 4vw, 48px);
	align-items: end;
	padding: 48px;
}

.download-icon {
	align-self: center;
	width: clamp(108px, 13vw, 148px);
	height: clamp(108px, 13vw, 148px);
	object-fit: contain;
	/* The PNG is already a transparent squircle — shadow follows its alpha. */
	filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45))
		drop-shadow(0 0 40px var(--glow-strong));
	transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.download-panel:hover .download-icon {
	transform: translateY(-3px) scale(1.02);
}

.download-actions {
	justify-content: flex-start;
}

.download-note {
	max-width: 22rem;
}

.reveal {
	opacity: 0;
	transform: translateY(52px) scale(0.986);
	transition:
		opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay),
		transform 1200ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay);
}

.reveal[data-revealed="true"] {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@keyframes drift {
	from {
		transform: translate3d(-2%, -1.5%, 0) scale(1);
	}

	to {
		transform: translate3d(2%, 2%, 0) scale(1.05);
	}
}

@media (max-width: 1180px) {
	.hero,
	.section--split,
	.download-panel,
	.steps-grid {
		grid-template-columns: 1fr;
	}

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

	.hero {
		min-height: auto;
		padding: 48px 0 128px;
	}

	.wave-shell {
		min-height: 560px;
	}

	.wave-shell--inset {
		min-height: 440px;
	}
}

@media (max-width: 720px) {
	.page {
		width: min(100% - 24px, 100%);
		padding: 16px 0 112px;
	}

	.site-nav {
		padding: 12px 14px;
		border-radius: 28px;
		margin-bottom: 20px;
	}

	.nav-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.theme-toggle {
		min-width: 124px;
	}

	.hero-title {
		font-size: clamp(3rem, 17vw, 5.4rem);
	}

	.section,
	.section--download {
		padding: 84px 0;
	}

	.quote-panel,
	.feature-card,
	.step-card,
	.download-panel {
		padding: 24px;
		border-radius: 30px;
	}

	.wave-shell {
		min-height: 430px;
		border-radius: 34px;
	}

	.wave-shell--inset {
		min-height: 340px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* Footer */
.site-footer {
	padding: 48px 0 32px;
	text-align: center;
}

.site-footer p {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	opacity: 0.45;
}
