/* ============================================================
   qbrin — Company Brain
   Elevated design system (cobalt / lime / coral)
   ============================================================ */

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

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #3146f5;
}
@property --accent-dark {
  syntax: '<color>';
  inherits: true;
  initial-value: #2533b8;
}
@property --accent-soft {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(49, 70, 245, 0.12);
}

:root {
  /* brand palette */
  --cobalt: #3146f5;
  --cobalt-dark: #2533b8;
  --cobalt-soft: #eef0ff;
  --lime: #dbff42;
  --lime-deep: #c4eb20;
  --coral: #ff6b5f;
  --teal: #00a99d;
  --gold: #f2b64b;

  /* accent (tweakable) */
  --accent: var(--cobalt);
  --accent-dark: var(--cobalt-dark);
  --accent-soft: var(--cobalt-soft);
  --accent-rgb: 49, 70, 245;

  /* surfaces — light theme */
  --ink: #131319;
  --ink-2: #2c2e36;
  --muted: #5e636e;
  --faint: #898e99;
  --line: #e4e6df;
  --line-soft: #eef0ea;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #f1f4ec;
  --surface-grid: #fbfcf8;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* elevation */
  --sh-sm: 0 1px 2px rgba(19, 19, 25, 0.06), 0 2px 8px rgba(19, 19, 25, 0.05);
  --sh-md: 0 12px 30px rgba(19, 19, 25, 0.09);
  --sh-lg: 0 30px 80px rgba(19, 19, 25, 0.13);
  --sh-accent: 0 18px 44px rgba(var(--accent-rgb), 0.26);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
}

/* ---------- DARK THEME ---------- */
[data-theme='dark'] {
  --ink: #f4f5fb;
  --ink-2: #d8dae6;
  --muted: #9fa4b6;
  --faint: #71768a;
  --line: #25273a;
  --line-soft: #1c1e2e;
  --bg: #07070d;
  --surface: #101220;
  --surface-soft: #161827;
  --surface-grid: #0d0e1a;
  --cobalt-soft: rgba(49, 70, 245, 0.16);
  --accent-soft: rgba(var(--accent-rgb), 0.16);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-md: 0 16px 40px rgba(0, 0, 0, 0.55);
  --sh-lg: 0 40px 90px rgba(0, 0, 0, 0.6);
  --sh-accent: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 20px 60px rgba(var(--accent-rgb), 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

.font-display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

/* glow backdrop wash for the page */
.page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 460px at 82% -4%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    radial-gradient(520px 420px at 6% 8%, rgba(219, 255, 66, 0.14), transparent 55%);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
[data-theme='dark'] .page-wash {
  background:
    radial-gradient(720px 520px at 80% -6%, rgba(var(--accent-rgb), 0.28), transparent 62%),
    radial-gradient(560px 460px at 4% 6%, rgba(0, 169, 157, 0.16), transparent 58%);
}

.shell {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 66px;
  padding: 0 12px 0 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--sh-md);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; }
.nav-links { display: inline-flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: 0.16s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; background: var(--accent); }
.nav-links a.nav-cta:hover { background: var(--accent-dark); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: 
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.2s;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 0.6s var(--ease);
  transform: skewX(-20%);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(300%);
}
.btn:active {
  transform: translateY(0) scale(0.96);
}
.btn svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:hover svg.ic-tilt {
  transform: rotate(10deg) scale(1.1);
}
.btn-primary { 
  color: #fff; 
  background: var(--accent); 
  box-shadow: var(--sh-accent); 
}
.btn-primary:hover { 
  background: var(--accent-dark); 
  transform: translateY(-2px) scale(1.025);
  box-shadow: var(--sh-accent), 0 12px 28px rgba(var(--accent-rgb), 0.35);
}
.btn-ghost { 
  color: var(--ink); 
  background: var(--surface); 
  border-color: var(--line); 
  box-shadow: var(--sh-sm); 
}
.btn-ghost:hover { 
  background: var(--surface-soft); 
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.025);
  box-shadow: var(--sh-md);
}
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* lime CTA on dark blocks */
.btn-lime { 
  color: var(--ink); 
  background: var(--lime); 
  box-shadow: 0 4px 12px rgba(219, 255, 66, 0.15); 
}
.btn-lime:hover { 
  background: var(--lime-deep); 
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 12px 24px rgba(219, 255, 66, 0.35), 0 0 0 1px var(--lime);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { scroll-margin-top: 90px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--accent-dark); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em;
}
[data-theme='dark'] .eyebrow { color: var(--ink-2); background: var(--surface); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.section-head { max-width: 760px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.04; letter-spacing: -0.025em;
  margin-top: 14px; text-wrap: balance;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; line-height: 1.6; max-width: 60ch; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(40px, 6vw, 74px) 0 clamp(48px, 7vw, 96px); }
.hero-copy { max-width: 600px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 6vw, 4.7rem); line-height: 0.98; letter-spacing: -0.035em;
  margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .grad { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: 1.28rem; line-height: 1.5; color: var(--ink-2); max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.metric .num { font-family: var(--font-display); font-weight: 600; font-size: 1.95rem; letter-spacing: -0.03em; }
.metric .num span { color: var(--accent); }
.metric .lab { margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.3; }

/* ---- hero stage: live graph ---- */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 38px 100%,
    var(--surface-grid);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.stage::after { /* vignette */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 78% at 50% 36%, transparent 68%, color-mix(in srgb, var(--surface-grid) 55%, transparent) 100%);
}
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.gnode {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 13px 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-md);
  font-weight: 700; font-size: 0.86rem; white-space: nowrap; z-index: 3;
  animation: floaty 6s var(--ease) infinite;
}
.gnode .ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; }
.gnode.is-core {
  height: auto; padding: 16px 20px; border-radius: var(--r-md);
  flex-direction: column; gap: 6px; color: #fff; background: var(--ink);
  border-color: transparent; box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
  z-index: 5; animation: corepulse 4s var(--ease) infinite;
}
[data-theme='dark'] .gnode.is-core { background: #161a2e; box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.5), 0 0 60px rgba(var(--accent-rgb),0.5); }
.gnode.is-core .mark { width: 30px; height: 30px; }
.gnode.is-core small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.gnode.is-core b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

@keyframes floaty { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
@keyframes corepulse { 0%,100% { box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } 50% { box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 13px color-mix(in srgb, var(--accent) 8%, transparent); } }

/* edges */
.edge { stroke: var(--line); stroke-width: 1.5; fill: none; }
[data-theme='dark'] .edge { stroke: #2a2d44; }
.edge-flow { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round;
  stroke-dasharray: 5 170; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 60%, transparent));
  animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -175; } }

