body {
  background: #07122A;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  margin: 0;
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.back-btn {
  background: none;
  border: none;
  color: #82ECFF;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}

.back-btn:hover {
  text-decoration: underline;
}

.roadmap-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  position: relative;
}

.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(
    to bottom,
    #82ECFF 0%,
    #82ECFF var(--split, 50%),
    #555 var(--split, 50%),
    #555 100%
  );
  transform: translateX(-50%);
  animation: drawLine 2s forwards;
}

@keyframes drawLine {
  to { height: 100%; }
}

.timeline-item {
  position: relative;
  display: flex;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s forwards;
  justify-content: flex-start;
  align-items: center;
}

.timeline-item .content {
  width: calc(50% - 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item:first-child {
  margin-top: 0;
}

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

.timeline-item:nth-child(even) .content {
  order: 1;
  text-align: left;
  padding-left: 40px;
}

.timeline-item:nth-child(odd) .content {
  text-align: right;
  padding-right: 40px;
}

.timeline-item .point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #82ECFF;
  transform: translate(-50%, -50%);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.timeline-item.planned .point {
  background: #555;
}

.timeline-item.first-planned .point {
  box-shadow: 0 0 0 3px #82ECFF;
}

.timeline-item:hover .point {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 8px #82ECFF;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.content .date {
  font-size: 0.9rem;
  color: #82ECFF;
  margin-bottom: 0.3rem;
}
.roadmap-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.roadmap-date {
  text-align: center;
  color: #82ECFF;
  margin-bottom: 1.5rem;
}



.roadmap-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

.roadmap-outro {
  text-align: center;
  max-width: 700px;
  margin: 48px auto 2rem;
  line-height: 1.4;
}

/* Modal */
.roadmap-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.roadmap-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #07122A;
  padding: 1rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  color: #fff;
  position: relative;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #82ECFF;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-content {
    width: calc(100% - 2rem);
    max-width: none;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .timeline::before {
    left: 0;
    transform: none;
  }
  .timeline-item {
    justify-content: flex-start;
  }
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    justify-content: flex-start;
  }
  .timeline-item .point {
    left: 0;
    transform: translate(-50%, -50%);
  }
  .timeline-item .content {
    order: 1;
    text-align: left;
    padding: 0 0 0 40px;
    width: 100%;
  }
  .timeline-item .content h3,
  .timeline-item .content .date {
    text-align: left;
  }
}
