/* ==========================================================================
   ZOOTOM ECOSYSTEM PAGE — Stylesheet
   Extends the core design system (style.css).
   All classes prefixed with "eco-" or "ecosystem-" for encapsulation.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Active Navigation Indicator for Ecosystem Page
   -------------------------------------------------------------------------- */
.desktop-nav .nav-item-dropdown .nav-link.dropdown-toggle.active {
  color: #7c3aed;
  font-weight: 700;
  position: relative;
}

.desktop-nav .nav-item-dropdown .nav-link.dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 2.5px;
  background: var(--color-accent-purple, #7c3aed);
  border-radius: 9999px;
}

.desktop-nav .nav-item-dropdown .nav-link.dropdown-toggle.active .dropdown-chevron {
  color: #7c3aed;
}

/* --------------------------------------------------------------------------
   Common Gradient Text & Micro-animations
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-1.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* --------------------------------------------------------------------------
   PHASE 1: HERO SECTION — Merged Organic Composition
   -------------------------------------------------------------------------- */
.ecosystem-hero-section {
  position: relative;
  padding: 60px 0 70px;
  background: linear-gradient(180deg, rgba(248, 247, 255, 0.7) 0%, rgba(255, 255, 255, 1) 100%);
  overflow: hidden;
}

.eco-hero-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Hero Content (Left) */
.eco-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.eco-eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: -4px;
}

.eco-hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.03em;
}

.eco-hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 520px;
}

/* Hero Trust Points */
.eco-hero-trust-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.eco-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eco-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast, 0.2s ease);
}

.eco-trust-item:hover .eco-trust-icon {
  transform: translateY(-2px);
  background: #e0d7fe;
}

.eco-trust-icon svg {
  width: 20px;
  height: 20px;
}

.eco-trust-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.25;
}

/* Hero Visual (Right) — Seamless Organic Character Composition */
.eco-hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.eco-hero-organic-backdrop {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 1;
}

.eco-hero-blob-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(226, 220, 255, 0.8) 0%, rgba(218, 238, 255, 0.65) 55%, rgba(255, 255, 255, 0) 75%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  filter: blur(20px);
  animation: pulseGlow 7s ease-in-out infinite alternate;
}

.eco-hero-blob-secondary {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(24px);
}

.eco-hero-sparkle {
  position: absolute;
  font-size: 1.125rem;
  color: #a78bfa;
  animation: floatSlow 4s ease-in-out infinite alternate;
  opacity: 0.85;
}

.sp-1 { top: 6%; left: 8%; color: #8b5cf6; font-size: 1.35rem; }
.sp-2 { top: 12%; right: 20%; color: #ec4899; font-size: 1.15rem; }
.sp-3 { bottom: 22%; right: 2%; color: #f59e0b; font-size: 1.4rem; }

.eco-hero-character-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.eco-hero-img {
  width: 100%;
  max-width: 530px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(124, 58, 237, 0.14)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.04));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.eco-hero-visual-wrapper:hover .eco-hero-img {
  transform: translateY(-4px) scale(1.01);
}

/* Floating Badges on Hero */
.eco-floating-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.badge-shield {
  top: -8px;
  left: 8%;
  width: 46px;
  height: 46px;
  background: #ede9fe;
  color: #7c3aed;
  animation: floatSlow 5s ease-in-out infinite;
}

.badge-chat {
  top: -16px;
  right: 28%;
  width: 44px;
  height: 44px;
  background: #f5f3ff;
  color: #8b5cf6;
  animation: floatReverse 6s ease-in-out infinite;
}

.badge-search {
  top: 18%;
  right: -8px;
  width: 48px;
  height: 48px;
  background: #fef3c7;
  color: #f59e0b;
  animation: floatSlow 4.5s ease-in-out infinite 0.4s;
}

.badge-media {
  bottom: 22%;
  right: -12px;
  width: 44px;
  height: 44px;
  background: #ede9fe;
  color: #7c3aed;
  animation: floatReverse 5.5s ease-in-out infinite 0.8s;
}

.badge-explore {
  top: 16%;
  left: -16px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #5b21b6;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.14);
  animation: floatSlow 5.2s ease-in-out infinite 0.6s;
  border: 1.5px solid rgba(237, 233, 254, 0.9);
}

.badge-explore svg {
  color: #ec4899;
}

/* --------------------------------------------------------------------------
   PHASE 2: ECOSYSTEM INTRO
   -------------------------------------------------------------------------- */
.ecosystem-intro-section {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.eco-intro-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.eco-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 9999px;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eco-intro-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.eco-intro-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #6b7280;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   PHASE 3: FIVE ECOSYSTEM PILLARS — Seamless Pastel Integration
   -------------------------------------------------------------------------- */
.ecosystem-pillars-section {
  padding: 20px 0 90px;
  position: relative;
}

.eco-pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Top Row: 3 Cards */
.eco-pillars-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Bottom Row: 2 Cards */
.eco-pillars-row-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 100%;
}

/* Individual Pillar Card */
.eco-pillar-card {
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.eco-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -6px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

/* Theme Backgrounds for the whole Card (Matching Reference Image) */
.eco-pillar-card.theme-blue {
  background: #edf5ff;
}

.eco-pillar-card.theme-lavender {
  background: #f5f0ff;
}

.eco-pillar-card.theme-mint {
  background: #edfcf4;
}

.eco-pillar-card.theme-amber {
  background: #fff9eb;
}

/* Card Visual Header — Blended Seamlessly */
.eco-pillar-visual {
  position: relative;
  width: 100%;
  height: 205px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 0;
  background: transparent;
}

.eco-pillars-row-bottom .eco-pillar-visual {
  height: 225px;
}

.eco-pillar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.04));
}

