/* ── Overlay ──────────────────────────────────────────────────────────── */

.roadmap-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: #07090f;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ── Inner layout ─────────────────────────────────────────────────────── */

.roadmap-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Sticky header ────────────────────────────────────────────────────── */

.roadmap-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 1.1rem 1.25rem;
  margin: -4rem -2rem 0;
  pointer-events: none;
}

.roadmap-close {
  pointer-events: all;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.roadmap-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Page title ───────────────────────────────────────────────────────── */

.roadmap-title-block {
  text-align: center;
  margin-bottom: 4rem;
}

.roadmap-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
}

.roadmap-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #f0f4f8;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.roadmap-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Section heading ──────────────────────────────────────────────────── */

.roadmap-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #1a2030;
}

/* ── Timeline ─────────────────────────────────────────────────────────── */

.roadmap-timeline {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 4.5rem;
}

/* Vertical line */
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #276749 0%,
    #276749 38%,
    #2b6cb0 54%,
    #2d3748 72%,
    rgba(45, 55, 72, 0.2) 100%
  );
}

/* ── Milestone ────────────────────────────────────────────────────────── */

.roadmap-milestone {
  position: relative;
  padding-bottom: 2.25rem;
}

.roadmap-milestone:last-child {
  padding-bottom: 0;
}

/* Node circle */
.roadmap-milestone__node {
  position: absolute;
  left: -2.25rem;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #4a5568;
  background: #07090f;
  z-index: 1;
}

/* Done */
.roadmap-milestone--done .roadmap-milestone__node {
  background: #276749;
  border-color: #68d391;
}

.roadmap-milestone--done .roadmap-milestone__node::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #68d391;
  line-height: 1;
}

/* Upcoming (pulsing) */
.roadmap-milestone--upcoming .roadmap-milestone__node {
  background: #1a365d;
  border-color: #63b3ed;
  animation: pulse-node 2.2s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 179, 237, 0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(99, 179, 237, 0); }
}

/* Planned */
.roadmap-milestone--planned .roadmap-milestone__node {
  border-style: dashed;
  border-color: #4a5568;
}

/* Idea (far future) */
.roadmap-milestone--idea .roadmap-milestone__node {
  border-color: #2d3748;
  opacity: 0.55;
}

/* Content */
.roadmap-milestone__date {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.roadmap-milestone--upcoming .roadmap-milestone__date {
  color: #63b3ed;
}

.roadmap-milestone__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.roadmap-milestone--planned .roadmap-milestone__title,
.roadmap-milestone--idea .roadmap-milestone__title {
  color: #718096;
}

.roadmap-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.roadmap-badge--upcoming {
  background: rgba(99, 179, 237, 0.12);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.3);
}

.roadmap-milestone__desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
}

/* ── TODAY divider ────────────────────────────────────────────────────── */

.roadmap-now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 2.25rem;
  padding-left: 0;
}

.roadmap-now__line {
  flex: 1;
  height: 1px;
  background: rgba(99, 179, 237, 0.2);
}

.roadmap-now__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #63b3ed;
  white-space: nowrap;
  opacity: 0.7;
}

/* ── Poll ─────────────────────────────────────────────────────────────── */

.roadmap-poll__intro {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.75rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Option buttons (before voting) */
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: #0f1520;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.poll-option:hover {
  border-color: #2b6cb0;
  background: #111827;
  transform: translateX(4px);
}

.poll-option__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #2d3748;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.poll-option:hover .poll-option__num {
  border-color: #63b3ed;
  color: #63b3ed;
}

.poll-option__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #c8d3e0;
}

/* Results (after voting) */
.poll-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-results.hidden { display: none; }
.poll-options.hidden { display: none; }

.poll-bar-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.poll-bar-item__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poll-bar-item__label .poll-check {
  font-size: 0.75rem;
  color: #68d391;
  opacity: 0;
  transition: opacity 0.3s 0.6s;
}

.poll-bar-item.is-voted .poll-bar-item__label {
  color: #e2e8f0;
  font-weight: 600;
}

.poll-bar-item.is-voted .poll-check {
  opacity: 1;
}

.poll-bar-item__pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  min-width: 2.5rem;
}

.poll-bar-item.is-voted .poll-bar-item__pct {
  color: #63b3ed;
}

.poll-bar-track {
  grid-column: 1 / -1;
  height: 4px;
  background: #1e2533;
  border-radius: 999px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #2b6cb0;
  width: 0%;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-bar-item.is-voted .poll-bar-fill {
  background: #63b3ed;
}

.poll-total {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.poll-change-btn {
  margin-top: 0.25rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s;
}

.poll-change-btn:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .roadmap-inner {
    padding: 3rem 1.25rem 5rem;
  }

  .roadmap-topbar {
    margin: -3rem -1.25rem 0;
  }
}
