:root {
	--bg: #080605;
	--bg-2: #100c0a;
	--panel: #130e0b;
	--ink: #f1ece9;
	--muted: #9a918a;
	--dim: #5a524c;
	--line: rgba(255, 170, 110, 0.12);
	--line-2: rgba(255, 170, 110, 0.24);
	--acc: #ff7a1a;
	--acc-2: #ffd23f;
	--bad: #ff4d5e;
	--warn: #ffd23f;
	--display: "Archivo", "Arial Black", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--max: 1240px;
	--pad: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--display);
	font-stretch: 100%;
	font-weight: 500;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
::selection { background: var(--acc); color: #000; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* faint CRT scanlines */
.scan {
	position: fixed; inset: 0; z-index: 50; pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}

/* ---------- header ---------- */
.top {
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; gap: 2rem;
	padding: 0.9rem var(--pad);
	background: rgba(8, 6, 5, 0.78);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 900; font-stretch: 112%; letter-spacing: 0.04em; }
.brand b { color: var(--acc); font-weight: 900; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--acc); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: 0.95rem 1.4rem;
	font-family: var(--mono); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	text-decoration: none; color: #140800; background: var(--acc);
	border: 1px solid var(--acc);
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--acc-2); border-color: var(--acc-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--acc); }
.btn-ghost:hover { background: var(--acc); color: #140800; border-color: var(--acc); }
.btn-sm { padding: .6rem 1rem; font-size: .72rem; white-space: nowrap; }
@media (max-width: 420px) { .btn-sm { padding: .55rem .7rem; font-size: .64rem; letter-spacing: .02em; } }

/* ---------- hero ---------- */
.hero {
	position: relative;
	max-width: var(--max); margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 0;
}
.hero-grid {
	position: absolute; inset: -2rem calc(var(--pad) * -2) 0; z-index: -1;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
	content: ""; position: absolute; z-index: -1; left: 50%; top: 18%;
	width: 70vw; height: 40vw; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255,122,26,.16), transparent);
	filter: blur(20px);
}
.kicker { display: flex; align-items: center; gap: .6rem; font-size: .75rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.wordmark {
	display: flex; flex-direction: column;
	margin-top: 1.2rem;
	font-weight: 900; font-stretch: 125%;
	font-size: clamp(3.6rem, 15.5vw, 13.5rem);
	line-height: .82; letter-spacing: -0.02em;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--acc); }
.wordmark .outline { margin-left: clamp(0rem, 8vw, 7rem); }
.wordmark.small { font-size: clamp(2.6rem, 9vw, 7rem); margin: 1rem 0 1.5rem; }
.wordmark.small .outline { margin-left: 0; }

.hero-row {
	display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: end; margin-top: clamp(2rem, 5vw, 3.5rem);
}
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- panels / terminal ---------- */
.panel {
	position: relative;
	background: linear-gradient(180deg, rgba(255,122,26,.04), transparent 40%), var(--panel);
	border: 1px solid var(--line-2);
	padding: 0;
	box-shadow: 0 30px 80px -40px rgba(255,122,26,.35);
}
.panel::before, .panel::after {
	content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--acc);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel-head {
	display: flex; justify-content: space-between; gap: 1rem;
	padding: .7rem 1rem; font-size: .72rem; color: var(--muted);
	border-bottom: 1px solid var(--line);
}
.live { color: var(--acc); }
.live::before { content: "● "; animation: pulse 1.2s infinite; }
.panel-foot { padding: .55rem 1rem; font-size: .64rem; color: var(--dim); border-top: 1px solid var(--line); display: block; }

