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

:root {
  --brand: #DEC88E;
  --bg-dark: #030304;
}

/* --- 3D PIPELINE FUNNEL ANIMATION --- */

.perspective-container {
  perspective: 1000px;
  overflow: hidden;
}

.pipeline-funnel {
  position: relative;
  max-width: 400px;
  height: 500px;
  width: 100%;
  /* Tilted forward to show depth */
  transform: rotateX(10deg); 
  transform-style: preserve-3d;
  margin: 0 auto;
}

/* 1. Funnel Rings (The Stages) */
.funnel-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotateX(70deg);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ring-top {
  top: 50px;
  width: 300px; height: 300px;
  border-color: #555;
}

.ring-mid {
  top: 200px;
  width: 180px; height: 180px;
  border-color: var(--brand);
  border-style: solid;
  box-shadow: 0 0 30px rgba(222,200,142,0.2);
  animation: pulse-ring 2s infinite;
}

.ring-bot {
  top: 350px;
  width: 80px; height: 80px;
  border-color: #10B981; /* Green for closed won */
  border-style: solid;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 30px rgba(222,200,142,0.2); }
  50% { box-shadow: 0 0 50px rgba(222,200,142,0.5); }
}

/* 2. Connecting Wires (The Funnel Shape) */
.funnel-wire {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 350px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
  transform-origin: top center;
}

.w1 { transform: translateX(-150px) rotateZ(18deg); }
.w2 { transform: translateX(150px) rotateZ(-18deg); }
.w3 { transform: translateZ(100px) translateX(0) rotateX(-18deg); } /* Front wire */
.w4 { transform: translateZ(-100px) translateX(0) rotateX(18deg); } /* Back wire */


/* 3. Leads (Particles Dropping) */
.lead-particle {
  position: absolute;
  top: 0; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #555;
  box-shadow: 0 0 5px #555;
  opacity: 0;
}

.l1 { animation: drop-lead 4s infinite linear; animation-delay: 0s; }
.l2 { animation: drop-lead 4s infinite linear; animation-delay: 1s; }
.l3 { animation: drop-lead 4s infinite linear; animation-delay: 2s; }
.l4 { animation: drop-lead 4s infinite linear; animation-delay: 3s; }

@keyframes drop-lead {
  0% { top: 50px; opacity: 0; transform: translateX(-50px) translateZ(20px); background: #555; }
  10% { opacity: 1; }
  
  /* Hit Middle Ring (Qualification) */
  50% { top: 200px; transform: translateX(-20px) translateZ(10px); background: var(--brand); box-shadow: 0 0 15px var(--brand); }
  
  /* Hit Bottom Ring (Closed) */
  90% { top: 350px; opacity: 1; transform: translateX(0) translateZ(0); background: #10B981; box-shadow: 0 0 15px #10B981; }
  100% { top: 400px; opacity: 0; }
}


/* 4. Revenue (Gold Cubes at bottom) */
.revenue-cube {
  position: absolute;
  bottom: 50px; left: 50%;
  width: 20px; height: 20px;
  background: var(--brand);
  border: 1px solid #fff;
  transform-style: preserve-3d;
  box-shadow: 0 0 20px var(--brand);
  opacity: 0;
}

.r1 { animation: cube-exit 4s infinite linear; animation-delay: 3.6s; } /* Sync with l1 */
.r2 { animation: cube-exit 4s infinite linear; animation-delay: 4.6s; }

@keyframes cube-exit {
  0% { transform: translateX(-50%) translateY(0) rotateY(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(100px) rotateY(360deg); opacity: 0; }
}

/* 5. HUD Labels */
.hud-label {
  position: absolute;
  left: 70%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-left: 2px solid #333;
}
.label-top { top: 100px; color: #666; border-color: #666; }
.label-mid { top: 220px; border-color: var(--brand); }
.label-bot { top: 370px; border-color: #10B981; }

/* --- UTILS --- */

.mask-fade-sides {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.animate-ticker {
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.text-stroke-gold {
  -webkit-text-stroke: 1px var(--brand);
  color: transparent;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .pipeline-funnel {
    transform: scale(0.7);
  }
}