.roadmap-section {
  background-color: #F5F5F5;
  padding: 100px 20px;
  font-family: 'Outfit', sans-serif;
  color: #1b1b1f;
  overflow: hidden;
}

.roadmap-container {
  max-width: 1180px;
  margin: 0 auto;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

/* Left Column Styles */
.roadmap-title {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 28px 0;
  color: #1b1b1f;
  letter-spacing: -0.02em;
}

.roadmap-title .roadmap-subtitle-part {
  font-weight: 400;
  font-size: 48px;
}

.roadmap-intro {
  font-size: 23px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: #000000;
}

.roadmap-subtext {
  font-size: 16px;
  color: #858585;
  font-weight: 200;
  padding-top: 25px;
}

/* Right Column Outer Container */
.roadmap-card-wrapper {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 40px 40px 40px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Timeline Layout */
.roadmap-timeline {
  position: relative;
  padding-left: 20px;
}

/* Background grey line */
.timeline-line-bg {
  position: absolute;
  left: 4px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: #E2E8F0;
  border-radius: 1px;
}

/* Blue progress line stopping at active item */
.timeline-line-progress {
  position: absolute;
  left: 4px;
  top: 15px;
  width: 2px;
  background: #000000;
  border-radius: 1px;
  height: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Solid, clean dots centered perfectly on the line */
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 2;
}

.timeline-dot.complete-dot {
  background: #1b1b1f;
  box-shadow: 0 0 0 4px #fff;
}

.timeline-dot.active-dot {
  background: #0050FF;
  box-shadow: 0 0 0 4px #fff;
}

.timeline-dot.waiting-dot {
  background: #E2E8F0;
  box-shadow: 0 0 0 4px #fff;
}

/* Card Plaque */
.timeline-card {
  background: #E8F2FF;
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
}

/* Text style: regular weight by default */
.timeline-text {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
}

/* Badges absolutely positioned in top-right corner */
.timeline-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.timeline-badge.complete {
  background: #FFFFFF;
  color: #858585;
}

.timeline-badge.waiting {
  background: #FFFFFF;
  color: #858585;
}

.timeline-badge.processing {
  background: #FFFFFF;
  color: #000000;
}

/* Active Card State */
.timeline-item.active .timeline-card {
  background: #0050FF;
  box-shadow: 0 10px 25px rgba(0, 108, 255, 0.25);
}

.timeline-item.active .timeline-text {
  color: #FFFFFF;
  font-weight: 500;
}

.timeline-card.card-q1-2027 {
  background: #F5F5F5;
}

.timeline-card.card-q1-2029 {
  background: #F5F5F5;
}

/* Scroll Animations */
.animate-roadmap .timeline-line-progress {
  animation: drawRoadmapLine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-roadmap .timeline-item {
  animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-roadmap .timeline-dot {
  animation: popDot 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-roadmap .timeline-item:nth-child(3) { animation-delay: 0.15s; }
.animate-roadmap .timeline-item:nth-child(3) .timeline-dot { animation-delay: 0.15s; }

.animate-roadmap .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.animate-roadmap .timeline-item:nth-child(4) .timeline-dot { animation-delay: 0.4s; }

.animate-roadmap .timeline-item:nth-child(5) { animation-delay: 0.65s; }
.animate-roadmap .timeline-item:nth-child(5) .timeline-dot { animation-delay: 0.65s; }

.animate-roadmap .timeline-item:nth-child(6) { animation-delay: 0.9s; }
.animate-roadmap .timeline-item:nth-child(6) .timeline-dot { animation-delay: 0.9s; }

.animate-roadmap .timeline-item:nth-child(7) { animation-delay: 1.15s; }
.animate-roadmap .timeline-item:nth-child(7) .timeline-dot { animation-delay: 1.15s; }

@keyframes drawRoadmapLine {
  0% { height: 0; }
  100% { height: 52%; }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes popDot {
  0% { transform: translateY(-50%) scale(0); }
  100% { transform: translateY(-50%) scale(1); }
}

/* Responsive */
@media (max-width: 900px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .roadmap-title {
    font-size: 48px;
  }
  .roadmap-subtitle-part {
    font-size: 40px;
  }

  .roadmap-intro {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #000000;
}

  .roadmap-subtext {
  padding-top: 25px;
  padding-bottom: 20px;
}

.roadmap-section {
    padding: 80px 40px;
}
}