/* ═══════════════════════════════════════════════════════════
   BABUBA — Agent Operating System · Design System v3
   Aesthetic: OS / hardware / terminal — not SaaS.
   Volt on black. Square. Monospace. No gradients, no blur-candy.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg: #0A0A0B;
  --bg2: #0E0E10;
  --panel: #121214;
  --panel2: #161618;
  --line: #26262B;
  --line2: #3D3D44;
  --ink: #E8E8E2;
  --dim: #8B8B84;
  --faint: #82827B;        /* was #55554F - raised for WCAG AA on dark bg */
  --volt: #C9F24B;        /* signature — acid volt */
  --volt-dim: rgba(201,242,75,0.12);
  --amber: #FFB454;
  --signal: #FF5C39;      /* attention / alerts */
  --ok: #7EE787;

  /* Type */
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;

  /* Layout */
  --max: 1180px;
  --r: 2px;               /* nearly square — hardware, not candy */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--volt); color: #000; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--mono); }

/* ── CRT scanlines (subtle) ─────────────────────────────── */
.scanlines {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ── Scroll progress ────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--volt); z-index: 100;
  box-shadow: 0 0 12px var(--volt-dim);
}

/* ═══════════ STATUS BAR / NAV ═══════════ */
.statusbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 24px;
  padding: 0 28px; height: 52px;
  background: rgba(10,10,11,0.92);
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.04em;
  transition: background var(--dur) var(--ease);
}
.statusbar.scrolled { background: rgba(10,10,11,0.98); }
.logo { font-weight: 700; font-size: 14px; letter-spacing: 0.06em; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.logo-mark { color: var(--volt); animation: blink 3.2s steps(1) infinite; }
.volt { color: var(--volt); }
.sysinfo { color: var(--faint); display: flex; align-items: center; gap: 8px; flex: 1; overflow: hidden; white-space: nowrap; }
.sysinfo .sep { color: var(--line2); }
.sys-dot { display: inline-block; width: 7px; height: 7px; background: var(--volt); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--dim); font-size: 12px; letter-spacing: 0.08em; position: relative; padding: 11px 6px; transition: color 200ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--volt); transition: width 260ms var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; min-height: 40px; min-width: 40px; }
.nav-burger span { display: block; width: 16px; height: 1px; background: var(--ink); margin: 3px 0; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 22px; border-radius: var(--r);
  border: 1px solid var(--line2); cursor: pointer;
  transition: all 220ms var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--volt); color: #000; border-color: var(--volt); font-weight: 700; }
.btn-primary:hover { background: #D8FF6B; box-shadow: 0 0 24px var(--volt-dim); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn-lg { padding: 16px 28px; font-size: 13px; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 28px 70px;
  max-width: var(--max); margin: 0 auto;
}
.hero-corner { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.hero-corner::before, .hero-corner::after { content: ""; position: absolute; background: var(--line2); }
.hero-corner.tl { top: 84px; left: 8px; }
.hero-corner.tr { top: 84px; right: 8px; }
.hero-corner.bl { bottom: 40px; left: 8px; }
.hero-corner.br { bottom: 40px; right: 8px; }
.hero-corner::before { width: 22px; height: 1px; top: 10px; }
.hero-corner::after { width: 1px; height: 22px; left: 10px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; width: 100%; }
.kicker { font-size: 12.5px; color: var(--dim); letter-spacing: 0.04em; margin-bottom: 26px; }
.prompt { color: var(--volt); font-weight: 700; }
.cursor {
  display: inline-block; width: 9px; height: 15px; background: var(--volt);
  vertical-align: -2px; margin-left: 6px; animation: blink 1s steps(1) infinite;
}
.hero-title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 26px; }
.hero-title .line { display: block; }
.hero-sub { font-family: var(--sans); font-size: 16.5px; color: var(--dim); max-width: 540px; margin-bottom: 34px; }
.hero-sub em { color: var(--ink); font-style: normal; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta li {
  font-size: 12px; letter-spacing: 0.12em; color: var(--faint);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--r);
}

