/* Statix landing — static styles.
   Palette, type, radius, and shadow follow the Statix brand kit. No build step. */

:root {
	--bg: #fafafa;
	--surface: #ffffff;
	--surface-muted: #f4f4f5;
	--border: #e4e4e7;
	--border-strong: #d4d4d8;
	--text: #09090b;
	--text-body: #3f3f46;
	--text-muted: #52525b;
	--text-caption: #71717a;
	--header-bg: rgb(255 255 255 / 0.95);
	--primary-bg: #18181b;
	--primary-fg: #ffffff;
	--primary-hover: #27272a;
	--secondary-bg: #ffffff;
	--secondary-hover: #fafafa;
	--warning: #fbbf24;
	--selection-bg: #d4d4d8;
	--selection-fg: #09090b;
	--focus: #52525b;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.05);
	--shadow-raised: 0 4px 6px rgb(0 0 0 / 0.07);
	--cta-bg: #18181b;
	--cta-text: #fafafa;
	--cta-body: #d4d4d8;
	--font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #09090b;
		--surface: #18181b;
		--surface-muted: #27272a;
		--border: #27272a;
		--border-strong: #3f3f46;
		--text: #fafafa;
		--text-body: #d4d4d8;
		--text-muted: #a1a1aa;
		--text-caption: #a1a1aa;
		--header-bg: rgb(24 24 27 / 0.95);
		--primary-bg: #f4f4f5;
		--primary-fg: #18181b;
		--primary-hover: #e4e4e7;
		--secondary-bg: #18181b;
		--secondary-hover: #27272a;
		--warning: #fbbf24;
		--selection-bg: #3f3f46;
		--selection-fg: #fafafa;
		--focus: #a1a1aa;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.4);
		--shadow-raised: 0 4px 6px rgb(0 0 0 / 0.5);
		--cta-bg: #27272a;
		--cta-text: #fafafa;
		--cta-body: #d4d4d8;
		color-scheme: dark;
	}
}

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

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

html {
	scroll-behavior: smooth;
	scrollbar-color: var(--border-strong) var(--bg);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	background: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

::selection {
	background: var(--selection-bg);
	color: var(--selection-fg);
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: 0.75rem;
	left: 1rem;
	z-index: 50;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	background: var(--text);
	color: var(--bg);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--border);
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
}

.brand {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	border-radius: 0.25rem;
	text-decoration: none;
}

.brand__wordmark {
	width: auto;
	height: 1.5rem;
}

.brand__mark {
	display: none;
	width: 2rem;
	height: 2rem;
}

