/* Page styles for roadmap.html */
.page-hero {
  position: relative;
  padding: 140px var(--pad-x) 58px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(760px, 92vw);
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.2),
    transparent 66%
  );
  filter: blur(26px);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
}

.page-hero .badge {
  display: inline-flex;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

.rm-body {
  max-width: 940px;
  margin: 0 auto;
  padding: 18px var(--pad-x) 104px;
}

.rm-overview {
  position: relative;
  display: grid;
  gap: 18px;
}

.rm-overview::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(168, 85, 247, 0.72),
    rgba(34, 211, 238, 0.22),
    transparent
  );
}

.rm-phase {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
}

.rm-phase-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(7, 7, 13, 0.86);
  border: 1px solid rgba(168, 85, 247, 0.34);
  color: var(--accent-light);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.16);
}

.rm-phase-done .rm-phase-marker {
  border-color: rgba(52, 211, 153, 0.42);
  color: #34d399;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.14);
}

.rm-phase-current .rm-phase-marker {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(168, 85, 247, 0.54);
  color: #fff;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
}

.rm-phase-content {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.075), transparent 56%),
    rgba(255, 255, 255, 0.018);
}

.rm-phase-done .rm-phase-content {
  border-color: rgba(52, 211, 153, 0.2);
}

.rm-phase-current .rm-phase-content {
  border-color: rgba(168, 85, 247, 0.34);
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(34, 211, 238, 0.08),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.02));
}

.rm-phase-head {
  margin-bottom: 16px;
}

.rm-phase-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rm-phase h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.rm-phase-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.rm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 18px;
}

.rm-list-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-list li {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 34px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(124, 58, 237, 0.14);
  background: rgba(7, 7, 13, 0.28);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.rm-phase-done .rm-list li {
  border-color: rgba(52, 211, 153, 0.16);
}

.rm-phase-done .rm-list li::before {
  content: "✓";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #34d399;
  font-weight: 800;
  transform: translateY(-50%);
}

.rm-phase-current .rm-list li {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(124, 58, 237, 0.055);
}

.rm-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
  transform: translateY(-50%) rotate(45deg);
}

.rm-goal {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--border-h);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.rm-goal strong {
  color: #fff;
}

.rm-load-error {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 700px) {
  .rm-body {
    padding-top: 8px;
  }

  .rm-overview::before {
    left: 20px;
  }

  .rm-phase {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .rm-phase-marker {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .rm-phase-content {
    padding: 22px;
  }

  .rm-list {
    grid-template-columns: 1fr;
  }

  .rm-list-compact {
    grid-template-columns: 1fr;
  }
}
