/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #07090a;
  --bg-alt:       #0a0d0e;
  --surface:      #0d1212;
  --surface-2:    #10171a;
  --border:       #182320;
  --border-bright:#1f2d29;
  --border-dim:   #0f1614;
  --text:         #b1bab5;
  --text-muted:   #4a5e58;
  --text-subtle:  #364643;
  --text-bright:  #ecf0ee;
  --accent:       #2dba87;
  --accent-bright:#3ddc9b;
  --accent-dim:   #1f8a62;
  --accent-glow:  rgba(45, 186, 135, 0.10);
  --accent-soft:  rgba(45, 186, 135, 0.04);
  --error:        #c47878;
  --error-dim:    #5a2a2a;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius:       4px;
  --transition:   200ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card:  0 1px 0 0 rgba(255,255,255,0.02) inset, 0 24px 48px -24px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(45,186,135,0.04), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
strong { color: var(--text-bright); font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 760px; }

.section { padding: 112px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.section-narrow { padding: 88px 0; }
.section-cta {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(45,186,135,0.06), transparent 65%),
    var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section-header { margin-bottom: 56px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-dim);
}

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

.logo {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-sm {
  padding: 7px 16px;
  font-size: 12.5px;
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
  letter-spacing: 0.02em;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); background: rgba(45,186,135,0.04); }

.btn-primary {
  padding: 14px 26px;
  font-size: 14px;
  background: var(--accent);
  color: #07090a;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 0 0 1px var(--accent-dim) inset, 0 8px 24px -8px rgba(45,186,135,0.45);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 14px 36px -10px rgba(45,186,135,0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: 14px 22px;
  font-size: 14px;
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--text); }

.btn-cta { padding: 15px 32px; font-size: 14.5px; margin-top: 36px; margin-bottom: 28px; }

/* ── Hero ── */
.hero {
  padding: 128px 0 112px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: -100px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(45,186,135,0.08), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero-container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(45,186,135,0.22);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 5px 12px 5px 10px;
  margin-bottom: 40px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,186,135,0.18), 0 0 12px rgba(45,186,135,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(45,186,135,0.18), 0 0 12px rgba(45,186,135,0.6); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 3px rgba(45,186,135,0.10), 0 0 8px rgba(45,186,135,0.3); }
}

.hero-domain {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero-domain-tld {
  color: var(--accent);
  font-weight: 700;
}

.hero-subheadline {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.45;
  max-width: 540px;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero-support {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  background: rgba(13,18,18,0.6);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.hero-meta-value {
  font-size: 12.5px;
  color: var(--text-bright);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.hero-meta-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}

/* ── Section labels & titles ── */
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding-left: 14px;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.028em;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 48px;
  text-wrap: balance;
}

.section-title--narrow { max-width: 520px; }
.section-title--centered { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 28px; }

/* ── Strategic Positioning ── */
.strategic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.strategic-prose p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
}
.strategic-prose p + p { margin-top: 20px; }

.strategic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, rgba(45,186,135,0.04), rgba(45,186,135,0) 70%), var(--surface);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--text-bright);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.badge:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

.badge-tick {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* ── Control After Execution ── */
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.control-copy .section-title { margin-bottom: 24px; }

.control-lede {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 28px;
}

.control-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.control-tick {
  color: var(--accent);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.control-visual {
  background:
    linear-gradient(180deg, rgba(45,186,135,0.025), transparent 30%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-bright);
}
.visual-dot:nth-child(2) { background: #2a3a36; }
.visual-dot:nth-child(3) { background: #2a3a36; }

.visual-title {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.visual-body { padding: 28px 24px 24px; }

.flow-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg-alt);
  color: var(--text-bright);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 56px;
}

.flow-node--checkpoint {
  border-color: var(--accent-dim);
  color: var(--accent-bright);
  background: rgba(45,186,135,0.05);
}

.flow-node--mutated { border-color: var(--text-muted); color: var(--text); }

.flow-node--error {
  background: transparent;
  border-color: var(--error-dim);
  color: var(--error);
  min-width: 28px;
  font-size: 13px;
  padding: 8px;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 28px;
}

.flow-arrow-label {
  font-size: 8.5px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}

.flow-arrow-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-subtle);
  position: relative;
}

.flow-arrow-line::after {
  content: '›';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 0;
}

.flow-arrow-line--dim { background: var(--error-dim); }
.flow-arrow-line--dim::after { color: var(--error-dim); }

.flow-rollback-track {
  position: relative;
  height: 28px;
  margin: 8px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-rollback-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim) 12%, var(--accent) 50%, var(--accent-dim) 88%, transparent);
  transform: translateY(-50%);
}

