/* ========================================
   BRAIN LEAD — Visual Enhancements
   Hero illustrations, floating CTA, product visuals
   ======================================== */

/* ── FLOATING TELEGRAM BUTTON ── */
.bl-telegram-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,136,204,0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: telegramPulse 3s infinite;
}
.bl-telegram-float:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,136,204,0.7);
  color: #fff;
}
.bl-telegram-float .tooltip-label {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: rgba(10,10,26,0.95); color: #fff; padding: 0.4rem 0.8rem;
  border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid var(--border-glass);
}
.bl-telegram-float:hover .tooltip-label { opacity: 1; }
@keyframes telegramPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,136,204,0.4); }
  50% { box-shadow: 0 4px 30px rgba(0,136,204,0.7), 0 0 0 10px rgba(0,136,204,0.1); }
}

/* ── HERO 3D VISUAL ── */
.bl-hero-visual {
  position: relative; width: 100%; max-width: 500px; height: 350px;
  margin: 3rem auto 0; perspective: 1000px;
}
.bl-hero-visual .bl-float-card {
  position: absolute; border-radius: 16px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.bl-float-card:nth-child(1) {
  width: 280px; height: 170px; top: 20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.15));
  z-index: 3; animation-delay: 0s;
}
.bl-float-card:nth-child(2) {
  width: 220px; height: 140px; top: 80px; left: 5%;
  background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(245,158,11,0.1));
  z-index: 2; animation-delay: -2s; animation-duration: 7s;
}
.bl-float-card:nth-child(3) {
  width: 200px; height: 130px; top: 100px; right: 5%;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.1));
  z-index: 1; animation-delay: -4s; animation-duration: 8s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotateX(2deg); }
  50% { transform: translateY(-15px) rotateX(-2deg); }
}
.bl-float-card:nth-child(1) {
  transform: translateX(-50%) translateY(0px);
}
@keyframes floatCard1 {
  0%, 100% { transform: translateX(-50%) translateY(0px) rotateX(2deg); }
  50% { transform: translateX(-50%) translateY(-15px) rotateX(-2deg); }
}
.bl-float-card:nth-child(1) { animation-name: floatCard1; }

/* Card inner content simulation */
.bl-float-card .card-line {
  height: 6px; border-radius: 3px; margin: 12px 16px;
  background: rgba(255,255,255,0.08);
}
.bl-float-card .card-line:first-child { width: 60%; background: rgba(124,58,237,0.4); margin-top: 20px; }
.bl-float-card .card-line:nth-child(2) { width: 80%; }
.bl-float-card .card-line:nth-child(3) { width: 45%; }
.bl-float-card .card-dots {
  display: flex; gap: 6px; margin: 12px 16px;
}
.bl-float-card .card-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.bl-float-card .card-dot:nth-child(1) { background: var(--accent-green); }
.bl-float-card .card-dot:nth-child(2) { background: var(--accent-amber); }
.bl-float-card .card-dot:nth-child(3) { background: var(--accent-red); }

/* Glowing orbs behind hero visual */
.bl-hero-visual .bl-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.bl-orb:nth-child(4) { width: 200px; height: 200px; top: -30px; left: -20px; background: var(--accent-purple); }
.bl-orb:nth-child(5) { width: 150px; height: 150px; bottom: -20px; right: -10px; background: var(--accent-cyan); animation-delay: -5s; }
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.1); }
}

/* ── PRODUCT VISUAL ICONS (larger, animated) ── */
.bl-product-visual {
  width: 100%; height: 120px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.05));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.bl-product-visual i {
  font-size: 3rem; position: relative; z-index: 2;
  background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.bl-product-visual::after {
  content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-purple); filter: blur(40px); opacity: 0.3;
}
.bl-product-visual.v2 { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.05)); }
.bl-product-visual.v2 i { background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); -webkit-background-clip: text; }
.bl-product-visual.v2::after { background: var(--accent-cyan); }
.bl-product-visual.v3 { background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(245,158,11,0.05)); }
.bl-product-visual.v3 i { background: linear-gradient(135deg, var(--accent-pink), var(--accent-amber)); -webkit-background-clip: text; }
.bl-product-visual.v3::after { background: var(--accent-pink); }

