/* ══════════════════════════════════════════════════════════
   BOTS & FLOWS — hero-v2.css
   New AI Workflow Hub Hero — fully scoped under .bnf-hero-section
   All class names prefixed with "bnf-" to prevent conflicts.
   All @keyframes prefixed with "bnf-" to prevent conflicts.
   CSS custom properties scoped to .bnf-hero-section.
   Only loaded on the homepage (front page).
══════════════════════════════════════════════════════════ */

/* ── Scoped CSS Custom Properties ── */
.bnf-hero-section {
  /* Dark mode defaults */
  --bnf-primary: #EC5121;
  --bnf-primary-glow: #FF6B3D;
  --bnf-accent: #FFC107;

  --bnf-bg-card: rgba(20, 20, 26, 0.72);
  --bnf-bg-card-hover: rgba(28, 28, 36, 0.88);
  --bnf-bg-pill: rgba(255, 255, 255, 0.06);
  --bnf-bg-pill-active: rgba(236, 81, 33, 0.22);

  --bnf-text-primary: #FFFFFF;
  --bnf-text-secondary: #A1A1AA;
  --bnf-text-muted: #71717A;

  --bnf-border-subtle: rgba(255, 255, 255, 0.08);
  --bnf-border-card: rgba(255, 255, 255, 0.12);
  --bnf-border-glow: rgba(236, 81, 33, 0.45);

  --bnf-btn-glow-shadow: 0 0 20px rgba(236, 81, 33, 0.45), 0 0 40px rgba(255, 193, 7, 0.2);
  --bnf-card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --bnf-orb-ambient-glow: radial-gradient(circle, rgba(236, 81, 33, 0.16) 0%, rgba(255, 193, 7, 0.06) 45%, rgba(12, 12, 15, 0) 70%);

  --bnf-grid-line: rgba(236, 81, 33, 0.04);
  --bnf-glow-top-bg: radial-gradient(ellipse at center, rgba(236, 81, 33, 0.12) 0%, rgba(12, 12, 15, 0) 70%);
  --bnf-glow-center-bg: radial-gradient(circle, rgba(236, 81, 33, 0.08) 0%, rgba(255, 193, 7, 0.03) 40%, rgba(12, 12, 15, 0) 65%);
}

/* Light mode overrides */
:root[data-theme="light"] .bnf-hero-section {
  --bnf-primary-glow: #E04516;
  --bnf-accent: #D99B00;

  --bnf-bg-card: rgba(255, 255, 255, 0.88);
  --bnf-bg-card-hover: rgba(255, 255, 255, 0.98);
  --bnf-bg-pill: rgba(12, 12, 15, 0.05);
  --bnf-bg-pill-active: rgba(236, 81, 33, 0.12);

  --bnf-text-primary: #0C0C0F;
  --bnf-text-secondary: #4B5563;
  --bnf-text-muted: #8E95A2;

  --bnf-border-subtle: rgba(12, 12, 15, 0.08);
  --bnf-border-card: rgba(12, 12, 15, 0.10);
  --bnf-border-glow: rgba(236, 81, 33, 0.35);

  --bnf-btn-glow-shadow: 0 6px 20px rgba(236, 81, 33, 0.25);
  --bnf-card-shadow: 0 20px 45px rgba(12, 12, 15, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --bnf-orb-ambient-glow: radial-gradient(circle, rgba(236, 81, 33, 0.10) 0%, rgba(255, 193, 7, 0.05) 45%, rgba(250, 247, 242, 0) 70%);

  --bnf-grid-line: rgba(236, 81, 33, 0.035);
  --bnf-glow-top-bg: radial-gradient(ellipse at center, rgba(255, 215, 194, 0.30) 0%, rgba(250, 247, 242, 0) 70%);
  --bnf-glow-center-bg: radial-gradient(circle, rgba(255, 241, 204, 0.35) 0%, rgba(250, 247, 242, 0) 65%);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION WRAPPER
══════════════════════════════════════════════════════════ */
.bnf-hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

/* ── Background Ambient Glows (scoped inside hero) ── */
.bnf-ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
  max-width: 100%;
  overflow: hidden;
}

.bnf-glow-top {
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: var(--bnf-glow-top-bg);
}

.bnf-glow-center {
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--bnf-glow-center-bg);
}

