/* Brunu Agent page — v2 redesign — extends styles-v4.css */

/* ============ HERO ============ */
.bxa-hero {
  padding: 160px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.bxa-hero__title {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 800;
  margin: 12px 0 24px;
}
.bxa-hero__sub {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 60ch;
  margin: 0 auto 40px;
  text-wrap: pretty;
}

/* Hero loop diagram */
.bxa-loop {
  margin: 48px auto 0;
  max-width: 880px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.18);
}
.bxa-loop__head { display:flex; align-items:center; gap:10px; padding-bottom:14px; border-bottom:1px solid #f0f0ee; margin-bottom:14px; }
.bxa-loop__head-spinner { width:12px; height:12px; border-radius:999px; background:#0a7a4a; box-shadow:0 0 0 4px rgba(10,122,74,0.12); }
.bxa-loop__head-title { font-weight:600; font-size:13.5px; }
.bxa-loop__head-meta { margin-left:auto; font-size:12px; color:#8a8f97; }
.bxa-loop__prompt { display:flex; gap:12px; align-items:baseline; padding:12px 14px; margin:0 0 14px; background:#f5f3ee; border-radius:12px; }
.bxa-loop__prompt-label { font-size:9.5px; font-weight:800; letter-spacing:0.14em; color:#8a8f97; flex:none; }
.bxa-loop__prompt-text { font-size:13.5px; font-style:italic; color:#1a1d22; line-height:1.45; }
.bxa-loop__steps { display:flex; flex-direction:column; gap:8px; }
.bxa-loop__step { display:grid; grid-template-columns:28px 1fr auto; gap:14px; align-items:center; padding:14px 16px; background:#fafaf8; border-radius:12px; font-size:13.5px; }
.bxa-loop__step--ok { background:rgba(10,122,74,0.06); }

@keyframes bxaSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bxaSpin {
  to { transform: rotate(360deg); }
}
.bxa-spin {
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid rgba(10,122,74,0.25);
  border-top-color: #0a7a4a;
  animation: bxaSpin 0.7s linear infinite;
  display: inline-block;
}
.bxa-dots {
  display: inline-flex; gap: 3px; margin-left: 6px;
  vertical-align: middle;
}
.bxa-dots span {
  width: 4px; height: 4px; border-radius: 999px; background: #0a7a4a;
  animation: bxaDot 1.2s infinite;
}
.bxa-dots span:nth-child(2) { animation-delay: 0.15s; }
.bxa-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bxaDot {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}
.bxa-loop__step-num { width:24px; height:24px; border-radius:999px; background:#fff; color:#1a1d22; border:1px solid var(--line); display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; }
.bxa-loop__step--ok .bxa-loop__step-num { background:#0a7a4a; color:#fff; border-color:#0a7a4a; }
.bxa-loop__step-text { font-weight:500; color:#1a1d22; }
.bxa-loop__step-tag { font-size:10.5px; font-weight:800; letter-spacing:0.1em; color:#6b7079; }

/* ============ TABBED SOLUTIONS — main change ============ */
.bxa-solutions {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.bxa-solutions__h {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.034em;
  font-weight: 800;
  margin: 14px 0 40px;
  text-wrap: balance;
}
.bxa-solutions__h em { font-weight:800; font-style:normal; }

.bxa-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 56px;
  max-width: 980px;
}
.bxa-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.bxa-tab:hover { background: #faf8f3; }
.bxa-tab--active {
  background: #0e0e0c;
  color: #fff;
  border-color: #0e0e0c;
}

/* Demo card grid: 1 big demo + 3 supporting */
.bxa-demos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 980px) {
  .bxa-demos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bxa-demos { grid-template-columns: 1fr; }
}
.bxa-demo {
  background: #f3f1ec;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}
.bxa-demo--big {
  background: #fff;
  border: 1px solid var(--line-soft);
}
@media (max-width: 980px) {
  .bxa-demo { height: 520px; }
}
.bxa-demo__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  font-weight: 700;
  margin: 0 0 8px;
}
.bxa-demo__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.bxa-demo__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.bxa-demo--big .bxa-demo__title { font-size: 22px; }
.bxa-demo--big .bxa-demo__desc { font-size: 14px; }

.bxa-demo__art {
  flex: 1;
  border-radius: 12px;
  background: #fafaf8;
  border: 1px solid var(--line-soft);
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
}
.bxa-demo--big .bxa-demo__art {
  background: linear-gradient(180deg, #fafaf8 0%, #f5f3ee 100%);
  padding: 18px;
  font-size: 13px;
}

/* Mini chat-bubble styles inside demos */
.bxa-bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  max-width: 90%;
}
.bxa-bubble--user { background: #1a1d22; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bxa-bubble--bot { background: #fff; color: #1a1d22; border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.bxa-thread { display: flex; flex-direction: column; gap: 4px; }
.bxa-thread > .bxa-bubble--user { margin-left: auto; }

/* Specific small visualizations */
.bxa-mini-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed #e6e3dc; font-size:12px; }
.bxa-mini-row:last-child { border-bottom: none; }
.bxa-mini-row__dot { width:8px; height:8px; border-radius:999px; flex:none; }
.bxa-mini-row__name { flex:1; font-weight:600; color:#1a1d22; }
.bxa-mini-row__meta { color:#8a8f97; font-size:11px; font-family: var(--font-mono); }

.bxa-pricecard { padding: 12px; }
.bxa-pricecard__sym { font-weight:800; font-size:13px; }
.bxa-pricecard__price { font-family: var(--font-mono); font-size:22px; font-weight:700; margin: 6px 0 2px; letter-spacing:-0.02em; }
.bxa-pricecard__delta { font-size:11px; font-weight:700; }
.bxa-pricecard__delta--up { color:#0a7a4a; }
.bxa-pricecard__delta--dn { color:#b6502a; }

.bxa-spark { width:100%; height:36px; margin-top:8px; }

.bxa-tag {
  display:inline-block; padding:3px 8px; border-radius:6px;
  font-size:10px; font-weight:800; letter-spacing:0.06em;
  background:#1a1d22; color:#fff; text-transform:uppercase;
}
.bxa-tag--green { background:#0a7a4a; }
.bxa-tag--orange { background:#b6502a; }
.bxa-tag--blue { background:#2a5fb6; }

.bxa-channel-icon {
  width:28px; height:28px; border-radius:8px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:#fff;
}

/* ============ DARK CONTROL BLOCK ============ */
.bxa-control {
  background: #0a0a0a;
  color: #fff;
}
.bxa-control__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.bxa-control__head { margin-bottom: 56px; }
.bxa-control__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5); font-weight: 700;
  margin: 0 0 14px;
}
.bxa-control__h {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.030em;
  font-weight: 800;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.bxa-control__h em { font-weight:800; font-style:normal; color: rgba(255,255,255,0.55); }

.bxa-control__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .bxa-control__body { grid-template-columns: 1fr; gap: 36px; } }

.bxa-control__viz {
  background: #131311;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  position: relative;
  min-height: 440px;
  overflow: hidden;
}
.bxa-control__viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
  height: 100%;
  min-height: 400px;
}
.bxa-control__cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
}
.bxa-control__cell-label {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 9px;
}
.bxa-control__cell-name {
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
}
.bxa-control__cell--active {
  background: rgba(10,122,74,0.18);
  border-color: rgba(10,122,74,0.5);
}
.bxa-control__cell-pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: #2eba7b;
  box-shadow: 0 0 0 4px rgba(46,186,123,0.18);
  margin-left: auto;
}

.bxa-control__features {
  display: flex; flex-direction: column;
  gap: 28px;
}
.bxa-feature__h {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.bxa-feature__d {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ============ COMPOUND CHAIN ============ */
.bxa-compound {
  background: var(--bg);
}
.bxa-compound__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.bxa-compound__h {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.034em;
  font-weight: 800;
  margin: 14px 0 24px;
  text-wrap: balance;
}
.bxa-compound__h em { font-weight:800; font-style:normal; }
.bxa-compound__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 60ch;
  margin: 0 auto 56px;
}
.bxa-chain {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 760px) { .bxa-chain { grid-template-columns: repeat(2, 1fr); } }
.bxa-chain__cell {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 14px;
  position: relative;
}
.bxa-chain__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 700;
  margin-bottom: 10px;
}
.bxa-chain__title {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.bxa-chain__desc {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.45;
}

/* ============ PHONE BRIDGE ============ */
.bxa-bridge {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.bxa-bridge__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .bxa-bridge__inner { grid-template-columns: 1fr; gap: 40px; }
  .bxa-bridge__phone { order: -1; justify-self: center; }
}
.bxa-bridge__h {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 800;
  margin: 16px 0 20px;
  text-wrap: balance;
}
.bxa-bridge__h em { font-weight: 800; font-style: normal; font-family: var(--font-serif, 'Instrument Serif', Georgia, serif); font-style: italic; }
.bxa-bridge__lede {
  font-size: 17px; line-height: 1.5; color: var(--ink-3);
  max-width: 52ch; margin: 0 0 32px;
}
.bxa-bridge__cmd {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 16px;
  margin-bottom: 28px;
}
.bxa-bridge__cmd-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--ink-4); margin-bottom: 6px;
}
.bxa-bridge__cmd-text {
  font-size: 22px; font-weight: 600; color: var(--ink);
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-style: italic; letter-spacing: -0.01em;
}
.bxa-bridge__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.bxa-bridge__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.4;
}
.bxa-bridge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0a7a4a; flex-shrink: 0;
}
.bxa-bridge__channels {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bxa-bridge__chan {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-soft);
  color: var(--ink-2); font-weight: 600;
}
.bxa-bridge__phone { display: flex; justify-content: center; }

@keyframes bxaPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.bxa-bridge__caret {
  display: inline-block; width: 1.5px; height: 14px;
  background: #007AFF; margin-left: 1px; vertical-align: -2px;
  animation: bxaCaret 1s steps(1) infinite;
}
@keyframes bxaCaret {
  50% { opacity: 0; }
}
.bxa-bridge__typedot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(60,60,67,0.4);
  animation: bxaTypeDot 1.2s ease-in-out infinite;
}
@keyframes bxaTypeDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
