/* Manrope Regular */
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/Manrope-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Manrope Medium */
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/Manrope-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* Manrope Bold */
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/Manrope-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Manrope ExtraBold */
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/Manrope-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f8fafc; /* light slate */
	--surface: #ffffff;
	--ink: #0f172a; /* slate-900 */
	--muted: #475569; /* slate-600 */
	--line: #e2e8f0; /* slate-200 */
	--brand: #2f7ef7; /* airy blue */
	--brand-ink: #0b3a8f;
	--accent: #38bdf8; /* sky */
	--success: #10b981; /* emerald */
	--shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	--radius: 16px;
	--maxw: 1200px;
}

/* Reset-ish */
* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
		sans-serif;
	color: var(--ink);
	background: radial-gradient(
		1200px 400px at 50% -10%,
		#ffffff 0%,
		#f1f5f9 50%,
		#edf2f7 100%
	);
	background-color: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	height: auto;
	width: 100%;
	max-width: 350px;
	border-radius: 12px;
}
figure {
	margin: 0;
}

.container {
	width: min(100% - 24px, var(--maxw));
	margin-inline: auto;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	background: #000;
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
	z-index: 9999;
}

/* Header */
.site-header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	backdrop-filter: saturate(1.2) blur(8px);
	background: color-mix(in oklab, #ffffff 70%, #f1f5f9 30%);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.logo-img {
	width: 36px;
	height: auto;
	border-radius: 8px;
}
.brand-text {
	font-weight: 800;
	letter-spacing: 0.4px;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
}
.site-nav a {
	text-decoration: none;
	color: var(--muted);
	padding: 8px 10px;
	border-radius: 10px;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover {
	background: #eef2ff;
	color: var(--brand-ink);
	transform: translateY(-1px);
}

/* Nav toggle for mobile */
.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
	cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: '';
	display: block;
	width: 20px;
	height: 2px;
	background: var(--ink);
	margin: 0 auto;
	position: relative;
	top: 0;
	transition: transform 0.25s ease;
}
.nav-toggle-bar::before {
	position: absolute;
	top: -6px;
}
.nav-toggle-bar::after {
	position: absolute;
	top: 6px;
}

/* ==== Footer (global) ==== */
.footer {
	border-top: 1px solid var(--line);
	background: var(--surface);
}
.footer-container {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr auto;
	gap: 16px;
	padding: 24px 0;
	align-items: start;
}
.footer-column a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.15s ease;
}
.footer-column a:hover {
	color: var(--brand-ink);
	transform: translateY(-1px);
}
.footer-brand {
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--ink);
}

.footer-links {
	display: grid;
	gap: 8px;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--brand-ink);
	cursor: pointer;
	box-shadow: var(--shadow);
	font-weight: 700;
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top:hover {
	transform: translateY(-2px);
	background: #f8fafc;
}
.back-to-top:focus {
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, #fff 80%);
}

/* scroll-in animation (re-using our reveal pattern) */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
	.footer-container {
		grid-template-columns: 1fr 1fr;
	}
	.footer-top {
		justify-self: start;
	}
}
@media (max-width: 560px) {
	.footer-container {
		grid-template-columns: 1fr;
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 14px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
		color 0.2s ease, border-color 0.2s ease;
	box-shadow: var(--shadow);
}
.btn-primary {
	background: var(--brand);
	color: #fff;
}
.btn-primary:hover {
	transform: translateY(-2px);
	background: color-mix(in oklab, var(--brand), #000 12%);
}
.btn-ghost {
	background: #fff;
	color: var(--brand-ink);
	border-color: var(--line);
}
.btn-ghost:hover {
	transform: translateY(-2px);
	background: #f8fafc;
}

/* Utilities */
.sr-only {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive baseline */
@media (max-width: 960px) {
	.site-nav {
		display: none;
	}
	.nav-toggle {
		display: block;
	}
	.site-nav.open {
		display: block;
		position: absolute;
		top: 64px;
		right: 12px;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: 16px;
		box-shadow: var(--shadow);
	}
	.site-nav.open ul {
		flex-direction: column;
		padding: 10px;
	}
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