/* ── Desktop mock ───────────────────────────────────────── */
.desk {
  position: relative; background: var(--bg2); min-width: 0;
  border: 1px solid var(--line2); border-radius: var(--r);
  padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.desk-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--faint); letter-spacing: 0.08em;
}
.desk-clock { color: var(--volt); }
.win {
  margin: 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); position: relative;
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--faint); letter-spacing: 0.06em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--signal); }
.dot.y { background: var(--amber); }
.dot.g { background: var(--ok); }
.win-title { margin-left: 6px; }
.win-body { padding: 12px 14px; font-size: 11.5px; line-height: 1.9; }
.win-body p { white-space: nowrap; }
.bootlog p { opacity: 0; animation: bootline 0.5s var(--ease) forwards; }
.bootlog p:nth-child(1) { animation-delay: 0.4s; }
.bootlog p:nth-child(2) { animation-delay: 0.9s; }
.bootlog p:nth-child(3) { animation-delay: 1.4s; }
.bootlog p:nth-child(4) { animation-delay: 1.9s; }
.bootlog p:nth-child(5) { animation-delay: 2.4s; }
.bootlog p:nth-child(6) { animation-delay: 2.9s; }
.bootlog p:nth-child(7) { animation-delay: 3.4s; }
.cursor-line .cursor { animation-delay: 3.6s; }
@keyframes bootline { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.dim { color: var(--faint); }
.ok { color: var(--ok); }
.row { display: flex; justify-content: space-between; gap: 16px; }
.win-fin .win-body p { opacity: 0; animation: bootline 0.5s var(--ease) forwards; }
.win-fin .win-body p:nth-child(1) { animation-delay: 2.2s; }
.win-fin .win-body p:nth-child(2) { animation-delay: 2.7s; }
.win-fin .win-body p:nth-child(3) { animation-delay: 3.2s; }
.win-alert { border-color: rgba(255,92,57,0.4); }
.win-alert .win-title { color: var(--signal); }
.alert-line { color: var(--signal); font-weight: 700; font-size: 12.5px; }
.alert-sub { font-size: 12px; }
.win-alert { opacity: 0; animation: bootline 0.6s var(--ease) 4s forwards; }

/* ═══════════ TICKER ═══════════ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg2); overflow: hidden; padding: 13px 0;
}
.ticker-track { display: flex; align-items: center; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.ticker-track span { font-size: 11.5px; letter-spacing: 0.14em; color: var(--dim); }
.ticker-track i { font-style: normal; color: var(--volt); font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════ SECTIONS ═══════════ */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: 110px 28px; border-top: 1px solid var(--line); }
.crosshair { position: absolute; top: 40px; left: 28px; width: 14px; height: 14px; opacity: 0.6; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--line2); }
.crosshair::before { width: 14px; height: 1px; top: 6px; }
.crosshair::after { width: 1px; height: 14px; left: 6px; }

