:root {
	color-scheme: dark;
	--bg: #161924;
	--surface: #2a2e42;
	--recessed: #232739;
	--fg: #e8eaf2;
	--muted: #b0b8d0;
	--line: rgba(176, 184, 208, 0.16);
	--accent: #8a96ff;
	--accent-strong: #6d7dff;
	--accent-text: #a5afff;
	--ink-on-accent: #10132a;
	--edge: rgba(255, 255, 255, 0.06);
	--raise: 5px 5px 12px rgba(0, 0, 0, 0.5), -4px -4px 10px rgba(60, 68, 92, 0.45);
	--raise-small: 3px 3px 8px rgba(0, 0, 0, 0.5), -2px -2px 6px rgba(60, 68, 92, 0.45);
	--sunk: inset 3px 3px 8px rgba(0, 0, 0, 0.45), inset -2px -2px 6px rgba(60, 68, 92, 0.45);
	--glow: rgba(109, 125, 255, 0.5);
	--frame: #0d0f18;
	--frame-edge: rgba(255, 255, 255, 0.08);
	--font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 56px);
	--max: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent-text);
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	background: var(--accent);
	color: var(--ink-on-accent);
	font-weight: 700;
	border-radius: 12px;
	padding: 0.6rem 1rem;
	z-index: 10;
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

main {
	overflow-x: clip;
}

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 8px;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var(--fg);
}

.lang {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 18px;
	background: var(--recessed);
	box-shadow: var(--sunk);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.lang a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 0.9rem;
	text-decoration: none;
	min-width: 44px;
	text-align: center;
	border-radius: 14px;
	color: var(--muted);
}
.lang a[aria-current='page'] {
	color: var(--ink-on-accent);
	background: linear-gradient(145deg, var(--accent), var(--accent-strong));
	box-shadow: 0 0 14px var(--glow);
}
.lang a:not([aria-current]):hover {
	color: var(--fg);
	background: var(--surface);
	box-shadow: var(--raise-small);
}

/* Type */
h1,
h2,
h3 {
	margin: 0;
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 800;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.75rem, 9.5vw, 5.75rem);
}
h2 {
	font-size: clamp(2rem, 5.5vw, 3.25rem);
}
h3 {
	font-size: 1.375rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
p {
	margin: 0;
	text-wrap: pretty;
}
.lead {
	font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
	line-height: 1.5;
	color: var(--muted);
	max-width: 32ch;
}
.eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-text);
	margin: 0 0 1rem;
}

/* Hero */
.hero {
	display: grid;
	gap: 56px;
	padding-block: clamp(32px, 8vw, 96px) clamp(64px, 10vw, 128px);
	align-items: center;
}
.status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 1.1rem;
	border-radius: 100px;
	background: var(--recessed);
	box-shadow: var(--sunk);
	color: var(--accent-text);
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 2rem;
}
.status::before {
	content: '';
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--glow);
}
.hero .lead {
	margin-top: 1.75rem;
}
.hero-phone {
	justify-self: center;
	position: relative;
}
.hero-phone::before,
.feature .phone::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: -18% -40%;
	background: radial-gradient(closest-side, rgba(109, 125, 255, 0.26), rgba(109, 125, 255, 0));
	pointer-events: none;
}

@media (min-width: 880px) {
	.hero {
		grid-template-columns: 1.25fr 1fr;
		gap: 80px;
	}
	.hero-phone {
		justify-self: end;
		width: min(100%, 340px);
	}
}

/* Phone frame, drawn in CSS */
.phone {
	position: relative;
	isolation: isolate;
	margin: 0;
	width: min(100%, 290px);
}
.phone .body {
	background: var(--frame);
	border: 1px solid var(--frame-edge);
	border-radius: 44px;
	padding: 10px;
	box-shadow:
		0 30px 60px rgba(0, 0, 0, 0.55),
		inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img {
	border-radius: 34px;
	background: var(--bg);
	width: 100%;
}
.phone img.cropped {
	aspect-ratio: 780 / 1600;
	object-fit: cover;
	object-position: top;
}
.phone figcaption {
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: var(--muted);
	text-align: center;
}

/* Sections */
section {
	border-top: 1px solid var(--line);
	padding-block: clamp(56px, 9vw, 112px);
}
.section-head {
	margin-bottom: clamp(36px, 6vw, 64px);
	max-width: 22ch;
}

.feature {
	display: grid;
	gap: 40px;
	align-items: center;
}
.feature + .feature {
	margin-top: clamp(56px, 9vw, 104px);
}
.feature .phone {
	justify-self: center;
}
.feature .text {
	max-width: 36ch;
}
.feature .text p {
	color: var(--muted);
	margin-top: 1rem;
	font-size: 1.1875rem;
}
.feature .tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	padding: 0.3rem 0.9rem;
	border-radius: 100px;
	background: rgba(108, 124, 255, 0.18);
	color: var(--accent-text);
}
.feature h3 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
}

@media (min-width: 880px) {
	.feature {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}
	.feature .phone {
		justify-self: start;
		grid-column: 1;
		grid-row: 1;
	}
	.feature .text {
		grid-column: 2;
		grid-row: 1;
	}
	.feature.flip .phone {
		justify-self: end;
		grid-column: 2;
	}
	.feature.flip .text {
		grid-column: 1;
		justify-self: end;
	}
}

/* Steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
	counter-reset: step;
}
.steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 0 1rem;
	align-items: start;
	padding: 22px 20px;
	border-radius: 24px;
	background: var(--surface);
	border: 1px solid var(--edge);
	box-shadow: var(--raise);
}
.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--recessed);
	box-shadow: var(--sunk);
	color: var(--accent-text);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.steps p {
	color: var(--muted);
	margin-top: 0.4rem;
	max-width: 46ch;
}
.steps-note {
	margin-top: 2rem;
	color: var(--muted);
	max-width: 46ch;
}

@media (min-width: 880px) {
	.path {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 80px;
	}
	.path .section-head {
		margin-bottom: 0;
	}
	.steps li {
		grid-template-columns: 4rem 1fr;
		gap: 0 1.5rem;
		padding: 28px 28px;
	}
	.steps li::before {
		width: 4rem;
		height: 4rem;
		font-size: 1.375rem;
	}
}

/* Principles */
.principles {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.principles li {
	padding: 24px 24px 26px;
	border-radius: 24px;
	background: var(--surface);
	border: 1px solid var(--edge);
	box-shadow: var(--raise);
}
.principles p {
	color: var(--muted);
	margin-top: 0.5rem;
	max-width: 40ch;
}

@media (min-width: 720px) {
	.principles {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 40px 56px;
	display: grid;
	gap: 0.75rem;
	color: var(--muted);
	font-size: 0.9375rem;
}
.site-footer p {
	max-width: 60ch;
}

/* 404 */
.notfound {
	min-height: 60vh;
	display: grid;
	align-content: center;
	gap: 1.5rem;
	padding-block: 64px;
}
.button {
	justify-self: start;
	display: inline-block;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.5rem 1.5rem;
	border-radius: 14px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ink-on-accent);
	background: linear-gradient(145deg, var(--accent), var(--accent-strong));
	box-shadow: 0 6px 18px var(--glow);
}
.button:hover {
	background: linear-gradient(145deg, var(--accent-strong), var(--accent));
}
.button:active {
	box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
	.lang a,
	.button {
		transition:
			background-color 0.15s ease,
			box-shadow 0.15s ease,
			color 0.15s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