/* floating answer card overlapping the stage */
.answer-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 6;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); box-shadow: var(--sh-lg);
}
.answer-card .ahead { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.answer-card .ahead .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0,169,157,0.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,169,157,0.5);} 70%,100% { box-shadow: 0 0 0 9px rgba(0,169,157,0);} }
.answer-card p { margin-top: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.answer-card .arow { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-soft); border: 1px solid var(--line); font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.chip.ok { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }

/* ============================================================
   LOGO BAND
   ============================================================ */
.logoband { padding: 30px 0 4px; }
.logoband .lead { text-align: center; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.logo-row { margin-top: 22px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.logo-cell { display: grid; place-items: center; height: 60px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 0.95rem; transition: 0.18s var(--ease); }
.logo-cell:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ============================================================
   INTELLIGENCE FLOW
   ============================================================ */
.flow { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.flow-stage {
  position: relative; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--surface-grid);
  box-shadow: var(--sh-md);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
}
.src-stack { display: grid; gap: 12px; }
.src { display: grid; grid-template-columns: 40px 1fr; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); }
.src .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
[data-theme='dark'] .src .ic { color: #fff; }
.src b { display: block; font-size: 0.92rem; }
.src small { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.flow-mid { display: grid; place-items: center; gap: 12px; }
.flow-core { display: grid; place-items: center; gap: 6px; width: 116px; height: 116px; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: 0 18px 44px rgba(0,0,0,0.28), 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent); }
[data-theme='dark'] .flow-core { background: #161a2e; box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.5), 0 0 50px rgba(var(--accent-rgb),0.45); }
.flow-core .mark { width: 36px; height: 36px; }
.flow-core span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.flow-brief { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-md); }
.flow-brief .tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.flow-brief h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 10px; }
.flow-brief p { margin-top: 8px; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.flow-brief .bars { display: grid; gap: 7px; margin-top: 14px; }
.flow-brief .bars i { height: 8px; border-radius: 99px; background: var(--line-soft); display: block; }
.flow-brief .bars i:nth-child(1){ width: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 10%, var(--line-soft))); }
.flow-brief .bars i:nth-child(2){ width: 78%; }
.flow-brief .bars i:nth-child(3){ width: 54%; }
.flow-arrows { display: grid; gap: 9px; }
.flow-arrows i { display: block; height: 2px; width: 46px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.flow-arrows i:nth-child(2){ animation-delay: 0.3s; }
.flow-arrows i:nth-child(3){ animation-delay: 0.6s; }
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ============================================================
   MARKET TABLE
   ============================================================ */
.market-table { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); display: grid; gap: 1px; }
.mrow { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr 1.7fr; gap: 1px; background: var(--line); }
.mrow > div { padding: 20px; background: var(--surface); color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; display: flex; align-items: center; }
.mrow.head > div { background: var(--surface-soft); color: var(--faint); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mrow .co { gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.mrow .co .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-soft); border: 1px solid var(--line); }
.mrow.feat > div { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.mrow.feat .co { color: var(--accent-dark); }
[data-theme='dark'] .mrow.feat .co { color: #fff; }
.mrow.feat .co .ic { background: var(--accent); border-color: transparent; color: #fff; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); overflow: hidden; transition: 0.2s var(--ease); }
.cap:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cap .ic-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 22px; }
[data-theme='dark'] .cap .ic-badge { color: #fff; }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.015em; }
.cap p { margin-top: 11px; color: var(--muted); line-height: 1.58; font-size: 0.98rem; }
.cap .glow { position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); opacity: 0; transition: 0.3s var(--ease); }
.cap:hover .glow { opacity: 1; }

/* ============================================================
   WORKFLOWS
   ============================================================ */
.work { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.work-list { display: grid; gap: 12px; }
.work-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); font-weight: 600; color: var(--ink-2); transition: 0.16s var(--ease); }
.work-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateX(4px); }
.work-item .ic { flex: none; color: var(--teal); }

/* ============================================================
   PRODUCT PEEK
   ============================================================ */
.product { padding-bottom: clamp(40px, 6vw, 80px); }
.frame { position: relative; margin-top: 44px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; background: color-mix(in srgb, var(--ink) 92%, transparent); }
[data-theme='dark'] .frame-bar { background: #05050a; }
.frame-bar .lights { display: flex; gap: 7px; }
.frame-bar .lights i { width: 12px; height: 12px; border-radius: 50%; }
.frame-bar .url { flex: 1; max-width: 360px; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 0.78rem; }

.app { display: grid; grid-template-columns: 220px 1fr 280px; min-height: 540px; background: var(--bg); }
.app-aside { padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.app-aside .brand-sm { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; padding: 6px 8px 16px; }
.app-aside .brand-sm .mark { width: 26px; height: 26px; }
.aside-lab { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 14px 8px 8px; }
.aside-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.aside-item.active { color: var(--ink); background: var(--accent-soft); }
.aside-item .ic { color: currentColor; }
.aside-item .badge { margin-left: auto; font-size: 0.7rem; font-weight: 800; color: var(--accent-dark); }

.app-main { padding: 24px 28px; display: flex; flex-direction: column; min-width: 0; }
.askbar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-sm); }
.askbar .q { flex: 1; color: var(--ink); font-weight: 600; font-size: 1rem; }
.askbar .cursor { width: 2px; height: 18px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-answer { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); }
.app-answer .meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.app-answer h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-top: 14px; letter-spacing: -0.015em; }
.app-answer .body { margin-top: 12px; color: var(--ink-2); line-height: 1.62; font-size: 0.98rem; }
.app-answer .cite { color: var(--accent-dark); font-weight: 700; border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 50%, transparent); cursor: pointer; }
[data-theme='dark'] .app-answer .cite { color: var(--ink); }
.src-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.src-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-soft); font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.src-pill .ic { width: 14px; height: 14px; }