.flow-rollback-pulse {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  filter: drop-shadow(0 0 4px rgba(61,220,155,0.6));
  transform: translateY(-50%);
  animation: rollback-slide 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rollback-slide {
  0%   { left: 100%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: -18%; opacity: 0; }
}

.flow-rollback-label {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 0 12px;
  font-size: 9.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.flow-audit {
  border-top: 1px solid var(--border-dim);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.audit-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  opacity: 0;
  animation: audit-fade 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 280ms + 200ms);
}

@keyframes audit-fade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}

.audit-tick { color: var(--text-muted); text-align: center; }
.audit-time { color: var(--text-subtle); font-size: 10.5px; }

.audit-row--error { color: var(--error); }
.audit-row--error .audit-tick { color: var(--error); }

.audit-row--accent { color: var(--accent); }
.audit-row--accent .audit-tick { color: var(--accent); }

/* ── Execution Flow (advanced visual) ── */
.section-flow {
  position: relative;
  background:
    radial-gradient(700px 350px at 50% 10%, rgba(45,186,135,0.04), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.section-header--centered { text-align: center; margin-bottom: 56px; }
.section-label--centered { padding-left: 0; }
.section-label--centered::before { display: none; }
.section-header--centered .section-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.flow-lede {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

.flow-canvas {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(45,186,135,0.02), transparent 40%),
    var(--surface);
  border-radius: var(--radius);
  padding: 32px 32px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.flow-svg {
  width: 100%;
  height: auto;
  max-height: 360px;
  display: block;
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border-dim);
}

.flow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  border: 1px solid var(--border-bright);
  background: var(--bg-alt);
}
.flow-legend-dot--checkpoint { border-color: var(--accent-dim); background: rgba(45,186,135,0.1); }
.flow-legend-dot--err        { border-color: var(--error-dim); background: transparent; }
.flow-legend-dot--rollback   { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 6px rgba(45,186,135,0.6); }

/* ── Platform Architecture ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.arch-card {
  background: var(--surface);
  padding: 32px 26px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--transition);
}

.arch-card:hover { background: var(--surface-2); }

.arch-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.85;
}
.arch-icon svg { width: 100%; height: 100%; }

.arch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.arch-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.arch-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--border-bright);
  border-radius: 2px;
}

.arch-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.arch-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Terminal Block ── */
.terminal {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.terminal-body {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text);
  padding: 24px 28px;
  white-space: pre;
  overflow-x: auto;
  letter-spacing: 0.005em;
}

.t-prompt   { color: var(--text-subtle); }
.t-cmd      { color: var(--text-bright); font-weight: 500; }
.t-cmd-accent { color: var(--accent); font-weight: 500; }
.t-str      { color: #d4a574; }
.t-key      { color: var(--text); }
.t-arrow    { color: var(--text-subtle); }
.t-comment  { color: var(--text-subtle); font-style: italic; }
.t-err      { color: var(--error); }
.t-ok       { color: var(--accent-bright); }
.t-accent   { color: var(--accent); }

/* ── Why Rollback Matters (final) ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-copy .section-title { margin-bottom: 24px; }

.why-lede {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.why-lede--left { text-align: left; max-width: 460px; margin: 0; }

.why-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge--lg {
  padding: 11px 16px 11px 13px;
  font-size: 13px;
}

/* ── Operating Principles 3-col ── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(45,186,135,0.025), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA section ── */
.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(45,186,135,0.10), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-inner {
  max-width: 580px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner .section-label { padding-left: 0; }
.cta-inner .section-label::before { display: none; }

.cta-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 28px;
}

.cta-body {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.cta-body--secondary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cta-mailto {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(45,186,135,0.35);
  text-underline-offset: 3px;
}
.cta-mailto:hover { text-decoration-color: var(--accent); }

.pricing-note {
  font-size: 12.5px;
  color: var(--text-subtle);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  font-size: 12.5px;
  color: var(--text-subtle);
}

/* ─────────── Incident chrome (forensic SRE additions) ─────────── */

.incident-bar {
  background: #050708;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.incident-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.ib-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 28px;
  border-right: 1px solid var(--border-dim);
}
.ib-cell:last-child { border-right: 0; }
.ib-cell strong { color: var(--text); font-weight: 500; }
.ib-cell--ok    strong { color: var(--accent-bright); }
.ib-cell--ok::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(45,186,135,0.7);
}

/* Incident thread — dark strip between sections, like SRE breadcrumb */
.incident-thread {
  background: #060809;
  border-top: 1px solid rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.025);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.incident-thread .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px;
  gap: 14px;
}
.it-cell { display: inline-flex; align-items: center; gap: 10px; }
.it-cell strong { color: var(--text); font-weight: 500; }
.it-arrow { color: var(--accent-dim); }
.it-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

/* Record tag (used in many places) */
.rec-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(45,186,135,0.04);
  border: 1px solid var(--border-bright);
  padding: 2px 7px;
  border-radius: 2px;
}
.rec-tag--accent {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(45,186,135,0.08);
}
.rec-tag--err {
  color: var(--error);
  border-color: var(--error-dim);
  background: rgba(196,120,120,0.04);
}

