:root {
  --road-bg: #070a12;
  --road-panel: rgba(18, 24, 38, 0.88);
  --road-panel-strong: #101827;
  --road-ink: #f8fafc;
  --road-muted: #9aa7bd;
  --road-line: rgba(226, 232, 240, 0.68);
  --road-cyan: #20d4c7;
  --road-green: #32d26d;
  --road-purple: #7c5cff;
  --road-orange: #f59e0b;
  --road-border: rgba(255, 255, 255, 0.12);
}

body.starter-roadmap-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(32, 212, 199, 0.2), transparent 26%),
    radial-gradient(circle at 18% 18%, rgba(124, 92, 255, 0.16), transparent 25%),
    linear-gradient(180deg, #070a12 0%, #0a101b 52%, #070a12 100%);
  color: var(--road-ink);
}

.starter-roadmap-page .main {
  max-width: 1180px;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 46px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    transparent;
  background-size: 46px 46px;
}

.road-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 15px;
  color: var(--road-ink);
  font-weight: 850;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--road-border);
  border-radius: 999px;
}

.road-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin-bottom: 26px;
  padding: clamp(22px, 5vw, 44px);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(32, 212, 199, 0.94), rgba(40, 206, 103, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.road-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border: 36px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.road-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: rgba(7, 10, 18, 0.74);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
}

.road-hero h1 {
  margin: 0;
  color: #07111d;
  font-size: clamp(36px, 6.8vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.road-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(7, 17, 29, 0.78);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 650;
  line-height: 1.55;
}

.road-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.road-primary,
.road-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  font-weight: 950;
  text-decoration: none;
  border-radius: 999px;
}

.road-primary {
  color: #07111d;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 17, 29, 0.2);
}

.road-secondary {
  color: #07111d;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.road-progress-card {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(7, 17, 29, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.road-progress-card strong {
  display: block;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.road-progress-card span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
}

.road-progress-track {
  height: 12px;
  margin: 18px 0 12px;
  overflow: hidden;
  background: rgba(7, 17, 29, 0.28);
  border-radius: 999px;
}

.road-progress-bar {
  display: block;
  width: var(--road-progress, 0%);
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.road-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.road-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 28px 0 14px;
}

.road-section-head h2 {
  margin: 0;
  color: var(--road-ink);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.road-section-head p {
  margin: 7px 0 0;
  color: var(--road-muted);
  line-height: 1.55;
}

.road-course-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #07111d;
  font-size: 12px;
  font-weight: 950;
  background: #fff;
  border-radius: 999px;
}

.roadmap-unit {
  position: relative;
  margin-top: 28px;
  padding: 0 0 22px;
}

.roadmap-session-card {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 auto 18px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, var(--unit-accent, var(--road-cyan)), color-mix(in srgb, var(--unit-accent, var(--road-cyan)) 72%, #0f172a));
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.roadmap-session-card.is-locked {
  filter: grayscale(0.85);
  opacity: 0.74;
}

.roadmap-session-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap-session-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.08;
}

.roadmap-session-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.session-score {
  min-width: 98px;
  padding: 13px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
}

.session-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.session-score span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-steps {
  position: relative;
  display: grid;
  gap: 30px;
  min-height: 220px;
  padding: 20px 0 36px;
}

.roadmap-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background-image: radial-gradient(circle, var(--road-line) 2.8px, transparent 3.2px);
  background-size: 6px 18px;
}

.road-node {
  position: relative;
  z-index: 1;
  width: min(450px, calc(50% - 48px));
  color: var(--road-ink);
  text-decoration: none;
}

.road-node:nth-child(odd) {
  justify-self: start;
  margin-left: min(4vw, 42px);
}

.road-node:nth-child(even) {
  justify-self: end;
  margin-right: min(4vw, 42px);
}

.road-node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 3px;
  background-image: linear-gradient(90deg, var(--road-line) 45%, transparent 45%);
  background-size: 12px 3px;
}

.road-node:nth-child(odd)::before {
  right: -58px;
}

.road-node:nth-child(even)::before {
  left: -58px;
}