.app-rail { padding: 20px; border-left: 1px solid var(--line); background: var(--surface); }
.rail-card { margin-bottom: 16px; }
.rail-lab { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.mini-graph { position: relative; height: 170px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-grid); overflow: hidden; }
.mini-node { position: absolute; transform: translate(-50%,-50%); width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.mini-node.alt { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,95,0.16); }
.mini-node.alt2 { background: var(--teal); box-shadow: 0 0 0 4px rgba(0,169,157,0.16); }
.mini-node.core { width: 16px; height: 16px; background: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent); }
.conf { margin-top: 6px; }
.conf-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.conf-row b { color: var(--ink); font-family: var(--font-display); }
.conf-bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.conf-bar i { display: block; height: 100%; width: 94%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--accent)); }
.owner { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-soft); }
.owner .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.82rem; background: var(--accent); }
.owner b { display: block; font-size: 0.86rem; }
.owner small { color: var(--muted); font-size: 0.74rem; }

/* ============================================================
   DEMO / CTA
   ============================================================ */
.cta { position: relative; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px); border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 46px 46px; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 320px at 88% 110%, rgba(var(--accent-rgb), 0.45), transparent 60%), radial-gradient(420px 280px at 4% -10%, rgba(219,255,66,0.22), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.cta p { margin-top: 16px; color: rgba(255,255,255,0.74); font-size: 1.1rem; line-height: 1.55; max-width: 44ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 40px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer .brand { font-size: 1.3rem; }
.footer .tag { margin-top: 12px; color: var(--muted); max-width: 30ch; line-height: 1.5; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.fcol h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.fcol a { display: block; padding: 5px 0; color: var(--muted); font-weight: 600; transition: 0.15s; }
.fcol a:hover { color: var(--ink); }
.footer-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; color: var(--faint); font-size: 0.88rem; }

/* ============================================================
   MOTION TOGGLE + REDUCED MOTION
   ============================================================ */
[data-motion='off'] .edge-flow,
[data-motion='off'] .gnode,
[data-motion='off'] .gnode.is-core,
[data-motion='off'] .flow-arrows i,
[data-motion='off'] .answer-card .ahead .pulse,
[data-motion='off'] .askbar .cursor { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .edge-flow, .gnode, .gnode.is-core, .flow-arrows i, .answer-card .ahead .pulse, .askbar .cursor { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-motion='off'] .reveal { opacity: 1; transform: none; transition: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .flow, .work { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .app { grid-template-columns: 1fr; }
  .app-aside, .app-rail { display: none; }
  .mrow { grid-template-columns: 1fr; }
  .mrow.head { display: none; }
  .mrow > div { padding: 14px 18px; }
  .mrow .co { padding-top: 18px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-metrics { grid-template-columns: 1fr; gap: 16px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .flow-stage { grid-template-columns: 1fr; }
  .flow-mid { transform: rotate(90deg); margin: 8px 0; }
}

/* Smooth transitions for theme, corner, and accent color tweaks */
body,
.nav,
.nav-links a,
.btn,
.eyebrow,
.stage,
.answer-card,
.chip,
.logo-cell,
.src,
.flow-core,
.flow-brief,
.flow-arrows i,
.mrow > div,
.cap,
.work-item,
.frame,
.frame-bar,
.app,
.app-aside,
.app-main,
.askbar,
.app-answer,
.src-pill,
.app-rail,
.mini-graph,
.owner,
.cta,
.footer {
  transition: 
    background-color 0.4s var(--ease),
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-radius 0.4s var(--ease);
}



/* --- Layer 1 Visual: Ingestion --- */
.l1-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.l1-sources {
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 2;
}
.l1-source-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  font-size: 0.74rem;
  font-weight: 700;
  width: 80px;
  transition: all 0.3s;
}
.l1-source-node.active-stream {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
}
.l1-source-node svg {
  color: var(--accent);
}
.l1-streams-svg {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}
.l1-stream-line {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
}
.l1-stream-pulse {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 8 60;
  animation: l1Flow 2s linear infinite;
}
@keyframes l1Flow {
  to { stroke-dashoffset: -68; }
}

.l1-ingest-bucket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 2;
  text-align: center;
  gap: 4px;
  width: 170px;
}
.l1-ingest-bucket span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.l1-ingest-bucket .radar-ring {
  position: absolute;
  inset: -12px;
  border: 1.5px solid var(--accent);
  border-radius: calc(var(--r-md) + 12px);
  opacity: 0.5;
  pointer-events: none;
  animation: l1RadarRing 2.2s infinite ease-out;
}
@keyframes l1RadarRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.l1-detector-radar {
  position: absolute;
  bottom: 0px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: rgba(19, 19, 25, 0.95);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: var(--sh-md);
  z-index: 3;
}
.l1-detector-radar .radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 95, 0.6);
  animation: l1RadarPing 1.5s infinite ease-out;
}
@keyframes l1RadarPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 95, 0.6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(255, 107, 95, 0); }
}