/* Hero — checkpoint snapshot panel on the right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.snapshot-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(45,186,135,0.025), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-card);
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}
.snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}
.snapshot-head-left { display: flex; align-items: center; gap: 8px; }
.snapshot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,186,135,0.18), 0 0 8px rgba(45,186,135,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.snapshot-body { padding: 18px 16px; }

/* Vertical checkpoint chain in snapshot panel */
.cp-chain {
  position: relative;
  margin: 4px 0 14px;
  padding-left: 22px;
}
.cp-chain::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-dim), var(--border-bright) 60%, var(--error-dim));
}
.cp-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 7px 0;
  font-size: 11.5px;
  color: var(--text);
}
.cp-row::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 13px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent-dim);
  background: var(--bg);
  border-radius: 999px;
}
.cp-row--good::before  { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,186,135,0.10); }
.cp-row--mut::before   { background: var(--bg); border-color: var(--text-muted); }
.cp-row--bad::before   { background: var(--error); border-color: var(--error); }
.cp-row--restore::before {
  background: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45,186,135,0.16), 0 0 8px rgba(45,186,135,0.5);
}
.cp-id    { color: var(--text-bright); font-weight: 500; }
.cp-desc  { color: var(--text-muted); margin-left: 6px; font-weight: 400; }
.cp-meta  { color: var(--text-subtle); font-size: 10.5px; }

.snapshot-foot {
  border-top: 1px solid var(--border);
  padding: 9px 16px;
  font-size: 10px;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.05em;
}
.snapshot-restore-bar {
  height: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.snapshot-restore-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  width: 35%;
  animation: restore-scrub 3.6s linear infinite;
}
@keyframes restore-scrub {
  0%   { transform: translateX(-40%); }
  100% { transform: translateX(280%); }
}

/* ─────────── Recovery Replay (centerpiece) ─────────── */