.log { padding: .8rem 1rem; font-size: .76rem; min-height: 13.2rem; }
.log li { display: grid; grid-template-columns: 5.2rem 1rem 1fr; gap: .4rem; padding: .16rem 0; animation: in .35s ease-out; white-space: nowrap; overflow: hidden; }
.log time { color: var(--dim); }
.log span { overflow: hidden; text-overflow: ellipsis; color: #d3cbc6; }
.log .ok b { color: var(--acc); }
.log .warn b { color: var(--warn); }
.log .bad b, .log .bad span { color: var(--bad); }
.log .i b { color: var(--dim); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- ticker ---------- */
.ticker {
	display: flex; flex-wrap: wrap; gap: .6rem 2rem;
	margin-top: clamp(3rem, 7vw, 5rem); padding: 1.1rem 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	font-size: .74rem; color: var(--muted);
}
.ticker li::before { content: "+ "; color: var(--acc); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--pad) 0; }
.sec-label { font-size: .78rem; color: var(--acc); margin-bottom: 1.8rem; display: flex; align-items: center; gap: .6rem; }
.sec-label i { font-style: normal; color: var(--dim); }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.big { font-weight: 900; font-stretch: 118%; font-size: clamp(2.4rem, 6.5vw, 5.2rem); line-height: .92; letter-spacing: -.01em; margin-bottom: 2.6rem; text-transform: uppercase; }
.statement { font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.18; font-weight: 700; font-stretch: 92%; max-width: 30ch; }
.statement.small { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h3 { font-weight: 900; font-stretch: 110%; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .55rem; }
.section p:not(.statement):not(.sec-label):not(.tag):not(.panel-foot) { color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--line); }
.pillars article { padding: 1.8rem 1.6rem 0 0; }
.pillars article + article { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.tag { color: var(--acc-2); font-size: .74rem; margin-bottom: 1rem; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services li {
	position: relative; padding: 2rem 1.6rem 2.2rem;
	border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	transition: background .25s;
}
.services li:hover { background: rgba(255,122,26,.05); }
.services li:hover .code { color: #140800; background: var(--acc); }
.code { display: inline-block; font-size: .72rem; color: var(--acc); border: 1px solid var(--line-2); padding: .2rem .5rem; margin-bottom: 2.2rem; transition: .25s; }

.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .mono { color: var(--acc); font-size: .85rem; padding-top: .15rem; }
.alerts ul { padding: .4rem 0; font-size: .78rem; }
.alerts li { display: grid; grid-template-columns: 3.8rem 1fr auto; gap: .8rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px dashed var(--line); }
.alerts li:last-child { border-bottom: 0; }
.alerts em { font-style: normal; color: var(--dim); font-size: .7rem; }
.sev { font-size: .66rem; text-align: center; padding: .2rem 0; border: 1px solid; }
.sev.crit { color: var(--bad); background: rgba(255,77,94,.1); }
.sev.high { color: var(--warn); }
.sev.med { color: var(--acc-2); }
.sev.low { color: var(--acc); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
pre.term { margin: 0; padding: 1.2rem 1.2rem 0; font-size: .82rem; line-height: 1.9; white-space: pre-wrap; color: #d3cbc6; overflow: hidden; }
pre.term .panel-foot { margin: 1rem -1.2rem 0; }
.term .p { color: var(--acc); }
.term .o { color: var(--dim); }
.term .ok { color: var(--acc); }
.caret { color: var(--acc); animation: pulse 1s steps(1) infinite; }

.rules { counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 4rem 1fr 1.4fr; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line); transition: padding .25s; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { content: "R-0" counter(r); font-family: var(--mono); font-size: .74rem; color: var(--acc); }
.rules li:hover { padding-left: .6rem; }
.rules h3 { margin: 0; }

.contact { padding-bottom: 5rem; }
.contact-lede { max-width: 52ch; font-size: 1.1rem; }
.inboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
.inboxes a {
	display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem;
	border: 1px solid var(--line-2); text-decoration: none; background: var(--panel);
	transition: border-color .2s, background .2s;
}
.inboxes a:hover { border-color: var(--acc); background: rgba(255,122,26,.06); }
.inboxes span { font-size: .7rem; color: var(--muted); }
.inboxes b { font-size: clamp(1rem, 2.1vw, 1.35rem); font-weight: 700; color: var(--acc); word-break: break-all; }
.frameworks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 3rem; font-size: .7rem; color: var(--muted); }
.frameworks li { border: 1px solid var(--line); padding: .35rem .7rem; }
.frameworks li:first-child { border: 0; padding-left: 0; color: var(--dim); }

.foot {
	display: flex; justify-content: space-between; gap: 1rem;
	max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--pad) 2.2rem;
	border-top: 1px solid var(--line); font-size: .72rem; color: var(--dim);
}
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--acc); }

:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.nav { display: none; }
	.top .btn-sm { margin-left: auto; }
	.hero-row, .process, .split { grid-template-columns: 1fr; }
	.services { grid-template-columns: 1fr 1fr; }
	.rules li { grid-template-columns: 3rem 1fr; }
	.rules li p { grid-column: 2; }
}
@media (max-width: 620px) {
	.pillars, .services, .inboxes { grid-template-columns: 1fr; }
	.pillars article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.6rem; }
	.outline { -webkit-text-stroke-width: 1.4px; }
	.log { font-size: .7rem; }
	.log li { grid-template-columns: 4.6rem .9rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