.l1-detector-unconnected {
  position: absolute;
  left: 10px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line);
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--sh-sm);
  animation: l1DetectFloating 4s ease-in-out infinite;
}
@keyframes l1DetectFloating {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}
.l1-detector-unconnected.found {
  border-color: var(--teal);
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 6%, var(--surface));
  animation: l1FoundFlash 2s infinite ease-in-out;
}
@keyframes l1FoundFlash {
  0%, 100% { box-shadow: var(--sh-sm); }
  50% { box-shadow: 0 0 10px rgba(0, 169, 157, 0.25); border-color: var(--teal); }
}

/* --- Layer 2 Visual: Extraction --- */
.l2-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.l2-input-texts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 150px;
  z-index: 2;
}
.l2-text-card {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  font-size: 0.68rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: l2ScrollIn 6s infinite linear;
}
.l2-text-card:nth-child(1) { animation-delay: 0s; }
.l2-text-card:nth-child(2) { animation-delay: 2s; }
.l2-text-card:nth-child(3) { animation-delay: 4s; }

@keyframes l2ScrollIn {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  10%, 40% { transform: translateY(0) scale(1); opacity: 1; }
  50%, 100% { transform: translateY(-40px) scale(0.9); opacity: 0; }
}

.l2-text-card .lang-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.l2-text-card .sample-text {
  font-weight: 500;
  color: var(--ink);
}

