/* ════════════════════════════════════════════════════════════
   OPERATOR — Blueprint, pushed to "site as an OS"
   Heavy reuse of Blueprint colors. New layout vocabulary:
   status bar, terminal panels, process tables, log feeds.
   ════════════════════════════════════════════════════════════ */

.op {
  --bg: #050608;
  --bg-2: #0a0d11;
  --bg-3: #0e1217;
  --line: rgba(79,227,154,.10);
  --line-2: rgba(79,227,154,.22);
  --line-cool: rgba(255,255,255,.06);
  --text: #d8e4dc;
  --text-2: #8ea096;
  --text-3: #4d5a52;
  --accent: #4fe39a;
  --accent-bright: #62ffae;
  --amber: #ffb84a;
  --alert: #ff5e5e;
  --accent-dim: rgba(79, 227, 154, .14);

  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  min-height: 100vh;
}

/* Scan lines + grain — CRT feel, very subtle */
.op::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: repeating-linear-gradient(0deg,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,.18) 2px,
    rgba(0,0,0,.18) 3px);
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* Phosphor cursor trail */
.op-cursor-glow {
  position: fixed; pointer-events: none; z-index: 4;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(79,227,154,.10) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
}
.op:hover .op-cursor-glow { opacity: 1; }

/* ─── STATUS BAR ─────────────────────────────────────────── */
.op-statusbar {
  position: sticky; top: 0; z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center; gap: 18px;
  padding: 8px 16px;
  background: #02030a;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.op-statusbar__sys {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.op-statusbar__sys i {
  display: inline-block;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  position: relative;
  background:
    linear-gradient(45deg, transparent 46%, var(--accent) 46%, var(--accent) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--accent) 46%, var(--accent) 54%, transparent 54%);
}
.op-statusbar__path { color: var(--text); }
.op-statusbar__path span { color: var(--text-3); }
.op-statusbar__nav { display: flex; gap: 2px; }
.op-statusbar__nav a {
  padding: 4px 10px;
  color: var(--text-2);
  text-transform: lowercase;
  border-radius: 0;
  transition: color .2s, background .2s;
}
.op-statusbar__nav a:hover { color: var(--accent); background: rgba(79,227,154,.06); }
.op-statusbar__nav a.is-active { color: var(--accent); background: rgba(79,227,154,.08); }
.op-statusbar__time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.op-statusbar__status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
}
.op-statusbar__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: op-pulse 1.4s ease-in-out infinite;
}
@keyframes op-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 800px) {
  .op-statusbar { grid-template-columns: auto 1fr auto; }
  .op-statusbar__nav, .op-statusbar__path { display: none; }
}

/* ─── LAYOUT GRID — main + log rail ───────────────────────── */
.op-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: calc(100vh - 36px);
}
@media (max-width: 1100px) { .op-shell { grid-template-columns: 1fr; } }

.op-main {
  padding: 0;
  border-right: 1px solid var(--line);
  position: relative;
  overflow-x: hidden;
}

/* ─── BOOT / HERO PANEL ──────────────────────────────────── */
.op-panel {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.op-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.op-panel__head .title { color: var(--accent); }
.op-panel__head .meta { color: var(--text-3); display: flex; gap: 14px; align-items: center; }
.op-panel__head .meta b { color: var(--text-2); }
.op-panel__head .dots { display: inline-flex; gap: 4px; }
.op-panel__head .dots i { width: 8px; height: 8px; border: 1px solid var(--line-2); display: block; }
.op-panel__head .dots i:first-child { background: var(--accent); border-color: var(--accent); }

.op-panel__body { padding: 32px 28px; }

/* Hero */
.op-hero { padding: 0; }
.op-hero__terminal {
  padding: 56px 32px 64px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 400px at 50% 0%, rgba(79,227,154,.06), transparent 70%);
}
.op-hero__line {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 4px;
}
.op-hero__line .prompt { color: var(--accent); }
.op-hero__line .cmd { color: var(--text); }
.op-hero__line.out { color: var(--text-3); padding-left: 20px; }
.op-hero__line.out.ok { color: var(--accent); }

.op-hero__bigline {
  margin-top: 32px;
  margin-bottom: 0;
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.op-hero__bigline .prompt {
  color: var(--accent);
  font-size: 28px;
  align-self: center;
}
.op-hero__bigline h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin: 0;
}
.op-hero__bigline h1 .acc { color: var(--accent); }

.op-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: op-blink 1s steps(1) infinite;
}
@keyframes op-blink { 50% { opacity: 0; } }

