/* Odin's site. One dark look in Odin's own palette (apps/desktop/src/renderer/globals.css).
   Layout: a centered hero over one large app window, then grid sections at the same 1120px width. */
:root {
	--bg: #0b0b0e;
	--panel: #121217;
	--card: #16161b;
	--raised: #1d1d24;
	--border: #24242c;
	--line: #2e2e38;
	--fg: #ededf2;
	--muted: #8f8f9c;
	--faint: #5d5d69;
	--primary: #a394ff;
	--primary-ink: #0b0b0e;
	--attention: #f5b83d;
	--working: #5aa9ff;
	--success: #3ecf8e;
	--sans: "Geist", "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, Menlo, monospace;
	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 16px / 1.6 var(--sans);
	padding-inline: 20px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: var(--fg);
	text-underline-offset: 3px;
	text-decoration-color: var(--line);
}

a:hover {
	text-decoration-color: var(--primary);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
	border-radius: 8px;
}

code {
	font-family: var(--mono);
	font-size: 0.9em;
}

.wrap {
	max-width: 1120px;
	margin-inline: auto;
}

/* Nav */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 700;
	font-size: 32px;
	letter-spacing: 0.06em;
}

.brand img {
	width: 80px;
	height: 80px;
	border-radius: 18px;
}

.top nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 14px;
}

.top nav a {
	color: var(--muted);
	text-decoration: none;
}

.top nav a:hover {
	color: var(--fg);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding-inline: 18px;
	border-radius: 999px;
	font: 500 15px var(--sans);
	text-decoration: none;
	border: 1px solid var(--line);
	color: var(--fg);
	background: var(--card);
	transition:
		border-color 0.15s,
		background 0.15s;
}

.btn:hover {
	border-color: var(--muted);
}

.btn.primary {
	background: var(--fg);
	color: var(--primary-ink);
	border-color: var(--fg);
}

.btn.primary:hover {
	background: #ffffff;
}

.btn.small {
	height: 34px;
	padding-inline: 14px;
	font-size: 13.5px;
}

.btn svg {
	width: 16px;
	height: 16px;
}

/* Type */
h1,
h2,
h3 {
	margin: 0;
	text-wrap: balance;
	font-weight: 600;
}

h1,
h2 {
	font-family: var(--display);
}

h1 {
	font-size: clamp(34px, 5.6vw, 64px);
	line-height: 1.08;
	letter-spacing: 0.01em;
}

h2 {
	font-size: clamp(26px, 3.8vw, 42px);
	line-height: 1.15;
	letter-spacing: 0.01em;
}

h3 {
	font-size: 17px;
	letter-spacing: -0.01em;
}

.dim {
	color: var(--muted);
}

.label {
	font: 500 12px var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--primary);
}

.lede {
	font-size: clamp(17px, 2vw, 20px);
	color: var(--muted);
	max-width: 36em;
	margin: 0;
}

/* Hero */
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
	padding-block: 72px 56px;
}

.ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
}

.cmd {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 7px 7px 7px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--panel);
}

.cmd code {
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
	font-size: 12.5px;
	color: var(--muted);
	scrollbar-width: none;
}

.cmd code::before {
	content: "$ ";
	color: var(--faint);
}

.cmd button {
	flex-shrink: 0;
	border: 1px solid var(--line);
	background: var(--raised);
	color: var(--fg);
	border-radius: 8px;
	padding: 5px 10px;
	font: 500 12.5px var(--sans);
	cursor: pointer;
}

/* The app window */
.stage {
	position: relative;
	padding-bottom: 24px;
}

.stage::before {
	content: "";
	position: absolute;
	inset: 6% 10% auto;
	height: 70%;
	background: radial-gradient(
		closest-side,
		rgb(163 148 255 / 0.28),
		transparent
	);
	filter: blur(40px);
	z-index: -1;
}

.window {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
	overflow: hidden;
	box-shadow: 0 40px 120px -40px rgb(0 0 0 / 0.8);
}

.chrome {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
}

.chrome i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--line);
}

.chrome span {
	margin-left: 12px;
	font: 12px var(--mono);
	color: var(--faint);
}

