.roadmap-overview,
.roadmap-section {
  --roadmap-ink: #edf4f7;
  --roadmap-muted: #a2b0b8;
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid rgba(211, 226, 236, .14);
}

.roadmap-overview-head,
.roadmap-section-head,
.roadmap-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.roadmap-overview-head p,
.roadmap-section-head p {
  margin: 0 0 7px;
  color: #8ba0aa;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.roadmap-overview-head h2,
.roadmap-section-head h2 {
  margin: 0;
  color: var(--roadmap-ink);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.roadmap-overview-head > span,
.roadmap-section-head > span,
.roadmap-group-head span {
  flex: 0 0 auto;
  color: #b9c6cc;
  font-size: 12px;
  font-weight: 900;
}

.roadmap-intro {
  max-width: 780px;
  margin: 12px 0 24px;
  color: var(--roadmap-muted);
  font-size: 14px;
  font-weight: 700;
}

.roadmap-subject-group + .roadmap-subject-group { margin-top: 34px; }
.roadmap-group-head { margin-bottom: 14px; }
.roadmap-group-head h3 {
  margin: 0;
  color: #e8f0f3;
  font-size: 22px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-card {
  --roadmap-accent: #73cbbd;
  min-width: 0;
  min-height: 318px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 216, 224, .17);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  color: var(--roadmap-ink);
  background:
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--roadmap-accent) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(9, 20, 25, .78));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 46px rgba(0, 0, 0, .22);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--roadmap-accent) 52%, rgba(255, 255, 255, .18));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 24px 54px rgba(0, 0, 0, .28);
}

.roadmap-card:focus-visible,
.roadmap-close:focus-visible {
  outline: 3px solid #c7dfef;
  outline-offset: 3px;
}

.theme-mint { --roadmap-accent: #69c5a3; }
.theme-aqua { --roadmap-accent: #68c9ce; }
.theme-sky { --roadmap-accent: #7eafd7; }
.theme-indigo { --roadmap-accent: #8195cf; }
.theme-violet { --roadmap-accent: #a18bd1; }
.theme-coral { --roadmap-accent: #d88971; }
.theme-amber { --roadmap-accent: #d2a65c; }

.roadmap-cover {
  min-height: 146px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--roadmap-accent);
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 66% 38%, color-mix(in srgb, var(--roadmap-accent) 22%, transparent), transparent 38%);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 1px solid rgba(211, 226, 236, .1);
}

.roadmap-cover::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  pointer-events: none;
}

.roadmap-cover.has-image { display: block; background: #d9d3c6; }
.roadmap-cover.has-image::after {
  background: linear-gradient(180deg, rgba(5, 12, 15, .02), rgba(5, 12, 15, .18));
}

.roadmap-cover img {
  width: 100%;
  height: 146px;
  display: block;
  object-fit: cover;
  filter: saturate(.78) contrast(.97);
}

.roadmap-cover-index {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #eef5f7;
  background: rgba(5, 12, 15, .58);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
}

.roadmap-placeholder {
  width: 106px;
  height: 106px;
  position: relative;
  display: grid;
  place-items: center;
}

.roadmap-placeholder strong {
  width: 62px;
  height: 62px;
  position: relative;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--roadmap-accent) 46%, transparent);
  border-radius: 21px;
  display: grid;
  place-items: center;
  color: #edf5f5;
  background: color-mix(in srgb, var(--roadmap-accent) 18%, rgba(8, 19, 24, .9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  font-size: 28px;
}

.roadmap-orbit {
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--roadmap-accent) 34%, transparent);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(.62);
}
.roadmap-orbit.two { inset: 19px 0; transform: rotate(42deg) scaleY(.58); opacity: .62; }

.roadmap-card-body {
  min-width: 0;
  flex: 1;
  padding: 17px 19px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.roadmap-meta {
  margin-bottom: 7px;
  color: color-mix(in srgb, var(--roadmap-accent) 74%, #fff);
  font-size: 11px;
  font-weight: 950;
}

.roadmap-title {
  color: #f2f6f8;
  font-size: 21px;
  line-height: 1.2;
}

.roadmap-summary {
  margin-top: 8px;
  color: #a8b5bc;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.roadmap-action {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce8ec;
  font-size: 13px;
  font-weight: 900;
}
.roadmap-action i { color: var(--roadmap-accent); font-style: normal; font-size: 17px; }

.roadmap-dialog[hidden] { display: none; }
.roadmap-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: grid;
  place-items: center;
}
.roadmap-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 11, .74); backdrop-filter: blur(10px); }
.roadmap-panel {
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  position: relative;
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(204, 220, 228, .24);
  border-radius: 24px;
  color: #eef4f6;
  background: linear-gradient(155deg, rgba(19, 36, 43, .98), rgba(7, 17, 22, .98));
  box-shadow: 0 36px 100px rgba(0, 0, 0, .52);
}
.roadmap-close {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(209, 224, 231, .18);
  border-radius: 50%;
  color: #edf4f6;
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.roadmap-dialog-kicker { margin: 0 52px 8px 0; color: #8fcfc4; font-size: 11px; font-weight: 950; }
.roadmap-panel h2 { margin: 0 52px 20px 0; color: #fff; font-size: 30px; line-height: 1.18; }
.roadmap-panel dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.roadmap-panel dl div { min-width: 0; padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .055); }
.roadmap-panel .roadmap-use-row { grid-column: 1 / -1; }
.roadmap-panel dt { color: #80939d; font-size: 10px; font-weight: 900; }
.roadmap-panel dd { margin: 4px 0 0; color: #e6eef1; font-size: 14px; line-height: 1.5; font-weight: 800; }
.roadmap-dialog-note { margin: 16px 0 0; color: #9eadb4; font-size: 12px; line-height: 1.55; font-weight: 700; }
body.roadmap-dialog-open { overflow: hidden; }

@media (max-width: 980px) {
  .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .roadmap-overview,
  .roadmap-section { margin-top: 34px; padding-top: 30px; }
  .roadmap-overview-head,
  .roadmap-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 13px; }
  .roadmap-card { min-height: 296px; }
  .roadmap-cover,
  .roadmap-cover img { height: 138px; min-height: 138px; }
  .roadmap-panel { padding: 24px 18px 20px; border-radius: 20px; }
  .roadmap-panel h2 { font-size: 25px; }
  .roadmap-panel dl { grid-template-columns: 1fr 1fr; }
  .roadmap-panel .roadmap-use-row { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-card { transition: none; }
}