.section-head { margin-bottom: 64px; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.16em; color: var(--volt); margin-bottom: 18px; }
.section-title { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.section-sub { font-family: var(--sans); color: var(--dim); font-size: 16px; max-width: 640px; }

/* ═══════════ KERNELS (what is babuba) ═══════════ */
.kernels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kernel { border: 1px solid var(--line); background: var(--panel); padding: 26px; border-radius: var(--r); transition: border-color 300ms, transform 300ms var(--ease); position: relative; }
.kernel:hover { border-color: var(--volt); transform: translateY(-3px); }
.kernel-id { font-size: 12px; letter-spacing: 0.14em; color: var(--volt); margin-bottom: 16px; }
.kernel h3 { font-size: 15px; letter-spacing: 0.06em; margin-bottom: 10px; }
.kernel p { font-family: var(--sans); font-size: 13.5px; color: var(--dim); line-height: 1.7; }

/* ═══════════ BOOT SEQUENCE ═══════════ */
.boot { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.boot-step { border: 1px solid var(--line); background: var(--panel); padding: 24px; border-radius: var(--r); position: relative; transition: border-color 300ms; }
.boot-step:hover { border-color: var(--volt); }
.step-num { position: absolute; top: 14px; right: 16px; font-size: 30px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line2); }
.boot-step h3 { font-size: 14px; letter-spacing: 0.1em; margin-bottom: 8px; }
.boot-log { font-size: 12px; margin-bottom: 12px; }
.boot-step p:last-child { font-family: var(--sans); font-size: 13px; color: var(--dim); line-height: 1.65; }
.boot-arrow { display: flex; align-items: center; color: var(--volt); font-size: 16px; padding: 0 2px; }

/* ═══════════ CONSOLE (ops desk demo) ═══════════ */
.console { border: 1px solid var(--line2); background: var(--bg2); border-radius: var(--r); overflow: hidden; }
.console-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--faint); letter-spacing: 0.05em;
}
.console-title { margin-left: 6px; flex: 1; }
.console-status { display: flex; align-items: center; gap: 7px; color: var(--volt); font-size: 12px; letter-spacing: 0.1em; }
.pulse-dot { width: 7px; height: 7px; background: var(--volt); border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.console-body { display: grid; grid-template-columns: 1fr 0.8fr 1.2fr; min-height: 300px; }
.console-col { padding: 18px; border-right: 1px solid var(--line); }
.console-col:last-child { border-right: none; }
.col-label { font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 14px; }
.msg { border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; margin-bottom: 8px; font-size: 11px; border-radius: var(--r); opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg b { color: var(--ink); font-weight: 700; }
.msg .t { color: var(--faint); float: right; }
.agent-core { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 14px; }
.agent-ring { width: 58px; height: 58px; border: 2px solid var(--line2); border-top-color: var(--volt); border-radius: 50%; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#agentState { font-size: 11px; letter-spacing: 0.14em; color: var(--volt); text-transform: uppercase; }
.list-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.list-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 9.5px; letter-spacing: 0.12em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.list-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--dim); }
.list-table tr { opacity: 0; transform: translateY(5px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.list-table tr.in { opacity: 1; transform: none; }
.list-table td { color: var(--dim); }
.chip { display: inline-block; font-size: 9px; letter-spacing: 0.1em; padding: 2px 7px; border-radius: var(--r); font-weight: 700; }
.chip.ok { color: var(--volt); border: 1px solid rgba(201,242,75,0.35); background: var(--volt-dim); }
.chip.flag { color: var(--amber); border: 1px solid rgba(255,180,84,0.35); background: rgba(255,180,84,0.08); }
.approve-btn {
  margin-top: 14px; width: 100%; padding: 12px; cursor: pointer;
  background: var(--volt); color: #000; border: none; border-radius: var(--r);
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  transition: all 220ms var(--ease);
}
.approve-btn:hover { background: #D8FF6B; box-shadow: 0 0 20px var(--volt-dim); }
.approve-btn:disabled { background: var(--line2); color: var(--faint); cursor: default; box-shadow: none; }
.approve-btn.ready { animation: readyPulse 1.6s ease-in-out infinite; }
@keyframes readyPulse { 0%,100% { box-shadow: 0 0 0 0 var(--volt-dim); } 50% { box-shadow: 0 0 18px 2px var(--volt-dim); } }

/* ═══════════ USE-CASE GRID ═══════════ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 22px; transition: border-color 300ms, transform 300ms var(--ease); }
.cell:hover { border-color: var(--volt); transform: translateY(-3px); }
.cell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cell-id { font-size: 11px; letter-spacing: 0.12em; color: var(--volt); font-weight: 700; }
.cell-status { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim); }
.cell ul { margin-bottom: 14px; }
.cell li { font-family: var(--sans); font-size: 13px; color: var(--dim); padding: 4px 0 4px 16px; position: relative; }
.cell li::before { content: "▸"; position: absolute; left: 0; color: var(--volt); }
.cell-log { font-size: 10.5px; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ═══════════ OWNERSHIP SPEC ═══════════ */
.spec { border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; margin-bottom: 60px; }
.spec-row { display: flex; align-items: baseline; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.spec-row:last-child { border-bottom: none; }
.spec-key { font-size: 12px; letter-spacing: 0.1em; color: var(--volt); white-space: nowrap; font-weight: 700; }
.spec-dots { flex: 1; border-bottom: 1px dotted var(--line2); transform: translateY(-4px); }
.spec-val { font-size: 12.5px; color: var(--ink); text-align: right; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border: 1px solid var(--line); background: var(--panel); padding: 26px; text-align: center; border-radius: var(--r); }
.stat-num { font-size: 40px; font-weight: 700; color: var(--volt); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); }

/* ═══════════ PRICING ═══════════ */
.toggle { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.tg-btn { background: transparent; border: none; color: var(--dim); font-size: 11px; letter-spacing: 0.1em; padding: 11px 18px; cursor: pointer; transition: all 200ms; }
.tg-btn.active { background: var(--volt); color: #000; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plans-single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.plans-two { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin: 0 auto; }
.plan { border: 1px solid var(--line); background: var(--panel); padding: 30px; border-radius: var(--r); display: flex; flex-direction: column; position: relative; }
.plan-hot { border-color: var(--volt); box-shadow: 0 0 40px var(--volt-dim); }
.plan-tag { position: absolute; top: -11px; left: 24px; background: var(--volt); color: #000; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 10px; border-radius: var(--r); }
.plan-id { font-size: 10px; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 12px; }
.plan h3, .plan h2.plan-name { font-size: 16px; letter-spacing: 0.08em; margin-bottom: 10px; }
.plan-price { font-size: 15px; margin-bottom: 20px; }
.price { font-size: 40px; font-weight: 700; color: var(--ink); transition: opacity 180ms; }
.plan-hot .price { color: var(--volt); }
.plan-cur { color: var(--dim); font-size: 12px; margin-left: 4px; }
.plan-custom { font-size: 32px; font-weight: 700; color: var(--ink); }
.plan ul { flex: 1; margin-bottom: 24px; }
.plan li { font-family: var(--sans); font-size: 13px; color: var(--dim); padding: 5px 0 5px 16px; position: relative; }
.plan li::before { content: "▸"; position: absolute; left: 0; color: var(--volt); }
.plan .btn { width: 100%; }

/* ═══════════ FAQ ═══════════ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.faq-item[open] { border-color: var(--volt); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-size: 13px; letter-spacing: 0.04em; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .prompt { font-size: 12px; }
.faq-item summary .chev { margin-left: auto; color: var(--volt); font-size: 16px; transition: transform 260ms var(--ease); }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 8px 52px; font-family: var(--sans); font-size: 13.5px; color: var(--dim); }
.faq-item p.ans { padding-bottom: 20px; }

/* ═══════════ FOOTER ═══════════ */
.footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 26px 28px 0;
  font-size: 12px; letter-spacing: 0.06em;
}
.footer-status { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; }
.footer-links { display: flex; gap: 22px; max-width: var(--max); margin: 0 auto; padding: 20px 28px 8px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 12.5px; letter-spacing: 0.1em; transition: color 200ms; display: inline-flex; align-items: center; min-height: 40px; padding: 2px; }
.footer-links a:hover { color: var(--volt); }
/* prose links: ≥24px touch targets without breaking line layout */
.docs-wrap a:not(.btn):not(.skip-link), .bp-step a, .pay-val a { display:inline-block; padding:4px 0; }
.footer-copy a { display:inline-block; padding:13px 0; margin:-13px 0; }
.footer-copy { max-width: var(--max); margin: 0 auto; padding: 10px 28px 30px; font-size: 11px; letter-spacing: 0.12em; }

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ BLINK ═══════════ */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ═══════════════ CONTROL PLANE ═══════════════ */
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.ctrl-card { border: 1px solid var(--line); background: var(--panel); padding: 26px; border-radius: var(--r); position: relative; }
.ctrl-card:hover { border-color: var(--line2); }
.ctrl-id { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--volt); margin-bottom: 14px; }
.ctrl-card h3 { font-size: 14px; letter-spacing: 0.06em; margin-bottom: 10px; }
.ctrl-card p { font-family: var(--sans); font-size: 13px; line-height: 1.65; color: var(--dim); }

/* ═══════════════ COST COMPARISON ═══════════════ */
.own-compare { max-width: 900px; margin: 44px auto 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.oc-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.oc-vs { color: var(--volt); }
.oc-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.oc-table th { text-align: left; font-size: 10px; letter-spacing: 0.16em; color: var(--faint); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.oc-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--dim); }
.oc-table tr:last-child td { border-bottom: none; }
.oc-table td:first-child { color: var(--faint); font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; }
.oc-table th:last-child, .oc-table td:last-child { color: var(--volt); }
.oc-table th:nth-child(2), .oc-table td:nth-child(2) { color: var(--dim); border-right: 1px solid var(--line); }

/* ═══════════════ BUY PATH ═══════════════ */
.buy-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 44px auto 0; }
.bp-step { border: 1px solid var(--line); background: var(--panel); padding: 24px; border-radius: var(--r); }
.bp-num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--volt); display: block; margin-bottom: 12px; }
.bp-step h3 { font-size: 13px; letter-spacing: 0.08em; margin-bottom: 8px; }
.bp-step p { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--dim); }
.bp-link { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; display:inline-block; padding:5px 0; margin:-5px 0; }
.bp-link:hover { color: var(--ink); }

/* ═══════════════ MICRO-MOTION (added) ═══════════════ */

/* Card lift — consistent interaction language */
.ctrl-card, .bp-step, .boot-step { transition: border-color 300ms, transform 300ms var(--ease), box-shadow 300ms; }
.kernel:hover, .ctrl-card:hover, .bp-step:hover, .boot-step:hover {
  transform: translateY(-3px);
  border-color: var(--volt);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--volt-dim);
}