/* ── Background Grid Matrix (scoped inside hero) ── */
.bnf-background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bnf-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bnf-grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ── Inner page wrapper ── */
.bnf-page-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   HERO HEADER: Title, Subtitle, CTAs
══════════════════════════════════════════════════════════ */
.bnf-hero-header {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  animation: bnf-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bnf-hero-title {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--bnf-text-primary);
  margin: 0;
}

.bnf-hero-subtitle {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--bnf-text-secondary);
  max-width: 700px;
  margin: 0;
}

/* CTA Buttons Group */
.bnf-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* Primary glow CTA — extends the theme's .btn.btn--primary */
.bnf-btn-hero-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #EC5121 0%, #FF6B3D 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--bnf-btn-glow-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.bnf-btn-hero-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px rgba(236, 81, 33, 0.85), 0 0 60px rgba(255, 193, 7, 0.45);
  color: #ffffff;
}

.bnf-cta-arrow {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.bnf-btn-hero-glow:hover .bnf-cta-arrow {
  transform: translateX(3px);
}

/* Secondary Frosted Glass CTA */
.bnf-btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bnf-border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--bnf-text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.bnf-btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--bnf-border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 81, 33, 0.18);
  color: var(--bnf-text-primary);
}

.bnf-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bnf-accent);
  box-shadow: 0 0 10px var(--bnf-accent);
  animation: bnf-pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   AI WORKFLOW HUB CONTAINER & 4 GLASS CARDS
══════════════════════════════════════════════════════════ */
.bnf-hub-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-height: 520px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px 24px;
  align-items: center;
  justify-items: center;
}

/* SVG Connection Lines */
.bnf-hub-connections-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bnf-circuit-track {
  fill: none;
  stroke: rgba(236, 81, 33, 0.18);
  stroke-width: 2.2;
}

:root[data-theme="light"] .bnf-circuit-track {
  stroke: rgba(236, 81, 33, 0.16);
}

.bnf-circuit-flow {
  fill: none;
  stroke-width: 2.4;
  stroke-dasharray: 8 16;
  animation: bnf-circuitFlow 3s linear infinite;
}

.bnf-flow-delay-1 { animation-delay: 0.6s; }
.bnf-flow-delay-2 { animation-delay: 1.2s; }
.bnf-flow-delay-3 { animation-delay: 1.8s; }

/* ── Glass Cards Shared ── */
.bnf-hub-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 305px;
  background: var(--bnf-bg-card);
  border: 1px solid var(--bnf-border-card);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--bnf-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: bnf-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bnf-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--bnf-border-glow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(236, 81, 33, 0.18);
}

.bnf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bnf-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bnf-text-primary);
  letter-spacing: -0.2px;
}

.bnf-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(236, 81, 33, 0.15);
  color: var(--bnf-primary);
  border: 1px solid rgba(236, 81, 33, 0.3);
}

/* Connector Node Pin */
.bnf-connector-pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bnf-accent);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px var(--bnf-accent);
  z-index: 20;
  pointer-events: none;
}

.bnf-pin-right { right: -6px; }
.bnf-pin-left  { left: -6px; }

/* Grid placement */
.bnf-card-top-left    { grid-column: 1; grid-row: 1; justify-self: end; animation-delay: 0.15s; }
.bnf-card-bottom-left { grid-column: 1; grid-row: 2; justify-self: end; animation-delay: 0.25s; }
.bnf-card-top-right   { grid-column: 3; grid-row: 1; justify-self: start; animation-delay: 0.2s; }
.bnf-card-bottom-right{ grid-column: 3; grid-row: 2; justify-self: start; animation-delay: 0.3s; }