@media (max-width: 639px) {
	.brand__wordmark {
		display: none;
	}

	.brand__mark {
		display: block;
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 150ms ease,
		border-color 150ms ease,
		color 150ms ease,
		box-shadow 150ms ease,
		transform 150ms ease;
}

.btn svg {
	flex: none;
	width: 1rem;
	height: 1rem;
}

.btn--sm {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
}

.btn--lg {
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
}

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

.btn--primary:hover {
	background: var(--primary-hover);
}

.btn--secondary {
	border-color: var(--border-strong);
	background: var(--secondary-bg);
	color: var(--text);
}

.btn--secondary:hover {
	background: var(--secondary-hover);
}

.btn--inverse {
	background: #ffffff;
	color: #18181b;
}

.btn--inverse:hover {
	background: #e4e4e7;
}

.btn--outline-dark {
	border-color: #52525b;
	background: transparent;
	color: #fafafa;
}

.btn--outline-dark:hover {
	background: #3f3f46;
}

@media (hover: hover) {
	.btn:hover {
		box-shadow: var(--shadow-raised);
		transform: translateY(-1px);
	}
}

@media (max-width: 639px) {
	.btn--sm {
		min-height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn {
		transition: none;
	}

	.btn:hover {
		transform: none;
	}
}

/* ---------- Hero ---------- */

.hero {
	padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
	.hero {
		padding-block: 6rem;
	}
}

.hero__inner {
	display: grid;
	gap: 2.5rem;
	align-items: center;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3rem;
	}
}

.hero__copy {
	max-width: 36rem;
}

.hero h1 {
	margin: 0;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

@media (max-width: 359px) {
	.hero h1 {
		font-size: 2rem;
	}
}

@media (min-width: 640px) {
	.hero h1 {
		font-size: 3rem;
	}
}

@media (min-width: 1280px) {
	.hero h1 {
		font-size: 3.75rem;
	}
}

.hero__lede {
	max-width: 32rem;
	margin: 1.25rem 0 0;
	color: var(--text-body);
	font-size: 1.125rem;
	line-height: 2rem;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.hero__actions {
		flex-direction: row;
	}
}

.hero__note {
	margin: 1.25rem 0 0;
	color: var(--text-caption);
	font-size: 0.875rem;
}

.hero__figure {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.hero__figure {
		margin: 0 0 0 auto;
	}
}

.hero__shot {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.hero__shot img {
	width: 100%;
	height: auto;
}

.hero__caption {
	margin: 0.75rem 0 0;
	color: var(--text-caption);
	font-size: 0.75rem;
	line-height: 1.25rem;
}

.hero__caption strong {
	color: var(--text-body);
	font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
	.hero__copy {
		animation: settle 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.hero__figure {
		animation: settle 700ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
	}
}

@keyframes settle {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Sections ---------- */

.section {
	padding: 4rem 1.5rem;
	border-top: 1px solid var(--border);
}

.section__inner {
	max-width: 72rem;
	margin: 0 auto;
}

.section__head {
	max-width: 42rem;
}

.section h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.section__lede {
	margin: 0.75rem 0 0;
	color: var(--text-body);
	font-size: 1rem;
	line-height: 1.75rem;
	text-wrap: pretty;
}

/* Capabilities */

.capabilities {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 2.5rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
	.capabilities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2.5rem;
	}
}

@media (min-width: 1280px) {
	.capabilities {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 2rem;
	}
}

.capabilities dt {
	color: var(--text-caption);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.capabilities dd {
	margin: 0.5rem 0 0;
	color: var(--text-body);
	font-size: 0.875rem;
	line-height: 1.5rem;
	text-wrap: pretty;
}

/* How it works */

.flow {
	display: grid;
	margin: 2.5rem 0 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--surface);
	list-style: none;
}

@media (min-width: 768px) {
	.flow {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.flow li {
	padding: 1.5rem;
	border-top: 1px solid var(--border);
}

.flow li:first-child {
	border-top: 0;
}

@media (min-width: 768px) {
	.flow li {
		border-top: 0;
		border-left: 1px solid var(--border);
	}

	.flow li:first-child {
		border-left: 0;
	}
}

.flow__label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.flow__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface-muted);
	color: var(--text-muted);
}

.flow__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.flow__name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.flow p {
	margin: 0.75rem 0 0;
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.5rem;
	text-wrap: pretty;
}

/* ---------- Closing CTA ---------- */

.cta {
	padding: 4rem 1.5rem;
	background: var(--cta-bg);
}

.cta__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.cta__inner {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 3rem;
	}
}

.cta__copy {
	max-width: 36rem;
}

.cta h2 {
	margin: 0;
	color: var(--cta-text);
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.cta p {
	max-width: 36rem;
	margin: 1rem 0 0;
	color: var(--cta-body);
	font-size: 1rem;
	line-height: 1.75rem;
	text-wrap: pretty;
}

.cta__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.cta__actions {
		flex-direction: row;
	}
}

@media (min-width: 1024px) {
	.cta__actions {
		flex-shrink: 0;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	padding: 2rem 1.5rem;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

@media (min-width: 640px) {
	.footer-brand {
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
	}
}

.footer-brand img {
	width: auto;
	height: 1.25rem;
}

.footer-brand span {
	color: var(--text-caption);
	font-size: 0.75rem;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	color: var(--text-muted);
	font-size: 0.875rem;
}

.footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 1.5rem;
	border-radius: 0.25rem;
	text-decoration: none;
	transition: color 150ms ease;
}

.footer-nav a:hover {
	color: var(--text);
}

.footer-nav .copyright {
	color: var(--text-caption);
	font-size: 0.75rem;
}

@media (max-width: 639px) {
	.footer-nav a {
		min-height: 2.75rem;
	}
}

/* ---------- Status pages ---------- */

.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.page__main {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1.5rem 4rem;
}

.page-header {
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.page-header__inner {
	display: flex;
	align-items: center;
	min-height: 3.75rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
}

@media (max-width: 639px) {
	.page-header__inner {
		min-height: 4.25rem;
	}
}

.status-page {
	width: 100%;
	max-width: 40rem;
}

.status-page__mark {
	width: 5rem;
	height: 5rem;
	margin: 0 auto 2.5rem;
}

.status-page__frame {
	padding: 0 1.5rem;
	border-right: 1px solid var(--border);
	border-left: 1px solid var(--border);
	text-align: center;
}

@media (min-width: 640px) {
	.status-page__frame {
		padding-inline: 2rem;
	}
}

.status-page h1 {
	margin: 0;
	font-size: clamp(2rem, 1.25rem + 3.2vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.status-page p {
	max-width: 32rem;
	margin: 1.25rem auto 0;
	color: var(--text-body);
	font-size: 1rem;
	line-height: 1.75rem;
	text-wrap: pretty;
}

.status-line {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	color: var(--text-caption);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.status-line::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--warning);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	margin-top: 2rem;
	border-bottom: 1px solid var(--border-strong);
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 150ms ease;
}

.text-link svg {
	width: 1rem;
	height: 1rem;
}

.text-link:hover {
	border-color: var(--text);
}

.status-actions {
	margin-top: 2rem;
}

.page-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.page-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	max-width: 72rem;
	margin: 0 auto;
	color: var(--text-caption);
	font-size: 0.75rem;
}

@media (prefers-color-scheme: dark) {
	.brand img,
	.footer-brand img,
	.status-page__mark {
		filter: invert(1);
	}
}
