/* ==========================================================================
   BugSpray — 3D Spatial & Interactive Elements Engine
   Inspired by Botric.ai — Orbital Mechanics, 3D Tilt Physics & Simulation Rail
   ========================================================================== */

/* ── 3D Perspective Context ──────────────────────────────────────────────── */
.perspective-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* ── Technical Index Section Architecture (`.botric-block`, `.botric-idx`) ── */
.botric-section {
  position: relative;
  padding: 60px 0;
}

.botric-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.botric-block {
  display: flex;
  gap: 32px;
  position: relative;
}

@media (max-width: 768px) {
  .botric-block {
    flex-direction: column;
    gap: 16px;
  }
}

.botric-idx {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
}

.botric-no {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #5ed29c;
  background: transparent;
  border: 1.5px solid #5ed29c;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.botric-tick {
  width: 1px;
  flex: 1;
  min-height: 80px;
  background: linear-gradient(to bottom, rgba(94, 210, 156, 0.4), rgba(255, 255, 255, 0.08), transparent);
}

.botric-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 20px;
  white-space: nowrap;
}

.botric-body {
  flex: 1;
  min-width: 0;
}

/* ── 3D Hero Cosmic Orbit System ─────────────────────────────────────────── */
.hero-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit-stage {
  position: relative;
  width: 900px;
  height: 900px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric Orbital Rings */
.hero-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(94, 210, 156, 0.22);
  transform-style: preserve-3d;
  pointer-events: auto;
}

[data-theme="light"] .hero-orbit-ring {
  border-color: rgba(5, 150, 105, 0.25);
}

.hero-orbit-ring--outer {
  width: 720px;
  height: 720px;
  animation: orbitRotate 48s linear infinite;
  box-shadow: 0 0 60px rgba(94, 210, 156, 0.05), inset 0 0 40px rgba(94, 210, 156, 0.03);
}

.hero-orbit-ring--mid {
  width: 480px;
  height: 480px;
  animation: orbitRotateRev 34s linear infinite;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(94, 210, 156, 0.3);
  box-shadow: 0 0 40px rgba(94, 210, 156, 0.08);
}