/* FAQ smooth expand/collapse */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease); }
.faq-body > div { overflow: hidden; }
.faq-item[open] .faq-body { grid-template-rows: 1fr; }

/* Scroll-spy active nav link */
.nav-links a.active { color: var(--volt); }
.nav-links a.active::after { width: 100%; background: var(--volt); }

/* Boot overlay — first-load OS boot */
.boot-ov {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 420ms ease, visibility 420ms;
}
.boot-ov.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-ov-inner { font-family: var(--mono); font-size: 14px; line-height: 2.1; letter-spacing: 0.04em; }
.bo-line { opacity: 0; animation: bootline 220ms var(--ease) forwards; }
.bo-line:nth-child(1) { animation-delay: 60ms; }
.bo-line:nth-child(2) { animation-delay: 220ms; }
.bo-line:nth-child(3) { animation-delay: 380ms; }
.bo-line:nth-child(4) { animation-delay: 540ms; }
.bo-line:nth-child(5) { animation-delay: 700ms; }
.bo-line:nth-child(6) { animation-delay: 860ms; }
.bo-line:nth-child(7) { animation-delay: 1020ms; }

/* Back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--volt); background: var(--panel);
  border: 1px solid var(--line2); border-radius: var(--r);
  padding: 0 12px; min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms, border-color 260ms;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--volt); box-shadow: 0 0 18px var(--volt-dim); }

@media (prefers-reduced-motion: reduce) {
  .kernel:hover, .ctrl-card:hover, .bp-step:hover, .boot-step:hover { transform: none; }
  .boot-ov { display: none; }
  .to-top { transition: none; }
}

/* ═══════════ ACCESSIBILITY: FOCUS STATES ═══════════ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}
   of the stylesheet so they win over same-specificity base rules (source order).
   If a new section is added, keep its base rules ABOVE this block. */
