/* ============================================
   BATTLE PAGE — SELECTION TIMELINE
   5 numbered steps on a horizontal gradient line.
   Desktop: line runs left→right through the nodes.
   Mobile:  line rotates vertical, steps stack.
   ============================================ */

.timeline {
  padding: 12rem 10rem;
}

.timeline__inner {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;
}

.timeline__title {
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--color-white);
  margin: 0 0 6rem;
}

/* ============================================
   TRACK — the row of steps + connector line
   ============================================ */

.timeline__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

/* Gradient connector line, drawn behind the number nodes.
   Inset by 10% each side so it starts/ends at the first/last node. */
.timeline__track::before {
  content: '';
  position: absolute;
  top: 2.4rem;                  /* half of node height — keeps line centered */
  left: 10%;
  right: 10%;
  height: 0.2rem;
  background: linear-gradient(90deg, #FF6B2D 0%, #8B5CF6 50%, #00B4FF 100%);
  z-index: 0;
}

/* ============================================
   STEP
   ============================================ */

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-step__node {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;

  background: var(--color-deep-space, #0A0E1A);
  border: 0.2rem solid rgba(255, 255, 255, 0.35);

  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
}

.timeline-step__date {
  margin-top: 2.4rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  background: linear-gradient(90deg, #8B5CF6 0%, #FF6B2D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-step__title {
  margin-top: 1rem;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.timeline-step__text {
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  max-width: 26rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.timeline__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 6rem;
}

.timeline__buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 4.5rem;
  border-radius: 11.6rem;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-brand);
  color: var(--color-white);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .timeline {
    padding: 10rem 6rem;
  }

  .timeline__title {
    font-size: 5.6rem;
    margin-bottom: 5rem;
  }

  .timeline-step__title {
    font-size: 2.2rem;
  }
}

/* TABLET — 2 rows of steps, line hidden (it can't span wrapped rows) */
@media (max-width: 1024px) {
  .timeline__track {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 3rem;
  }

  .timeline__track::before {
    display: none;
  }
}

/* MOBILE — vertical stack with a vertical connector line */
@media (max-width: 700px) {
  .timeline {
    padding: 8rem 3rem;
  }

  .timeline__title {
    font-size: 4.4rem;
    margin-bottom: 4rem;
  }

  .timeline__track {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  /* Vertical line down the left, behind the nodes */
  .timeline__track::before {
    display: block;
    top: 2.4rem;
    bottom: 2.4rem;
    left: 2.3rem;               /* centers on the 4.8rem node */
    right: auto;
    width: 0.2rem;
    height: auto;
    background: linear-gradient(180deg, #FF6B2D 0%, #8B5CF6 50%, #00B4FF 100%);
  }

  /* Steps become left-aligned rows: node on the left, text beside it */
  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
  }

  .timeline-step__body {
    padding-top: 0.4rem;
  }

  .timeline-step__date {
    margin-top: 0;
    font-size: 1.9rem;
  }

  .timeline-step__title {
    font-size: 2.4rem;
  }

  .timeline-step__text {
    font-size: 2rem;
    max-width: 100%;
  }

  .timeline__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    margin-top: 4.5rem;
  }

  .timeline__buttons .btn {
    width: 100%;
    font-size: 2.2rem;
    padding: 2.2rem 3rem;
  }
}