/* IntakeVelocity — site v3 (2026-08-14)
   Template reference: agent-magicui.vercel.app (SkyAgent) — framed light page,
   floating pill nav, announcement pill, centered hero, live-artifact bento,
   dotted-wordmark footer. Positioning: full AI operations (control/compliance/speed).
   IV brand: accent #075CFF, ink #071A34. */

:root {
  --bg: #F7F9FC;
  --panel: #FFFFFF;
  --surface: #F0F3F8;
  --wash: #EDF3FF;
  --line: rgba(7, 26, 52, 0.12);
  --line-soft: rgba(7, 26, 52, 0.07);
  --text: #3B4C66;
  --text-strong: #071A34;
  --text-muted: #52627A;
  --accent: #075CFF;
  --accent-strong: #0550DB;
  --accent-bright: #12A4F5;
  --accent-soft: rgba(7, 92, 255, 0.14);
  --accent-faint: rgba(7, 92, 255, 0.06);
  --on-accent: #FFFFFF;
  --ink: #0B1526;
  --success: #16A34A;
  --success-soft: rgba(22, 163, 74, 0.12);
  --ig-a: #F58529; --ig-b: #DD2A7B; --ig-c: #8134AF;
  --msgr: #0084FF;
  --radius-pill: 999px; --radius-panel: 20px; --radius-card: 14px; --radius-control: 10px;
  --content-max: 1120px;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --shadow-card: 0 1px 2px rgba(7, 26, 52, 0.05), 0 6px 24px rgba(7, 26, 52, 0.07);
  --shadow-float: 0 2px 6px rgba(7, 26, 52, 0.08), 0 12px 40px rgba(7, 26, 52, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, #DCE7FB 0%, #C9DAFA 40%, #DCE7FB 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* framed page (SkyAgent signature) */
.frame {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  overflow: clip;
  padding: 12px clamp(12px, 3vw, 40px) 0;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.7rem, 5.8vw, 4.4rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
.lede { font-size: 1.12rem; color: var(--text); }
.muted { color: var(--text-muted); }
.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: 14px;
}

/* ---------- floating pill nav ---------- */
.nav { position: sticky; top: 10px; z-index: 50; }
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  padding: 10px 12px 10px 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; width: auto; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-strong);
}
.wordmark em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text); transition: color 0.18s var(--ease); }
.nav-links a:hover { color: var(--text-strong); }