.hero-orbit-ring--inner {
  width: 260px;
  height: 260px;
  animation: orbitRotate 22s linear infinite;
  border: 1px dotted rgba(94, 210, 156, 0.4);
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.hero-orbit:hover .hero-orbit-ring {
  animation-play-state: paused;
}

/* Orbiting Satellites / Nodes */
.hero-orbit-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  transform-origin: center center;
  transform: rotate(var(--angle, 0deg)) translate(calc(var(--ring-radius, 360px))) rotate(calc(-1 * var(--angle, 0deg)));
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

.hero-orbit-ring--outer .hero-orbit-planet {
  --ring-radius: 360px;
}

.hero-orbit-ring--mid .hero-orbit-planet {
  --ring-radius: 240px;
}

.hero-orbit-ring--inner .hero-orbit-planet {
  --ring-radius: 130px;
}

.hero-orbit-planet-in {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-bg, rgba(14, 18, 26, 0.9));
  border: 1px solid var(--border2, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px var(--node-glow, rgba(94, 210, 156, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  animation: planetCounterRotate 48s linear infinite;
  color: var(--brand, #5ed29c);
}

.hero-orbit-ring--mid .hero-orbit-planet-in {
  animation-duration: 34s;
  animation-direction: reverse;
}

.hero-orbit-ring--inner .hero-orbit-planet-in {
  animation-duration: 22s;
}

@keyframes planetCounterRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.hero-orbit-planet:hover .hero-orbit-planet-in {
  transform: scale(1.3) translateY(-4px);
  border-color: var(--brand, #5ed29c);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 28px var(--brand, #5ed29c);
}

/* Satellite Tooltip */
.planet-tooltip {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface2, #141923);
  color: var(--text, #fff);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font, sans-serif);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.hero-orbit-planet:hover .planet-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Central Glowing Bug Core */
.hero-cosmos-core {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(94, 210, 156, 0.35), rgba(5, 150, 105, 0.1) 70%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(94, 210, 156, 0.4);
  animation: corePulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.85; filter: drop-shadow(0 0 22px rgba(94, 210, 156, 0.45)); }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 40px rgba(94, 210, 156, 0.8)); }
}

/* ── 3D Layered Spatial Tilt Cards (`heroCards-stage`) ───────────────────── */
.heroCards {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  min-height: 480px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroCards-stage {
  position: relative;
  width: 100%;
  height: 480px;
  transform-style: preserve-3d;
}

.heroCard {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: var(--w, 320px);
  text-decoration: none;
  color: inherit;
  transform: translateZ(var(--z, 0px)) rotate(var(--rot, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  z-index: 2;
}

.heroCard-float {
  display: block;
  background: var(--card-bg, rgba(14, 18, 26, 0.88));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--card-shadow, 0 10px 30px rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: heroCardFloat 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

.heroCard:hover {
  z-index: 25;
  transform: translateZ(calc(var(--z, 0px) + 60px)) scale(1.05) rotate(0deg) !important;
}

.heroCard:hover .heroCard-float {
  border-color: var(--brand, #5ed29c);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 30px var(--brand-glow, rgba(94, 210, 156, 0.35));
  animation-play-state: paused;
}

.heroCard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.heroCard-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-surface, rgba(94, 210, 156, 0.12));
  color: var(--brand, #5ed29c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.heroCard-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #fff);
  flex: 1;
  margin-left: 12px;
}

.heroCard-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--accent-bg, rgba(34, 197, 94, 0.15));
  color: var(--accent, #22c55e);
  border: 1px solid var(--accent, #22c55e);
}

.heroCard-tag.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.heroCard-tag.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: livePing 1.5s infinite;
}

@keyframes livePing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.heroCard-note {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

/* ── Interactive Radial Cursor Spotlight Physics ─────────────────────────── */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--brand, #5ed29c), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ── Interactive 6-Stage Telemetry Simulation Rail (`bflow-rail`) ─────────── */
.bflow-section {
  position: relative;
  padding: 10px 0 20px 0;
  background: transparent;
  overflow: hidden;
}

.bflow-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.bflow-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.bflow-tag {
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--mono, monospace);
  padding: 3px 10px;
  border-radius: 9999px;
  background: transparent;
  color: #5ed29c;
  border: 1.5px solid #5ed29c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bflow-scene-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf-step-no {
  font-family: var(--mono, monospace);
  color: #5ed29c;
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border: 1.5px solid #5ed29c;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Step Rail Tabs */
.bflow-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 6px;
  margin: 0 0 24px 0;
  background: #08100d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bflow-rail::-webkit-scrollbar {
  display: none;
}

.bf-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.bf-step-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.bf-step-btn.active {
  background: rgba(94, 210, 156, 0.1);
  color: #5ed29c;
  border: 1px solid #5ed29c;
  font-weight: 700;
}

.bf-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono, monospace);
  transition: background 0.2s, color 0.2s;
}

.bf-step-btn.active .bf-step-dot {
  background: #5ed29c;
  color: #070b0a;
  font-weight: 900;
}

/* Simulation Stage Canvas */
.bflow-stage {
  background: #050a08;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bf-panel {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bf-panel.active {
  display: block;
}

/* Agent Card with Radar Pulse (`.bf-agent`, `.bf-ring`) */
.bf-card.bf-agent {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.bf-agent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bf-ring {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bf-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bf-ring circle.t {
  stroke: var(--surface3);
  stroke-width: 3;
  fill: none;
}

.bf-ring circle.p {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-dasharray: 94;
  stroke-dashoffset: 20;
  fill: none;
  animation: radarSpin 2.5s linear infinite;
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); transform-origin: center; }
  100% { transform: rotate(360deg); transform-origin: center; }
}

.bf-ring b {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.bf-agent-note {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--mono, monospace);
}

/* Laser Circuit Wires & Beams (`bf-wire`, `bf-beam`) */
.bf-wire {
  position: relative;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  margin: 18px 0;
  overflow: hidden;
}

.bf-beam {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand), #fff, var(--brand), transparent);
  box-shadow: 0 0 14px var(--brand);
  animation: beamFlow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes beamFlow {
  0% { left: -40%; }
  100% { left: 140%; }
}

/* Probes & Platform Badges (`.bf-plat`) */
.bf-probes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bf-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.bf-plat-mono {
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  color: var(--c, var(--brand));
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Diagnostic Visibility Matrix (`.bf-matrix`) */
.bf-matrix {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  margin-top: 14px;
}

.bf-matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.bf-matrix-head {
  background: transparent;
  border: none;
  font-weight: 800;
  color: var(--text-dim);
  font-size: 11px;
}

.bf-cell {
  text-align: center;
  font-weight: 700;
}

.bf-cell .m.yes {
  color: var(--accent, #22c55e);
}

.bf-cell .m.no {
  color: var(--red, #ef4444);
}

.bf-cell .m.warn {
  color: var(--yellow, #f59e0b);
}

/* Rolling Stat Counter Row (`.statRow`, `.stat`) */
.statRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0 0;
}

@media (max-width: 1024px) {
  .statRow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .statRow {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: #060b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.stat:hover {
  border-color: rgba(94, 210, 156, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(94, 210, 156, 0.15);
}

.stat-n {
  font-size: 38px;
  font-weight: 800;
  font-family: var(--mono, monospace);
  color: #5ed29c;
  line-height: 1.1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.02em;
}

.stat-n small {
  font-size: 20px;
  color: #94a3b8;
  font-weight: 700;
}

.stat-l {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.stat-src {
  font-size: 11px;
  font-family: var(--mono, monospace);
  color: #64748b;
  letter-spacing: 0.02em;
}

/* 30-Day System Chart Area (`.sys-plot`) */
.sys-chart {
  background: #060b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 24px;
}

.sys-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sys-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sys-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.sys-leg b {
  color: #ffffff;
  font-weight: 700;
}

.sys-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sys-leg-dot.vis { background: #5ed29c; box-shadow: 0 0 8px #5ed29c; }
.sys-leg-dot.perf { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.sys-leg-dot.res { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

.sys-plot svg {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.gc-grid {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 4 4;
}

.gc-line {
  fill: none;
  stroke-linecap: round;
}

.gc-line.vis { stroke: #5ed29c; stroke-width: 2.8; filter: drop-shadow(0 0 6px rgba(94, 210, 156, 0.4)); }
.gc-line.perf { stroke: #38bdf8; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35)); }
.gc-line.res { stroke: #a855f7; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.35)); }

.sys-days {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: var(--mono, monospace);
  color: #64748b;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.sys-days b {
  color: #e2e8f0;
}

/* Simulation Controls Bar */
.bflow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.bflow-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bflow-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #0b1512;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.bflow-ctrl-btn:hover {
  background: #13221d;
  border-color: rgba(94, 210, 156, 0.4);
}

.bflow-ctrl-btn.play-btn {
  background: #5ed29c;
  color: #070b0a;
  border: 1px solid #5ed29c;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(94, 210, 156, 0.4);
}

.bflow-ctrl-btn.play-btn:hover {
  background: #4bc18b;
  box-shadow: 0 0 24px rgba(94, 210, 156, 0.6);
}

.bflow-progress-track {
  flex: 1;
  max-width: 320px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bflow-progress-bar {
  height: 100%;
  width: 0%;
  background: #5ed29c;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #5ed29c;
  border-radius: 2px;
}

/* 3D Particle Canvas Overlay */
#heroCosmosCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Customer Stories & Case Study Layout Styles ─────────────────────────── */
.customer-case-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: var(--card-bg, rgba(14, 18, 26, 0.85));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  padding: 36px 42px;
  margin-bottom: 32px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.customer-case-card:hover {
  border-color: var(--brand, #5ed29c);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--brand-glow, rgba(94, 210, 156, 0.2));
}

@media (max-width: 900px) {
  .customer-case-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.customer-case-main {
  min-width: 0;
}

.customer-case-sidebar {
  background: var(--surface2, rgba(0, 0, 0, 0.6));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  padding: 24px;
  min-width: 0;
}

.customer-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.customer-metric-box {
  background: var(--card-bg, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: 24px 28px;
  transition: all 0.25s ease;
}

.customer-metric-box:hover {
  border-color: var(--brand, #5ed29c);
  transform: translateY(-2px);
}

/* ── Additional Responsive Marketing Grids ───────────────────────────────── */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.marketing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}