.section-replay {
  background:
    radial-gradient(900px 400px at 50% -100px, rgba(45,186,135,0.06), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}

.replay-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.replay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.replay-head-left { display: flex; align-items: center; gap: 8px; }
.replay-head-title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.06em;
}
.replay-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Iconic timeline */
.timeline-stage {
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,0.012) 19px 20px),
    var(--bg-alt);
  position: relative;
}

.tl-axis {
  position: relative;
  height: 110px;
  margin: 6px 0 8px;
}
.tl-line {
  position: absolute;
  left: 0; right: 0;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright) 8%, var(--border-bright) 92%, transparent);
}
/* Divergence (after T-1, before T0): red dashed drop */
.tl-divergence {
  position: absolute;
  left: 65%;
  top: 54px;
  width: 1px;
  height: 36px;
  background: repeating-linear-gradient(180deg, var(--error-dim) 0 3px, transparent 3px 6px);
}
.tl-corrupt-zone {
  position: absolute;
  left: 65%;
  right: 12%;
  top: 54px;
  bottom: 0;
  border-top: 1px dashed var(--error-dim);
  background: linear-gradient(180deg, rgba(196,120,120,0.06), transparent 70%);
  pointer-events: none;
}

/* Rollback restoration arc — animated scrub */
.tl-arc {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 96px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright), var(--accent-dim));
  filter: drop-shadow(0 0 4px rgba(45,186,135,0.4));
}
.tl-scrub {
  position: absolute;
  top: 92px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(45,186,135,0.18), 0 0 12px rgba(45,186,135,0.7);
  left: 12%;
  animation: tl-scrub 4.8s cubic-bezier(0.4,0,0.2,1) infinite;
  transform: translateX(-50%);
}
@keyframes tl-scrub {
  0%   { left: 88%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 12%; opacity: 0; }
}

/* Checkpoint nodes on timeline */
.tl-cp {
  position: absolute;
  top: 38px;
  transform: translateX(-50%);
  width: 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}
.tl-cp::after {
  content: "";
  display: block;
  margin: 6px auto 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent-dim);
  background: var(--bg);
  border-radius: 50%;
}
.tl-cp--good::after { background: var(--accent); border-color: var(--accent); }
.tl-cp--mut::after  { border-color: var(--text-muted); background: var(--bg); }
.tl-cp--bad::after  { background: var(--error); border-color: var(--error); }
.tl-cp--target::after {
  background: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45,186,135,0.18), 0 0 10px rgba(45,186,135,0.55);
}
.tl-cp-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-axis-tags {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-subtle);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tl-corrupt-tag {
  position: absolute;
  left: 76%;
  top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--error);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--error-dim);
  background: rgba(196,120,120,0.06);
  transform: translateX(-50%);
}
.tl-restore-tag {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  background: var(--bg-alt);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Replay split body */
.replay-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--border);
  gap: 1px;
}
@media (max-width: 860px) { .replay-split { grid-template-columns: 1fr; } }

.replay-cell {
  background: var(--bg-alt);
  padding: 22px 24px;
}
.replay-cell h4 {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

/* Recovery sequence list */
.rseq {
  position: relative;
  padding-left: 0;
  list-style: none;
}
.rseq li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 12.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border-dim);
}
.rseq li:last-child { border-bottom: 0; }
.rseq li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: var(--bg-alt);
}
.rseq li.is-good::before    { background: var(--accent); border-color: var(--accent); }
.rseq li.is-bad::before     { background: var(--error); border-color: var(--error); }
.rseq li.is-restore::before { background: var(--accent-bright); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,186,135,0.16); }
.rseq .r-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  margin-right: 10px;
  letter-spacing: 0.06em;
}
.rseq .r-event {
  color: var(--text-bright);
  font-weight: 500;
}
.rseq .r-meta {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.rseq li.is-bad .r-event     { color: var(--error); }
.rseq li.is-restore .r-event { color: var(--accent-bright); }

/* State diff card */
.diff-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
}
.diff-line { display: flex; gap: 10px; }
.diff-line .gut {
  width: 14px;
  color: var(--text-subtle);
  flex-shrink: 0;
  text-align: right;
}
.diff-line.is-bad   { color: var(--error); }
.diff-line.is-bad .gut   { color: var(--error); }
.diff-line.is-good  { color: var(--accent-bright); }
.diff-line.is-good .gut  { color: var(--accent); }
.diff-line.is-ctx   { color: var(--text-muted); }

