/* =========================================================
   Together section — 5 steps
   ========================================================= */
.together {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(40% 50% at 25% 72%, rgba(120, 40, 230, .28), transparent 70%),
    radial-gradient(50% 35% at 50% 38%, rgba(90, 20, 170, .22), transparent 70%),
    linear-gradient(180deg, #07030d 0%, #0b0418 40%, #07030d 100%);
}

/* seamless join: fade every background layer into the previous section's colour */
.together::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #07030d 0%, rgba(7, 3, 13, .85) 35%, rgba(7, 3, 13, 0) 100%);
}

.together::after {                 /* and fade out at the bottom too */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, #050307 0%, rgba(5, 3, 7, .8) 35%, rgba(5, 3, 7, 0) 100%);
}

/* flowing light ribbons */
.together__ribbons {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  transition: transform .8s var(--ease, ease);
}
.rib path { fill: none; stroke: url(#ribA); stroke-linecap: round; }

/* interactive star field + cursor spotlight */
.together__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.together__spot {
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(170, 100, 255, .22), rgba(247, 196, 124, .07) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
.together__spot.is-on { opacity: 1; }
.rib .blur { filter: url(#ribBlur); }

.together__inner {
  position: relative;
  z-index: 1;                       /* content stays above the top fade */
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px) clamp(16px, 3vw, 40px) clamp(20px, 2.5vw, 36px);
}

/* ---------- heading ---------- */
.together__head { text-align: center; }
.together__title {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  color: #f7f3fb;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease, ease), transform 1s var(--ease, ease);
}
.together__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 0;
  color: #f7c47c;
}
.together__divider span {
  width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 196, 124, .8));
  transform: scaleX(0);
  transition: transform 1s .3s var(--ease, ease);
}
.together__divider span:first-child { transform-origin: right; }
.together__divider span:last-child { transform-origin: left; background: linear-gradient(90deg, rgba(247, 196, 124, .8), transparent); }
.together__divider svg {
  width: 12px; height: 12px;
  filter: drop-shadow(0 0 6px rgba(247, 196, 124, .9));
  transform: scale(0) rotate(-90deg);
  transition: transform .8s .2s var(--ease, ease);
}
.together.is-in .together__title { opacity: 1; transform: none; }
.together.is-in .together__divider span { transform: scaleX(1); }
.together.is-in .together__divider svg { transform: none; animation: pSpark 3s 1.4s ease-in-out infinite; }

/* ---------- steps ---------- */
.steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin: clamp(36px, 4vw, 56px) auto 0;
  max-width: 1180px;
  padding: 0;
}
.steps::before {                      /* connecting line through the numbers */
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 150, 255, .45) 10%, rgba(247, 196, 124, .5) 50%, rgba(200, 150, 255, .45) 90%, transparent);
  transform: scaleX(0);
  transition: transform 1.4s .4s var(--ease, ease);
}
.steps::after {                       /* light travelling along it */
  content: "";
  position: absolute;
  top: 37px; left: 10%;
  width: 70px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff1d0, transparent);
  box-shadow: 0 0 10px #ffd89a;
  opacity: 0;
}
.together.is-in .steps::before { transform: scaleX(1); }
.together.is-in .steps::after { opacity: 1; animation: tTravel 4.5s 1.6s linear infinite; }

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 20px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid rgba(200, 160, 255, .16);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s var(--ease, ease) calc(var(--i) * 110ms + .3s),
    transform .8s var(--ease, ease) calc(var(--i) * 110ms + .3s),
    border-color .4s, box-shadow .4s, background .4s;
}
.together.is-in .step { opacity: 1; transform: none; }
.step p {
  font-size: 14px;
  line-height: 1.45;
  color: #e4dcec;
}
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 19px;
  color: #f7f3fb;
  background: radial-gradient(circle at 35% 30%, #4a1d88, #1c0a35);
  border: 1px solid rgba(200, 160, 255, .5);
  box-shadow: 0 0 14px rgba(150, 80, 255, .45);
  transition: color .4s, box-shadow .4s, border-color .4s, transform .5s var(--ease, ease);
}
.step__num::after {                   /* dashed orbit ring */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(247, 196, 124, .55);
  opacity: 0;
  transition: opacity .4s;
  animation: spin 9s linear infinite;
}
.step:hover, .step.is-active {
  border-color: rgba(247, 196, 124, .55);
  background: linear-gradient(180deg, rgba(150, 80, 255, .16), rgba(255, 255, 255, .03));
  box-shadow: 0 14px 40px -18px rgba(150, 80, 255, .8), inset 0 0 24px rgba(150, 80, 255, .12);
}
.together.is-in .step:hover, .together.is-in .step.is-active { transform: translateY(-6px); transition-delay: 0s; }
.step:hover .step__num, .step.is-active .step__num {
  color: #ffe2ad;
  border-color: rgba(247, 196, 124, .9);
  box-shadow: 0 0 22px rgba(247, 196, 124, .6);
  transform: scale(1.08);
}
.step:hover .step__num::after, .step.is-active .step__num::after { opacity: 1; }

/* ---------- keyframes ---------- */
@keyframes tTravel { from { left: 10%; } to { left: calc(90% - 70px); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .together__title, .step { opacity: 1 !important; transform: none !important; }
  .together__divider span, .steps::before { transform: none !important; }
  .together__divider svg { transform: none !important; }
}
