/* Roadmap landing page. Shared fonts, theme tokens and buttons remain authoritative. */
body.roadmap-page {
  --roadmap-card-tint: 7%; --roadmap-collection-tint: 13%;
}
.roadmap-container { width: var(--public-container-width); margin-inline: auto; }
.roadmap-main { position: relative; isolation: isolate; }
.roadmap-stages:focus { outline: none; }
.roadmap-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.roadmap-main a:focus-visible, .roadmap-main button:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 4px; }
/* Transparent hero artwork sits directly on the shared public-page background. */
.roadmap-hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center; gap: 36px; padding-block: 48px; overflow: hidden;
}
.roadmap-hero-copy { min-width: 0; }
.roadmap-eyebrow {
  margin-bottom: 18px; font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; letter-spacing: .35em; color: color-mix(in srgb, var(--accent-cyan) 70%, var(--text-primary));
}
.roadmap-hero h1 {
  max-width: 800px; font-size: clamp(34px, 3.4vw, 50px); font-weight: 800;
  line-height: 1.13; letter-spacing: -.045em; text-wrap: balance;
}
.roadmap-hero-accent { color: color-mix(in srgb, var(--chain-polygon) 70%, var(--text-primary)); }
.roadmap-lead { max-width: 620px; margin-top: 20px; font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.roadmap-hero-visual { position: relative; min-width: 0; height: 280px; pointer-events: none; }
.roadmap-hero-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.roadmap-timeline { min-width: 0; margin-top: 28px; }
/* Native horizontal scrolling is also usable without JavaScript. */
.roadmap-stages {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  padding: 10px 8px 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 8px; scrollbar-width: thin; list-style: none;
}
.roadmap-timeline.is-enhanced .roadmap-stages { scrollbar-width: none; }
.roadmap-timeline.is-enhanced .roadmap-stages::-webkit-scrollbar { display: none; }
.roadmap-stages { user-select: none; -webkit-user-select: none; cursor: grab; }
.roadmap-stages img { -webkit-user-drag: none; }
.roadmap-stages.is-dragging, .roadmap-stages.is-dragging * { cursor: grabbing; }
.roadmap-stage {
  --stage-accent: var(--accent-violet); --stage-ink: color-mix(in srgb, var(--stage-accent) 70%, var(--text-primary));
  min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
}
.roadmap-stage-live { --stage-accent: var(--accent-emerald); }
.roadmap-stage-next { --stage-accent: var(--chain-base); }
.roadmap-stage-community { --stage-accent: var(--chain-polygon); }
.roadmap-stage-beyond { --stage-accent: var(--chain-eth); }
.roadmap-milestone {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 36%, var(--card-border)); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--stage-accent) var(--roadmap-card-tint), var(--card-bg)), var(--card-bg) 60%);
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
/* Fixed artwork proportions keep the card layout stable while images load. */
.roadmap-media {
  position: relative; flex: 0 0 auto; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface-1);
}
.roadmap-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.roadmap-card-body { flex: 1; min-width: 0; padding: 22px; }
.roadmap-stage-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.roadmap-stage-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; white-space: nowrap; }
.roadmap-number { flex: 0 0 auto; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--stage-ink); }
.roadmap-status {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 9px; margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 65%, var(--border-subtle)); border-radius: var(--radius-full);
  color: var(--stage-ink); background: var(--bg-surface-1); font-size: 10px; font-weight: 700; line-height: 1.5;
}
.roadmap-status-live { background: color-mix(in srgb, var(--accent-emerald) 10%, var(--bg-surface-1)); }
.roadmap-live-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: var(--radius-full); background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald-glow); animation: roadmap-live-pulse 2.4s ease-in-out infinite; }
@keyframes roadmap-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.roadmap-status-next { background: color-mix(in srgb, var(--chain-base) 10%, var(--bg-surface-1)); }
.roadmap-status-future { color: var(--text-secondary); border-style: dashed; }
.roadmap-stage-description { min-height: 3.2em; margin-top: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.roadmap-features { display: grid; gap: 8px; margin-top: 14px; list-style: none; }
.roadmap-features li { position: relative; padding-left: 22px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.roadmap-features li::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 13px; height: 13px;
  border: 1px solid var(--stage-ink); border-radius: var(--radius-full);
}
.roadmap-features li::after {
  content: ""; position: absolute; top: 8px; left: 4px; width: 4px; height: 4px;
  border-top: 1px solid var(--stage-ink); border-right: 1px solid var(--stage-ink); transform: rotate(45deg);
}
.roadmap-stage-live .roadmap-features li::before { background: var(--stage-ink); }
.roadmap-stage-live .roadmap-features li::after {
  top: 7px; width: 5px; height: 3px; border-top: 0; border-right: 0;
  border-left: 1.5px solid var(--bg-surface-1); border-bottom: 1.5px solid var(--bg-surface-1); transform: rotate(-45deg);
}
.roadmap-stage-collection .roadmap-milestone {
  border-color: color-mix(in srgb, var(--accent-violet) 78%, var(--border-subtle));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-violet) var(--roadmap-collection-tint), var(--card-bg)), var(--card-bg) 80%);
  box-shadow: var(--shadow-card), 0 0 24px -10px color-mix(in srgb, var(--accent-violet) 50%, transparent);
}
.roadmap-stage-collection .roadmap-number { text-shadow: 0 0 18px var(--accent-violet-glow); }
.roadmap-stage-beyond .roadmap-milestone { border-color: color-mix(in srgb, var(--chain-eth) 22%, var(--border-subtle)); }
.roadmap-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 2px; }
.roadmap-carousel-controls[hidden] { display: none; }
.roadmap-timeline .carousel-neon-control { top: calc((100% - 46px) / 2); }
.roadmap-pagination { display: flex; gap: 4px; min-width: 0; }
.roadmap-page-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.roadmap-page-dot span { width: 24px; height: 4px; border-radius: var(--radius-full); background: var(--text-secondary); }
.roadmap-page-dot[aria-current="true"] span { background: var(--accent-violet); box-shadow: var(--shadow-glow); }
.roadmap-journey { margin-top: 32px; scroll-margin-top: 84px; }
.roadmap-journey-steps {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-violet) 22%, var(--border-subtle)); border-radius: var(--radius-lg); list-style: none;
  background: transparent;
}
.roadmap-journey-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; }
.roadmap-journey-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--chain-base); font-size: 18px; line-height: 1; }
.roadmap-journey-steps li:nth-child(2) .roadmap-journey-icon,
.roadmap-journey-steps li:nth-child(3) .roadmap-journey-icon { color: var(--chain-polygon); }
.roadmap-journey-steps li:nth-child(n+4) .roadmap-journey-icon { color: var(--accent-violet); }
.roadmap-journey-steps li:last-child .roadmap-journey-icon { color: var(--accent-amber); }
.roadmap-journey-steps h3 { font-size: 13px; font-weight: 700; line-height: 24px; }
.roadmap-journey-steps p { margin-top: 3px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
/* Compact signature keeps the milestones as the page's main content. */
.roadmap-closing { position: relative; isolation: isolate; max-width: 760px; margin: 0 auto; padding: 16px; text-align: center; }
.roadmap-closing::before { content: ""; position: absolute; z-index: -1; inset: 4% 10% 20%; pointer-events: none; background: radial-gradient(ellipse, var(--accent-violet-glow), transparent 70%); }
.roadmap-closing::after { content: ""; position: absolute; z-index: -1; width: 78%; height: 46%; top: 18%; left: 11%; border: 1px solid color-mix(in srgb, var(--accent-violet) 28%, transparent); border-radius: 50%; transform: rotate(-8deg); pointer-events: none; }
.roadmap-closing-crown { margin-bottom: 6px; color: var(--accent-violet); font-size: 12px; }
.roadmap-closing h2 { margin: 0 auto; font-size: clamp(26px, 2.2vw, 30px); font-weight: 800; font-style: italic; line-height: 1.04; letter-spacing: -.065em; }
.roadmap-closing h2 span { display: block; }
.roadmap-closing-accent {
  padding: 0 .12em .1em; background: linear-gradient(100deg, var(--chain-polygon), var(--accent-violet), var(--chain-base));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.roadmap-closing p { max-width: 560px; margin: 8px auto 10px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
/* Compensate Frost's 1px border to keep the original CTA bounds and insets. */
.roadmap-closing .btn.frost-btn { --btn-height:44px; --btn-radius:var(--radius-md); --btn-pad-x:19px; padding:11px var(--btn-pad-x); gap:8px; justify-content:flex-start; font:600 13px/1.5 var(--font-sans); letter-spacing:normal; white-space:normal; text-decoration:none; }
[data-theme="light"] .roadmap-page { --roadmap-card-tint: 5%; --roadmap-collection-tint: 9%; }
[data-theme="light"] .roadmap-stage-collection .roadmap-milestone { box-shadow: var(--shadow-card), 0 0 24px -10px var(--accent-violet-glow); }
@media (hover: hover) and (pointer: fine) {
  /* Stage-level hover also covers copies whose article contents are inert. */
  .roadmap-stages .roadmap-stage:hover .roadmap-milestone {
    border-color: var(--stage-ink);
    box-shadow: var(--shadow-card), 0 0 0 1px var(--stage-accent), 0 0 20px -6px color-mix(in srgb, var(--stage-accent) 65%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-page *, .roadmap-page *::before, .roadmap-page *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .roadmap-closing-accent { background: none; color: CanvasText; }
  .roadmap-page-dot span { background: GrayText; }
  .roadmap-page-dot[aria-current="true"] span { background: Highlight; }
}
