/* thenomadops — Control Room
   One dark console world, one amber accent. Long-form copy uses Plex Sans for readability;
   labels, readouts and data use Plex Mono; Unbounded is the display face, used sparingly. */

:root {
	--bg: #0b0d10;
	--bg-raise: #111316;
	--panel: rgba(18, 18, 16, 0.82);
	--line: #2a2a26;
	--line-strong: #3a372f;
	--fg: #e9e4d8;
	--fg-dim: #b9b2a2;
	--fg-mute: #8f8878;
	--amber: #ffb547;
	--amber-soft: rgba(255, 181, 71, 0.12);
	--warm: #16130e;

	--f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--shell: 1160px;
	--gutter: clamp(16px, 4vw, 40px);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 17px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.shell {
	max-width: var(--shell);
	margin: 0 auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar {
	position: sticky; top: 0; z-index: 20;
	background: rgba(11, 13, 16, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	font-family: var(--f-mono);
	font-size: 13px;
}
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--amber); text-decoration: none; font-weight: 600; letter-spacing: 0.06em; }
.topbar nav { margin-left: auto; }
.topbar ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar nav a { color: var(--fg-dim); text-decoration: none; }
.topbar nav a:hover { color: var(--fg); }
@media (max-width: 720px) {
	.topbar nav { display: none; }
	.topbar .btn-sm { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 14px/1 var(--f-mono);
	padding: 13px 18px;
	border-radius: 4px;
	border: 1px solid var(--amber);
	background: var(--amber);
	color: var(--bg);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 181, 71, 0.25); }
.btn-ghost { background: transparent; color: var(--amber); }
.btn-ghost:hover { background: var(--amber-soft); box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 18px 26px; font-size: 16px; }

/* ---------- Shared type ---------- */
.eyebrow {
	font: 600 12px/1.4 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--amber);
	margin-bottom: 14px;
}
.tag {
	font: 400 11.5px/1.4 var(--f-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-mute);
	margin-bottom: 8px;
}
h2 {
	font: 700 clamp(28px, 4vw, 44px)/1.08 var(--f-display);
	letter-spacing: -0.02em;
}
h3 { font: 600 19px/1.3 var(--f-body); }
.section-lede { color: var(--fg-dim); max-width: 62ch; margin-top: 14px; font-size: 18px; }
.amber { color: var(--amber); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero h1 {
	font: 800 clamp(34px, 4.8vw, 62px)/1.02 var(--f-display);
	letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.lede { color: var(--fg-dim); max-width: 56ch; margin-top: 20px; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.readout {
	border: 1px solid var(--line);
	background: var(--panel);
	border-radius: 6px;
	padding: 18px;
	font: 400 12px/1.5 var(--f-mono);
	color: var(--fg-mute);
}
.readout-head { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.rps {
	font: 700 clamp(36px, 4.4vw, 54px)/1 var(--f-display);
	color: var(--amber);
	font-variant-numeric: tabular-nums;
	margin: 14px 0 6px;
}
.nodes { display: flex; gap: 6px; margin-top: 16px; }
.nodes i { flex: 1; height: 34px; border: 1px solid var(--line-strong); border-radius: 3px; position: relative; overflow: hidden; }
.nodes i::after { content: ""; position: absolute; inset: auto 0 0 0; height: var(--h, 82%); background: var(--amber); opacity: 0.85; transition: height 0.5s ease; }
.nodes i.lead { border-color: var(--amber); }
.readout-foot { display: flex; justify-content: space-between; margin-top: 12px; }

.strip {
	list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.strip li { background: var(--bg-raise); padding: 18px; color: var(--fg-dim); font-size: 15px; }
.strip b { display: block; color: var(--fg); font: 600 13px/1.4 var(--f-mono); margin-bottom: 6px; letter-spacing: 0.04em; }

@media (max-width: 820px) {
	.hero-in { grid-template-columns: 1fr; }
	.strip { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.section-warm { background: radial-gradient(ellipse at 20% 0%, rgba(255, 181, 71, 0.08), transparent 60%), var(--warm); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.card, .why {
	background: var(--bg-raise);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 22px;
	display: grid; gap: 10px; align-content: start;
}
.card p:not(.tag), .why p { color: var(--fg-dim); font-size: 16px; }
.grid-why { margin-top: 36px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

/* Feature: load-testing platform */
.feature {
	margin-top: 40px;
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	border: 1px solid var(--amber);
	border-radius: 6px;
	background: linear-gradient(135deg, rgba(255, 181, 71, 0.07), transparent 55%), var(--bg-raise);
}
.feature-copy { padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.feature-copy h3 { font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--f-display); letter-spacing: -0.01em; }
.feature-copy p:not(.tag) { color: var(--fg-dim); }
.feature-copy .tag { color: var(--amber); margin-bottom: 0; }
.feature .note { font: 400 12.5px/1.5 var(--f-mono); color: var(--fg-mute) !important; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
.stats div { padding: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: center; }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:nth-last-child(-n+2) { border-bottom: 0; }
.stats dt { font: 400 11px/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.stats dd { margin: 0; font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--f-display); color: var(--amber); font-variant-numeric: tabular-nums; }
.stats small { font: 400 12px var(--f-mono); color: var(--fg-dim); }
@media (max-width: 820px) {
	.feature { grid-template-columns: 1fr; }
	.stats { border-left: 0; border-top: 1px solid var(--line); }
}

/* Websites */
.checks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 900px; }
.checks li { position: relative; padding-left: 30px; font-size: 18px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }

/* How it works — a real sequence, so it's numbered */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 22px 18px; color: var(--fg-dim); font-size: 15px; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: "0" counter(step); font: 700 26px/1 var(--f-display); color: var(--amber); }
.steps b { color: var(--fg); font-weight: 600; font-size: 17px; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; }
	.steps li { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 52px minmax(0, 1fr); }
	.steps li:last-child { border-bottom: 0; }
	.steps li::before { grid-row: span 2; }
}

/* Templates */
.grid-tpl { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.tpl { border-radius: 6px; padding: 22px; min-height: 200px; display: grid; gap: 8px; align-content: end; position: relative; overflow: hidden; border: 1px solid var(--line); }
.tpl p { color: inherit; opacity: 0.85; font-size: 15px; }
.tpl h3 { font: 700 22px/1.1 var(--f-display); }
.soon { position: absolute; top: 16px; left: 22px; font: 600 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; background: rgba(0, 0, 0, 0.35); color: #fff; }
.tpl-trail { background: repeating-radial-gradient(ellipse at 80% 10%, transparent 0 18px, rgba(242, 237, 228, 0.08) 18px 19px), #0e2a2f; color: #f2ede4; }
.tpl-blue {
	background-color: #123a8a; color: #eaf1ff;
	background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 24px 24px;
}
.tpl-own { background: var(--bg-raise); border-style: dashed; border-color: var(--line-strong); color: var(--fg); }
@media (max-width: 820px) { .grid-tpl { grid-template-columns: 1fr; } .tpl { min-height: 160px; } }

/* Book */
.book { background: linear-gradient(180deg, var(--amber-soft), transparent 70%), var(--bg); }
.book-in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.book-actions { display: grid; gap: 14px; justify-items: start; }
.contact { font: 400 14px/1.5 var(--f-mono); color: var(--fg-dim); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about img { border-radius: 6px; border: 1px solid var(--line); filter: saturate(0.9); }
.about p:not(.eyebrow) { color: var(--fg-dim); max-width: 62ch; margin-top: 16px; font-size: 18px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about img { max-width: 260px; } }

/* Footer */
.footer { padding-block: 28px; font: 400 13px/1.5 var(--f-mono); color: var(--fg-mute); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--fg-dim); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dot { animation: none; }
	.btn, .nodes i::after { transition: none; }
}
