/* Shared styles for the landing (index.html) and technical (tech.html) pages.
   The app itself uses style.css. Same tokens, editorial layout. */
:root {
	--bg: #050505;
	--surface: #0e0e11;
	--surface-2: #16161b;
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.18);
	--text: #f4f4f6;
	--muted: #b8b8c4;
	--primary: #6366f1;
	--primary-2: #818cf8;
	--accent: #10b981;
	--warn: #f59e0b;
	--danger: #ef4444;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--radius: 18px;
	--max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code {
	background: var(--surface-2);
	border: 1px solid var(--line);
	padding: 0.1em 0.4em;
	border-radius: 6px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* ---------- nav ---------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(5, 5, 5, 0.75);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
	display: flex; align-items: center; gap: 10px;
	color: var(--text); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { color: var(--primary); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.93rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px; border-radius: 12px;
	font-weight: 650; font-size: 1rem; color: var(--text);
	border: 1px solid var(--line-strong);
	background: var(--surface-2);
	transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: #1d1d24; }
.btn.primary {
	background: linear-gradient(135deg, var(--primary), #4f46e5);
	border-color: transparent; color: #fff;
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4), 0 10px 40px -10px rgba(99, 102, 241, 0.7);
}
.btn.small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- type ---------- */
.kicker {
	font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--primary-2); margin-bottom: 18px;
}
h1 {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 1.02; letter-spacing: -0.045em; font-weight: 850;
}
h2 {
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
	margin-bottom: 18px; max-width: 22ch;
}
h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.lede strong, p strong { color: var(--text); }
.grad {
	background: linear-gradient(100deg, #fff 10%, var(--primary-2) 60%, var(--accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.strike { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 3px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; position: relative; }
.hero::before {
	content: ""; position: absolute; inset: -200px 0 auto 0; height: 700px; z-index: -1;
	background: radial-gradient(600px 300px at 70% 30%, rgba(99, 102, 241, 0.22), transparent 70%),
	            radial-gradient(500px 260px at 20% 10%, rgba(16, 185, 129, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .lede { margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.no-list {
	display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px;
	font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
}
.no-list span::before { content: "✕ "; color: var(--danger); }
.hero-art { width: 100%; height: auto; aspect-ratio: 520 / 400; display: block; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 480px; margin: 0 auto; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	position: relative;
}
.card p { color: var(--muted); }
.card .ico {
	width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; margin-bottom: 18px;
	background: rgba(99, 102, 241, 0.12); color: var(--primary-2);
}
.card .ico.green { background: rgba(16, 185, 129, 0.12); color: var(--accent); }
.card .ico.amber { background: rgba(245, 158, 11, 0.12); color: var(--warn); }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.card li { font-size: 0.94rem; color: var(--muted); padding-left: 18px; position: relative; }
.card li::before { content: "→"; position: absolute; left: 0; color: var(--primary-2); }
.card .go { display: inline-block; margin-top: 20px; font-weight: 650; }
.mode-card { display: flex; flex-direction: column; }
.mode-card .go { margin-top: auto; padding-top: 20px; }
.tag {
	display: inline-block; font-family: var(--mono); font-size: 0.72rem;
	letter-spacing: 0.08em; text-transform: uppercase;
	padding: 3px 8px; border-radius: 6px; margin-bottom: 14px;
	background: rgba(16, 185, 129, 0.12); color: var(--accent);
}

/* ---------- featured use case ---------- */
.feature {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0;
	border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden;
	background: linear-gradient(180deg, #0f0f16, #0a0a0d);
	margin-bottom: 18px;
}
.feature > div { padding: 40px; }
.feature .steps-col { background: rgba(255, 255, 255, 0.02); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .steps-col { border-left: none; border-top: 1px solid var(--line); } .feature > div { padding: 28px; } }
ol.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
ol.steps li strong { color: var(--text); }
ol.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0;
	width: 28px; height: 28px; border-radius: 8px;
	display: grid; place-items: center;
	font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
	background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
}
.note {
	margin-top: 24px; padding: 14px 16px; border-radius: 12px;
	border: 1px solid rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.07);
	color: #f3d9a8; font-size: 0.92rem;
}

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
.how > div { padding: 0 28px 0 0; }
.how .n { font-family: var(--mono); font-size: 3rem; font-weight: 800; color: var(--surface-2); -webkit-text-stroke: 1px var(--line-strong); line-height: 1; margin-bottom: 14px; }
.how p { color: var(--muted); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- manifesto ---------- */
.manifesto { background: radial-gradient(800px 300px at 50% 0%, rgba(99, 102, 241, 0.1), transparent 70%); }
.manifesto blockquote {
	font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3;
	letter-spacing: -0.02em; font-weight: 700; max-width: 30ch;
}
.manifesto blockquote em { font-style: normal; color: var(--primary-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.facts div { border-top: 2px solid var(--primary); padding-top: 14px; }
.facts b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- honesty / limits ---------- */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 32px; }
.limits div { padding: 18px 0; border-bottom: 1px dashed var(--line-strong); }
.limits b { display: block; margin-bottom: 4px; }
.limits span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary {
	cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none;
	display: flex; justify-content: space-between; gap: 20px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--primary-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; max-width: 72ch; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final h2 { margin: 0 auto 16px; }
.final .lede { margin: 0 auto 32px; }
.final .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .sp { margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- tech page ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.9rem; }
.toc p { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--primary); text-decoration: none; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; display: none; } }
.prose { min-width: 0; }
.prose > section { padding: 0 0 56px; border-top: none; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.7rem; max-width: none; margin-bottom: 14px; padding-top: 12px; scroll-margin-top: 88px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: #c9c9d3; max-width: 74ch; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 0 22px; display: grid; gap: 6px; }
.prose pre {
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
	padding: 18px 20px; overflow-x: auto; margin: 18px 0; font-size: 0.86rem; line-height: 1.55;
	color: #d6d6e0;
}
.prose pre .c { color: #6b6b7b; }
.prose pre .k { color: var(--primary-2); }
.prose pre .s { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: none; }
td:first-child { white-space: nowrap; }
.diagram { margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.diagram svg { width: 100%; height: auto; display: block; }
.callout { margin: 20px 0; padding: 16px 18px; border-left: 3px solid var(--primary); background: rgba(99, 102, 241, 0.07); border-radius: 0 12px 12px 0; }
.callout p { margin: 0; }
.gh-card {
	display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-top: 18px;
	border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--text);
}
.gh-card:hover { text-decoration: none; border-color: var(--primary); }
.gh-card b { display: block; font-size: 1.1rem; }
.gh-card span { color: var(--muted); font-size: 0.92rem; }
.gh-card .arrow { margin-left: auto; color: var(--primary-2); font-size: 1.4rem; }

/* ---------- language switch (EN <-> FR page) ---------- */
.nav-links a.lang-switch {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	padding: 4px 9px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	color: var(--muted);
}
.nav-links a.lang-switch:hover { color: var(--text); border-color: var(--muted); }
