/* =============================================================================
   SENTINEL — Brutal black & white theme.
   Visual language: sharp blocks, monochrome, no curves, confident typography.
   ========================================================================== */

/* --------------------------------------------------------------- reset/base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Core palette - pure black and white */
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1f1f1f;
  --surface: rgba(10, 10, 10, 0.85);
  --surface-hover: rgba(20, 20, 20, 0.9);
  --border: #262626;
  --border-strong: #404040;

  /* Accent - pure white */
  --accent: #ffffff;
  --accent-2: #e5e5e5;
  --accent-3: #a3a3a3;
  --accent-glow: rgba(255, 255, 255, 0.2);

  /* Text */
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #737373;

  /* Semantic */
  --success: #ffffff;
  --warn: #ffffff;
  --danger: #ffffff;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;

  /* Space */
  --section-pad: 96px;
  --wrap-max: 1200px;
  --radius: 0px;
  --radius-lg: 0px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global background - solid black */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-0);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.03) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.02) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.03) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.02) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.03) 50%, transparent 50%);
  animation: drift 60s linear infinite;
}

@keyframes drift {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-muted); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
code {
  background: var(--bg-2);
  color: var(--text);
  padding: 2px 7px;
  border-radius: 0;
  border: 1px solid var(--border);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg-0); padding: 8px 16px; z-index: 999;
  font-weight: 600; border-radius: 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------------- layout */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow { max-width: 800px; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-size: 0.95rem;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--text);
  color: var(--bg-0);
  font-size: 16px; font-weight: 900;
  border-radius: 0;
  box-shadow: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 700; letter-spacing: 0.06em; font-size: 1rem; }
.brand-text span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text); border-radius: 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex; align-items: center; gap: 6px;
}
.primary-nav a {
  color: var(--text-muted);
  font-size: 0.85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 0;
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text); background: rgba(255,255,255,0.05); }
.primary-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text);
  color: var(--bg-0) !important;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 0;
  margin-left: 8px;
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.primary-nav .nav-cta:hover {
  box-shadow: 0 0 0 2px var(--text);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bg-0);
}
.hero-bg::before {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 0;
  box-shadow: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-title-word {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--text);
  display: inline-block;
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-lede em { color: var(--text); font-style: normal; font-weight: 500; }

.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px;
  border-radius: 0;
  cursor: pointer; border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--text);
  color: var(--bg-0);
  box-shadow: none;
}
.btn-primary:hover {
  box-shadow: 0 0 0 2px var(--text);
  transform: translateY(-2px);
  color: var(--bg-0);
}
.btn-primary::after {
  display: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text);
  box-shadow: none;
  color: var(--text);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 0; }

/* Install line */
.install-line {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: 28px;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}
.install-line::before {
  display: none;
}
.install-line code {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem; font-weight: 500;
  padding: 5px 10px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); color: var(--text); border-color: var(--border-strong); }
.copy-btn.is-copied { background: rgba(255, 255, 255, 0.2); color: var(--text); border-color: var(--text); }
.copy-btn.tiny { padding: 2px 8px; font-size: 0.7rem; }

