/* ============================================================================
   Rein — landing page. "The antechamber of the control room."
   Extends the console's design system (dark, terminal-grade, IBM Plex Mono +
   Archivo) to landing scale. Zero dependencies, static.
   ========================================================================== */

:root {
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --bg: #06080b;
  --bg-1: #0a0d12;
  --bg-2: #0e1219;
  --bg-3: #131925;
  --line: rgba(150, 170, 200, 0.09);
  --line-strong: rgba(150, 170, 200, 0.18);

  --ink: #e9eef6;
  --ink-dim: #93a0b4;
  --ink-faint: #56627a;

  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --accent-line: rgba(91, 140, 255, 0.45);

  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #f5c451;
  --warn-soft: rgba(245, 196, 81, 0.12);
  --bad: #ff6b81;
  --bad-soft: rgba(255, 107, 129, 0.12);
  --alarm: #ff4d4d;
  --alarm-soft: rgba(255, 77, 77, 0.13);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);

  --container: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* contain any decorative bleed; no scroll container (sticky-safe) */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Keyboard focus — visible ring for a11y (mouse hover unaffected) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Atmosphere: accent glow + faint grid + grain overlay (console DNA) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(52, 211, 153, 0.06), transparent 55%),
    linear-gradient(rgba(150, 170, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 170, 200, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent-soft);
}