/* ── Card 1: Task Automation ── */
.bnf-task-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bnf-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.bnf-task-pill {
  font-size: 0.78rem;
  padding: 6px 11px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid var(--bnf-border-subtle);
}

.bnf-task-pill-ghost {
  background: var(--bnf-bg-pill);
  color: var(--bnf-text-secondary);
}

.bnf-task-pill-active {
  background: var(--bnf-bg-pill-active);
  color: var(--bnf-text-primary);
  border-color: rgba(236, 81, 33, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  flex-shrink: 0;
}

.bnf-task-pill-active i {
  font-size: 0.7rem;
  color: var(--bnf-primary);
}

.bnf-task-pill-muted {
  background: var(--bnf-bg-pill);
  color: var(--bnf-text-muted);
}

/* ── Card 2: Workflows ── */
.bnf-workflow-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bnf-workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bnf-bg-pill);
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--bnf-border-subtle);
  font-size: 0.82rem;
  color: var(--bnf-text-secondary);
}

.bnf-step-icon { font-size: 0.85rem; }
.bnf-step-icon-orange { color: var(--bnf-primary); }
.bnf-step-icon-amber  { color: var(--bnf-accent); }

.bnf-workflow-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 15, 0.4);
  border: 1px solid rgba(236, 81, 33, 0.35);
  padding: 7px 10px 7px 12px;
  border-radius: 8px;
  margin-top: 4px;
  gap: 8px;
  width: 100%;
}

:root[data-theme="light"] .bnf-workflow-input-box {
  background: rgba(255, 255, 255, 0.7);
}

.bnf-input-placeholder {
  font-size: 0.75rem;
  color: var(--bnf-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bnf-input-send-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bnf-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.bnf-input-send-btn:hover {
  transform: scale(1.1);
  background: var(--bnf-primary-glow);
}

/* ── Card 3: Analytics ── */
.bnf-header-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bnf-stat-growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(236, 81, 33, 0.15);
  border: 1px solid rgba(236, 81, 33, 0.35);
  color: var(--bnf-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.bnf-badge-sub {
  color: var(--bnf-text-muted);
  font-weight: 400;
  font-size: 0.68rem;
}

.bnf-analytics-body {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 10px;
}

.bnf-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
  font-size: 0.65rem;
  color: var(--bnf-text-muted);
  padding-bottom: 16px;
}

.bnf-chart-bars-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  gap: 8px;
}

.bnf-chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bnf-bar-fill {
  width: 100%;
  height: var(--h, 50%);
  background: linear-gradient(to top, #EC5121 0%, #FFC107 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 0 10px rgba(236, 81, 33, 0.4);
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s ease;
}

.bnf-chart-bar-col:hover .bnf-bar-fill {
  transform: scaleY(1.08);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.8);
}

.bnf-bar-label {
  font-size: 0.68rem;
  color: var(--bnf-text-muted);
}

/* ── Card 4: Practical Insights ── */
.bnf-insights-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bnf-insight-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  border: 1px solid var(--bnf-border-subtle);
  white-space: nowrap;
}

.bnf-insight-primary {
  background: rgba(236, 81, 33, 0.18);
  border-color: rgba(236, 81, 33, 0.35);
  color: var(--bnf-text-primary);
  justify-content: space-between;
}

.bnf-insight-icon  { color: var(--bnf-primary); font-size: 0.8rem; }
.bnf-insight-trend { color: var(--bnf-accent); font-size: 0.8rem; }

.bnf-insight-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.bnf-insight-row-bottom .bnf-insight-pill {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  padding: 7px 11px;
  font-size: 0.77rem;
}

.bnf-insight-ghost {
  background: var(--bnf-bg-pill);
  color: var(--bnf-text-muted);
}

.bnf-insight-pill-cash {
  background: var(--bnf-bg-pill);
  color: var(--bnf-text-secondary);
}

.bnf-insight-pill-cash i { color: var(--bnf-accent); }

