:root {
	color-scheme: dark;
	--offdep-blue: #70a5ff;
	--offdep-blue-dark: #4b7fe0;
	--offdep-ink: #f3f5ff;
	--offdep-muted: #a7b0ca;
	--offdep-border: rgb(180 196 255 / 14%);
	--offdep-surface: rgb(19 25 48 / 82%);
	--offdep-canvas: #080c18;
	font-family: "Segoe UI", Arial, sans-serif;
	color: var(--offdep-ink);
	background: var(--offdep-canvas);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* {
	box-sizing: border-box;
}

body {
	display: flex;
	flex-direction: column;
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(ellipse at 18% 0%, rgb(44 79 157 / 24%), transparent 42rem),
		radial-gradient(ellipse at 88% 38%, rgb(107 54 171 / 14%), transparent 36rem),
		var(--offdep-canvas);
}

a {
	color: inherit;
	text-decoration: none;
}

.app-header {
	position: sticky;
	z-index: 2;
	top: 0;
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 82px;
	padding: 10px clamp(18px, 5vw, 72px);
	background: rgb(8 12 24 / 78%);
	border-bottom: 1px solid var(--offdep-border);
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.brand img {
	display: block;
	width: clamp(112px, 12vw, 145px);
	height: auto;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.main-nav a {
	position: relative;
	padding: 11px 15px;
	color: var(--offdep-muted);
	font-size: 14px;
	font-weight: 600;
	transition: color .2s ease, background-color .2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
	color: var(--offdep-ink);
}

.main-nav a:hover {
	background: rgb(255 255 255 / 6%);
	border-radius: 8px;
}

.main-nav a[aria-current="page"]::after {
	position: absolute;
	right: 15px;
	bottom: 3px;
	left: 15px;
	height: 2px;
	border-radius: 2px;
	background: var(--offdep-blue);
	box-shadow: 0 0 12px rgb(112 165 255 / 70%);
	content: "";
}

.page-content {
	display: grid;
	flex: 1;
	width: min(1050px, calc(100% - 40px));
	margin: 64px auto;
	align-content: start;
}

.hero-card,
.content-card {
	position: relative;
	overflow: hidden;
	padding: clamp(30px, 6vw, 72px);
	background: linear-gradient(145deg, rgb(24 33 63 / 94%), rgb(14 19 38 / 94%));
	border: 1px solid var(--offdep-border);
	border-radius: 24px;
	box-shadow: 0 24px 80px rgb(0 0 0 / 28%), inset 0 1px rgb(255 255 255 / 4%);
}

.hero-card {
	display: flex;
	min-height: min(480px, 58vh);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-card::before {
	position: absolute;
	top: -180px;
	right: -100px;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(86 132 255 / 24%), transparent 68%);
	content: "";
	pointer-events: none;
}

.hero-card h1 {
	position: relative;
	max-width: 760px;
	margin: 0 0 18px;
	font-size: clamp(40px, 7vw, 76px);
	font-weight: 700;
	letter-spacing: -3px;
	line-height: 1.04;
}

.hero-card p,
.content-card p {
	max-width: 680px;
	margin: 0 auto;
	color: var(--offdep-muted);
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.75;
}

.content-card {
	margin-top: 20px;
	padding: clamp(26px, 5vw, 48px);
	scroll-margin-top: 102px;
}

.content-card h2 {
	margin: 0 0 12px;
	color: var(--offdep-ink);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 650;
	letter-spacing: -.5px;
	text-align: center;
}

#download h2:not(:first-child) {
	margin-top: 38px;
	padding-top: 28px;
	border-top: 1px solid var(--offdep-border);
}

.button-primary,
.button-download {
	display: flex;
	width: fit-content;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	margin: 22px auto 0;
	padding: 0 22px;
	color: #fff;
	background: linear-gradient(135deg, #6398ff, #795de8);
	border: 1px solid rgb(255 255 255 / 15%);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgb(79 108 220 / 25%);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button-primary:hover,
.button-download:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
	box-shadow: 0 12px 30px rgb(79 108 220 / 38%);
}

.site-footer {
	width: 100%;
	padding: 18px 12px 22px;
	color: #77819d;
	font-size: 12px;
	text-align: center;
}

:focus-visible {
	outline: 3px solid #91b6ff;
	outline-offset: 4px;
}

[hidden] {
	display: none !important;
}

@media (max-width: 620px) {
	.app-header {
		flex-wrap: wrap;
		gap: 4px 12px;
		padding: 10px 16px 0;
	}

	.main-nav {
		width: 100%;
		gap: 0;
		margin: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.main-nav::-webkit-scrollbar {
		display: none;
	}

	.main-nav a {
		padding: 14px 12px;
		white-space: nowrap;
	}

	.main-nav a[aria-current="page"]::after {
		right: 12px;
		bottom: 3px;
		left: 12px;
	}

	.page-content {
		width: min(1050px, calc(100% - 28px));
		margin: 30px auto;
	}

	.hero-card {
		min-height: 360px;
		border-radius: 20px;
	}

	.hero-card h1 {
		letter-spacing: -1.8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
