/* devboss public chrome + product landing (phosphor-adjacent, light/dark) */

:root, [data-theme="dark"] {
	color-scheme: dark;
	--bg: #0a0f0a;
	--panel: #0d160d;
	--panel-hi: #10240f;
	--green: #33ff66;
	--green-dim: #1d9940;
	--green-faint: #114422;
	--blue: #3a6ea5;
	--blue-bright: #57a8ff;
	--amber: #ffbf3f;
	--text: #c8e6c9;
	--text-hi: #e2f5e3;
	--muted: #6f9f77;
	--hairline: rgba(51, 255, 102, 0.18);
	--scanline: rgba(0, 0, 0, 0.22);
	--radial: rgba(51, 255, 102, 0.07);
	--panel-shadow: 0 0 40px rgba(51, 255, 102, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.5);
	--ts-green: 0 0 12px rgba(51, 255, 102, 0.55);
	--ts-green-h1: 0 0 14px rgba(51, 255, 102, 0.4);
	--ts-lane: 0 0 8px rgba(51, 255, 102, 0.6);
	--ts-ship: 0 0 10px rgba(255, 191, 63, 0.65);
	--btn-fg: #0a0f0a;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f4efe3;
	--panel: #fffdf7;
	--panel-hi: #f3ebda;
	--green: #0d6b2e;
	--green-dim: #1f7a3c;
	--green-faint: #c5ddc8;
	--blue: #2a5688;
	--blue-bright: #185696;
	--amber: #b56a08;
	--text: #1c2e20;
	--text-hi: #0d1a11;
	--muted: #5a6f5e;
	--hairline: rgba(13, 107, 46, 0.16);
	--scanline: rgba(90, 70, 30, 0.035);
	--radial: rgba(13, 107, 46, 0.05);
	--panel-shadow: 0 1px 2px rgba(40, 30, 10, 0.04), 0 6px 22px rgba(40, 30, 10, 0.07);
	--ts-green: none;
	--ts-green-h1: none;
	--ts-lane: none;
	--ts-ship: none;
	--btn-fg: #fffdf7;
}

* { box-sizing: border-box; }

