/*
 * beServe visual world — "sovereign desk"
 *
 * THESIS: A European desk where a developer keeps AI inside the EU — calm,
 * paper-warm light surface, one deep-blue ink, monospace where data speaks.
 * Refuses the category default of neon-on-black dev-tool cosplay and the
 * gradient-hero SaaS template.
 * OWN-WORLD: warm paper ground (#faf9f6), ink blue-black text (#101d2c),
 * EU flag blue #003399 as the single accent, hairline warm borders,
 * generous whitespace, tabular mono for numbers, rounded-2xl panels,
 * rounded-full buttons. The "be" in beServe is always EU blue.
 * STORY: developer understands in one viewport that inference runs in
 * Europe, migrates in one line, and feels invited rather than sold to.
 * FIRST VIEWPORT: two-column hero — left: display headline + sub + two
 * rounded-full CTAs; right: dark terminal window with a typed migration
 * snippet and a live-styled SSE stream. EU-blue "be" wordmark top-left.
 * FORM: user-pinned direction (ollama.com register, own personality);
 * seed key e0a71568, user brief beats the roll.
 * FINISH: unreviewed and undocumented is unfinished; this build ends with
 * the finish review, the verdict, and DESIGN.md.
 */

:root {
	/* Ground: warm paper, not gray. Light is a choice: this product is
	 * evaluated in daylight offices by calm people, not in a dark IDE. */
	--bg: #faf9f6;
	--bg-deep: #f3f1ec;
	--surface: #ffffff;
	--surface-2: #f5f3ee;
	--ink: #101d2c;
	--ink-soft: #43515f;
	--ink-mute: #5d6875;
	--line: #e4e0d6;
	--accent: #003399;
	--accent-ink: #ffffff;
	--accent-soft: #e8edf8;
	--accent-warm: #c8412b;
	--success: #1a7f4e;
	--success-soft: #e3f2ea;
	--warning: #9a6b1f;
	--warning-soft: #faf0da;
	--danger: #b3322a;
	--danger-soft: #fae7e5;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-pill: 999px;

	/* dark register for code blocks + the dashboard sidebar */
	--code-bg: #101a26;
	--code-ink: #dce6f2;
	--code-dim: #7d8da0;
	--code-accent: #7fa8e8;
}

* { box-sizing: border-box; }

html {
	background: var(--bg);
	color: var(--ink);
	font-family: 'Hanken Grotesk Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body { margin: 0; font-size: 16.5px; }

h1, h2, h3, h4 {
	line-height: 1.12;
	margin: 0 0 0.6em;
	letter-spacing: -0.028em;
	color: var(--ink);
	font-weight: 600;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw + 1rem, 3.9rem); font-weight: 550; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 550; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

code, pre, .mono {
	font-family: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
	font-variant-ligatures: none;
}
code { font-size: 0.86em; }
pre {
	background: var(--code-bg);
	color: var(--code-ink);
	border-radius: var(--radius-lg);
	padding: 1.15rem 1.35rem;
	overflow-x: auto;
	font-size: 0.86rem;
	line-height: 1.65;
}
pre code { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
}
.card-flat {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.72rem 1.5rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 550;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--bg-deep); border-color: #d6d1c4; }
.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
.btn-primary:hover { background: #002a80; border-color: #002a80; }
.btn-danger {
	background: transparent;
	border-color: rgba(179, 50, 42, 0.4);
	color: var(--danger);
}
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 0.42rem 0.95rem; font-size: 0.86rem; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

input, select, textarea {
	width: 100%;
	padding: 0.68rem 0.95rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	transition: border-color 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
label { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 0.35rem; font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
th {
	color: var(--ink-mute);
	font-weight: 550;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}
td.num, th.num { font-family: 'JetBrains Mono Variable', monospace; font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.badge {
	display: inline-block;
	padding: 0.18rem 0.6rem;
	border-radius: var(--radius-pill);
	font-size: 0.74rem;
	font-weight: 600;
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--ink-soft);
}
.badge-ok { color: var(--success); border-color: rgba(26, 127, 78, 0.35); background: var(--success-soft); }
.badge-warn { color: var(--warning); border-color: rgba(154, 107, 31, 0.35); background: var(--warning-soft); }
.badge-err { color: var(--danger); border-color: rgba(179, 50, 42, 0.35); background: var(--danger-soft); }
.badge-eu { color: var(--accent); border-color: rgba(0, 51, 153, 0.3); background: var(--accent-soft); }

.muted { color: var(--ink-mute); }
.error-text { color: var(--danger); font-size: 0.875rem; }
.success-text { color: var(--success); font-size: 0.875rem; }
.grid { display: grid; gap: 1.25rem; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Data speaks in mono, always tabular */
.tabular { font-variant-numeric: tabular-nums; }

::selection { background: rgba(0, 51, 153, 0.14); }