.replay-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 14px;
}
.replay-summary > div {
  background: var(--bg-alt);
  padding: 12px 14px;
}
.replay-summary .ks {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.replay-summary .vs {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-bright);
}
.replay-summary .vs.ok { color: var(--accent-bright); }

/* Verdict footer of replay */
.replay-verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}
.replay-verdict-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--accent-dim);
  color: var(--accent-bright);
  background: rgba(45,186,135,0.08);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}

/* ─────────── Signature stage strip (under recovery timeline) ─────────── */

.stage-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--border);
  gap: 1px;
  border-bottom: 1px solid var(--border);
}
.stage-cell {
  background: var(--bg-alt);
  padding: 14px 14px 12px;
  position: relative;
  font-family: var(--mono);
  overflow: hidden;
}
.stage-cell::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation: stage-fill 7.2s linear infinite;
  animation-delay: calc(var(--s, 0) * 1.2s);
}
.stage-cell .sn {
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stage-cell .sl {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.stage-cell .sm {
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
}
.stage-cell {
  animation: stage-on 7.2s linear infinite;
  animation-delay: calc(var(--s, 0) * 1.2s);
}
@keyframes stage-on {
  0%, 14% { background: var(--bg-alt); }
  15%, 30% { background: rgba(45,186,135,0.08); }
  31%, 100% { background: var(--bg-alt); }
}
@keyframes stage-fill {
  0%, 14% { transform: scaleX(0); opacity: 0; }
  15% { transform: scaleX(0); opacity: 1; }
  30% { transform: scaleX(1); opacity: 1; }
  46% { transform: scaleX(1); opacity: 0.4; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (max-width: 860px) {
  .stage-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Integrity score chip */
.iscore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--accent-dim);
  color: var(--accent-bright);
  background: rgba(45,186,135,0.08);
}
.iscore .iscore-num { color: var(--text-bright); font-weight: 500; letter-spacing: 0.04em; }

/* ─────────── Branch Topology (new section) ─────────── */

.section-topology {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}

.topology-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.topology-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}
.topology-head .left { display: flex; align-items: center; gap: 8px; }
.topology-head .title { color: var(--text); margin-left: 6px; }

.topology-body {
  padding: 28px 26px 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.012) 23px 24px),
    var(--bg-alt);
}

.topo-svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}
.topo-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 16px 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.topo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.topo-legend i {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; border: 1px solid var(--border-bright);
}
.topo-legend i.ok      { background: var(--accent); border-color: var(--accent); }
.topo-legend i.branch  { background: var(--bg); border-color: var(--text-muted); }
.topo-legend i.bad     { background: var(--error); border-color: var(--error); }
.topo-legend i.restore { background: var(--accent-bright); border-color: var(--accent); box-shadow: 0 0 6px rgba(45,186,135,0.5); }