/* pill buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent); color: #FFFFFF;
  border: 1px solid var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-float); background: var(--accent-strong); }
.btn .arr { transition: transform 0.18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-nav { padding: 9px 20px; font-size: 0.88rem; box-shadow: none; }
.btn-ghost {
  background: var(--panel); color: var(--text-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--line); }
.btn-invert { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn-invert:hover { background: #E8EDF5; border-color: #E8EDF5; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 78px 24px 40px; }
.announce-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 500;
  color: var(--text-strong);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  padding: 8px 18px;
  margin-bottom: 30px;
  transition: border-color 0.18s var(--ease);
}
.announce-pill:hover { border-color: var(--accent-soft); }
.announce-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.announce-pill .arr { color: var(--accent); font-weight: 600; }
.hero h1 { max-width: 16ch; margin: 0 auto 22px; }
.hero .lede { max-width: 54ch; margin: 0 auto 32px; color: var(--text-muted); }
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- command center: live workflow canvas ---------- */
.command { max-width: 1020px; margin: 40px auto 0; padding-bottom: 90px; }
.flow-canvas {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(rgba(7, 26, 52, 0.10) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  margin-bottom: 22px;
  overflow: hidden;
}
.flow-canvas::before {
  /* the grid sheen — wakes up while the automation runs */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(var(--accent-soft) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(115deg, transparent 30%, var(--accent-faint) 50%, transparent 70%);
  background-size: 22px 22px, 220% 100%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.flow-canvas.running::before { opacity: 1; animation: grid-sweep 2.2s linear infinite; }
@keyframes grid-sweep {
  from { background-position: 0 0, 120% 0; }
  to { background-position: 0 0, -120% 0; }
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wires .wire {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
  transition: stroke 0.25s var(--ease), stroke-width 0.25s var(--ease);
}
.wires .wire.hot { stroke: var(--accent); stroke-width: 2.2; }
.wires .wire-dot { fill: var(--accent); opacity: 0.9; }
.fc-col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.fc-mid { align-items: center; }
.wf-node {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px 16px;
  font-size: 0.86rem; font-weight: 500; color: var(--text-strong);
  font-family: var(--font-display);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.wf-node.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), var(--shadow-card);
  transform: scale(1.03);
}
.wn-ic {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}
.ic-phone { background: var(--success); }
.ic-web { background: var(--ink); }
.ic-sms { background: var(--accent); }
.ic-ig { background: linear-gradient(135deg, var(--ig-a), var(--ig-b), var(--ig-c)); }
.ic-msgr { background: var(--msgr); }
.ic-google { background: #EA4335; }
.ic-out { background: var(--surface); color: var(--accent); border: 1px solid var(--accent-soft); }
.wf-out { font-size: 0.82rem; }
.agent-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  padding: 18px 22px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.an-title, .an-sub { white-space: nowrap; }
.agent-node.working {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-faint), var(--shadow-float);
  animation: agent-pulse 1.4s var(--ease) infinite;
}
@keyframes agent-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-faint), var(--shadow-float); }
  50% { box-shadow: 0 0 0 9px rgba(7, 92, 255, 0.09), var(--shadow-float); }
}
.agent-node img { width: 40px; height: 40px; }
.an-title { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); font-size: 1rem; }
.an-sub { font-size: 0.8rem; color: var(--text-muted); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* dashboard */
.dash {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.dash-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text-strong); }
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--success);
}
.dash-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  text-align: left; padding: 12px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.dash-table td { font-size: 0.9rem; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .lead-name { font-weight: 600; color: var(--text-strong); }
.dash-table tr.row-in { animation: row-in 0.4s var(--ease); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.status { display: inline-block; font-size: 0.76rem; font-weight: 600; border-radius: var(--radius-pill); padding: 3px 12px; white-space: nowrap; }
.status.s-new { color: var(--text-muted); background: var(--surface); }
.status.s-conv { color: var(--accent); background: var(--accent-faint); }
.status.s-qual { color: var(--accent-strong); background: var(--accent-soft); }
.status.s-conf { color: #7C3AED; background: rgba(124, 58, 237, 0.1); }
.status.s-book { color: var(--success); background: var(--success-soft); }
.dash-foot {
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
}
.dash-foot .hint { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- sections ---------- */
section { padding: 88px 24px; border-top: 1px solid var(--line-soft); }
.bento-sec { border-top: 1px solid var(--line-soft); padding: 88px 24px; }
.sec-head { text-align: center; max-width: 64ch; margin: 0 auto 52px; }
.sec-head .lede { margin-top: 14px; }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.cell h3 { margin-top: 16px; }
.cell > p { font-size: 0.93rem; color: var(--text-muted); }
.cell-wide { justify-content: center; }
.cell-wide .bars, .cell-wide .mini-nodes { margin: 10px auto 6px; }

/* channel chrome (mini widgets) */
.cell-chrome {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
}
.mini-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}
.mh-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--accent); }
.mh-name { font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; color: var(--text-strong); line-height: 1.2; }
.mh-sub { font-size: 0.7rem; color: var(--text-muted); }
.chrome-ig .mh-ic { background: conic-gradient(from 200deg, var(--ig-a), var(--ig-b), var(--ig-c), var(--ig-a)); }
.chrome-ig .mini-head { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--ig-a), var(--ig-b), var(--ig-c)) 1; }
.chrome-msgr .mh-ic { background: var(--msgr); }
.chrome-web .mh-ic { background: var(--ink); }
.chrome-sms .mh-ic { background: var(--success); }
.mini-thread { height: 250px; padding: 12px; }
.mini-chips { min-height: 40px; padding: 8px 12px; margin-top: 0; border-top: 1px solid var(--line-soft); }
.chrome-ig .msg.out { background: linear-gradient(135deg, #7B3FF2, #B537F2); }
.chrome-msgr .msg.out { background: var(--msgr); }
.chrome-web .msg.out { background: var(--ink); }

/* mini node strip */
.mini-nodes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mnode {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-strong);
}
.mnode .ic {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-faint); color: var(--accent);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
}
.mwire { width: 18px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }

/* response bars */
.bars { width: 100%; max-width: 440px; }
.bars-title { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); margin-bottom: 16px; font-family: var(--font-display); }
.bar-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.bar-label { font-size: 0.84rem; color: var(--text-muted); text-align: right; }
.bar-label strong { color: var(--text-strong); font-weight: 600; }
.bar-track { display: flex; align-items: center; gap: 10px; }
.bar-fill { height: 24px; border-radius: 7px; background: var(--accent); width: 7%; min-width: 12px; }
.bar-fill.gray { background: var(--surface); border: 1px solid var(--line); width: 88%; }
.bar-val { font-size: 0.82rem; font-weight: 600; color: var(--text-strong); white-space: nowrap; }

/* ---------- interactive demo ---------- */
.demo-card {
  background: linear-gradient(180deg, var(--wash), var(--panel) 90%);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 60px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}
