/* ----- SECOND SECTION (STRIPE STYLE) — BLACK VERSION ----- */
.flow-wrapper {
  
  width: 500px;
  max-width: 80vw;
  padding: 40px 40px;
  padding-bottom: 50px;
  height: 300px;
  border-radius: 24px;
  background-color: #000;
  overflow: hidden;
  position: relative;
  margin: 0 auto;

  background-image:
    radial-gradient(circle, rgba(148,163,184,0.20) 1px, transparent 1px), 
    radial-gradient(circle at center,
      rgba(110, 231, 255, 0.08) 3%,  
      rgba(81, 136, 225, 0.07) 30%,  
      rgba(168, 85, 247, 0.06) 40%,  
      rgba(236, 72, 153, 0.045) 40%, 
      rgba(109, 205, 224, 0) 60%
    );

  box-shadow: 0 25px 80px rgba(15,23,42,0.9);
}

.flow-wrapper svg {
  width: 145%;
  max-width: 145%;
  position: relative;
  left: 50%;
  display: block;
  transform: translateX(-50%) translateY(-50px); /* center visualization vertically in the card */
}

    /* ===== ICON SYSTEM (OFF/ON + GLOW) ===== */
    .icon-wrapper {
        position: relative;
        width: 120px;
        height: 55px;
        transition: transform 0.3s ease-out; 
    }
    
    .icon-wrapper:hover {
        transform: translateY(-2px); 
    }

    .icon-img {
        position: absolute;
        width: 100%;
        height: 100%;
        transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    }

    .icon-on {
        opacity: 0;
    }

    .glow {
        filter: drop-shadow(0 0 14px rgba(0, 209, 233, 0.8)); 
        transform: scale(1.05); 
    }

    .flow-path {
        stroke-dasharray: 4000;
        stroke-dashoffset: 4000;
        stroke-width: 3;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.4));
    }

.section-modular-black {
  padding: 72px 4px 96px; /* tighter sides */
  background:
    radial-gradient(circle at center,
      rgba(110, 231, 255, 0.12) 1%,
      rgba(81, 136, 225, 0.1) 30%,
      rgba(168, 85, 247, 0.08) 40%,
      rgba(236, 72, 153, 0.06) 30%,
      rgba(109, 205, 224, 0) 50%
    ),
    radial-gradient(circle, rgba(255,255,255,0.20) 1px, transparent 1px),
    #000;
  overflow: hidden;
    
}

.section-modular-inner-black {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: flex-start;
  margin-top: 24px;

}


@media (max-width: 900px) {
  .section-modular-inner-black {
    grid-template-columns: 1fr;
  }
  /* Hide the right-side visualization on small screens so only the text remains */
  .modular-visual-black,
  .modular-card-black {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .section-modular-black {
    padding: 36px 0 58px; /* bring content further left */
  }
  .section-modular-inner-black {
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
  }

  .modular-card-black {
    transform: scale(1);
    margin-top: 24px;
    max-width: 100%;
  }

  .flow-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 18px 12px 26px;
    height: auto;
    overflow: hidden;
  }

  .flow-wrapper svg {
    width: 100%;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px); /* keep the diagram centered */
  }

  .modular-title-black {
    font-size: clamp(2rem, 7vw, 2.4rem);
    margin-bottom: 28px;
    text-align: center;
  }

  .modular-text-black {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
  }

  .modular-chips-black {
    justify-content: center;
  }
}



/* ----- LEFT TEXT ----- */

.eyebrow-black {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5e7eb; 
  margin-bottom: 10px;
}

.modular-title-black {
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px; /* even larger gap below main title */
  color: #ffffff;
}

.modular-text-black {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #f3f4f6;
  margin-bottom: 42px; /* more space before chips/buttons */
}

/* ----- CHIPS ----- */

.modular-chips-black {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px; /* extra row spacing and generous column spacing */
}

.chip-black {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: #111;
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip-black:hover {
  border-color: #00d4ff;
}

.chip-black.active {
  border-color: #00d4ff;
  background: #072f36;
  color: #6ee7ff;
}


.modular-visual-black {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modular-card-black {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2937;
  margin-top: 80px;
  background: #111827;
  z-index: 1;
  overflow: visible;
  transform: scale(1.18);
  transform-origin: top left;
  font-size: 1.14em;
  position: relative;
}


.card-header-black {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #1f2937;
}

.dot-black {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}


/* ----- GLOW SHADOW ----- */
.modular-card-black {
  background: #0000007e;  /* חובה - שומר שהכרטיס לא ייצבע */

  z-index: 1;           /* שהכרטיס יהיה מעל הצל */
  overflow: visible;    /* חשוב! מאפשר לצל לצאת החוצה */
}

.modular-card-black::before {
  content: "";
  position: absolute;
  top: -35px;
  left: -35px;
  right: -35px;
  bottom: -35px;
  border-radius: 24px;

  background: conic-gradient(
    #6ee7ff,
    #3b82f6,
    #a855f7,
    #ec4899,
    #6ee7ff
  );

  filter: blur(40px);
  opacity: 0.55;

  z-index: -1;
  pointer-events: none;
  animation: glowFloat 7s ease-in-out infinite;
}

@keyframes glowFloat {
  0%   { transform: translateY(30px); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(20px); }
}

/* Responsive tightening for modular section on small screens */
@media (max-width: 1024px) {
  .section-modular-black {
    padding: 48px 12px 64px;
  }
  .section-modular-inner-black {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
  }
  .modular-visual-black {
    justify-content: center;
  }
  .modular-card-black {
    transform: scale(1);
    width: 92vw;
    max-width: 420px;
    margin: 24px auto 0;
    transform-origin: center;
  }
  .modular-card-black::before {
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    filter: blur(28px);
  }
  .flow-wrapper {
    width: 92vw;
    max-width: 440px;
    padding: 24px 20px 32px;
    height: auto;
    margin: 0 auto;
  }
  .flow-wrapper svg {
    width: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
  }
}

@media (max-width: 600px) {
  .modular-card-black {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    transform: scale(1);
  }
  .modular-card-black::before {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    filter: blur(22px);
  }
  .flow-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px 28px;
    overflow: hidden;
  }
  .flow-wrapper svg {
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: translateY(-10px);
  }
}