/* Headings use a clean sans instead of the mono body face */
.db-hero h1,
.db-section h2,
.step h3,
.feature h3,
.ui.center.aligned.basic.segment h1 {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { background: var(--bg); }
body.db-body,
body {
	margin: 0;
	font-family: "DejaVu Sans Mono", "Cascadia Mono", Consolas, Menlo, ui-monospace, monospace;
	background:
		repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at 50% -10%, var(--radial), transparent 60%),
		var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 16px;
	min-height: 100vh;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.mut { color: var(--muted); }
.b { color: var(--green); }

/* Top bar */
.db-top {
	border-bottom: 1px solid var(--hairline);
	padding: 14px 0;
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(8px);
}
.db-top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.db-logo {
	color: var(--green);
	font-weight: bold;
	font-size: 20px;
	letter-spacing: 1px;
	text-decoration: none;
	text-shadow: var(--ts-green);
}
.db-logo .cursor { animation: db-blink 1.1s steps(1) infinite; }
@keyframes db-blink { 50% { opacity: 0; } }
.db-nav { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.db-nav-link {
	color: var(--text);
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.04em;
}
.db-nav-link:hover { color: var(--green); }
.db-nav-link.mut { color: var(--muted); }
.db-nav-cta {
	border: 1px solid var(--green-dim);
	padding: 6px 12px;
	color: var(--green);
}
.db-nav-cta:hover { background: color-mix(in srgb, var(--green) 12%, transparent); }

/* Theme toggle (site chrome; same control as ops boards) */
.theme-toggle {
	background: var(--panel);
	border: 1px solid var(--hairline);
	border-radius: 3px;
	color: var(--text);
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.08em;
	padding: 5px 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green-dim); }
.theme-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.theme-toggle .tt-icon { font-size: 13px; line-height: 1; color: var(--amber); }
.theme-toggle .tt-label { font-weight: bold; color: var(--text-hi); }

/* Web push control (ops hub chrome; mirrors ops boards) */
.push-ctl {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 11px;
	letter-spacing: 0.08em;
}
.push-lab { color: var(--muted); font-weight: bold; }
.push-client {
	background: var(--panel);
	border: 1px solid var(--hairline);
	border-radius: 3px;
	color: var(--text-hi);
	font: inherit;
	font-size: 11px;
	padding: 4px 6px;
	max-width: 12rem;
}
.push-btn {
	background: var(--panel);
	border: 1px solid var(--hairline);
	border-radius: 3px;
	color: var(--text);
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.08em;
	padding: 5px 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.push-btn:hover:not(:disabled) { color: var(--green); border-color: var(--green-dim); }
.push-btn.on { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.push-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.push-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.push-btn .push-icon { font-size: 13px; line-height: 1; color: var(--amber); }
.push-btn .push-label { font-weight: bold; color: var(--text-hi); }
.push-hint { color: var(--muted); font-size: 11px; letter-spacing: 0; max-width: 18rem; }

.db-main { min-height: 50vh; }

/* Landing */
.db-hero { padding: 48px 20px 36px; }
.db-hero h1 {
	color: var(--green);
	font-size: clamp(1.6rem, 3.4vw, 2.1rem);
	line-height: 1.25;
	font-weight: 700;
	text-shadow: var(--ts-green-h1);
	margin: 0 0 18px;
}
.db-hero .lede { font-size: 1.1rem; color: var(--text-hi); max-width: 66ch; }
.db-hero p { margin: 0 0 14px; max-width: 66ch; }

.hero-board {
	background: var(--panel);
	border: 1px solid var(--hairline);
	box-shadow: var(--panel-shadow);
	padding: 22px 18px;
	margin: 28px 0 8px;
	overflow-x: auto;
}
.hero-board pre {
	font-size: 13px;
	line-height: 1.45;
	color: var(--green-dim);
	white-space: pre;
	margin: 0;
	font-family: inherit;
}
.hero-board .axis { color: var(--muted); }
.hero-board .lane { color: var(--green); text-shadow: var(--ts-lane); }
.hero-board .idle { color: var(--green-faint); }
.hero-board .ship { color: var(--amber); text-shadow: var(--ts-ship); }
.hero-board .cap { color: var(--amber); opacity: 0.75; }
.caption { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.db-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.db-btn.ui.button,
.ui.primary.button.db-btn {
	background: var(--green) !important;
	color: var(--btn-fg) !important;
	font-family: inherit;
	font-weight: 600;
	border-radius: 2px;
}
.db-btn-ghost.ui.button {
	font-family: inherit;
	border-color: var(--hairline) !important;
	color: var(--text) !important;
}

.db-section {
	padding: 40px 20px;
	border-top: 1px solid var(--hairline);
}
.db-section h2 {
	color: var(--green);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 18px;
}
.db-section h2::before { content: "## "; color: var(--green-dim); }
.db-section > p { max-width: 66ch; margin: 0 0 14px; }

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 8px;
}
.step {
	background: var(--panel);
	border: 1px solid var(--hairline);
	padding: 18px;
}
.step .n { color: var(--blue-bright); font-size: 22px; font-weight: bold; }
.step h3 { color: var(--text-hi); font-size: 16px; font-weight: 600; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }

.diffs { list-style: none; margin: 8px 0 0; padding: 0; }
.diffs li {
	padding: 12px 0 12px 34px;
	position: relative;
	border-bottom: 1px dashed var(--hairline);
	max-width: 70ch;
}
.diffs li:last-child { border-bottom: none; }
.diffs li::before {
	content: "▲";
	position: absolute;
	left: 6px;
	color: var(--amber);
}
.diffs b { color: var(--text-hi); }

/* Feature cards stand in for the old public demos listing */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 12px 0 8px;
}
.feature {
	background: var(--panel);
	border: 1px solid var(--hairline);
	border-left: 3px solid var(--blue);
	padding: 14px 16px;
}
.feature h3 {
	color: var(--text-hi);
	font-size: 16px;
	font-weight: 600;
	margin: 4px 0 6px;
}
.feature p { margin: 0; font-size: 13px; }
.feature-tag {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-bright);
}

/* Footer */
.db-foot {
	border-top: 1px solid var(--hairline);
	padding: 28px 0 44px;
	color: var(--muted);
	font-size: 13px;
	margin-top: 1rem;
}
.db-foot-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.db-foot a { color: var(--muted); text-decoration: none; }
.db-foot a:hover { color: var(--green); }

/* Core/account pages borrowed through this head */
.ui.center.aligned.basic.segment {
	padding: 2rem 1rem 3rem;
	color: var(--text);
}
.ui.center.aligned.basic.segment h1 { color: var(--green); }

/* Ops hub: project cards (/ops/) */
.db-projects { padding: 2.5rem 0 1rem; }
.db-proj-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.db-proj-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background: var(--panel);
	border: 1px solid var(--hairline);
	border-radius: 8px;
	box-shadow: var(--panel-shadow);
	text-decoration: none;
	color: var(--text);
	transition: border-color 120ms ease, transform 120ms ease;
}
.db-proj-card:hover {
	border-color: var(--green-dim);
	transform: translateY(-1px);
}
.db-proj-name {
	color: var(--green);
	font-size: 18px;
	font-weight: 700;
	text-shadow: var(--ts-green);
}
.db-proj-meta { color: var(--muted); font-size: 12.5px; }
.db-proj-live {
	color: var(--amber);
	text-shadow: var(--ts-ship);
}
.db-proj-live::before { content: "\25CF "; }
.db-proj-cta { color: var(--green-dim); font-size: 13px; margin-top: auto; }
.db-proj-card:hover .db-proj-cta { color: var(--green); }
.db-proj-all { border-style: dashed; }

@media (prefers-reduced-motion: reduce) {
	.db-logo .cursor { animation: none; }
	.db-proj-card { transition: none; }
}