.demo-copy h2 { margin-bottom: 14px; }
.demo-copy > p { color: var(--text-muted); margin-bottom: 24px; max-width: 44ch; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tab {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.demo-tab:hover { color: var(--text-strong); border-color: var(--text-muted); }
.demo-tab.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.skin-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.skin-label { font-size: 0.82rem; color: var(--text-muted); margin-right: 2px; }
.skin-chip {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.skin-chip:hover { color: var(--text-strong); }
.skin-chip.on { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-faint); }
.demo-note { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }

/* phone + channel skins */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px 14px;
  box-shadow: var(--shadow-float);
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--text-muted);
  padding: 2px 10px 12px;
  font-family: var(--font-display);
}
.phone-head { text-align: center; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 14px; position: relative; }
.ph-ic { display: block; width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; background: var(--success); }
.phone-head .num { font-size: 0.88rem; color: var(--text-strong); font-weight: 600; font-family: var(--font-display); }
.phone-head .tag { font-size: 0.72rem; color: var(--text-muted); }
.phone[data-channel="sms"] .ph-ic { background: var(--success); }
.phone[data-channel="ig"] .ph-ic { background: conic-gradient(from 200deg, var(--ig-a), var(--ig-b), var(--ig-c), var(--ig-a)); }
.phone[data-channel="msgr"] .ph-ic { background: var(--msgr); }
.phone[data-channel="web"] .ph-ic { background: var(--ink); }
.phone[data-channel="ig"] .msg.out { background: linear-gradient(135deg, #7B3FF2, #B537F2); }
.phone[data-channel="msgr"] .msg.out { background: var(--msgr); }
.phone[data-channel="web"] .msg.out { background: var(--ink); }

.thread {
  display: flex; flex-direction: column; gap: 9px;
  height: 340px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  padding-right: 4px;
}
.msg {
  max-width: 84%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 0.85rem; line-height: 1.45;
  flex-shrink: 0;
}
.mini-thread .msg { font-size: 0.8rem; padding: 7px 12px; }
.msg.show { animation: row-in 0.4s var(--ease); }
.msg.in { align-self: flex-end; background: var(--surface); color: var(--text-strong); border-bottom-right-radius: 5px; }
.msg.out { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; background: none; color: var(--text-muted); font-size: 0.71rem; padding: 2px 0; max-width: 100%; text-align: center; }
.msg.sys-done { color: var(--success); font-weight: 600; }
.msg.sys-urgent { color: var(--accent); font-weight: 600; }
.msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.75); animation: bounce 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

.demo-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: flex-end;
  min-height: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
}
.chip {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent-strong);
  background: var(--panel);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  animation: row-in 0.35s var(--ease);
}
.chip:hover { background: var(--accent-faint); border-color: var(--accent); }
.chip-replay { color: var(--text-muted); border-color: var(--line); box-shadow: none; }
.chip-replay:hover { color: var(--text-strong); background: var(--surface); }
.chip-ghost { pointer-events: none; opacity: 0.65; box-shadow: none; }
.mini-chips .chip { font-size: 0.78rem; padding: 6px 12px; }

/* ---------- ledger ---------- */
.ledger {
  border: 1px solid var(--line); border-radius: var(--radius-panel);
  overflow: hidden; box-shadow: var(--shadow-card);
  max-width: 880px; margin: 0 auto;
}
.ledger-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 32px; background: var(--panel); }
.ledger-row + .ledger-row { border-top: 1px solid var(--line-soft); }
.ledger-row h3 { font-size: 1rem; }
.ledger-row p { font-size: 0.94rem; color: var(--text-muted); }

/* ---------- integrations: orbiting logo hub ---------- */
.orbit-wrap {
  position: relative;
  width: min(560px, 92vw);
  height: min(560px, 92vw);
  margin: 0 auto;
  background: radial-gradient(rgba(7, 26, 52, 0.08) 1px, transparent 1px) 0 0 / 22px 22px;
  border-radius: 50%;
}
.orbit-hub {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.orbit-hub img { width: 52px; height: 52px; }
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  border: 1px dashed var(--line);
  border-radius: 50%;
  animation: orbit-spin linear infinite;
}
.ring-outer { width: 88%; height: 88%; margin: -44% 0 0 -44%; animation-duration: 60s; }
.ring-inner { width: 52%; height: 52%; margin: -26% 0 0 -26%; animation-duration: 38s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orb {
  position: absolute; left: 50%; top: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  /* place on ring edge, then counter-rotate to stay upright */
  transform: rotate(calc(var(--i) * (360deg / var(--n, 6)))) translateY(calc(var(--r, 246px) * -1));
}
.ring-outer .orb { --n: 6; --r: 246px; }
.ring-inner .orb { --n: 4; --r: 146px; }
.orb { --a: calc(var(--i) * (360deg / var(--n, 6)) * -1); }
.orb-in {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
/* counter-rotate content (placement angle + ring spin) so icons and labels stay upright */
.ring-outer .orb-in { animation: cancel-out 60s linear infinite; }
.ring-inner .orb-in { animation: cancel-in 38s linear infinite; }
@keyframes cancel-out {
  from { transform: rotate(var(--a)); }
  to { transform: rotate(calc(var(--a) - 360deg)); }
}
@keyframes cancel-in {
  from { transform: rotate(var(--a)); }
  to { transform: rotate(calc(var(--a) + 360deg)); }
}
.orb img { width: 30px; height: 30px; }
.orb .orb-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--accent-faint); color: var(--accent-strong);
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
}
.orb em {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-style: normal;
  font-size: 0.66rem; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.logo-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 24px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--content-max); margin: 0 auto; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 30px; background: var(--panel); box-shadow: var(--shadow-card); }
