:root {
  --black: #040201;
  --ink: #100907;
  --panel: rgba(20, 13, 10, .78);
  --panel-strong: rgba(30, 17, 11, .92);
  --line: rgba(246, 213, 162, .22);
  --line-strong: rgba(246, 213, 162, .38);
  --bone: #f8e7c6;
  --muted: #b89e78;
  --gold: #d7a84f;
  --red: #b73525;
  --ember: #ff7448;
  --green: #7be0a8;
}
* { box-sizing: border-box; }
html {
  background: var(--black);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  padding-top: 50px;
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 116, 72, .2), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(215, 168, 79, .16), transparent 32%),
    linear-gradient(180deg, #090504 0%, #030201 100%);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
a { color: inherit; }
.shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.loading-room {
  min-height: calc(100vh - 82px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .98fr) minmax(300px, 410px);
  grid-template-areas:
    "mast core"
    "stats stats"
    "candidate candidate"
    "watcher watcher";
  gap: 16px;
  align-content: center;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(110deg, rgba(9, 5, 4, .86), rgba(45, 13, 8, .58)),
    radial-gradient(circle at 80% 50%, rgba(255, 116, 72, .16), transparent 38%);
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 34px);
  box-shadow: 0 40px 100px rgba(0,0,0,.46);
}
.loading-room:before {
  content: "SELF-HOSTED / LOCAL AI / PUBLIC REVIEW";
  position: absolute;
  right: -130px;
  top: 48%;
  transform: rotate(90deg);
  color: rgba(248, 231, 198, .08);
  font: 900 clamp(24px, 5vw, 72px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.scanline {
  position: absolute;
  inset: -30% 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 43%, rgba(215,168,79,.15) 45%, rgba(255,116,72,.1) 47%, transparent 51% 100%);
  animation: scan 7s linear infinite;
}
.mast { grid-area: mast; position: relative; z-index: 1; align-self: center; }
.progress-core { grid-area: core; position: relative; z-index: 1; align-self: stretch; }
.stat-grid { grid-area: stats; position: relative; z-index: 1; }
.candidate-strip { grid-area: candidate; position: relative; z-index: 1; }
.watcher-strip { grid-area: watcher; position: relative; z-index: 1; }
.eyebrow,
.panel__header,
.stat-card span,
.candidate-strip span,
dt {
  color: var(--muted);
  font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
  animation: blink 1.2s ease-in-out infinite;
}
h1 {
  max-width: 870px;
  margin: 14px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 7.8vw, 118px);
  line-height: .86;
  font-weight: 500;
  letter-spacing: 0;
}
.lead {
  max-width: 720px;
  color: #dec9a5;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.36;
}
.telemetry-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 780px;
  margin-top: 20px;
}
.telemetry-ribbon div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(246, 213, 162, .18);
  background: rgba(0, 0, 0, .24);
}
.telemetry-ribbon span {
  display: block;
  color: var(--muted);
  font: 900 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.telemetry-ribbon strong {
  display: block;
  margin-top: 10px;
  color: var(--bone);
  font: 500 clamp(22px, 2.3vw, 34px)/.92 Georgia, 'Times New Roman', serif;
}
.progress-core,
.stat-card,
.candidate-strip,
.watcher-strip,
.panel,
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
}
.progress-core {
  display: grid;
  align-content: center;
  padding: clamp(16px, 2vw, 24px);
}
.core-top,
.panel__header,
.timeline__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.core-top span,
.core-top strong,
.panel__header span {
  color: var(--green);
  font: 900 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.core-top strong.is-paused,
.panel__header span.is-paused { color: #ff9d85; }
.ring {
  --p: 0;
  width: min(285px, 70vw);
  aspect-ratio: 1;
  margin: 22px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #110705 0 58%, transparent 59%),
    conic-gradient(var(--ember) calc(var(--p) * 1%), rgba(255,255,255,.09) 0);
}
.ring:after {
  content: "";
  position: absolute;
  width: min(220px, 54vw);
  aspect-ratio: 1;
  border: 1px solid rgba(248,231,198,.16);
  border-radius: 50%;
}
.ring span {
  position: relative;
  z-index: 1;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 5vw, 72px);
}
.step-stack p {
  margin: 0 0 8px;
  color: #f4d9ad;
  font-size: 17px;
}
.step-stack small { color: var(--muted); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  min-height: 190px;
  padding: 16px;
}
.stat-card--accent {
  background:
    linear-gradient(135deg, rgba(255,116,72,.18), rgba(20,13,10,.82)),
    var(--panel-strong);
}
.stat-card strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--bone);
  font: 500 clamp(32px, 4vw, 58px)/.9 Georgia, 'Times New Roman', serif;
}
.stat-card p {
  min-height: 38px;
  margin: 0 0 14px;
  color: #cfb48e;
  line-height: 1.34;
}
dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(246,213,162,.13);
  padding-top: 8px;
}
dt { color: #9e8567; }
dd { margin: 0; color: #f4d9ad; text-align: right; }
.candidate-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
}
.watcher-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, .9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-top: 12px;
  border-color: rgba(123, 224, 168, .34);
  background:
    linear-gradient(135deg, rgba(12, 34, 22, .72), rgba(24, 13, 9, .82)),
    var(--panel);
}
.watcher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font: 900 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.watcher-kicker i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: blink 1.2s ease-in-out infinite;
}
.watcher-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--bone);
  font: 500 clamp(24px, 3vw, 42px)/.95 Georgia, 'Times New Roman', serif;
}
.watcher-strip p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #cfb48e;
  line-height: 1.42;
}
.watcher-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.watcher-meta div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(123, 224, 168, .22);
  background: rgba(0, 0, 0, .22);
}
.watcher-meta span {
  color: var(--muted);
  font: 900 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.watcher-meta strong {
  font-size: clamp(16px, 1.8vw, 24px);
  overflow-wrap: anywhere;
}
.candidate-strip strong {
  display: block;
  margin: 6px 0;
  font: 500 clamp(26px, 3vw, 44px)/.95 Georgia, 'Times New Roman', serif;
}
.candidate-strip p {
  max-width: 720px;
  margin: 0;
  color: #d5bd98;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #120905;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  white-space: nowrap;
}
.button--ghost {
  background: rgba(0,0,0,.24);
  color: var(--bone);
  border-color: var(--line);
}
.board {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 16px;
  margin-top: 16px;
}
.panel { min-height: 226px; padding: 22px; }
.panel--wide { grid-row: span 2; }
.panel h2,
.timeline h2 {
  margin: 12px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: .95;
}
.panel p { color: #d3bd98; line-height: 1.45; }
.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dcc6a5;
}
.checks li:before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(183,53,37,.8);
}
.checks li.pass:before {
  background: var(--green);
  box-shadow: 0 0 14px rgba(123,224,168,.85);
}
.inline-link {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.timeline { margin-top: 34px; }
.timeline__header { border-top: 1px solid var(--line); padding-top: 20px; }
.timeline__header p { color: var(--muted); }
.versions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.version {
  border: 1px solid var(--line);
  background: rgba(6,4,3,.72);
  padding: 16px;
  min-height: 160px;
}
.version strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 500;
}
.version span {
  display: inline-flex;
  padding: 5px 8px;
  margin-bottom: 10px;
  background: rgba(183,53,37,.22);
  color: #ff9d85;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.version span.pass {
  background: rgba(123,224,168,.18);
  color: var(--green);
}
.version p { color: #ccb08c; margin: 0 0 12px; }
.terminal {
  margin-top: 18px;
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.terminal__bar span:nth-child(2) { background: var(--gold); }
.terminal__bar span:nth-child(3) { background: var(--green); }
.terminal__bar strong {
  margin-left: 10px;
  color: var(--muted);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  margin: 0;
  padding: 18px;
  min-height: 170px;
  max-height: 360px;
  overflow: auto;
  color: #f4dbb2;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
@keyframes scan { from { transform: translateX(-28%); } to { transform: translateX(34%); } }
@keyframes blink { 0%,100% { opacity: .42; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.18); } }
@media (max-width: 1120px) {
  .loading-room {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mast"
      "core"
      "stats"
      "candidate"
      "watcher";
  }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-strip { align-items: flex-start; flex-direction: column; }
  .watcher-strip { grid-template-columns: 1fr; align-items: flex-start; }
  .cta-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { padding-top: 48px; }
  .shell { width: min(100% - 20px, 640px); padding-top: 16px; }
  .loading-room {
    min-height: auto;
    padding: 18px;
  }
  h1 { font-size: clamp(42px, 13vw, 72px); }
  .telemetry-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-ribbon div { min-height: 66px; }
  .stat-grid { grid-template-columns: 1fr; }
  .ring { width: min(245px, 72vw); }
  .board { grid-template-columns: 1fr; }
  .panel--wide { grid-row: auto; }
  .button { width: 100%; }
  .candidate-strip .cta-row { width: 100%; }
  .watcher-meta { grid-template-columns: 1fr; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; }
}
