/* ==========================================================================
   AI Labs . Lat — shared theme
   Aesthetic ported from omc-control-room-landing.html:
   dark surface, Inter type, blue/teal accents, soft cards, subtle grid.
   ========================================================================== */

:root {
	--bg: #0a0c10;
	--bg-elevated: #11141a;
	--bg-card: #161a22;
	--bg-card-hover: #1c212b;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.14);
	--text: #f0f2f5;
	--text-muted: #9aa3b2;
	--text-dim: #6b7280;
	--accent: #3b82f6;
	--accent-soft: rgba(59, 130, 246, 0.15);
	--accent-glow: rgba(59, 130, 246, 0.35);
	--teal: #14b8a6;
	--teal-soft: rgba(20, 184, 166, 0.15);
	--purple: #8b5cf6;
	--green: #22c55e;
	--orange: #f59e0b;
	--red: #ef4444;
	--radius: 16px;
	--radius-sm: 10px;
	--container: 960px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Base ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	min-height: 100vh;
}

/* Subtle grid background */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 64px 64px;
	pointer-events: none;
	z-index: 0;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #93c5fd; opacity: 1; }

/* ── Nav / header ─────────────────────────────────────── */
header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 64px;
	max-width: none;
	margin: 0;
	padding: 0 max(24px, calc((100vw - var(--container)) / 2));
	background: rgba(10, 12, 16, 0.8);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

header h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

header h1 a { color: var(--text); }
header h1 a:hover { color: var(--text); }

/* Gradient logo mark */
header h1::before {
	content: '';
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #14b8a6);
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 2px 10px rgba(59, 130, 246, 0.35);
}

/* Site nav */
.site-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
}

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

/* Language selector */
.lang-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	font-family: var(--font);
}

.lang-switcher button {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-dim);
	padding: 0;
	font: inherit;
	letter-spacing: 0.06em;
	transition: color 0.2s;
}

.lang-switcher button:hover { color: var(--text); opacity: 1; }
.lang-switcher button.active { color: var(--text); }
.lang-divider { color: var(--border-strong); }

@media (max-width: 560px) {
	header { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
	.site-nav { order: 3; width: 100%; }
}

/* ── Main / footer shells ─────────────────────────────── */
main {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 64px 24px 96px;
	position: relative;
	z-index: 1;
	min-height: 60vh;
}

footer {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 40px 24px;
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--text-dim);
}

footer p { color: var(--text-dim); }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.7rem 1.25rem;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	font-family: inherit;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--border-strong);
	color: var(--text);
	opacity: 1;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border: 1px solid rgba(59, 130, 246, 0.4);
	color: #ffffff;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border-color: rgba(59, 130, 246, 0.5);
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 8px 24px rgba(59, 130, 246, 0.35);
}

/* ── Hero (index + projects) ──────────────────────────── */
.hero {
	padding-bottom: 48px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 56px;
}

.hero h2 {
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	background: linear-gradient(135deg, #f0f2f5 20%, #93c5fd);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero p {
	margin-top: 14px;
	font-size: 1.15rem;
	color: var(--text-muted);
	line-height: 1.7;
	max-width: 640px;
}

/* ── Section labels ───────────────────────────────────── */
.use-cases-label,
.projects-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 28px;
}

/* ── Use-case cards (index) ───────────────────────────── */
.use-case-group {
	margin-bottom: 16px;
	padding: 26px 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	transition: border-color 0.2s, background 0.2s;
}

.use-case-group:hover {
	border-color: var(--border-strong);
	background: var(--bg-card-hover);
}

.use-case-group h4 {
	font-size: 1.1rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
	color: var(--text);
}

.use-case-group p {
	font-size: 0.98rem;
	color: var(--text-muted);
	line-height: 1.65;
}

/* ── Project cards (projects) ─────────────────────────── */
.project-entry {
	margin-bottom: 16px;
	padding: 26px 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.project-entry:hover {
	border-color: rgba(59, 130, 246, 0.3);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.project-entry-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 8px;
}

.project-entry h3 {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.project-status {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #93c5fd;
	background: var(--accent-soft);
	border: 1px solid rgba(59, 130, 246, 0.25);
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.project-entry p {
	font-size: 0.98rem;
	color: var(--text-muted);
	line-height: 1.65;
	margin-bottom: 14px;
}

.project-link {
	font-size: 0.85rem;
	font-weight: 600;
	color: #93c5fd;
}

.project-link:hover { color: #bfdbfe; }

/* ── Contact section (index) ──────────────────────────── */
#contact {
	max-width: var(--container);
	margin: 0 auto;
	padding: 64px 24px;
	border-top: 1px solid var(--border);
	position: relative;
	z-index: 1;
}

#contact > p:first-child {
	font-size: 1.15rem;
	color: var(--text);
	margin-bottom: 4px;
}

#contact .contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin-top: 1.75rem;
}

@media (max-width: 600px) {
	#contact .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

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

.contact-details { list-style: none; }
.contact-details li { margin-bottom: 1.25rem; }

.contact-details h3 {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.25rem;
	font-weight: 700;
	color: var(--text-dim);
}

.contact-details a { font-size: 1.05rem; color: var(--text-muted); }
.contact-details a:hover { color: var(--text); }

/* ── Project detail pages ─────────────────────────────── */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-dim);
	margin-bottom: 40px;
	transition: color 0.2s;
}

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