.stat .big { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.stat p { font-size: 0.94rem; color: var(--text); }
.stat .src { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; display: block; }

/* ---------- audit ---------- */
.audit-panel {
  background: var(--ink);
  color: #C9D4E4;
  border-radius: 28px;
  padding: 60px 56px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  max-width: var(--content-max); margin: 0 auto;
}
.audit-panel h2 { color: #FFFFFF; margin-bottom: 18px; }
.audit-panel .kicker { color: var(--accent-bright); }
.audit-panel .lede { color: #C9D4E4; margin-bottom: 30px; }
.audit-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.audit-list li { padding-left: 30px; position: relative; font-size: 0.97rem; }
.audit-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border: 2px solid var(--accent-bright); border-radius: 50%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); margin-bottom: 12px; box-shadow: var(--shadow-card); }
.faq-list summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--text-strong);
  padding: 19px 26px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform 0.18s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 26px 22px; color: var(--text-muted); font-size: 0.96rem; }

/* ---------- final CTA + footer ---------- */
.final-cta { text-align: center; padding: 24px 24px 88px; }
footer { border-top: 1px solid var(--line-soft); padding: 56px 24px 0; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; max-width: var(--content-max); margin: 0 auto; }
.foot-brand p { font-size: 0.86rem; color: var(--text-muted); max-width: 34ch; margin-top: 12px; }
.foot-links { display: flex; gap: 56px; }
.foot-links h4 { font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.foot-links ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-size: 0.9rem; color: var(--text); }
.foot-links a:hover { color: var(--text-strong); }
.foot-legal {
  margin: 44px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted);
  max-width: var(--content-max);
}
.foot-legal .disc { max-width: 72ch; }
.foot-mark { margin-top: 30px; color: #B8C6DC; }
.foot-mark svg { display: block; width: 100%; height: auto; max-height: 150px; }

/* ---------- floating widget ---------- */
.widget-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.widget-btn:hover { background: var(--accent-strong); transform: translateY(-2px); }
.widget-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 90;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  padding: 18px 16px;
  display: none; flex-direction: column;
}
.widget-panel.open { display: flex; }
.widget-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 4px 12px; margin-bottom: 12px;
}
.widget-head .num { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); font-size: 0.95rem; }
.widget-head .tag { font-size: 0.72rem; color: var(--text-muted); }
.widget-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.widget-close:hover { color: var(--text-strong); }
.widget-thread { height: 300px; }

@media (prefers-reduced-motion: reduce) {
  .msg.show, .chip, .dash-table tr.row-in { animation: none; }
  .msg.typing span, .dash-live::before { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .widget-btn:hover { transform: none; }
  .btn:hover .arr { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .flow-canvas { grid-template-columns: 1fr; gap: 20px; }
  .wires { display: none; }
  .fc-left, .fc-right { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .wf-node { font-size: 0.8rem; padding: 8px 12px; }
}
@media (max-width: 960px) {
  .demo-card, .audit-panel { grid-template-columns: 1fr; gap: 40px; }
  .demo-card { padding: 44px 28px; }
  .stats, .bento { grid-template-columns: 1fr; }
  .dash-table th:nth-child(3), .dash-table td:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  body { padding: 6px; }
  .frame { border-radius: 16px; }
  section, .bento-sec { padding: 60px 16px; }
  .hero { padding: 56px 16px 24px; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 24px; }
  .foot-links { gap: 32px; flex-wrap: wrap; }
  .audit-panel { padding: 44px 28px; }
  .widget-panel { right: 16px; bottom: 88px; }
  .widget-btn { right: 16px; bottom: 16px; }
  .dash-table th:nth-child(4), .dash-table td:nth-child(4) { display: none; }
  .logo-strip { gap: 14px 28px; }
}