em {
  font-style: normal;
  color: var(--accent);
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
  padding: 0 max(24px, calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 18, 27, 0.92), rgba(8, 11, 16, 0.82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(91, 140, 255, 0.5));
}
.brand-mark.sm {
  width: 20px;
  height: 20px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-links a {
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #3f6fe0);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(91, 140, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  color: var(--ink-dim);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.btn-arrow {
  font-family: var(--font-mono);
  font-weight: 400;
}
.nav-cta {
  height: 34px;
  padding: 0 16px;
  font-size: 11px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.dot.live {
  background: var(--ok);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-sub {
  max-width: 52ch;
  font-size: 14.5px;
  color: var(--ink-dim);
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-sub em {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-line);
}

/* Install command */
.install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-1);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.install-cmd {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.install-prompt {
  color: var(--accent);
  margin-right: 6px;
  user-select: none;
}
.copy-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.copy-btn.copied {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.5);
  background: var(--ok-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions.center {
  justify-content: center;
}
.hero-fine {
  margin-top: 24px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Hero stage: the live feed panel ─────────────────────────────────────── */
.hero-stage {
  position: relative;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(91, 140, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feed-panel {
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-panel:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}
.feed-panel.flash {
  animation: alarm-flash 1.1s ease-out;
}
@keyframes alarm-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55), var(--shadow);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(255, 77, 77, 0), var(--shadow);
  }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-tick {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.panel-foot {
  padding: 9px 14px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* Feed rows (console DNA) */
.feed {
  list-style: none;
  height: 316px; /* fixed: new rows never shift the hero layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.feed-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.feed-row.enter {
  animation: row-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.feed-row[data-kind='allow'] {
  border-left-color: var(--ok);
}
.feed-row[data-kind='deny'],
.feed-row[data-kind='refused'],
.feed-row[data-kind='frozen'] {
  border-left-color: var(--bad);
}
.feed-row[data-kind='settled'] {
  border-left-color: var(--accent);
}
.feed-row[data-kind='shadow'] {
  border-left-color: var(--alarm);
  background: var(--alarm-soft);
}
.feed-time {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.feed-main {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-verb {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.feed-verb.allow {
  color: var(--ok);
}
.feed-verb.deny,
.feed-verb.refused,
.feed-verb.frozen {
  color: var(--bad);
}
.feed-verb.settled {
  color: var(--accent);
}
.feed-verb.shadow {
  color: var(--alarm);
}
.feed-amt {
  color: var(--ink);
  font-weight: 600;
}
.feed-arrow {
  color: var(--ink-faint);
}
.feed-host {
  color: var(--ink-dim);
}
.feed-right {
  text-align: right;
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 104px 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.eyebrow .tick {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.section-lede {
  max-width: 58ch;
  color: var(--ink-dim);
  margin-bottom: 48px;
  text-wrap: pretty;
}
.section-close {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-dim);
}
.section-close::before {
  content: '// ';
  color: var(--ink-faint);
}

/* ── Incidents (problem strip) ────────────────────────────────────────────── */
.incidents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.incident {
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: var(--radius-sm);
  background: var(--alarm-soft);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.incident-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.incident-glyph {
  color: var(--alarm);
  font-size: 12px;
}
.incident-title {
  font-weight: 600;
  color: var(--alarm);
  letter-spacing: 0.08em;
  font-size: 11px;
}
.incident-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.incident p {
  font-size: 12.5px;
  color: var(--ink-dim);
}
.incident b {
  color: var(--ink);
}

/* ── Pillars ──────────────────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0; /* let the pre-formatted code block scroll inside, not stretch the track */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  box-shadow: var(--shadow);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.pillar-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pillar-num {
  font-size: 10px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pillar-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
}
.pillar-side {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pillar-lede {
  font-size: 12.5px;
  color: var(--ink-dim);
  min-height: 3.2em;
}
.pillar-lede b {
  color: var(--ink);
}
.pillar-lede code {
  color: var(--accent);
  font-size: 12px;
}

.code {
  min-width: 0; /* scroll container: never contribute pre-width to the flex column */
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 13px 14px;
  overflow-x: auto;
  font-size: 11px;
  line-height: 1.65;
}
.code code {
  font-family: var(--font-mono);
  white-space: pre;
}
.code::-webkit-scrollbar {
  height: 8px;
}
.code::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.tk-kw {
  color: var(--accent);
}
.tk-str {
  color: var(--ok);
}
.tk-fn {
  color: var(--ink);
  font-weight: 500;
}
.tk-cm {
  color: var(--ink-faint);
}
.tk-num {
  color: var(--warn);
}

.pillar-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pillar-chips li {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.pillar-link {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: filter 0.15s ease;
}
.pillar-link:hover {
  filter: brightness(1.25);
}

/* ── Proof grid ───────────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.proof {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
  padding: 22px 22px 20px;
  transition: background 0.2s ease;
}
.proof:hover {
  background: var(--bg-2);
}
.proof:hover .proof-sub {
  color: var(--accent);
}
.proof-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.proof-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.proof-value.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  padding: 6px 0 7px;
  color: var(--ink-dim);
}
.proof-denominator {
  font-size: 18px;
  color: var(--ink-faint);
  font-weight: 600;
}
.proof-sub {
  font-size: 10.5px;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}

/* ── Architecture ─────────────────────────────────────────────────────────── */
.arch {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
}
.arch-node {
  flex: 0 0 auto;
  width: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  padding: 16px 15px;
  text-align: center;
}
.arch-node.is-rein {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.09), var(--bg-1));
  box-shadow: 0 0 24px -8px rgba(91, 140, 255, 0.35);
  position: relative;
}
.arch-node.is-rein::before {
  content: 'REIN';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.arch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.arch-desc {
  font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.arch-wire {
  flex: 1 1 0;
  position: relative;
  min-width: 40px;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--accent-line));
}
.arch-wire::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--accent-line);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.arch-wire span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.arch-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.arch-fact {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.arch-fact::before {
  content: '✓ ';
  color: var(--ok);
}

/* ── Outro ────────────────────────────────────────────────────────────────── */
.outro {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 130px;
}
.outro h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-bottom: 34px;
}
.install-lg {
  margin: 0 auto 30px;
}
.outro-fine {
  margin-top: 36px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.9;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 34px;
  font-size: 11px;
  color: var(--ink-faint);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--ink-dim);
}
.footer-links a:hover {
  color: var(--ink);
}

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
/* Enhancement only: content is visible by default. The inline <head> script
   adds `.js` to <html>, which arms the hidden→revealed transition. No JS (or a
   failed load) leaves everything visible instead of shipping a blank page. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}
.reveal.d5 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
  }
  .feed-panel {
    transform: none;
  }
  .feed-row.enter {
    animation: none;
  }
  .dot.live {
    animation: none;
  }
}

/* ── Get-started runbook page ─────────────────────────────────────────────── */
.guide-hero {
  padding-top: 88px;
  padding-bottom: 24px;
}
.hero-sub b {
  color: var(--ink);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: filter 0.15s ease;
}
.inline-link:hover {
  filter: brightness(1.25);
}

/* Numbered runbook steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}
.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
}
.step-body > p {
  font-size: 12.5px;
  color: var(--ink-dim);
  max-width: 72ch;
  text-wrap: pretty;
}
.step-body p b {
  color: var(--ink);
}

/* Code cards: header bar + copy button around the existing .code block */
.code-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-card .code {
  border: none;
  border-radius: 0;
}
.section > .code-card {
  margin-top: 36px;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 13px;
  border-bottom: 1px dashed var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.code-head .copy-btn {
  margin-left: auto;
  height: 24px;
  padding: 0 10px;
}
.ok-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}
.code.output {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.04), var(--bg));
  color: var(--ink-dim);
}
.out-ok {
  color: var(--ok);
  font-weight: 600;
}
.out-bad {
  color: var(--bad);
  font-weight: 600;
}

/* Guide card rows */
.guide-whys,
.guide-paths {
  margin-top: 40px;
}
.path-card .pillar-link {
  margin-top: auto;
}

/* Is / isn't */
.is-isnt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.fact-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fact-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.fact-col-title.is {
  color: var(--ok);
}
.fact-col-title.isnt {
  color: var(--warn);
}
.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fact-list li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.fact-list li b {
  color: var(--ink);
}
.fact-list.is li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
}
.fact-list.isnt li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--warn);
}

/* Callout aside (gotchas) */
.callout {
  margin-top: 36px;
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-dim);
  max-width: 76ch;
}
.callout b {
  color: var(--warn);
}

/* Demo scenario panel: reuse the hero feed's console DNA, but let it size itself */
.demo-panel {
  margin-top: 36px;
}
.demo-panel .feed {
  height: auto;
  overflow: visible;
}
.demo-panel .feed-row:last-child {
  border-bottom: none;
}

@media (max-width: 720px) {
  .guide-hero {
    padding-top: 64px;
  }
  .step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }
  .step-num {
    width: 28px;
    height: 28px;
    font-size: 10.5px;
    border-radius: 7px;
  }
  .is-isnt {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 88px;
  }
  .feed-panel {
    transform: none;
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .incidents {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arch {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
  }
  .arch-node {
    width: 100%;
  }
  .arch-wire {
    flex: 0 0 auto;
    width: 2px;
    height: 44px;
    min-width: 0;
    align-self: center;
    background: linear-gradient(180deg, var(--line-strong), var(--accent-line));
  }
  .arch-wire::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 6px solid var(--accent-line);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: none;
  }
  .arch-wire span {
    left: 14px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 720px) {
  .wide-only {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .section {
    padding: 72px 20px;
  }
  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .install {
    max-width: 100%;
  }
  .install-cmd {
    font-size: 12px;
    overflow-x: auto;
  }
  .feed-right {
    display: none;
  }
  .feed-row {
    grid-template-columns: 60px 1fr;
  }
}