.l2-parser {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 110px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--sh-lg);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  z-index: 2;
  gap: 4px;
}
.l2-parser span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.l2-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 3;
  animation: l2LaserScan 2s ease-in-out infinite;
}
@keyframes l2LaserScan {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

.l2-output-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 120px;
  z-index: 2;
  align-items: flex-end;
}
.l2-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: var(--sh-sm);
  white-space: nowrap;
  animation: l2TagPop 3s infinite ease-out;
}
.l2-tag:nth-child(1) { background: color-mix(in srgb, var(--teal) 10%, var(--surface)); border: 1px solid var(--teal); color: var(--teal); animation-delay: 0.5s; }
.l2-tag:nth-child(2) { background: color-mix(in srgb, var(--coral) 10%, var(--surface)); border: 1px solid var(--coral); color: var(--coral); animation-delay: 1.5s; }
.l2-tag:nth-child(3) { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border: 1px solid var(--gold); color: var(--gold); animation-delay: 2.5s; }

@keyframes l2TagPop {
  0% { transform: scale(0.85); opacity: 0; }
  15%, 85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* --- Layer 3 Visual: Graph --- */
.l3-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.l3-network {
  position: absolute;
  width: 240px;
  height: 240px;
  opacity: 0.9;
  z-index: 1;
  animation: l3CompressCycle 6s infinite ease-in-out;
}
.l3-network line {
  stroke: var(--line);
  stroke-width: 1.2;
}
.l3-network circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1.5;
}
.l3-network circle.alt {
  fill: var(--coral);
}
.l3-network circle.alt2 {
  fill: var(--teal);
}

.l3-funnel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: l3FunnelPulse 6s infinite ease-in-out;
}
.l3-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--lime), var(--accent));
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5), inset 0 -4px 10px rgba(0,0,0,0.3);
  animation: l3SpinOrb 3s linear infinite;
}
@keyframes l3SpinOrb {
  100% { transform: rotate(360deg); }
}

.l3-context-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--sh-md);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.l3-context-box span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--lime);
  text-transform: uppercase;
}