.op-hero__sub {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 700px) { .op-hero__sub { grid-template-columns: 1fr; } }
.op-hero__sub p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 56ch;
}
.op-hero__actions { display: flex; flex-direction: column; gap: 8px; }
.op-prompt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color .25s, background .25s, color .25s;
  cursor: pointer;
}
.op-prompt:hover { border-color: var(--accent); color: var(--text); background: rgba(79,227,154,.04); }
.op-prompt .key {
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-size: 11px;
}
.op-prompt b { color: var(--text); font-weight: 500; }
.op-prompt .arrow { margin-left: auto; color: var(--accent); }

/* ─── METRICS PANEL ──────────────────────────────────────── */
.op-metrics { padding: 0; }
.op-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .op-metrics__grid { grid-template-columns: repeat(2, 1fr); } }

.op-metric {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.op-metric:nth-child(4n) { border-right: none; }
.op-metric:hover { background: var(--bg-2); }
.op-metric__lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.op-metric__val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.op-metric__val small { color: var(--text-2); font-size: 14px; margin-left: 2px; }
.op-metric__sub {
  font-size: 11px; color: var(--text-3); margin-top: 4px;
}
.op-metric__spark {
  height: 22px; width: 100%; margin-top: 8px;
}
.op-metric__spark path.line { fill: none; stroke: var(--accent); stroke-width: 1; }
.op-metric__spark path.fill { fill: var(--accent); opacity: 0.08; }

/* ─── PROCESS TABLE (Services) ──────────────────────────── */
.op-ps { padding: 0; }
.op-ps__head {
  padding: 24px 28px 14px;
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--line);
}
.op-ps__head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}
.op-ps__head .mono { color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; }

.op-ps__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.op-ps__table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 400;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.op-ps__table tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .25s;
}
.op-ps__table tbody tr:hover { background: rgba(79,227,154,.04); }
.op-ps__table tbody tr.is-expanded { background: var(--bg-2); }
.op-ps__table tbody td {
  padding: 14px 16px;
  vertical-align: top;
}
.op-ps__pid { color: var(--text-3); font-variant-numeric: tabular-nums; }
.op-ps__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.op-ps__name small {
  font-family: "JetBrains Mono", monospace;
  display: block;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}
.op-ps__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.op-ps__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: op-pulse 1.6s ease-in-out infinite;
}
.op-ps__uptime, .op-ps__cpu, .op-ps__mem { color: var(--text-2); font-variant-numeric: tabular-nums; }
.op-ps__cpu b { color: var(--accent); font-weight: 400; }
.op-ps__chev { color: var(--text-3); transition: transform .25s, color .25s; text-align: center; }
.op-ps__table tbody tr:hover .op-ps__chev { color: var(--accent); }
.op-ps__table tbody tr.is-expanded .op-ps__chev { transform: rotate(90deg); color: var(--accent); }

.op-ps__detail-row { display: none; }
.op-ps__table tbody tr.is-expanded + tr.op-ps__detail-row { display: table-row; }
.op-ps__detail-row td {
  padding: 0;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.op-ps__detail-body {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .op-ps__detail-body { grid-template-columns: 1fr; gap: 18px; } }
.op-ps__detail-body p { font-family: "Space Grotesk", sans-serif; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.op-ps__detail-body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.op-ps__detail-body li { font-size: 12px; color: var(--text-2); padding-left: 18px; position: relative; }
.op-ps__detail-body li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

@media (max-width: 700px) {
  .op-ps__table thead th:nth-child(4),
  .op-ps__table thead th:nth-child(5),
  .op-ps__table tbody td:nth-child(4),
  .op-ps__table tbody td:nth-child(5) { display: none; }
}

/* ─── LOG FEED (Blog) ────────────────────────────────────── */
.op-log__head {
  padding: 24px 28px 14px;
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--line);
}
.op-log__head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500; letter-spacing: -0.025em;
  color: var(--text);
}
.op-log__head .mono { color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; }
.op-log__head .mono b { color: var(--accent); }

.op-log__list {
  display: flex; flex-direction: column;
  padding: 0;
}
.op-log__entry {
  display: grid;
  grid-template-columns: 130px 90px 1fr 24px;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  align-items: start;
  transition: background .25s;
}
.op-log__entry:hover { background: rgba(79,227,154,.04); }
.op-log__time { color: var(--text-3); font-size: 11px; padding-top: 2px; }
.op-log__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  display: inline-block;
  height: max-content;
  margin-top: 2px;
}
.op-log__tag--amber { color: var(--amber); border-color: rgba(255,184,74,.3); }
.op-log__tag--alert { color: var(--alert); border-color: rgba(255,94,94,.3); }
.op-log__msg {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
}
.op-log__msg small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
  margin-top: 4px;
}
.op-log__arrow { color: var(--text-3); transition: color .25s, transform .25s; padding-top: 4px; }
.op-log__entry:hover .op-log__arrow { color: var(--accent); transform: translateX(4px); }

