@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #100D0A;
  --bg-raised: #18140F;
  --surface: #1E1811;
  --ink: #F3EDE3;
  --ink-soft: #B8AC98;
  --ink-faint: #756B5C;
  --line: #322A20;
  --line-bright: #4A3D2C;
  --amber: #FF9D42;
  --amber-deep: #FF6B1A;
  --amber-glow: rgba(255, 157, 66, 0.35);
  --amber-soft: rgba(255, 157, 66, 0.12);
  --ok: #7FD996;
  --max-width: 800px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover, a:focus-visible { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: relative;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand span { color: var(--amber); }
.topbar nav {
  display: flex;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.topbar nav a { color: var(--ink-soft); }
.topbar nav a:hover { color: var(--amber); }

/* ── Hero / glow ─────────────────────────────────────────── */

.hero {
  padding: 72px 0 48px;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--ink) 30%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 50ch;
  margin: 0 0 32px;
}

.log-panel {
  background: var(--bg-raised);
  color: #C9D6CE;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  padding: 24px 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 2;
  overflow-x: auto;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,157,66,0.06);
}
.log-panel .t { color: #6B7280; }
.log-panel .tag-ok { color: var(--amber); font-weight: 600; }
.log-panel .tag-warn { color: #E0A050; }
.log-panel .cmd { color: #E8ECEF; }

/* ── Section labels ──────────────────────────────────────── */

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin: 56px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-bright), transparent);
}

/* ── Process list ────────────────────────────────────────── */

.proc-list { display: flex; flex-direction: column; gap: 12px; }

.proc {
  display: grid;
  grid-template-columns: 20px 68px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.proc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amber-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.proc:hover, .proc:focus-visible {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -10px rgba(255,157,66,0.25);
}
.proc:hover::before, .proc:focus-visible::before { opacity: 1; }
.proc > * { position: relative; z-index: 1; }

.proc:hover .proc-name, .proc:focus-visible .proc-name { color: var(--amber); }

.proc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.proc-dot.active {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft), 0 0 12px var(--amber-glow);
}
.proc-pid {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 3px;
}
.proc-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 5px;
  transition: color 0.15s ease;
}
.proc-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}
.proc-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(255,157,66,0.3);
}
.btn.primary {
  background: linear-gradient(135deg, var(--amber-deep), var(--amber));
  color: #1A0F00;
  border-color: transparent;
  box-shadow: 0 10px 28px -8px rgba(255,157,66,0.5);
}
.btn.primary:hover, .btn.primary:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px -8px rgba(255,157,66,0.65);
}

/* ── Content cards ───────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  margin: 0 0 9px;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.status-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(255,157,66,0.3);
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  margin-top: 48px;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--amber); }