@keyframes l3CompressCycle {
  0% { transform: scale(1.05); opacity: 0.8; }
  35%, 55% { transform: scale(0.2); opacity: 0.15; filter: blur(3px); }
  90%, 100% { transform: scale(1.05); opacity: 0.8; filter: none; }
}
@keyframes l3FunnelPulse {
  0% { transform: scale(0.65); opacity: 0.3; }
  35%, 55% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 25px rgba(219,255,66,0.35)); }
  90%, 100% { transform: scale(0.65); opacity: 0.3; }
}

/* --- Layer 4 Visual: Query --- */
.l4-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.l4-question {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.l4-question .ic-badge {
  color: var(--accent);
}

.l4-split-svg {
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}
.l4-ray-base {
  stroke: var(--line);
  stroke-width: 1.5;
  fill: none;
}
.l4-ray-pulse {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 10 50;
  animation: l4RayFlow 2s linear infinite;
}
.l4-ray-pulse.alt {
  stroke: var(--teal);
  animation-delay: 0.5s;
}
@keyframes l4RayFlow {
  to { stroke-dashoffset: -60; }
}

.l4-engines {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  margin-top: 30px;
  z-index: 2;
}
.l4-engine-node {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--sh-sm);
}

.l4-synthesizer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--sh-lg);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
  margin-top: 24px;
}
.l4-synthesizer svg {
  color: var(--lime);
}
.l4-synthesizer .shield-pulse {
  position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  border: 1px solid var(--teal);
  box-shadow: 0 0 8px rgba(0, 169, 157, 0.4);
  opacity: 0.8;
  animation: l4ShieldPulse 2s infinite ease-in-out;
}
@keyframes l4ShieldPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.l4-response {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  background: color-mix(in srgb, var(--teal) 5%, var(--surface));
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 280px;
  text-align: center;
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.l4-response b {
  color: var(--teal);
}

/* --- Layer 5 Visual: Action --- */
.l5-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.l5-core-brain {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 3;
  font-weight: 700;
  font-size: 0.76rem;
  gap: 2px;
}
.l5-core-brain span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--lime);
  text-transform: uppercase;
}
.l5-core-brain::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: l5OrbRipple 3s infinite linear;
}
@keyframes l5OrbRipple {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

.l5-agents-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.l5-agent-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-2);
  width: 124px;
}
.l5-agent-card:nth-child(1) { top: 12px; left: 12px; }
.l5-agent-card:nth-child(2) { top: 12px; right: 12px; }
.l5-agent-card:nth-child(3) { bottom: 12px; left: 12px; }
.l5-agent-card:nth-child(4) { bottom: 12px; right: 12px; }

.l5-agent-card .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}
.l5-agent-card .status-dot.active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: l5StatusPing 1.6s infinite ease-out;
}
@keyframes l5StatusPing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.l5-agent-card.running {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.12);
}

.l5-pulses-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.l5-pulse-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.l5-pulse-beam {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 6 30;
  animation: l5PulseFlow 1.8s infinite linear;
}
.l5-pulse-beam:nth-child(2) { animation-delay: 0.4s; }
.l5-pulse-beam:nth-child(3) { animation-delay: 0.8s; }
.l5-pulse-beam:nth-child(4) { animation-delay: 1.2s; }

@keyframes l5PulseFlow {
  to { stroke-dashoffset: -36; }
}