/* ── COMMUNITY / TELEGRAM SECTION ── */
.bl-community {
  padding: 3rem 2rem; text-align: center;
  background: linear-gradient(135deg, rgba(0,136,204,0.1), rgba(0,170,255,0.05));
  border: 1px solid rgba(0,136,204,0.2); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.bl-community::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(0,136,204,0.1); filter: blur(80px);
}
.bl-community i.fab { font-size: 3rem; color: #0088cc; margin-bottom: 1rem; }
.bl-community h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.bl-community p { color: var(--text-secondary); max-width: 450px; margin: 0 auto 1.5rem; font-size: 0.95rem; }

/* ── FEATURE SHOWCASE VISUAL ── */
.bl-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center;
}
.bl-showcase-visual {
  position: relative; height: 300px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-glass);
  overflow: hidden; padding: 1.5rem;
}
.bl-showcase-terminal {
  background: rgba(0,0,0,0.5); border-radius: 8px; padding: 1rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--accent-green); height: 100%;
  overflow: hidden; position: relative;
}
.bl-showcase-terminal .term-header {
  display: flex; gap: 5px; margin-bottom: 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bl-showcase-terminal .term-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.bl-showcase-terminal .term-dot:nth-child(1) { background: #ff5f56; }
.bl-showcase-terminal .term-dot:nth-child(2) { background: #ffbd2e; }
.bl-showcase-terminal .term-dot:nth-child(3) { background: #27c93f; }
.bl-term-line { margin-bottom: 0.3rem; opacity: 0; animation: termType 0.5s forwards; }
.bl-term-line:nth-child(2) { animation-delay: 0.5s; }
.bl-term-line:nth-child(3) { animation-delay: 1s; }
.bl-term-line:nth-child(4) { animation-delay: 1.5s; color: var(--accent-cyan); }
.bl-term-line:nth-child(5) { animation-delay: 2s; }
.bl-term-line:nth-child(6) { animation-delay: 2.5s; color: var(--accent-amber); }
.bl-term-line:nth-child(7) { animation-delay: 3s; }
.bl-term-line:nth-child(8) { animation-delay: 3.5s; color: var(--accent-green); }
@keyframes termType { to { opacity: 1; } }

/* ── STATS BAR (visual) ── */
.bl-stat-bar {
  display: flex; align-items: center; gap: 0.8rem; margin: 0.4rem 0;
}
.bl-stat-bar-label { font-size: 0.7rem; color: var(--text-muted); width: 70px; text-align: right; }
.bl-stat-bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden;
}
.bl-stat-bar-fill {
  height: 100%; border-radius: 3px; transition: width 1.5s ease;
}
.bl-stat-bar-fill.purple { background: var(--gradient-accent); }
.bl-stat-bar-fill.green { background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); }
.bl-stat-bar-fill.pink { background: linear-gradient(90deg, var(--accent-pink), var(--accent-amber)); }

@media (max-width: 768px) {
  .bl-hero-visual { height: 250px; max-width: 320px; }
  .bl-float-card:nth-child(1) { width: 220px; height: 130px; }
  .bl-float-card:nth-child(2) { width: 160px; height: 100px; }
  .bl-float-card:nth-child(3) { width: 150px; height: 95px; }
  .bl-showcase { grid-template-columns: 1fr; }
  .bl-showcase-visual { height: 220px; }
}

/* ── LIVE DEMO PANELS (hero visual) ── */
.bl-hero-visual {
  position: relative; width: 100%; max-width: 560px; height: 400px;
  margin: 2.5rem auto 0; perspective: 1200px;
}

/* Orbs */
.bl-hero-visual .bl-orb:nth-child(1) {
  position:absolute; width:220px; height:220px; border-radius:50%;
  background:var(--accent-purple); filter:blur(80px); opacity:.35;
  top:-40px; left:-30px; animation: orbFloat 10s ease-in-out infinite alternate;
}
.bl-hero-visual .bl-orb:nth-child(2) {
  position:absolute; width:160px; height:160px; border-radius:50%;
  background:var(--accent-cyan); filter:blur(60px); opacity:.3;
  bottom:-20px; right:-10px; animation: orbFloat 12s ease-in-out infinite alternate-reverse;
}

/* Panel base */
.bl-demo-panel {
  position: absolute;
  background: rgba(15,15,30,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
}

/* Email panel — main, center */
#demoEmail {
  width: 260px; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; animation: panelFloat 6s ease-in-out infinite;
}
/* Carrier panel — left */
#demoCarrier {
  width: 200px; top: 130px; left: 0;
  z-index: 2; animation: panelFloat 7s ease-in-out infinite; animation-delay: -2s;
}
/* SMS panel — right */
#demoSMS {
  width: 190px; top: 140px; right: 0;
  z-index: 2; animation: panelFloat 8s ease-in-out infinite; animation-delay: -4s;
}