/* ══════════════════════════════════════════════════════════
   CENTER: 3D PLANETARY ATOMIC ORB (New Hero)
   All classes scoped under .bnf-hub-center-orb-wrap
   to avoid conflict with existing .core in components.css
══════════════════════════════════════════════════════════ */
.bnf-hub-center-orb-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  transform-style: preserve-3d;
  z-index: 8;
  animation: bnf-fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.bnf-core__glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(236, 81, 33, 0.18), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(255, 193, 7, 0.12), transparent 50%);
  filter: blur(40px);
  opacity: 0.6;
  animation: bnf-core-breathe 8s ease-in-out infinite;
  pointer-events: none;
}

:root[data-theme="light"] .bnf-core__glow {
  background:
    radial-gradient(circle at 40% 35%, rgba(236, 81, 33, 0.12), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(255, 193, 7, 0.08), transparent 50%);
  opacity: 0.45;
  filter: blur(35px);
}

.bnf-core__nucleus {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.10), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(236, 81, 33, 0.15), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(20, 20, 26, 0.96), #0C0C0F 90%);
  border: 1.5px solid rgba(236, 81, 33, 0.35);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.7),
    0 0 35px -8px rgba(236, 81, 33, 0.3),
    inset 0 0 30px -10px rgba(236, 81, 33, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  animation: bnf-nucleus-pulse 6s ease-in-out infinite;
  z-index: 5;
  user-select: none;
}

:root[data-theme="light"] .bnf-core__nucleus {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 194, 0.45), transparent 60%),
    radial-gradient(circle at 50% 50%, #FFFFFF, #FAF7F2 90%);
  border-color: rgba(236, 81, 33, 0.28);
  box-shadow:
    0 16px 40px rgba(12, 12, 15, 0.08),
    0 0 25px -6px rgba(236, 81, 33, 0.2),
    inset 0 0 25px -8px rgba(236, 81, 33, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.bnf-core__nucleus::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(255, 193, 7, 0.22) 82%, transparent 96%);
  animation: bnf-nucleus-sheen 9s linear infinite;
  pointer-events: none;
}

:root[data-theme="light"] .bnf-core__nucleus::after {
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(236, 81, 33, 0.25) 82%, transparent 96%);
}

.bnf-core__favicon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
  z-index: 6;
  filter: drop-shadow(0 6px 16px rgba(236, 81, 33, 0.45));
  pointer-events: none;
  transition: filter 0.3s ease;
}

:root[data-theme="light"] .bnf-core__favicon {
  filter: drop-shadow(0 6px 14px rgba(236, 81, 33, 0.3));
}

/* ── 3D Orbit Rings ── */
.bnf-core__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.bnf-core__ring--1 {
  inset: -10px;
  border-color: rgba(236, 81, 33, 0.55);
  box-shadow: 0 0 24px -6px rgba(236, 81, 33, 0.35), inset 0 0 24px -8px rgba(236, 81, 33, 0.25);
  animation: bnf-core-spin-a 22s linear infinite;
}

.bnf-core__ring--2 {
  inset: 14px;
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 24px -6px rgba(255, 193, 7, 0.35), inset 0 0 24px -8px rgba(255, 193, 7, 0.2);
  animation: bnf-core-spin-b 30s linear infinite reverse;
}

.bnf-core__ring--3 {
  inset: 38px;
  border: 1.5px dashed rgba(255, 215, 194, 0.4);
  animation: bnf-core-spin-c 42s linear infinite;
}

.bnf-core__ring--4 {
  inset: -38px;
  border-color: rgba(44, 229, 184, 0.42);
  box-shadow: 0 0 28px -8px rgba(44, 229, 184, 0.3);
  opacity: 0.88;
  animation: bnf-core-spin-d 50s linear infinite reverse;
}