.page-hero {
	padding-bottom: 40px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 8px;
}

.page-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #93c5fd;
	background: var(--accent-soft);
	border: 1px solid rgba(59, 130, 246, 0.25);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.page-title {
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin-bottom: 14px;
}

.page-subtitle {
	font-size: 1.2rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.one-liner {
	border-left: 3px solid var(--accent);
	padding: 18px 0 18px 28px;
	margin: 40px 0;
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--text);
}

/* ── Pitch sections ───────────────────────────────────── */
.pitch-section {
	margin-bottom: 16px;
	padding: 28px 32px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	transition: border-color 0.2s, background 0.2s;
}

.pitch-section:hover {
	border-color: var(--border-strong);
	background: var(--bg-card-hover);
}

.pitch-meta {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 14px;
}

.pitch-number {
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--accent);
	min-width: 2rem;
}

.pitch-heading {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}

.pitch-body {
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.75;
}

.pitch-body p { margin-bottom: 0.75rem; }
.pitch-body p:last-child { margin-bottom: 0; }
.pitch-body strong { color: var(--text); font-weight: 650; }

/* ── Lists ────────────────────────────────────────────── */
.bullet-list { list-style: none; margin: 0.6rem 0; }

.bullet-list li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.5rem;
	font-size: 0.98rem;
	color: var(--text-muted);
	line-height: 1.65;
}

.bullet-list li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.85;
}

.bullet-list li strong { color: var(--text); font-weight: 650; }

/* Numbered steps */
.steps-list {
	list-style: none;
	margin: 0.75rem 0;
	counter-reset: step-counter;
}

.steps-list li {
	counter-increment: step-counter;
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin-bottom: 0.7rem;
	font-size: 0.98rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.steps-list li::before {
	content: counter(step-counter);
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #3b82f6, #14b8a6);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

/* ── KPI highlight ────────────────────────────────────── */
.kpi-box {
	display: inline-block;
	border: 1px solid rgba(59, 130, 246, 0.3);
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
	padding: 0.85rem 1.25rem;
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--text);
}

.kpi-box strong {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #93c5fd;
	margin-bottom: 0.25rem;
}

/* ── Phase / column blocks ────────────────────────────── */
.phase-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	margin-top: 1rem;
}

.phase-block {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	border-radius: var(--radius-sm);
	padding: 1.25rem;
}

.phase-block h4,
.col-block h4 {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--text);
}

.phase-block ul,
.col-block ul { list-style: none; }

.phase-block ul li,
.col-block ul li {
	font-size: 0.92rem;
	color: var(--text-muted);
	padding-left: 1rem;
	position: relative;
	margin-bottom: 0.4rem;
	line-height: 1.55;
}

.phase-block ul li::before,
.col-block ul li::before {
	content: '·';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

.two-col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-top: 1rem;
}

@media (max-width: 600px) {
	.two-col { grid-template-columns: 1fr; }
}

.col-block {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	border-radius: var(--radius-sm);
	padding: 1.25rem;
}

/* ── Roadmap ──────────────────────────────────────────── */
.roadmap-list { list-style: none; margin: 0.5rem 0; }

.roadmap-list li {
	display: flex;
	gap: 1.5rem;
	align-items: baseline;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.98rem;
	color: var(--text-muted);
}

.roadmap-list li:last-child { border-bottom: none; }

.roadmap-period {
	font-family: var(--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: #93c5fd;
	min-width: 8rem;
	flex-shrink: 0;
}

/* ── Ask / raise ──────────────────────────────────────── */
.raise-amount {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 1rem 0 0.5rem;
	background: linear-gradient(135deg, #60a5fa, #34d399);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.funds-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.funds-item {
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--bg-elevated);
	padding: 1rem 1.25rem;
}

.funds-item h4 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	margin-bottom: 0.4rem;
	color: #93c5fd;
}

.funds-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ── Property image ───────────────────────────────────── */
.property-img {
	width: 100%;
	display: block;
	margin: 1.5rem 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.img-caption {
	font-size: 0.85rem;
	color: var(--text-dim);
	letter-spacing: 0.02em;
}

/* ── Closing ──────────────────────────────────────────── */
.closing-block {
	border-top: 1px solid var(--border);
	padding-top: 3rem;
	margin-top: 4rem;
}

.closing-block h3 {
	font-size: clamp(1.4rem, 4vw, 2rem);
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.closing-block p { font-size: 1.1rem; color: var(--text-muted); }

/* ── Investment form block ────────────────────────────── */
.invest-block {
	border-top: 1px solid var(--border);
	padding-top: 3rem;
	margin-top: 4rem;
}

.invest-block p {
	font-size: 1.15rem;
	color: var(--text);
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.invest-block iframe {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #ffffff;
}

/* ── Embeds ───────────────────────────────────────────── */
.video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
