/*
Geist (Vercel) fonts
*/
@font-face {
	font-family: 'Geist';
	src: url('https://cdn.jsdelivr.net/npm/@geist/font@1.2.0/woff2/Geist-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Geist Mono';
	src: url('https://cdn.jsdelivr.net/npm/@geist/font@1.2.0/woff2/GeistMono-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/*
Design tokens
*/
:root {
	--bg: #0b0d12;
	--bg-elev: #11141b;
	--text: #e8ecf1;
	--muted: #a4adbb;
	--primary: #6aa2ff;
	--primary-600: #4b86ef;
	--accent: #7ef0d4;
	--card: #121623;
	--border: #223049;
	--success: #38d9a9;
	--warning: #ffd166;
	--danger: #ef6b73;

	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 16px;

	--shadow-sm: 0 2px 12px rgba(0,0,0,.25);
	--shadow-md: 0 6px 24px rgba(0,0,0,.35);
	--shadow-lg: 0 12px 48px rgba(0,0,0,.45);

	--container: 1200px;
}

:root[data-theme="light"] {
	--bg: #ffffff;
	--bg-elev: #f7f8fb;
	--text: #0d1320;
	--muted: #4b5565;
	--primary: #2b6cff;
	--primary-600: #1f55d6;
	--accent: #10b981;
	--card: #ffffff;
	--border: #e5e7eb;
}

* { box-sizing: border-box; }
html { 
	height: 100%; 
	overflow-x: hidden; 
	scrollbar-gutter: stable;
}
body {
	margin: 0;
	min-height: 100vh;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	scrollbar-gutter: stable;
	background: var(--bg);
	color: var(--text);
	font-family: Geist, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: 0.005em;
	display: flex;
	flex-direction: column;
}
main { flex-grow: 1; width: 100%; }

/* Typography */
.display {
	font-family: Geist, ui-sans-serif, system-ui;
	font-weight: 700;
	font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
	line-height: 1.12;
	letter-spacing: -0.005em;
	margin: 0 0 12px 0;
}
.lead {
	font-size: clamp(1rem, .4vw + .9rem, 1.15rem);
	color: var(--muted);
	margin: 0 0 20px 0;
}
.section-title { font-size: 1.65rem; margin: 0 0 20px; letter-spacing: 0.01em; }
.section { padding: 64px 0; }

/* Layout */
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1.1fr .9fr; align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 92%, black 8%); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.1) blur(6px); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { height: 50px; width: auto; max-width: 250px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1.05rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: color-mix(in oklab, var(--card) 60%, transparent); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); }
.mobile-drawer { display: none; }
.mobile-drawer.open { display: block; }
@media (max-width: 960px) {
	.nav { display: none; }
	.mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
	.mobile-drawer { display: none; position: fixed; inset: 64px 0 0 0; background: var(--bg); padding: 16px; border-top: 1px solid var(--border); }
	.mobile-drawer.open { display: block; }
	.mobile-drawer a { display: block; color: var(--text); text-decoration: none; padding: 12px 8px; border-radius: 8px; }
	.mobile-drawer a:hover { background: color-mix(in oklab, var(--card) 60%, transparent); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 12px 16px; border-radius: 10px; font-weight: 600; transition: transform .04s ease, box-shadow .2s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost { background: color-mix(in oklab, var(--card) 40%, transparent); color: var(--text); }

/* Hero */
.hero { position: relative; }
.hero__media { display: grid; place-items: center; }
.hero-art { width: 100%; max-width: 560px; filter: drop-shadow(0 10px 60px rgba(0,0,0,.45)); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.trust { margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* Cards */
.cards { margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); }
.card h3 { margin: 8px 0 12px; font-size: 1.25rem; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; letter-spacing: 0.005em; }

/* Metrics */
.metric-cards { margin-top: 4px; }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.metric__value { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.metric__label { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.disclaimer { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* Bands */
.band { background: linear-gradient(0deg, color-mix(in oklab, var(--card) 80%, transparent), transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 96%, black 4%); padding: 28px 0; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; }
.footer-col h4, .footer-col .brand { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; }
.footer-col .brand { display: flex; align-items: center; gap: 0; color: var(--text); text-decoration: none; }
.footer-col .brand img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.footer-col a, .footer-col p { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; font-size: 0.9rem; letter-spacing: 0.005em; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; color: var(--muted); font-size: 0.85rem; border-top: 1px dashed var(--border); margin-top: 12px; flex-wrap: wrap; }
.footer-bottom span { word-wrap: break-word; max-width: 100%; }
@media (max-width: 960px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Page utility */
.page-hero { padding: 48px 0 20px; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--card) 50%, transparent); }
.breadcrumbs { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: color-mix(in oklab, var(--card) 90%, transparent); font-weight: 600; }

/* Forms */
.input { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); width: 100%; }
.label { display: block; margin: 8px 0 6px; color: var(--muted); }

/* Animations */
.fade-in { animation: fadein .6s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