:root[data-theme="light"] .bnf-core__ring--1 {
  border-color: rgba(236, 81, 33, 0.45);
  box-shadow: 0 0 16px -6px rgba(236, 81, 33, 0.2);
}
:root[data-theme="light"] .bnf-core__ring--2 {
  border-color: rgba(217, 155, 0, 0.45);
  box-shadow: 0 0 16px -6px rgba(217, 155, 0, 0.2);
}
:root[data-theme="light"] .bnf-core__ring--3 {
  border-color: rgba(236, 81, 33, 0.25);
}
:root[data-theme="light"] .bnf-core__ring--4 {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 18px -8px rgba(16, 185, 129, 0.2);
}

/* Orbiting particles */
.bnf-core__ring i {
  position: absolute;
  top: -5.5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EC5121;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6), 0 0 14px 4px rgba(236, 81, 33, 0.7);
  transform: translateX(-50%);
  font-style: normal;
}

.bnf-core__ring i.p2 {
  top: auto;
  bottom: -4.5px;
  left: 50%;
  right: auto;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
}

.bnf-core__ring--2 i {
  background: #FFC107;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6), 0 0 14px 4px rgba(255, 193, 7, 0.75);
}

.bnf-core__ring--2 i.p2 {
  background: #FFD7C2;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5), 0 0 12px 3px rgba(255, 215, 194, 0.6);
}

.bnf-core__ring--3 i {
  background: #FFC107;
  box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.5), 0 0 10px 2px rgba(255, 193, 7, 0.6);
}

.bnf-core__ring--4 i {
  background: #2CE5B8;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7), 0 0 16px 4px rgba(44, 229, 184, 0.8);
}

/* ══════════════════════════════════════════════════════════
   KEYFRAMES  (all prefixed bnf- to avoid theme conflicts)
══════════════════════════════════════════════════════════ */
@keyframes bnf-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bnf-pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

@keyframes bnf-circuitFlow {
  to { stroke-dashoffset: -48; }
}

@keyframes bnf-core-breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%       { transform: scale(1.06); opacity: 0.75; }
}

@keyframes bnf-nucleus-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.025); }
}

@keyframes bnf-nucleus-sheen {
  to { transform: rotate(360deg); }
}

@keyframes bnf-core-spin-a {
  from { transform: rotateX(66deg) rotateZ(0deg); }
  to   { transform: rotateX(66deg) rotateZ(360deg); }
}

@keyframes bnf-core-spin-b {
  from { transform: rotateX(-58deg) rotateY(14deg) rotateZ(0deg); }
  to   { transform: rotateX(-58deg) rotateY(14deg) rotateZ(360deg); }
}

@keyframes bnf-core-spin-c {
  from { transform: rotateX(74deg) rotateY(-18deg) rotateZ(0deg); }
  to   { transform: rotateX(74deg) rotateY(-18deg) rotateZ(360deg); }
}

