/* ===== What is a Swix? – Premium fintech dark section ===== */
.what-is-swix {
  --wis-dark: #0a0f1a;
  --wis-navy: #0f172a;
  --wis-text: #f8fafc;
  --wis-muted: #cbd5e1;
  --wis-accent: #7c3aed;
  --wis-accent-end: #2563eb;
  --wis-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.what-is-swix {
  position: relative;
  background: linear-gradient(160deg, var(--wis-navy) 0%, var(--wis-dark) 100%);
  font-family: var(--wis-font);
  padding: 5rem 1.25rem 5.5rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Bannière décorative en bas à droite – comble l’espace vide (comme l’exemple) */
.what-is-swix::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 900px;
  height: 100%;
  min-height: 100%;
  background: radial-gradient(
    ellipse 90% 70% at 100% 100%,
    rgba(124, 58, 237, 0.42) 0%,
    rgba(124, 58, 237, 0.22) 32%,
    rgba(99, 102, 241, 0.12) 58%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 0;
}

.what-is-swix-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .what-is-swix-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    min-height: 480px;
  }
}

/* Left: content */
.what-is-swix-content {
  max-width: 32rem;
}

.what-is-swix-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--wis-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.what-is-swix-desc {
  font-size: 1.0625rem;
  color: var(--wis-muted);
  line-height: 1.7;
  margin: 0;
}

/* Fade-in (class added by JS on scroll, or use .visible for no-JS) */
.what-is-swix-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.what-is-swix-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.what-is-swix-image-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out 0.15s, transform 0.6s ease-out 0.15s;
}

.what-is-swix-image-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Right: image with elevation and glow */
.what-is-swix-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

@media (min-width: 900px) {
  .what-is-swix-image-wrap {
    order: 0;
    justify-content: flex-end;
  }
}

/* Soft glow behind image */
.what-is-swix-image-wrap::before {
  content: '';
  position: absolute;
  width: 85%;
  max-width: 380px;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.25) 0%,
    rgba(37, 99, 235, 0.12) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .what-is-swix-image-wrap::before {
    left: auto;
    right: 10%;
    transform: translate(0, -50%);
  }
}

.what-is-swix-image-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .what-is-swix-image-box {
    max-width: 380px;
  }
}

.what-is-swix-image-box img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
