/* ==========================================================================
   ROADMAP — roadmap.php
   ========================================================================== */

.roadmap-page {
  max-width: 68rem;
  padding-bottom: var(--page-bottom);
}

.roadmap-hero {
  padding-top: var(--hero-space);
  padding-bottom: 0;
  text-align: center;
}

.roadmap-hero__title {
  width: 100%;
  font-size: clamp(2.35rem, 1.75rem + 2.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.roadmap-note {
  margin-top: 1.5rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid #2a3a55;
  background: #1b283c;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: left;
}

.roadmap-section {
  margin-top: var(--section-space);
}

.roadmap-section__head {
  margin-bottom: 1.25rem;
}

.roadmap-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
}

.roadmap-section__desc {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.roadmap-section--controls {
  margin-top: var(--section-space-tight);
}

.roadmap-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.roadmap-filter {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 147, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.roadmap-filter:hover {
  border-color: rgba(110, 200, 255, 0.28);
  color: #fff;
}

.roadmap-filter.is-active {
  border-color: rgba(110, 200, 255, 0.45);
  background: rgba(110, 200, 255, 0.12);
  color: #fff;
}

.roadmap-section--timeline {
  margin-top: var(--section-space);
}

.roadmap-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.roadmap-phase {
  position: relative;
  padding-left: 1.85rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .roadmap-phase {
    margin-top: 4.25rem;
  }
}

@media (min-width: 1024px) {
  .roadmap-phase {
    margin-top: 5rem;
  }
}

.roadmap-phase:first-child {
  margin-top: 0;
}

.roadmap-phase.is-hidden,
.roadmap-item.is-hidden {
  display: none;
}

.roadmap-phase__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.roadmap-phase__dot {
  position: absolute;
  left: 0.12rem;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(186, 198, 214, 0.72);
  box-shadow: 0 0 0 5px #0b1524;
}

.roadmap-phase__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.85rem;
}

.roadmap-phase__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.roadmap-phase__period {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(190, 210, 255, 0.72);
}

.roadmap-list {
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.roadmap-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.roadmap-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roadmap-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.85rem;
}

.roadmap-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.roadmap-item__desc {
  margin: 0.35rem 0 0;
  max-width: 44rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.roadmap-item__tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.roadmap-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.roadmap-empty {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(134, 147, 255, 0.22);
  text-align: center;
  font-size: 0.92rem;
}

.roadmap-empty.is-visible {
  display: block;
}

html[data-theme="light"] .roadmap-note {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}

html[data-theme="light"] .roadmap-hero__title,
html[data-theme="light"] .roadmap-section__title,
html[data-theme="light"] .roadmap-phase__title,
html[data-theme="light"] .roadmap-item__title {
  color: #111827;
}

html[data-theme="light"] .roadmap-filter {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #4b5563;
}

html[data-theme="light"] .roadmap-filter.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

html[data-theme="light"] .roadmap-timeline::before {
  background: #e5e7eb;
}

html[data-theme="light"] .roadmap-phase__dot {
  background: #9ca3af;
  box-shadow: 0 0 0 5px #ffffff;
}

html[data-theme="light"] .roadmap-tag {
  color: #6b7280;
  border-color: #e5e7eb;
}

html[data-theme="light"] .roadmap-phase__period {
  color: #6b7280;
}

html[data-theme="light"] .roadmap-item {
  border-color: #e5e7eb;
}

html[data-theme="light"] .roadmap-empty {
  border-color: #d1d5db;
  color: #6b7280;
}