@media (max-width: 700px) {
  .op-log__entry { grid-template-columns: 90px 1fr 20px; }
  .op-log__tag { display: none; }
}

/* ─── DIAGNOSE — interactive command ────────────────────── */
.op-diagnose { background: var(--bg-2); }
.op-diagnose__cmd {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.op-diagnose__cmd .prompt { color: var(--accent); }
.op-diagnose__cmd .cmd { color: var(--text); font-size: 16px; }
.op-diagnose__cmd .flag { color: var(--amber); }
.op-diagnose__cmd .out {
  margin-top: 8px;
  color: var(--text-3);
  padding-left: 20px;
  font-size: 12px;
}

.op-diagnose__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .op-diagnose__body { grid-template-columns: 1fr; } }
.op-diagnose__inputs {
  padding: 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
@media (max-width: 900px) { .op-diagnose__inputs { border-right: none; border-bottom: 1px solid var(--line); } }
.op-input {
  display: flex; flex-direction: column; gap: 8px;
}
.op-input label {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.op-input label span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.op-input input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 50%), var(--line-2) var(--pct, 50%));
  outline: none;
}
.op-input input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 0;
  cursor: pointer;
  border: 2px solid var(--bg);
}
.op-input input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; background: var(--accent); border-radius: 0; cursor: pointer; border: 2px solid var(--bg);
}

.op-diagnose__out {
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.op-diagnose__out-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.op-diagnose__out-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.op-diagnose__out-val small { font-size: 22px; color: var(--text-2); margin-left: 4px; }
.op-diagnose__out-msg {
  padding: 14px 16px;
  background: var(--bg-3);
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.op-diagnose__out-cmd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-3);
  font-size: 12px;
  color: var(--text-2);
}
.op-diagnose__out-cmd .prompt { color: var(--accent); }

/* ─── MANPAGE / ABOUT ────────────────────────────────────── */
.op-man {
  padding: 32px 28px;
  border-bottom: 1px solid var(--line);
}
.op-man__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.op-man__head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}
.op-man__head .meta { color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; }
.op-man__sections { display: flex; flex-direction: column; gap: 24px; }
.op-man__sect {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .op-man__sect { grid-template-columns: 1fr; gap: 8px; } }
.op-man__sect-name {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding-top: 4px;
}
.op-man__sect-body {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 70ch;
}
.op-man__sect-body b { color: var(--text); font-weight: 500; }
.op-man__sect-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--bg-2);
  padding: 1px 6px;
  margin: 0 1px;
}

/* ─── CONTACT / FINAL CTA ────────────────────────────────── */
.op-contact {
  padding: 64px 28px;
  background:
    radial-gradient(ellipse 700px 350px at 50% 50%, rgba(79,227,154,.08), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.op-contact__wrap {
  max-width: 800px; margin: 0 auto;
  text-align: left;
  display: flex; flex-direction: column; gap: 18px;
}
.op-contact .prompt { color: var(--accent); }
.op-contact h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin-top: 14px;
}
.op-contact h2 .acc { color: var(--accent); }
.op-contact p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 56ch;
}
.op-contact__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ─── RIGHT LOG RAIL ─────────────────────────────────────── */
.op-rail {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  position: sticky;
  top: 36px;
  height: calc(100vh - 36px);
  overflow: hidden;
}
@media (max-width: 1100px) { .op-rail { display: none; } }

.op-rail__head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.op-rail__head .title { color: var(--accent); }
.op-rail__head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.op-rail__head .live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: op-pulse 1.4s ease-in-out infinite;
}

.op-rail__feed {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.op-rail__feed-inner {
  padding: 12px 0;
  display: flex; flex-direction: column;
}
.op-rail__item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  animation: op-rail-in .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes op-rail-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
.op-rail__item .t { color: var(--text-3); font-size: 10px; padding-top: 1px; }
.op-rail__item .m b { color: var(--accent); font-weight: 500; }
.op-rail__item.alert .m b { color: var(--alert); }
.op-rail__item.amber .m b { color: var(--amber); }

.op-rail__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-3);
  display: flex; justify-content: space-between;
  letter-spacing: 0.1em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.op-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  letter-spacing: 0.04em;
}
.op-footer b { color: var(--text-2); font-weight: 400; }
.op-footer .accent { color: var(--accent); }

/* Reveal */
.op .reveal { transition-duration: .55s; }

@media (prefers-reduced-motion: reduce) {
  .op-cursor { animation: none; }
  .op-statusbar__status i, .op-ps__status i, .op-rail__head .live i { animation: none; }
}
