/* ============================================
   REVENUE ECOSYSTEM — FINTECH LUXURY EDITION
   ============================================ */

.eco-wrapper {
  padding: 160px 0;
  background: radial-gradient(circle at 20% 30%, #061512 0%, #020807 100%);
  position: relative;
  overflow: hidden;
}

/* Background Layers */
.eco-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
}

.eco-radial-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.05) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.eco-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.eco-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Typography & Header */
.premium-eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 20px;
  display: block;
}

.eco-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.glow-text {
  background: linear-gradient(90deg, #fff, var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 229, 200, 0.3));
}

.eco-description {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 50px;
}

/* LEFT: CARDS ECOSYSTEM */
.cards-ecosystem {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.eco-card {
  position: relative;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.eco-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Card Content & Glassmorphism */
.card-inner {
  position: relative;
  padding: 1px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s ease;
}

.card-body {
  background: #06110f;
  padding: 16px 24px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.card-icon {
  color: var(--gold);
  width: 20px;
  height: 20px;
}

.card-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Sizing Logic */
.eco-card.large .card-body { padding: 20px 30px; }
.eco-card.large .card-label { font-size: 15px; }
.eco-card.small .card-body { padding: 12px 18px; }

/* Floating Animation */
.eco-card {
  animation: float-card 6s ease-in-out infinite;
  animation-delay: var(--random-offset);
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Card Hover Effects */
.eco-card:hover .card-inner {
  transform: scale(1.08) translateY(-5px);
  background: var(--teal);
  box-shadow: 0 20px 40px rgba(0, 229, 200, 0.2);
}

.eco-card:hover .card-label { color: #fff; }

/* RIGHT: THE ENGINE (VIDEO) */
.eco-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.engine-orb-wrap {
  position: relative;
  width: 100%;
  max-width: 450px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.orb-blur {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, rgba(254,214,91,0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: pulse-orb 4s ease-in-out infinite alternate;
}

@keyframes pulse-orb {
  from { opacity: 0.5; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.video-frame-premium {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.video-frame-premium video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-glass-shield {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

/* Responsiveness */
@media (max-width: 992px) {
  .eco-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .eco-description { margin: 0 auto 40px; }
  .cards-ecosystem { justify-content: center; }
  .eco-visual { order: -1; margin-bottom: 60px; }
}