.eco-pillar-card:hover .eco-pillar-img {
  transform: scale(1.06) translateY(-2px);
}

/* Card Content Area */
.eco-pillar-body {
  padding: 16px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.eco-pillar-title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.eco-pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 18px;
}

/* Bullet Points List */
.eco-pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.eco-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.45;
  font-weight: 500;
}

.eco-bullet-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.eco-bullet-icon svg {
  width: 11px;
  height: 11px;
  color: #ffffff;
}

/* Custom Bullet Icon Colors */
.theme-blue .eco-bullet-icon {
  background: #3b82f6;
}

.theme-lavender .eco-bullet-icon {
  background: #8b5cf6;
}

.theme-mint .eco-bullet-icon {
  background: #10b981;
}

.theme-amber .eco-bullet-icon {
  background: #f59e0b;
}

/* Pillar Action Button */
.btn-eco-pillar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-eco-pillar .btn-arrow {
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.btn-eco-pillar:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

.btn-eco-pillar:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   PHASE 4: FINAL ECOSYSTEM CTA
   -------------------------------------------------------------------------- */
.ecosystem-final-cta-section {
  padding: 20px 0 90px;
  position: relative;
}

.eco-cta-card {
  position: relative;
  background: linear-gradient(135deg, #f8f6ff 0%, #f1edfe 40%, #e5f1ff 100%);
  border-radius: 28px;
  border: 1px solid rgba(224, 231, 255, 0.8);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr auto;
  align-items: center;
  gap: 36px;
  box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* Ambient glow blobs in CTA */
.eco-cta-blob-1 {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(25px);
  pointer-events: none;
}

.eco-cta-blob-2 {
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* CTA Left Area */
.eco-cta-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.eco-cta-sparkle {
  font-size: 1.25rem;
  margin-bottom: -2px;
  display: inline-block;
}

.eco-cta-title {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.02em;
}

.eco-cta-desc {
  font-size: 0.9375rem;
  color: #6b7280;
}

/* CTA Middle: Trust Benefits */
.eco-cta-benefits {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.eco-cta-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.eco-cta-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.6);
  flex-shrink: 0;
  transition: transform var(--transition-fast, 0.2s ease);
}

.eco-cta-benefit-item:hover .eco-cta-benefit-icon {
  transform: translateY(-2px);
  color: #6d28d9;
}

.eco-cta-benefit-icon svg {
  width: 18px;
  height: 18px;
}

.eco-cta-benefit-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

/* CTA Right Area */
.eco-cta-right {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.btn-eco-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.15);
}

.btn-eco-cta .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-eco-cta:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22);
  color: #ffffff;
}

.btn-eco-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN & MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .eco-hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .eco-hero-content {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .eco-hero-desc {
    margin: 0 auto;
  }

  .eco-hero-trust-list {
    justify-content: center;
  }

  .eco-pillars-row-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .eco-pillars-row-top article:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .eco-cta-card {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 36px 28px;
  }

  .eco-cta-left {
    align-items: center;
    text-align: center;
  }

  .eco-cta-benefits {
    justify-content: center;
    gap: 32px;
  }

  .eco-cta-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ecosystem-hero-section {
    padding: 40px 0 50px;
  }

  .eco-hero-visual-wrapper {
    max-width: 100%;
    overflow: visible;
  }

  .eco-hero-img {
    max-width: 100%;
  }

  .badge-shield {
    top: -6px;
    left: 4px;
    width: 38px;
    height: 38px;
  }

  .badge-search {
    top: 14%;
    right: 4px;
    width: 40px;
    height: 40px;
  }

  .badge-chat {
    top: -12px;
    right: 20%;
    width: 38px;
    height: 38px;
  }

  .badge-media {
    bottom: 16%;
    right: 4px;
    width: 38px;
    height: 38px;
  }

  .badge-explore {
    left: 4px;
    top: 8%;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .ecosystem-intro-section {
    padding: 50px 0 24px;
  }

  .eco-pillars-grid {
    gap: 24px;
  }

  .eco-pillars-row-top,
  .eco-pillars-row-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .eco-pillars-row-top article:last-child {
    max-width: 100%;
  }

  .eco-pillar-visual,
  .eco-pillars-row-bottom .eco-pillar-visual {
    height: 180px;
    padding: 10px 12px 0;
  }

  .eco-pillar-body {
    padding: 18px 20px 24px;
  }

  .eco-hero-trust-list {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .eco-cta-benefits {
    flex-wrap: wrap;
    gap: 20px;
  }

  .btn-eco-cta {
    width: 100%;
  }
}
