/* ============================================================
   HOME — "One partner, one connected ecosystem" (dark)
   Five steps lit in sequence by a light pulse travelling along
   the beam: 10s loop, step i lights at i × 2s. Pure CSS.
   ============================================================ */
.pe {
  --pe-ink: #f5f7ff;
  --pe-text: #b4bddc;
  --pe-line: rgba(255, 255, 255, 0.09);
  --pe-grad: linear-gradient(135deg, #3b82f6 0%, #4f46e5 50%, #7c3aed 100%);
  --pe-cycle: 10s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 9vw, 124px) 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.22), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(124, 58, 237, 0.24), transparent 40%),
    linear-gradient(160deg, #060a1d 0%, #0b1030 55%, #120d33 100%);
  color: var(--pe-text);
}
.pe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 72%);
}
.pe-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.pe-aurora i {
  position: absolute;
  width: 42vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: peDrift 18s ease-in-out infinite alternate;
}
.pe-aurora i:nth-child(1) {
  left: -8%;
  top: -18%;
  background: #2563eb;
}
.pe-aurora i:nth-child(2) {
  right: -10%;
  bottom: -25%;
  background: #7c3aed;
  animation-delay: -6s;
}
.pe-aurora i:nth-child(3) {
  left: 38%;
  top: 40%;
  width: 26vw;
  background: #4f46e5;
  opacity: 0.18;
  animation-delay: -12s;
}
.pe-wrap {
  position: relative;
}

/* ── Head ────────────────────────────────────────────── */
.pe-head {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.pe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  font: 700 12px/1 var(--font-secondary, "Inter", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pe-head .pe-title {
  margin: 24px 0 22px;
  color: var(--pe-ink);
  font: 800 clamp(2.2rem, 4.4vw, 3.8rem) / 1.08 var(--font-primary, sans-serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pe-title span {
  background: linear-gradient(110deg, #93c5fd 0%, #a5b4fc 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pe-head .pe-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--pe-text);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
}

/* ── Flow ────────────────────────────────────────────── */
.pe-flow {
  position: relative;
  max-width: 1180px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}
.pe-beam {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 70px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.35),
    rgba(129, 140, 248, 0.45),
    rgba(167, 139, 250, 0.35)
  );
}
.pe-beam i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 120px;
  height: 4px;
  margin: -2px 0 0 -60px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #c7d2fe 60%, #fff);
  box-shadow: 0 0 18px 4px rgba(165, 180, 252, 0.55);
  animation: peBeam var(--pe-cycle) linear infinite;
}
.pe-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pe-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 36px 16px 28px;
  border-radius: 26px;
  border: 1px solid var(--pe-line);
  background: linear-gradient(180deg, rgba(23, 30, 70, 0.92), rgba(13, 17, 44, 0.92));
  box-shadow: 0 24px 50px rgba(2, 4, 20, 0.45);
  text-align: center;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  animation: peLit var(--pe-cycle) calc(var(--i) * var(--pe-cycle) / 5) ease-in-out infinite;
}
.pe-step:hover {
  transform: translateY(-6px);
  border-color: rgba(165, 180, 252, 0.45);
}
.pe-num {
  position: absolute;
  top: 14px;
  left: 18px;
  color: rgba(165, 180, 252, 0.55);
  font: 700 12px/1 var(--font-secondary, sans-serif);
  letter-spacing: 0.1em;
}
.pe-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--pe-grad);
  color: #fff;
  font-size: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 30px rgba(79, 70, 229, 0.4);
}
.pe-ico::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 26px;
  border: 1.5px solid rgba(165, 180, 252, 0.7);
  opacity: 0;
  animation: peRing var(--pe-cycle) calc(var(--i) * var(--pe-cycle) / 5) ease-out infinite;
}
.pe-step strong {
  color: var(--pe-ink);
  font: 800 clamp(16px, 1.4vw, 19px) / 1.2 var(--font-primary, sans-serif);
}
.pe-step small {
  color: var(--pe-text);
  font: 500 clamp(12.5px, 1vw, 14px) / 1.45 var(--font-secondary, sans-serif);
}

/* ── Closing statement ───────────────────────────────── */
.pe-wrap .pe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: clamp(44px, 5vw, 60px) auto 0;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(#0d1235, #0d1235) padding-box,
    linear-gradient(110deg, rgba(96, 165, 250, 0.6), rgba(167, 139, 250, 0.6)) border-box;
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.25);
  color: #e6eaff;
  font: 700 clamp(15px, 1.4vw, 19px) / 1.45 var(--font-secondary, sans-serif);
  text-align: center;
}
.pe-note i {
  flex: none;
  color: #a5b4fc;
  font-size: 1.15em;
}

/* ── Motion ──────────────────────────────────────────── */
@keyframes peDrift {
  to {
    translate: 6% 8%;
    scale: 1.12;
  }
}
@keyframes peBeam {
  0% {
    left: 0;
    opacity: 1;
  }
  80% {
    left: 100%;
    opacity: 1;
  }
  81%,
  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes peBeamY {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    top: 100%;
    opacity: 1;
  }
  81%,
  100% {
    top: 100%;
    opacity: 0;
  }
}
@keyframes peLit {
  0%,
  16% {
    border-color: rgba(129, 140, 248, 0.75);
    box-shadow:
      0 0 0 1px rgba(129, 140, 248, 0.25),
      0 24px 60px rgba(79, 70, 229, 0.38);
  }
  24%,
  100% {
    border-color: var(--pe-line);
    box-shadow: 0 24px 50px rgba(2, 4, 20, 0.45);
  }
}
@keyframes peRing {
  0% {
    opacity: 0.9;
    scale: 0.9;
  }
  14% {
    opacity: 0;
    scale: 1.25;
  }
  100% {
    opacity: 0;
  }
}

/* ── Tablet: tighter cards ───────────────────────────── */
@media (max-width: 1100px) {
  .pe-step {
    padding: 34px 10px 24px;
  }
  .pe-ico {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
  .pe-beam {
    top: 63px;
  }
}

/* ── Phones & small tablets: vertical timeline ───────── */
@media (max-width: 860px) {
  .pe-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .pe-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    padding: 18px 52px 18px 18px;
    border-radius: 20px;
    text-align: left;
  }
  .pe-ico {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 16px;
    font-size: 22px;
  }
  .pe-ico::after {
    border-radius: 22px;
  }
  .pe-step strong {
    align-self: end;
  }
  .pe-step small {
    align-self: start;
  }
  .pe-num {
    top: 50%;
    right: 18px;
    left: auto;
    translate: 0 -50%;
    font-size: 13px;
  }
  .pe-beam {
    left: 45px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 2px;
    height: auto;
  }
  .pe-beam i {
    left: 50%;
    top: 0;
    width: 4px;
    height: 90px;
    margin: -45px 0 0 -2px;
    background: linear-gradient(180deg, transparent, #c7d2fe 60%, #fff);
    animation-name: peBeamY;
  }
  .pe-wrap .pe-note {
    border-radius: 22px;
    padding: 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe *,
  .pe-step {
    animation: none !important;
  }
  .pe-step {
    border-color: rgba(129, 140, 248, 0.45);
  }
}
