/* ============================================
   Lead Management  -  Perfect For (2x2 leaf cards)
   ============================================ */

.lead-perfect {
  --lp-navy: #071428;
  --lp-navy-2: #0a1f46;
  --lp-royal: #1d5eff;
  --lp-royal-deep: #1246d6;
  --lp-cyan: #22d3ee;
  --lp-sky: #38bdf8;
  --lp-muted: #5b6b80;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f3f8ff 100%);
  color: var(--lp-navy);
}

.lead-perfect__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lead-perfect__wave {
  position: absolute;
}

.lead-perfect__wave--tl {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.lead-perfect__wave--br {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.lead-perfect__lines {
  position: absolute;
  inset: 8% 6% 12%;
  opacity: 0.18;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, transparent 40%, rgba(255, 255, 255, 0.7) 41%, transparent 42%),
    radial-gradient(ellipse 70% 45% at 80% 70%, transparent 40%, rgba(255, 255, 255, 0.65) 41%, transparent 42%);
}

.lead-perfect > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.lead-perfect__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.lead-perfect__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-navy);
}

.lead-perfect__eyebrow-marks {
  display: inline-flex;
  gap: 4px;
}

.lead-perfect__eyebrow-marks span {
  display: block;
  width: 10px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lp-royal), var(--lp-cyan));
  transform: rotate(-28deg);
}

.lead-perfect__title {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--lp-navy);
}

.lead-perfect__title-accent {
  position: relative;
  display: inline-block;
  color: var(--lp-cyan);
}

.lead-perfect__title-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  width: 100%;
  height: 12px;
  overflow: visible;
}

.lead-perfect__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--lp-muted);
}

/* ---------- Grid ---------- */
.lead-perfect__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.lead-perfect__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 22px);
  min-height: 148px;
  padding: 26px 28px 26px 24px;
  border-radius: 36px 22px 36px 22px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.lead-perfect__card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 120px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-18deg);
}

.lead-perfect__card--dark {
  color: #fff;
  background: linear-gradient(145deg, #071428 0%, #0b1f46 42%, #123a8a 78%, #1d5eff 100%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow:
    0 20px 44px rgba(7, 20, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lead-perfect__card--dark::after {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.85), rgba(56, 189, 248, 0.2));
  box-shadow: none;
  opacity: 0.85;
}

.lead-perfect__card--light {
  color: var(--lp-navy);
  background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 55%, #eaf3ff 100%);
  border: 1px solid rgba(186, 230, 253, 0.95);
  box-shadow:
    0 18px 40px rgba(29, 94, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lead-perfect__card--light::after {
  background: linear-gradient(135deg, rgba(29, 94, 255, 0.9), rgba(56, 189, 248, 0.35));
  box-shadow: none;
  opacity: 0.8;
}

.lead-perfect__card:hover {
  transform: translateY(-6px);
}

.lead-perfect__card--dark:hover {
  box-shadow:
    0 26px 52px rgba(7, 20, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lead-perfect__card--light:hover {
  box-shadow:
    0 24px 48px rgba(29, 94, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.lead-perfect__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(125, 211, 252, 0.55) 0%, rgba(29, 94, 255, 0.85) 48%, rgba(11, 60, 201, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 12px 24px rgba(7, 20, 40, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 16px rgba(7, 20, 40, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-perfect__card--light .lead-perfect__icon {
  background:
    linear-gradient(155deg, rgba(186, 230, 253, 0.95) 0%, rgba(56, 189, 248, 0.75) 40%, rgba(29, 94, 255, 0.95) 100%);
  box-shadow:
    0 12px 24px rgba(29, 94, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 16px rgba(18, 70, 214, 0.2);
}

.lead-perfect__icon svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(7, 20, 40, 0.2));
}

.lead-perfect__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.lead-perfect__card-title {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead-perfect__card--dark .lead-perfect__card-title {
  color: #fff;
}

.lead-perfect__card--light .lead-perfect__card-title {
  color: var(--lp-navy);
}

.lead-perfect__card-desc {
  margin: 0;
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  line-height: 1.55;
}

.lead-perfect__card--dark .lead-perfect__card-desc {
  color: rgba(226, 236, 248, 0.86);
}

.lead-perfect__card--light .lead-perfect__card-desc {
  color: var(--lp-muted);
}

/* Reveal */
.lead-perfect .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-perfect .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lead-perfect .reveal-delay-1 { transition-delay: 0.08s; }
.lead-perfect .reveal-delay-2 { transition-delay: 0.16s; }
.lead-perfect .reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lead-perfect__card {
    min-height: 136px;
    padding: 22px 20px;
    border-radius: 30px 18px 30px 18px;
    gap: 16px;
  }

  .lead-perfect__icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 16px;
  }

  .lead-perfect__icon svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 720px) {
  .lead-perfect__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
  }

  .lead-perfect__card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .lead-perfect {
    padding: 40px 0 52px;
  }

  .lead-perfect__eyebrow {
    font-size: 0.72rem;
    gap: 10px;
  }

  .lead-perfect__title {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }

  .lead-perfect__lead {
    font-size: 0.92rem;
  }

  .lead-perfect__card {
    padding: 20px 18px;
    border-radius: 26px 16px 26px 16px;
  }

  .lead-perfect__icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }

  .lead-perfect__icon svg {
    width: 24px;
    height: 24px;
  }

  .lead-perfect__card-title {
    font-size: 1.02rem;
  }

  .lead-perfect__card-desc {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .lead-perfect {
    padding: 36px 0 48px;
  }

  .lead-perfect__wave--tl,
  .lead-perfect__wave--br {
    opacity: 0.55;
  }

  .lead-perfect__card {
    padding: 18px 16px;
    gap: 14px;
  }

  .lead-perfect__card::after {
    width: 90px;
    height: 70px;
    right: -22px;
    bottom: -30px;
  }
}

@media (max-width: 400px) {
  .lead-perfect__card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .lead-perfect__title {
    font-size: 1.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-perfect .reveal,
  .lead-perfect .reveal.is-visible,
  .lead-perfect__card:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Dark theme */
[data-theme="dark"] .lead-perfect {
  background:
    linear-gradient(180deg, #07111f 0%, #0a1628 50%, #0b1a30 100%);
  color: #e8eef8;
}

[data-theme="dark"] .lead-perfect__title,
[data-theme="dark"] .lead-perfect__eyebrow {
  color: #f1f5f9;
}

[data-theme="dark"] .lead-perfect__lead {
  color: #94a3b8;
}

[data-theme="dark"] .lead-perfect__card--light {
  background: linear-gradient(160deg, rgba(15, 30, 55, 0.96), rgba(18, 40, 78, 0.94));
  border-color: rgba(96, 165, 250, 0.3);
  color: #e8eef8;
}

[data-theme="dark"] .lead-perfect__card--light .lead-perfect__card-title {
  color: #f1f5f9;
}

[data-theme="dark"] .lead-perfect__card--light .lead-perfect__card-desc {
  color: #94a3b8;
}