@keyframes bnf-core-spin-d {
  from { transform: rotateX(80deg) rotateY(8deg) rotateZ(0deg); }
  to   { transform: rotateX(80deg) rotateY(8deg) rotateZ(360deg); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (769px–1024px)
══════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .bnf-hub-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
    min-height: auto;
  }

  .bnf-hub-center-orb-wrap {
    grid-column: 1 / span 2;
    grid-row: 2;
    margin: 20px 0;
  }

  .bnf-card-top-left    { grid-column: 1; grid-row: 1; justify-self: center; }
  .bnf-card-top-right   { grid-column: 2; grid-row: 1; justify-self: center; }
  .bnf-card-bottom-left { grid-column: 1; grid-row: 3; justify-self: center; }
  .bnf-card-bottom-right{ grid-column: 2; grid-row: 3; justify-self: center; }

  .bnf-hub-connections-svg { display: none !important; }
  .bnf-connector-pin        { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .bnf-page-inner {
    padding: 24px 14px 36px;
    padding-top: 82px;
  }

  .bnf-glow-top {
    width: 100%;
    max-width: 360px;
    height: 220px;
    top: -60px;
  }

  .bnf-glow-center {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }

  .bnf-hero-title {
    font-size: clamp(2.05rem, 7.2vw, 2.75rem);
    line-height: 1.15;
  }

  .bnf-hero-subtitle {
    font-size: clamp(0.92rem, 3.4vw, 1.05rem);
    padding: 0 6px;
  }

  .bnf-hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 14px;
  }

  .bnf-hero-cta-group .bnf-btn-hero-glow,
  .bnf-hero-cta-group .bnf-btn-secondary-glass {
    width: max-content;
    max-width: 92vw;
    justify-content: center;
    padding: 13px 24px;
    font-size: 0.94rem;
  }

  /* Vertical hub stack on mobile */
  .bnf-hub-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 440px;
    margin: 36px auto 0;
    position: relative;
    min-height: auto;
  }

  .bnf-card-top-left    { order: 1; width: calc(100% - 56px); max-width: 290px; }
  .bnf-card-bottom-left { order: 2; width: calc(100% - 56px); max-width: 290px; }
  .bnf-hub-center-orb-wrap { order: 3; width: 220px; height: 220px; margin: 14px auto; z-index: 3; }
  .bnf-card-top-right   { order: 4; width: calc(100% - 56px); max-width: 290px; }
  .bnf-card-bottom-right{ order: 5; width: calc(100% - 56px); max-width: 290px; }

  .bnf-hub-center-orb-wrap .bnf-core__nucleus {
    width: 136px;
    height: 136px;
  }

  .bnf-hub-center-orb-wrap .bnf-core__favicon {
    width: 50px;
    height: 50px;
  }

  .bnf-hub-center-orb-wrap .bnf-core__ring--1 { inset: -8px; }
  .bnf-hub-center-orb-wrap .bnf-core__ring--2 { inset: 10px; }
  .bnf-hub-center-orb-wrap .bnf-core__ring--3 { inset: 24px; }
  .bnf-hub-center-orb-wrap .bnf-core__ring--4 { inset: -24px; }

  /* Mobile card sizing */
  .bnf-hub-card {
    position: relative;
    z-index: 5;
    padding: 15px 16px;
    border-radius: 16px;
    gap: 10px;
    box-sizing: border-box;
  }

  /* SVG Connections & Pins are visible on mobile */
  .bnf-hub-connections-svg {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
  }

  .bnf-connector-pin {
    display: block !important;
  }

  /* Pin placements matching user's layout:
     Card 1: Right (default bnf-pin-right)
     Card 2: Left
     Card 3: Right
     Card 4: Left (default bnf-pin-left)
  */
  #bnf-card-workflows .bnf-connector-pin {
    left: -6px !important;
    right: auto !important;
  }

  #bnf-card-analytics .bnf-connector-pin {
    right: -6px !important;
    left: auto !important;
  }

  /* Card 1 */
  .bnf-task-pill { font-size: 0.74rem; padding: 4px 9px; }

  /* Card 2 */
  .bnf-workflow-step { padding: 6px 9px; font-size: 0.78rem; gap: 6px; }
  .bnf-workflow-input-box { padding: 6px 10px; margin-top: 2px; gap: 6px; }
  .bnf-input-placeholder  { font-size: 0.71rem; }
  .bnf-input-send-btn     { width: 20px; height: 20px; font-size: 0.65rem; }

  /* Card 3 */
  .bnf-stat-growth-badge { font-size: 0.68rem; padding: 2px 6px; }
  .bnf-analytics-body    { padding-top: 4px; }
  .bnf-chart-y-axis      { height: 64px; font-size: 0.62rem; }
  .bnf-chart-bars-wrap   { height: 64px; gap: 6px; }
  .bnf-bar-label         { font-size: 0.62rem; }

  /* Card 4 */
  .bnf-insight-pill      { font-size: 0.75rem; padding: 7px 10px; }
  .bnf-insight-row-bottom .bnf-insight-pill { font-size: 0.72rem; padding: 6px 9px; }



}

.bnf-hero-title em{
  color: var(--teal);
}