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

:root {
  --bg: #14161b;
  --bg-elevated: #1b1e25;
  --border: #2a2e37;
  --text-primary: #eceef1;
  --text-secondary: #9096a3;
  --text-muted: #5c6270;
  --accent: #f5a623;
  --accent-dim: #b8791a;
  --status-ok: #3fb950;
  --status-pending: #6e7681;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap-width: 1040px;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p { margin: 0 0 16px; color: var(--text-secondary); }
code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--text-primary);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.term-muted { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.9rem; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 22, 27, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
}
.site-nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.site-nav a { text-decoration: none; color: var(--text-secondary); padding: 4px 0; }
.site-nav a:hover { color: var(--text-primary); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #14161b; font-weight: 500; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { border-color: var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 96px;
}
.role { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); margin-bottom: 20px; }
.lede { max-width: 52ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* terminal signature panel */
.term {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.term-bar {
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
}
.term-body { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.term-body li { color: var(--text-primary); }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 10px;
}
.dot-ok { background: var(--status-ok); }
.dot-pending { background: var(--status-pending); }
.term-cursor { border-top: 0.5px dashed var(--border); padding-top: 10px; margin-top: 4px; color: var(--text-muted); }
.cursor { margin-left: 4px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s step-end infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- sections ---- */
.section { padding: 64px 24px; border-top: 0.5px solid var(--border); }
.section-narrow { max-width: 720px; }
.section-intro { max-width: 60ch; }
.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.diagram-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

.diagram-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
}

.image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: zoom-in;
}
.image-trigger .diagram-image { transition: border-color 0.15s ease, opacity 0.15s ease; }
.image-trigger:hover .diagram-image { border-color: var(--accent); opacity: 0.92; }
.image-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* ---- lightbox ---- */
.lightbox {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 16px;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}
.lightbox::backdrop { background: rgba(10, 11, 14, 0.8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; position: relative; }
#lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-mono);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--text-primary); border-color: var(--accent); }

.incident-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.incident {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.incident-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.incident-status .term-muted { margin-left: 8px; color: var(--status-ok); }
.incident-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.incident-desc { margin-bottom: 0; }

.status-line { display: flex; align-items: center; margin-bottom: 24px; }

.contact-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- footer ---- */
.site-footer { border-top: 0.5px solid var(--border); padding: 32px 24px; }

/* ---- responsive ---- */
@media (max-width: 800px) {
  .header-row { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding: 48px 20px 64px; }
  .section-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .term-body li .term-muted { display: block; margin-left: 18px; margin-top: 2px; }
}