.shot {
	display: block;
	width: 100%;
	height: auto;
}

.fade {
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
	mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.demo {
	position: relative;
}

/* Over the trailer's bottom right corner, out of its captions' way. */
.demo .sound {
	position: absolute;
	right: 14px;
	bottom: 14px;
	background: rgb(11 11 14 / 0.75);
	cursor: pointer;
}

.session-shot {
	margin: 48px 0 0;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--c);
}

/* Sections */
section {
	padding-block: 96px;
}

.head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 44em;
	margin-bottom: 44px;
}

.head p {
	margin: 0;
	color: var(--muted);
	font-size: 18px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
}

.grid > div {
	background: var(--panel);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.grid .step {
	font: 500 12px var(--mono);
	color: var(--faint);
}

.grid p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

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

.grid svg {
	width: 20px;
	height: 20px;
	color: var(--primary);
}

.features svg {
	width: 20px;
	height: 20px;
	color: var(--primary);
}

.sources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.sources span {
	font: 12.5px var(--mono);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 11px;
	color: var(--muted);
}

/* Phone */
.phone {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 64px;
	align-items: center;
}

.phone .head {
	margin-bottom: 0;
}

.phone .ctas {
	justify-content: flex-start;
	margin-top: 28px;
}

.points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 28px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.points li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-left: 14px;
	border-left: 1px solid var(--line);
}

.points b {
	font-weight: 500;
}

.points span {
	color: var(--muted);
	font-size: 15px;
}

.phones {
	display: flex;
	justify-content: center;
	gap: 16px;
	min-width: 0;
}

.phones img {
	width: 50%;
	max-width: 240px;
	height: auto;
	border-radius: 30px;
	border: 1px solid var(--line);
	box-shadow: 0 40px 100px -40px rgb(163 148 255 / 0.35);
}

.phones img:last-child {
	margin-top: 48px;
}

/* Two columns: the pitch, and what backs it */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}

.split .head {
	margin-bottom: 0;
}

.facts {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--panel);
	overflow: hidden;
}

.facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	min-width: 0;
}

.facts li + li {
	border-top: 1px solid var(--border);
}

.facts b {
	font-weight: 500;
}

.facts span {
	color: var(--muted);
	font-size: 15px;
}

.night {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--panel);
	padding: 10px 0;
	font-size: 14.5px;
}

.night-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 20px;
	color: var(--muted);
	min-width: 0;
}

.night-row b {
	font-weight: 500;
	color: var(--fg);
}

.night-row .time {
	font: 12.5px var(--mono);
	color: var(--faint);
	width: 44px;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

.night-row.done b {
	color: var(--success);
}

/* Closing */
.closing {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
	padding-block: 112px;
	border-top: 1px solid var(--border);
}

footer {
	border-top: 1px solid var(--border);
	padding-block: 28px 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	justify-content: space-between;
	color: var(--faint);
	font-size: 13.5px;
}

footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

footer a {
	color: var(--muted);
	text-decoration: none;
}

footer a:hover {
	color: var(--fg);
}

/* Text pages: privacy, support */
.doc {
	max-width: 42em;
	padding-block: 56px 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.doc h1 {
	font-size: clamp(38px, 5.4vw, 56px);
	margin-bottom: 6px;
}

.doc h2 {
	font-size: 22px;
	letter-spacing: -0.02em;
	margin-top: 26px;
}

.doc p,
.doc li {
	color: var(--muted);
	margin: 0;
}

.doc strong {
	color: var(--fg);
	font-weight: 500;
}

.doc ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.doc .updated {
	font: 12.5px var(--mono);
	color: var(--faint);
}

@media (max-width: 900px) {
	.grid,
	.grid.three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.phone,
	.split {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 560px) {
	.top nav a:not(.btn) {
		display: none;
	}
	.brand {
		font-size: 28px;
	}
	.brand img {
		width: 60px;
		height: 60px;
		border-radius: 14px;
	}
	.grid,
	.grid.three,
	.points {
		grid-template-columns: minmax(0, 1fr);
	}
	section {
		padding-block: 72px;
	}
	.hero {
		padding-block: 48px 40px;
	}
}

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