/* --- Layer 6 Visual: Delivery --- */
.l6-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-soft);
  box-shadow: var(--sh-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.l6-chat-header {
  height: 48px;
  background: #075e54; /* classic WhatsApp green for visual identification */
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.l6-chat-header .wa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #128c7e;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.65rem;
}
.l6-chat-header .wa-info {
  display: flex;
  flex-direction: column;
}
.l6-chat-header .wa-name {
  font-size: 0.78rem;
  font-weight: 700;
}
.l6-chat-header .wa-status {
  font-size: 0.58rem;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.l6-chat-body {
  flex: 1;
  background: #efe7dd; /* classic WhatsApp chat background */
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
[data-theme='dark'] .l6-chat-body {
  background: #0b141a; /* dark mode whatsapp background */
}

.l6-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  animation: l6BubbleIn 0.3s var(--ease) forwards;
}
@keyframes l6BubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.l6-bubble.user {
  background: #dcf8c6;
  align-self: flex-end;
  color: #121319;
  border-top-right-radius: 0;
}
[data-theme='dark'] .l6-bubble.user {
  background: #005c4b;
  color: #e9edef;
}

.l6-bubble.qbrin {
  background: var(--surface);
  align-self: flex-start;
  color: var(--ink);
  border-top-left-radius: 0;
  border: 1px solid var(--line);
}
.l6-bubble.qbrin b {
  color: var(--accent);
}
.l6-bubble .wa-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.l6-bubble .wa-btn {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.l6-chat-input {
  height: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  flex-shrink: 0;
}
.l6-chat-input .wa-input-mock {
  flex: 1;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.l6-chat-input .wa-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  display: grid;
  place-items: center;
}

/* ============================================================
   MOTION TOGGLE + REDUCED MOTION SUPPORTS (ADDITIONS)
   ============================================================ */
[data-motion='off'] .l1-stream-pulse,
[data-motion='off'] .l1-ingest-bucket .radar-ring,
[data-motion='off'] .l1-detector-radar .radar-pulse,
[data-motion='off'] .l1-detector-unconnected,
[data-motion='off'] .l2-text-card,
[data-motion='off'] .l2-laser,
[data-motion='off'] .l2-tag,
[data-motion='off'] .l3-network,
[data-motion='off'] .l3-funnel,
[data-motion='off'] .l3-orb,
[data-motion='off'] .l4-ray-pulse,
[data-motion='off'] .l4-synthesizer .shield-pulse,
[data-motion='off'] .l5-core-brain::after,
[data-motion='off'] .l5-agent-card .status-dot::after,
[data-motion='off'] .l5-pulse-beam {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .l1-stream-pulse,
  .l1-ingest-bucket .radar-ring,
  .l1-detector-radar .radar-pulse,
  .l1-detector-unconnected,
  .l2-text-card,
  .l2-laser,
  .l2-tag,
  .l3-network,
  .l3-funnel,
  .l3-orb,
  .l4-ray-pulse,
  .l4-synthesizer .shield-pulse,
  .l5-core-brain::after,
  .l5-agent-card .status-dot::after,
  .l5-pulse-beam {
    animation: none !important;
  }
}



/* ============================================================
   PRODUCT SHOWCASE SPLIT MOCKUP
   ============================================================ */
.logoband-showcase {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
  text-align: left;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.showcase-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.showcase-content p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0;
}

.showcase-visual {
  width: 100%;
}

.showcase-frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #ffffff;  /* Match screenshot background */
  box-shadow: var(--sh-lg);
  padding: 0;           /* Flush edge-to-edge layout */
  overflow: hidden;
  line-height: 0;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.showcase-frame:hover {
  border-color: var(--accent);
  box-shadow: var(--sh-accent), var(--sh-lg);
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  border-bottom: 1px solid var(--line); /* Separator border line */
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

[data-theme='dark'] .showcase-bar {
  background: #05050a;
}

.showcase-lights {
  display: flex;
  gap: 7px;
}

.showcase-lights .light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.showcase-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding-right: 40px; /* offset for balance */
}

.showcase-img {
  width: 100%;
  height: auto;
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  display: block;
  transition: transform 0.6s var(--ease);
}

.showcase-frame:hover .showcase-img {
  transform: scale(1.005);
}

/* Responsive adjustments for LogoBand Showcase */
@media (max-width: 1000px) {
  .logoband-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .showcase-content {
    align-items: center;
    max-width: 650px;
    margin: 0 auto;
  }
}



/* ============================================================
   DATA SHRINKER SIMULATOR STYLING
   ============================================================ */
#shrinker {
  background: var(--bg);
}

.shrinker-container {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s var(--ease);
}

.shrinker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.shrinker-header .select-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shrinker-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shrink-tab-btn {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: all 0.25s var(--ease);
  outline: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
}

.shrink-tab-btn small {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--faint);
}

.shrink-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.shrink-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--sh-accent);
}

.shrink-tab-btn.active small {
  color: rgba(255, 255, 255, 0.75);
}

.shrinker-stage {
  display: grid;
  grid-template-columns: 1fr 140px 1.2fr;
  gap: 20px;
  align-items: stretch;
  min-height: 380px;
}