/* ═══════════ RESPONSIVE ═══════════ */
/* Base layout rules are defined above; these media queries MUST stay at the end
   of the stylesheet so they win over same-specificity base rules (source order).
   If a new section is added, keep its base rules ABOVE this block. */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .desk { max-width: 560px; }
  .boot { grid-template-columns: 1fr; }
  .boot-arrow { transform: rotate(90deg); justify-content: center; padding: 6px 0; }
  .grid, .kernels, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .statusbar { padding: 0 16px; gap: 12px; }
  .sysinfo { display: none; }
  .nav-links {
    position: fixed; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 15px 20px; border-top: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .hero { padding: 110px 18px 50px; }
  .section { padding: 80px 18px; }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .console-body { grid-template-columns: 1fr; min-height: 0; }
  .console-col { border-right: none; border-bottom: 1px solid var(--line); }
  .console-col:last-child { border-bottom: none; }
  .grid, .kernels, .plans, .stats, .control-grid, .buy-path { grid-template-columns: 1fr; }
  .spec-row { flex-direction: column; gap: 6px; }
  .spec-val { text-align: left; }
  .spec-dots { display: none; }
  .footer-bar { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* comparison table: stack into labeled blocks so nothing clips */
  .own-compare { overflow: visible; }
  .oc-table, .oc-table thead, .oc-table tbody, .oc-table tr, .oc-table td { display: block; width: 100%; }
  .oc-table thead { display: none; }
  .oc-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .oc-table tr:last-child { border-bottom: none; }
  .oc-table td { border: none; padding: 8px 14px; }
  .oc-table td:first-child { white-space: normal; font-size: 11px; }
  .oc-table td:nth-child(2), .oc-table td:last-child { border-right: none; }
  .oc-table td:nth-child(2)::before { content: "SAAS SUBSCRIPTION — "; color: var(--dim); }
  .oc-table td:last-child::before { content: "BABUBA OS — "; color: var(--volt); }
  .oc-table td:nth-child(2), .oc-table td:last-child { color: var(--dim); }
  .oc-table td:last-child { color: var(--volt); }
}


/* Agent orchestration canvas (agent-canvas.js) */
.orch { position: relative; border: 1px solid rgba(232,232,226,0.12); border-radius: 2px; background: #0A0A0B; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.85); }
.agent-canvas { display: block; width: 100%; height: 430px; }
.orch-caption { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(232,232,226,0.08); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); background: rgba(232,232,226,0.02); }
.orch-caption .pulse-dot { flex: 0 0 auto; }
@media (max-width: 720px) { .agent-canvas { height: 330px; } }


/* ═══════════ STATS STRIP ═══════════ */
.stats-strip { background:#0D0D0F; border-top:1px solid #26262A; border-bottom:1px solid #26262A; padding:30px 0 26px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; max-width:1180px; margin:0 auto; padding:0 22px; }
.stat { text-align:center; }
.stat-num { font-family:'JetBrains Mono',monospace; font-size:clamp(26px,4vw,40px); font-weight:700; color:#C9F24B; letter-spacing:-0.02em; line-height:1.1; }
.stat-label { font-size:12px; color:#8B8B8F; text-transform:uppercase; letter-spacing:0.08em; margin-top:8px; }
.stat-note { font-size:11px; color:#5A5A5E; margin-top:4px; }
.stats-note-line { text-align:center; font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:0.12em; color:#5A5A5E; margin:22px 16px 0; }
.stats-clients { text-align:center; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:0.16em; color:#8B8B84; margin:0 16px 20px; text-transform:uppercase; }
.stats-clients a { color:#C9F24B; text-decoration:none; border-bottom:1px dotted rgba(201,242,75,0.4); padding:2px 0; transition:color .2s, border-color .2s; }
.stats-clients a:hover { color:#D8FF6B; border-bottom-color:#C9F24B; }
.client-logos { display:flex; justify-content:center; align-items:center; gap:20px; flex-wrap:wrap; max-width:1180px; margin:0 auto; padding:0 22px; }
.client-logo-card { display:flex; align-items:center; justify-content:center; background:#fff; border-radius:12px; padding:14px 30px; height:64px; min-width:210px; border:1px solid rgba(255,255,255,.1); box-shadow:0 2px 10px rgba(0,0,0,.25); transition:transform .2s ease, box-shadow .2s ease; }
.client-logo-card:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.4); }
.client-logo-img { max-height:38px; width:auto; display:block; }
.thuna-mark { display:flex; align-items:center; gap:9px; }
.thuna-mark svg { width:26px; height:26px; color:#0F9D6C; }
.thuna-word { font-family:'Inter',system-ui,-apple-system,sans-serif; font-weight:700; font-size:21px; letter-spacing:-0.02em; color:#1F2937; line-height:1; }
.thuna-dot { color:#0F9D6C; }
@media (max-width:820px) { .client-logo-card { padding:10px 18px; height:54px; min-width:0; } .client-logo-img { max-height:28px; } .thuna-word { font-size:17px; } .thuna-mark svg { width:21px; height:21px; } }
.stats-note-line a { color:#8B8B84; text-decoration:none; border-bottom:1px dotted rgba(201,242,75,0.35); transition:color .2s, border-color .2s; }
.stats-note-line a:hover { color:#C9F24B; border-bottom-color:#C9F24B; }
@media (max-width:820px) { .stats-grid { grid-template-columns:repeat(2,1fr); gap:20px; } }

/* ═══════════ CONTROL PLANE (ADMIN MOCK) ═══════════ */
.admin-panel { border:1px solid #26262A; border-radius:10px; background:#0B0B0D; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.45); text-align:left; }
.admin-top { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #26262A; background:#0F0F12; }
.admin-top .dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.admin-top .t { font-size:12px; color:#E8E8E2; font-family:'JetBrains Mono',monospace; }
.admin-top .s { margin-left:auto; font-size:11px; color:#C9F24B; font-family:'JetBrains Mono',monospace; }
.admin-body { display:grid; grid-template-columns:220px 1fr; min-height:380px; }
.admin-side { border-right:1px solid #26262A; padding:14px 0; }
.admin-side a { display:block; padding:11px 16px; font-size:12px; color:#8B8B8F; text-decoration:none; font-family:'JetBrains Mono',monospace; }
.admin-side a:hover { color:#E8E8E2; }
.admin-side a.on { color:#C9F24B; border-left:2px solid #C9F24B; background:#14140F; }
.admin-main { padding:16px 18px; }
.admin-h { font-size:11px; color:#8B8B8F; text-transform:uppercase; letter-spacing:.08em; margin:0 0 12px; font-family:'JetBrains Mono',monospace; }
.admin-agent { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #1E1E22; border-radius:6px; margin-bottom:8px; background:#0F0F12; }
.admin-agent .nm { font-family:'JetBrains Mono',monospace; font-size:12px; color:#E8E8E2; }
.admin-agent .st { margin-left:auto; font-size:11px; color:#C9F24B; font-family:'JetBrains Mono',monospace; }
.queue-item { display:flex; align-items:center; gap:12px; padding:9px 12px; border-left:2px solid #F5A623; background:#141006; border-radius:0 6px 6px 0; margin-bottom:8px; font-size:12px; color:#A8A8AC; }
.queue-item .qid { font-family:'JetBrains Mono',monospace; color:#E8E8E2; }
.queue-item .amt { margin-left:auto; color:#F5A623; font-family:'JetBrains Mono',monospace; }
.audit-row { font-family:'JetBrains Mono',monospace; font-size:11px; color:#6F6F73; padding:5px 0; border-bottom:1px dashed #1E1E22; }
.audit-row b { color:#C9F24B; font-weight:600; }
.audit-row .act { color:#E8E8E2; }
@media (max-width:820px) { .admin-body { grid-template-columns:1fr; } .admin-side { display:none; } }

/* ═══════════ GOVERNANCE ═══════════ */
.gov-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; max-width:960px; margin:0 auto; }
.gov-card { border:1px solid #26262A; background:#101013; border-radius:8px; padding:22px; text-align:left; }
.gov-card h3 { font-size:13px; letter-spacing:0.06em; margin:0 0 10px; font-family:'JetBrains Mono',monospace; }
.gov-card p { font-size:13px; color:#A8A8AC; line-height:1.6; margin:0; }
@media (max-width:820px) { .gov-grid { grid-template-columns:1fr; } }

/* ═══════════ DOCS / COMPARE PAGES ═══════════ */
.docs-wrap { max-width:900px; margin:0 auto; text-align:left; }
.docs-wrap h2 { font-size:clamp(18px,2.6vw,24px); letter-spacing:0.02em; margin:44px 0 12px; }
.docs-wrap h2:first-child { margin-top:8px; }
.docs-wrap h3 { font-size:14px; letter-spacing:0.04em; margin:28px 0 8px; color:#E8E8E2; }
.docs-wrap p, .docs-wrap li { font-size:14px; line-height:1.7; color:#A8A8AC; }
.docs-wrap ul { padding-left:20px; }
.docs-wrap code { font-family:'JetBrains Mono',monospace; font-size:12.5px; color:#C9F24B; background:#14140F; padding:2px 6px; border-radius:4px; border:1px solid #26262A; }
.docs-wrap pre { background:#0B0B0D; border:1px solid #26262A; border-radius:8px; padding:16px 18px; overflow-x:auto; font-family:'JetBrains Mono',monospace; font-size:12.5px; line-height:1.6; color:#E8E8E2; }
.docs-wrap pre .dim { color:#6F6F73; }
.docs-wrap .doc-note { border-left:2px solid #C9F24B; background:#14140F; padding:10px 14px; font-size:13px; color:#A8A8AC; border-radius:0 6px 6px 0; margin:16px 0; }
.compare-table { width:100%; border-collapse:collapse; font-size:13px; margin:20px 0 8px; }
.compare-table th, .compare-table td { border:1px solid #26262A; padding:11px 14px; text-align:left; vertical-align:top; }
.compare-table th { background:#0F0F12; font-family:'JetBrains Mono',monospace; font-size:11.5px; letter-spacing:0.06em; color:#E8E8E2; }
.compare-table td { color:#A8A8AC; line-height:1.55; }
.compare-table td.yes { color:#C9F24B; font-family:'JetBrains Mono',monospace; }
.compare-table td.no { color:#5A5A5E; font-family:'JetBrains Mono',monospace; }
.compare-table td.babuba { background:rgba(201,242,75,0.05); }
.compare-table .volt { color:#C9F24B; }
@media (max-width:720px) { .compare-table { font-size:12px; } .compare-table th, .compare-table td { padding:8px 9px; } }

/* ═══════════════════════════════════════════════════════════
   v2026.09 — accessibility & live-status pass
   Tokens, tiered neutrals, card surfaces, status semantics,
   glows, prose faces, sticky live bar. Appended so overrides win.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Status semantics (new — distinct from brand volt) */
  --green: #22c55e;   /* live / running */
  --flag:  #f59e0b;   /* flagged / pending */
  --red:   #ef4444;   /* blocked / denied */
  /* Tiered neutrals */
  --text-body:   #a1a1aa;  /* body copy — AA on #0A0A0B */
  --text-meta:   #6b7280;  /* meta / labels */
  --text-footer: #52525b;  /* legal footer line */
  /* Card surfaces */
  --card-bg:         #0d120e;
  --card-line:       rgba(255,255,255,0.06);
  --card-line-hover: rgba(34,197,94,0.25);
}

/* ── Tiered neutrals: body copy ───────────────────────────── */
.hero-sub, .section-sub, .hero-def, .boot-step p,
.gov-card p, .cta-band p, .cell ul li { color: var(--text-body); }

/* ── Tiered neutrals: meta / labels ───────────────────────── */
.eyebrow, .kicker, .stat-label, .col-label, .admin-h,
.step-num, .console-title, .win-title, .cell-head { color: var(--text-meta); }
.stat-note { color: var(--text-meta); }

/* ── Tiered neutrals: footer ──────────────────────────────── */
.footer-copy { color: var(--text-footer); } /* legal line only — links keep AA */
.footer-links a:hover { color: var(--ink); }

/* ── Card surfaces: story blocks, live desk, governance ───── */
.kernel, .cell, .gov-card, .win {
  background: var(--card-bg);
  border-color: var(--card-line);
}
.kernel:hover, .cell:hover, .gov-card:hover { border-color: var(--card-line-hover); }
.admin-agent, .queue-item { background: var(--card-bg); }

/* ── Status semantics: green live / amber flagged / red blocked ── */
.cell-status { color: var(--green); }
.cell-status .sys-dot { background: var(--green); }
.win-alert { border-color: rgba(245,158,11,0.45); }
.win-alert .win-title, .win-alert .alert-line { color: var(--flag); }
.queue-item { border-left-color: var(--flag); background: #141006; }
.queue-item .amt { color: var(--flag); }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: pulse 1.4s ease-in-out infinite; vertical-align: middle;
}
.stats-live {
  text-align: center; margin-top: 16px;
  font-size: 10px; letter-spacing: 0.16em; color: var(--text-meta);
}
.st-legend {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin: 6px 0 34px; font-size: 10px; letter-spacing: 0.14em;
}
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--text-meta); }
.st-live { color: var(--green); }
.st-flag { color: var(--flag); }
.st-block { color: var(--red); }

/* ── Prose faces: Inter for long copy, mono stays for machine text ── */
.hero-sub, .section-sub, .gov-card p, .cta-band p, .boot-step p { font-family: var(--sans); }

/* ── Glows: stats strip, console, governance, CTA band ────── */
.stats-strip {
  background:
    radial-gradient(780px 260px at 50% -30%, rgba(201,242,75,0.09), transparent 70%),
    #0D0D0F;
}
.console {
  background:
    radial-gradient(640px 220px at 50% -40%, rgba(201,242,75,0.07), transparent 70%),
    var(--bg2);
}
#governance {
  background:
    radial-gradient(760px 300px at 50% -20%, rgba(201,242,75,0.06), transparent 70%),
    var(--bg);
}
.cta-band {
  background:
    radial-gradient(820px 320px at 50% -30%, rgba(201,242,75,0.09), transparent 70%),
    var(--bg2);
}

/* ── Sticky live bar (homepage only) ──────────────────────── */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 22px;
  background: rgba(10,10,11,0.94);
  border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.13em; color: var(--text-meta);
}
.stickybar a { color: var(--volt); font-weight: 700; }
.stickybar a:hover { color: #D8FF6B; }
body.home { padding-bottom: 33px; }
@media (max-width: 760px) {
  .stickybar { display: none; }
  body.home { padding-bottom: 0; }
}