.topo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* Topology dual-panel (lineage list + tree) */
.topo-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  background: var(--border);
  gap: 1px;
}
@media (max-width: 860px) { .topo-grid { grid-template-columns: 1fr; } }
.topo-lineage {
  background: var(--bg-alt);
  padding: 22px 22px;
}
.topo-lineage h4 {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.lineage-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.lineage-row:last-child { border-bottom: 0; }
.lineage-row .lr-id   { color: var(--text-bright); }
.lineage-row .lr-msg  { color: var(--text-muted); letter-spacing: 0.04em; }
.lineage-row .lr-tag  {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}
.lineage-row.ok .lr-tag      { color: var(--accent); border-color: var(--accent-dim); background: rgba(45,186,135,0.06); }
.lineage-row.branch .lr-tag  { color: #d4a574; border-color: #5a4a2a; background: rgba(212,165,116,0.04); }
.lineage-row.bad .lr-tag     { color: var(--error); border-color: var(--error-dim); background: rgba(196,120,120,0.04); }
.lineage-row.restore .lr-tag { color: var(--accent-bright); border-color: var(--accent); background: rgba(45,186,135,0.10); }

/* ─────────── State Records (replaces .arch-card) ─────────── */

.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
@media (max-width: 960px) { .records-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .records-grid { grid-template-columns: 1fr; } }

.state-record {
  background: var(--surface);
  border-top: 2px solid var(--accent-dim);
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.state-record:hover { background: var(--surface-2); }

.sr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.sr-head .ok { color: var(--accent); }
.sr-body { padding: 22px 22px 20px; }
.sr-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sr-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.state-record h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.state-record p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.sr-foot {
  border-top: 1px dashed var(--border-dim);
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  margin-top: auto;
}
.sr-foot .hash { color: var(--text-muted); }

/* ─────────── Checkpoint Logs (replaces .feature-card 3-col) ─────────── */

.cplog-list {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.cplog-row {
  display: grid;
  grid-template-columns: 110px 130px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dim);
}
.cplog-row:last-child { border-bottom: 0; }
.cplog-row:hover { background: var(--surface-2); }
.cplog-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.cplog-event {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cplog-event.warn  { color: #d4a574; }
.cplog-event.ok    { color: var(--accent-bright); }
.cplog-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.cplog-msg strong { color: var(--text-bright); }
.cplog-stamp {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}
.cplog-stamp.ok    { color: var(--accent); border-color: var(--accent-dim); background: rgba(45,186,135,0.06); }
.cplog-stamp.warn  { color: #d4a574; border-color: #5a4a2a; background: rgba(212,165,116,0.04); }
@media (max-width: 860px) {
  .cplog-row { grid-template-columns: 1fr; gap: 6px; }
  .cplog-stamp { justify-self: start; }
}

/* Acquisition brief panel */
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  text-align: left;
  max-width: none;
}
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
}
.cta-grid .cta-title { text-align: left; }
.acq-brief {
  border: 1px solid var(--border);
  background: rgba(13,18,18,0.6);
  padding: 22px 22px 18px;
}
.acq-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.acq-brief dl {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.85;
}
.acq-brief .akv {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dim);
  padding: 6px 0;
}
.acq-brief .akv:last-child { border-bottom: 0; }
.acq-brief dt { color: var(--text-subtle); }
.acq-brief dd { color: var(--text-bright); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .strategic-grid { grid-template-columns: 1fr; gap: 40px; }
  .control-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .section-narrow { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { margin-bottom: 36px; }
  .hero { padding: 88px 0 72px; }
  .three-col { grid-template-columns: 1fr; }
  .hero-actions { margin-bottom: 40px; }
  .hero-meta { gap: 16px; padding: 12px 18px; }
  .hero-meta-divider { display: none; }
  .terminal-body { font-size: 11.5px; padding: 20px; }
}

@media (max-width: 600px) {
  .arch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-domain { font-size: 40px; letter-spacing: -0.04em; margin-bottom: 22px; }
  .hero-subheadline { font-size: 17px; }
  .hero-support { margin-bottom: 32px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 13px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .visual-body { padding: 20px 16px; }
  .flow-node { font-size: 9.5px; padding: 6px 8px; min-width: 44px; }
  .flow-arrow-label { font-size: 7.5px; }
}

/* ── A11y: skip link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 14px;
  background: #07090c;
  color: #67e8f9;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #1d2533;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

/* ── A11y: visible keyboard focus on interactive elements ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
  border-radius: 1px;
}