.shrinker-panel {
  background: var(--surface-grid);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.shrinker-panel .panel-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

/* Raw panel items */
.raw-bubble-cloud {
  position: relative;
  flex: 1;
  height: 220px;
}

.raw-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.raw-item svg {
  color: var(--accent);
}

/* Animate floating items at different rates */
.raw-item.r-slack { left: 10%; top: 15%; animation: floatItem1 6s infinite ease-in-out; }
.raw-item.r-drive { right: 15%; top: 25%; animation: floatItem2 7s infinite ease-in-out; }
.raw-item.r-email { left: 20%; top: 55%; animation: floatItem3 8s infinite ease-in-out; }
.raw-item.r-crm { right: 25%; top: 65%; animation: floatItem4 6.5s infinite ease-in-out; }
.raw-item.r-jira { left: 50%; top: 35%; animation: floatItem2 7.5s infinite ease-in-out; }

@keyframes floatItem1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -10px); } }
@keyframes floatItem2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, -5px); } }
@keyframes floatItem3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, 8px); } }
@keyframes floatItem4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 12px); } }

.raw-volume-badge {
  position: absolute;
  bottom: 16px;
  left: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}
.raw-volume-badge strong {
  color: var(--accent-dark);
}

/* Middle controller */
.shrinker-panel-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}

.compress-trigger-btn {
  width: 100%;
  font-size: 0.88rem;
  height: 44px;
  gap: 6px;
}

.progress-container {
  width: 100%;
  height: 16px;
  background: var(--surface-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.progress-text {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  z-index: 2;
}

.vortex-svg-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vortex-svg {
  width: 100%;
  height: 100%;
}

.vortex-circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 4 8;
  transform-origin: center;
  transition: stroke 0.3s;
}

.vortex-circle.spinning {
  stroke: var(--accent);
  animation: spinCircle 1.5s linear infinite;
}

.vortex-axis {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
  opacity: 0.5;
}

@keyframes spinCircle {
  100% { transform: rotate(360deg); }
}

/* Right Panel: Compressed Brain */
.graph-panel {
  opacity: 0.6;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}

.graph-panel.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.08);
}

.compressed-success-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.glowing-node-graph {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  position: relative;
}

.pulse-circle {
  animation: centerPulse 2s infinite ease-in-out;
}

@keyframes centerPulse {
  0%, 100% { r: 12; stroke-width: 2; }
  50% { r: 15; stroke-width: 3; stroke: var(--lime); }
}

.hubs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-header {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-dark);
  box-shadow: var(--sh-sm);
  animation: popChipIn 0.3s var(--ease) forwards;
}

@keyframes popChipIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.metrics-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
}

.metrics-sheet .m-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.metrics-sheet .m-row span {
  color: var(--muted);
  font-weight: 600;
}

.metrics-sheet .m-row strong {
  color: var(--ink);
}

.metrics-sheet .m-row strong.green-text {
  color: var(--teal);
}

.compressed-waiting-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  color: var(--faint);
  font-size: 0.86rem;
  font-weight: 600;
}

.spin-loader {
  animation: spinCircle 1s linear infinite;
  color: var(--faint);
}

/* Responsive Simulator styling */
@media (max-width: 1000px) {
  .shrinker-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }
  .shrinker-panel-mid {
    order: 1; /* controls in the middle of mobile stack */
    padding: 16px 0;
  }
  .raw-panel {
    height: 260px;
  }
  .raw-bubble-cloud {
    height: 180px;
  }
}

/* ============================================================
   USE CASES (Merged Workflows)
   ============================================================ */
.use-cases-container {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 50px;
}

.use-cases-container h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.use-case-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  color: var(--ink-2);
  font-weight: 600;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.use-case-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--sh-md);
}

.use-case-card .ic {
  flex-shrink: 0;
  color: var(--teal);
}

/* ============================================================
   MARKET SPLIT & VALIDATION CALLOUT
   ============================================================ */
.market-split-container {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 40px;
}

.market-metrics-callout {
  background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.callout-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.market-metrics-callout h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.market-metrics-callout p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.callout-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.callout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.callout-row:last-child {
  border-bottom: none;
}

.callout-row span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.callout-row strong {
  font-size: 0.95rem;
  color: var(--accent-dark);
}

[data-theme='dark'] .callout-row strong {
  color: #fff;
}

/* Responsive adjustments for market split and use cases */
@media (max-width: 1000px) {
  .market-split-container {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}