.hero-meta {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero-meta .k {
  display: inline-block;
  min-width: 72px;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.hero-meta .hash {
  font-size: 0.72rem;
  color: var(--text-dim);
  word-break: break-all;
}

/* ------------------------------------------------------- hero console/visual */
.hero-visual { position: relative; }

.console {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}
.console::before {
  display: none;
}

.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.console-bar .dot {
  width: 10px; height: 10px; border-radius: 0;
}
.console-bar .dot:nth-child(1) { background: #404040; }
.console-bar .dot:nth-child(2) { background: #404040; }
.console-bar .dot:nth-child(3) { background: #404040; }
.console-title { margin-left: 8px; font-family: var(--font-mono); }

.console-body { padding: 16px; }

/* Pipeline animation */
.pipeline { display: flex; flex-direction: column; gap: 4px; }
.stage {
  display: grid;
  grid-template-columns: 28px 78px 1fr 14px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 0.78rem;
  transition: background 0.4s, opacity 0.4s;
}
.stage-num { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; }
.stage-name { font-weight: 600; color: var(--text-muted); transition: color 0.4s; }
.stage-note { color: var(--text-dim); font-size: 0.72rem; }
.stage-state {
  width: 10px; height: 10px; border-radius: 0;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  transition: all 0.4s;
}

.stage.is-active .stage-name { color: var(--text); }
.stage.is-active .stage-state {
  background: var(--text);
  border-color: var(--text);
  box-shadow: none;
  animation: stagePulse 1s ease-in-out infinite;
}
@keyframes stagePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.stage.is-done .stage-name { color: var(--text-muted); }
.stage.is-done .stage-state {
  background: var(--text-muted);
  border-color: var(--text-muted);
  box-shadow: none;
}

.stage.is-waiting .stage-name { color: var(--text); }
.stage.is-waiting .stage-state {
  background: var(--text);
  border-color: var(--text);
  box-shadow: none;
  animation: waitPulse 1.5s ease-in-out infinite;
}
@keyframes waitPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.stage-gate { border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02); border-radius: 0; }

.console-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px 4px;
  font-size: 0.72rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 0;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-warn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.console-hint { color: var(--text-dim); font-family: var(--font-mono); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.stat {
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat dt {
  font-size: 1.8rem;
  font-weight: 800;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--text);
  line-height: 1.2;
}
.stat dd {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------- sections */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Overview split */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.split p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.75; }
.split p em { color: var(--text); font-style: normal; font-weight: 500; }
.muted { color: var(--text-dim) !important; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.callout::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}
.callout-quote {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.callout-foot {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Pipeline cards */
.stage-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: none;
}
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.stage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--text);
  opacity: 0;
  transition: opacity 0.3s;
}
.stage-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}
.stage-card:hover::before { opacity: 1; }
.stage-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stage-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 0;
  border: 1px solid var(--border);
}
.stage-card h3 { font-size: 1rem; font-weight: 700; }
.stage-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.stage-card footer { margin-top: 14px; }
.tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 0;
  border: 1px solid var(--border);
}
.tag-you {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.stage-card-gate {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.stage-card-gate::before {
  background: var(--text);
}
.stage-card-gate:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.stage-card-gate .num {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.note {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.note strong { color: var(--text); }

/* Install tabs */
.tabs { margin-top: 12px; }
.tablist {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab {
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--text); }

.panel { display: none; }
.panel.is-active { display: block; animation: panelFade 0.3s ease; }
@keyframes panelFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-lede { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.65; }
.panel-lede strong { color: var(--text); }

.steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.step { }
.step-head {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem;
  margin-bottom: 10px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--text);
  color: var(--bg-0);
  font-size: 0.72rem; font-weight: 700;
  border-radius: 0;
  flex-shrink: 0;
}
.step-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

/* Code blocks */
.code {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.code::before {
  display: none;
}
.code pre {
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}
.code code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: inherit;
}
.code-copy {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.7rem; font-weight: 500;
  padding: 3px 10px;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.code:hover .code-copy { opacity: 1; }
.code-copy:hover { background: rgba(255,255,255,0.15); }
.code-copy.is-copied { color: var(--text); border-color: var(--text); }
.code-wide { max-width: 600px; margin: 20px auto 0; }

/* Config table */
.config-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.config-table thead th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.config-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}
.config-table tr:last-child td { border-bottom: none; }
.config-table code {
  font-size: 0.8rem;
  white-space: nowrap;
}
.config-table .badge-yes {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
}
.config-table .badge-opt {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* Safety grid */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(12px);
}
.safety-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.safety-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.safety-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.safety-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.safety-card ul { list-style: none; margin-top: 12px; }
.safety-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
}
.safety-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text);
  font-size: 0.75rem;
}

/* Terminals */
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.terminal-wide { grid-column: 1 / -1; }
.terminal-bar {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.terminal-body {
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
}
.terminal-body code { background: none; border: none; padding: 0; color: var(--text-muted); font-size: inherit; }
.line-cmd { color: var(--text); }
.ok { color: var(--text); }

.note-bug {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
}
.note-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.small { font-size: 0.82rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  transition: border-color 0.2s;
  backdrop-filter: blur(12px);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download section */
.section-download {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.download-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--text);
}
.download-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-row-center { justify-content: center; }

.download-alt {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.download-alt a { color: var(--text-muted); }
.download-alt a:hover { color: var(--text); }
.download-alt .sep { margin: 0 8px; }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-brand .brand-mark {
  width: 28px; height: 28px;
  font-size: 12px;
  border-radius: 0;
}
.footer-brand p { line-height: 1.5; }
.footer-brand strong { color: var(--text); }

.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* To top button */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
  z-index: 90;
}
.to-top:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--text);
}
.to-top[hidden] { display: none; }

/* Star count */
.star-count {
  font-size: 0.78rem;
  color: var(--text);
  margin-left: 4px;
}

/* Reveal animations */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------- additional elements */

/* Requirements grid (install section) */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  backdrop-filter: blur(12px);
}
.req-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.req-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.55;
}
.check-list strong { color: var(--text); }
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  margin-top: 1px;
}
.tick.warn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Data tables (config + harness) */
.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.data-table thead th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
  line-height: 1.6;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table code { font-size: 0.8rem; white-space: nowrap; }
.data-table-2col td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }

.tag-req { color: var(--text); background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); }
.tag-warn { color: var(--text); background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); }
.tag-safe { color: var(--text); background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); }

/* Safety card numbers */
.safety-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--text);
  color: var(--bg-0);
  font-size: 0.82rem; font-weight: 800;
  border-radius: 0;
  margin-bottom: 14px;
}
.card-foot { margin-top: 14px; font-size: 0.82rem; color: var(--text-dim); }

/* Mini table (inside safety cards) */
.mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-top: 14px;
}
.mini-table thead th {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.mini-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.mini-table tr:last-child td { border-bottom: none; }
.mini-table code { font-size: 0.75rem; }

/* Particle canvas */
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Animated counter */
.stat dt[data-count] {
  display: inline-block;
}

/* Shield glow behind hero title */
.hero-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 200px;
  height: 4px;
  background: var(--text);
  border-radius: 0;
  opacity: 0.3;
}
.hero-title { position: relative; }

/* Feature badges row */
.feature-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.feature-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 0;
  backdrop-filter: blur(8px);
}
.feature-badge .dot-sm {
  width: 6px; height: 6px; border-radius: 0;
}
.feature-badge .dot-cyan { background: var(--text); }
.feature-badge .dot-green { background: var(--text); }
.feature-badge .dot-purple { background: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 500px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .wrap { padding: 0 20px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .nav-cta { margin: 8px 0 0; justify-content: center; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stage-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .terminal-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 40px; }
  .hero-title { margin-bottom: 12px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .download-card { padding: 40px 24px; }
}

@media (max-width: 520px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .install-line { flex-direction: column; align-items: stretch; }
  .install-line code { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  body::after { animation: none; }
}