.road-node-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 128px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.08), transparent 22%),
    var(--road-panel);
  border: 1px solid var(--road-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.road-node:not(.is-locked):hover .road-node-card,
.road-node:not(.is-locked):focus-visible .road-node-card {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--step-accent, var(--road-cyan)) 54%, white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.road-step-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #06111d;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--step-accent, var(--road-cyan)) 22%, #fff));
  border-radius: 19px;
  box-shadow:
    inset 0 -8px 16px rgba(7, 17, 29, 0.12),
    0 14px 26px rgba(0, 0, 0, 0.28);
}

.road-node.is-current .road-step-icon {
  color: #fff;
  background: linear-gradient(145deg, var(--step-accent, var(--road-cyan)), color-mix(in srgb, var(--step-accent, var(--road-cyan)) 70%, #0f172a));
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--step-accent, var(--road-cyan)) 16%, transparent),
    0 18px 34px rgba(0, 0, 0, 0.32);
}

.road-node.is-done .road-step-icon {
  color: #07111d;
  background: linear-gradient(145deg, #d9f99d, #22c55e);
}

.road-node.is-locked {
  pointer-events: none;
}

.road-node.is-locked .road-node-card {
  opacity: 0.62;
  filter: grayscale(0.72);
}

.road-node-copy {
  min-width: 0;
}

.road-node-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
}

.road-node-kicker span:first-child {
  color: var(--step-accent, var(--road-cyan));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.road-score-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #07111d;
  font-size: 12px;
  font-weight: 950;
  background: #fff;
  border-radius: 999px;
}

.road-node h4 {
  margin: 0;
  color: var(--road-ink);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.16;
}

.road-node p {
  margin: 7px 0 0;
  color: var(--road-muted);
  font-size: 14px;
  line-height: 1.45;
}

.road-lock-note {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  color: #dbe4f0;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.road-coming-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.road-coming-card {
  min-height: 132px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.road-coming-card strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.road-coming-card span {
  color: var(--road-muted);
  font-size: 14px;
  line-height: 1.45;
}

.road-review-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 6px 0 44px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(124, 92, 255, .48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(32, 212, 199, .16), transparent 30%),
    linear-gradient(135deg, rgba(124, 92, 255, .19), rgba(18, 24, 38, .94));
  color: var(--road-ink);
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.road-review-card:hover:not(.is-locked),
.road-review-card:focus-visible {
  border-color: #a997ff;
  transform: translateY(-2px);
  outline: none;
}

.road-review-card.is-locked { opacity: .55; filter: grayscale(.7); }
.road-review-card.is-done { border-color: rgba(50, 210, 109, .58); }

.road-review-number {
  display: grid;
  min-width: 72px;
  height: 64px;
  padding: 0 12px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #a997ff, #5f45da);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.road-review-card small { color: #a997ff; font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.road-review-card h3 { margin: 5px 0; font-size: clamp(20px, 3vw, 28px); }
.road-review-card p { margin: 0; color: var(--road-muted); line-height: 1.45; }
.road-review-card > strong { padding: 8px 11px; border-radius: 999px; background: #fff; color: #07111d; font-size: 12px; white-space: nowrap; }

@media (max-width: 960px) {
  .road-hero {
    grid-template-columns: 1fr;
  }

  .roadmap-steps::before {
    left: 33px;
  }

  .road-node,
  .road-node:nth-child(odd),
  .road-node:nth-child(even) {
    width: auto;
    justify-self: stretch;
    margin-left: 70px;
    margin-right: 0;
  }

  .road-node::before,
  .road-node:nth-child(odd)::before,
  .road-node:nth-child(even)::before {
    left: -37px;
    right: auto;
    width: 34px;
  }

  .road-coming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .starter-roadmap-page .main {
    padding: 16px 12px 28px;
  }

  .road-hero {
    border-radius: 24px;
  }

  .road-section-head,
  .roadmap-session-card {
    grid-template-columns: 1fr;
  }

  .roadmap-session-card {
    position: relative;
    top: auto;
  }

  .road-node,
  .road-node:nth-child(odd),
  .road-node:nth-child(even) {
    margin-left: 46px;
  }

  .roadmap-steps::before {
    left: 19px;
  }

  .road-node::before,
  .road-node:nth-child(odd)::before,
  .road-node:nth-child(even)::before {
    left: -27px;
    width: 24px;
  }

  .road-node-card {
    grid-template-columns: 1fr;
  }

  .road-step-icon {
    width: 56px;
    height: 56px;
  }

  .road-coming-grid {
    grid-template-columns: 1fr;
  }

  .road-review-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .road-review-card > strong {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