@keyframes panelFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
#demoEmail { animation-name: panelFloatCenter; }
@keyframes panelFloatCenter {
  0%,100% { transform: translateX(-50%) translateY(0px); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

/* Panel header */
.bl-demo-header {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7); font-size: 0.65rem; font-weight: 600;
}
.bl-demo-header .card-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.bl-demo-header .card-dot:nth-child(1) { background:#ff5f56; }
.bl-demo-header .card-dot:nth-child(2) { background:#ffbd2e; }
.bl-demo-header .card-dot:nth-child(3) { background:#27c93f; }
.bl-demo-header span:nth-child(4) { margin-left: 4px; flex:1; }
.bl-demo-live {
  font-size: 0.55rem; font-weight: 700; padding: 2px 6px; border-radius: 20px;
  background: rgba(124,58,237,.2); color: #a855f7;
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Email rows */
.bl-demo-rows { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; min-height: 100px; }
.bl-email-row {
  display: flex; align-items: center; gap: 6px;
  animation: rowSlideIn .3s ease forwards;
  opacity: 0;
}
@keyframes rowSlideIn { to { opacity:1; transform:translateY(0); } from { opacity:0; transform:translateY(6px); } }
.bl-email-row .bl-email-addr {
  flex: 1; color: rgba(255,255,255,.6); font-size: .62rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bl-email-row .bl-email-status {
  font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 10px;
  flex-shrink: 0;
}
.bl-email-row .bl-email-status.valid   { background:rgba(16,185,129,.2); color:#10b981; }
.bl-email-row .bl-email-status.invalid { background:rgba(239,68,68,.2);  color:#ef4444; }
.bl-email-row .bl-email-status.risky   { background:rgba(245,158,11,.2); color:#f59e0b; }

/* Carrier rows */
.bl-carrier-row {
  display: flex; align-items: center; gap: 5px; padding: 3px 0;
  animation: rowSlideIn .3s ease forwards; opacity: 0;
}
.bl-carrier-num  { color:rgba(255,255,255,.5); font-size:.6rem; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bl-carrier-name { font-size:.62rem; font-weight:700; flex-shrink:0; }
.bl-carrier-type { font-size:.58rem; padding:1px 4px; border-radius:8px; flex-shrink:0; background:rgba(6,182,212,.15); color:#06b6d4; }

/* SMS bubbles */
.bl-sms-bubbles { padding: 8px 10px; display:flex; flex-direction:column; gap:5px; min-height:80px; }
.bl-sms-bubble {
  max-width: 85%; padding: 5px 9px; border-radius: 12px;
  font-size: .62rem; line-height: 1.4; animation: rowSlideIn .3s ease forwards; opacity:0;
}
.bl-sms-bubble.out {
  align-self: flex-end; background: rgba(124,58,237,.3); color: #e2e8f0;
  border-bottom-right-radius: 3px;
}
.bl-sms-bubble.in {
  align-self: flex-start; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  border-bottom-left-radius: 3px;
}
.bl-sms-bubble .bl-tick { color: #10b981; font-size: .55rem; margin-left: 4px; }

/* Footer */
.bl-demo-footer {
  padding: 5px 12px; border-top: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.4); font-size: .6rem;
}
.bl-demo-footer span { color: #a855f7; font-weight: 700; }
#demoSMS .bl-demo-footer span { color: #f59e0b; }

@media (max-width: 768px) {
  .bl-hero-visual { height: 320px; max-width: 340px; }
  #demoEmail  { width: 200px; }
  #demoCarrier{ width: 155px; top: 110px; }
  #demoSMS    { width: 148px; top: 120px; }
}
