/* ==========================================================================
   Roadmap Page Styles
   ========================================================================== */

:root {
  --roadmap-primary: #b779ff;
  --roadmap-primary-dark: #8b3af5;
  --roadmap-primary-light: #f5eeff;
  --roadmap-accent-glow: rgba(183, 121, 255, 0.35);

  --status-done-bg: #ecfdf5;
  --status-done-text: #059669;
  --status-done-border: rgba(16, 185, 129, 0.3);
  --status-done-dot: #10b981;

  --status-progress-bg: #f5eeff;
  --status-progress-text: #7c2de6;
  --status-progress-border: rgba(183, 121, 255, 0.4);
  --status-progress-dot: #b779ff;

  --status-planned-bg: #eff6ff;
  --status-planned-text: #2563eb;
  --status-planned-border: rgba(59, 130, 246, 0.3);
  --status-planned-dot: #3b82f6;

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 45px -10px rgba(139, 58, 245, 0.12), 0 6px 18px -3px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   Hero Header (Behind Light Fixed Navbar)
   -------------------------------------------------------------------------- */
.roadmap-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 24px 115px 24px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(183, 121, 255, 0.45), transparent 70%),
    radial-gradient(circle at 15% 40%, rgba(139, 58, 245, 0.35), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(67, 56, 202, 0.25), transparent 50%),
    linear-gradient(180deg, #110826 0%, #1e103d 50%, #2a1452 100%);
  color: #ffffff;
  text-align: center;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 20px 40px rgba(17, 8, 38, 0.2);
}

/* Subtle Animated Backdrop Grid & Ambient Glow */
.roadmap-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.roadmap-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

/* Floating Pill Badge */
.roadmap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eeddff;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.roadmap-badge-sparkle {
  color: #ffd700;
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
  }
}

.roadmap-hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px 0;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.roadmap-hero h1 span {
  background: linear-gradient(135deg, #ffffff 30%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmap-hero p.roadmap-subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 36px auto;
  max-width: 680px;
  text-align: center;
}

/* Quick Status Summary Counters */
.roadmap-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.roadmap-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  box-sizing: border-box;
  max-width: 100%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.roadmap-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.roadmap-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.roadmap-stat-dot.done {
  background-color: var(--status-done-dot);
  box-shadow: 0 0 8px var(--status-done-dot);
}

.roadmap-stat-dot.progress {
  background-color: var(--status-progress-dot);
  box-shadow: 0 0 8px var(--status-progress-dot);
  animation: pulse-ring 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.roadmap-stat-dot.planned {
  background-color: var(--status-planned-dot);
  box-shadow: 0 0 8px var(--status-planned-dot);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(183, 121, 255, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(183, 121, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(183, 121, 255, 0);
  }
}

/* --------------------------------------------------------------------------
   Timeline Container & Track
   -------------------------------------------------------------------------- */
.roadmap-main-section {
  position: relative;
  max-width: 960px;
  margin: 60px auto 100px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.roadmap-timeline {
  position: relative;
  margin-top: 40px;
}

/* The vertical timeline track down the left-hand side */
.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 40px;
  left: 27px;
  width: 3px;
  background: linear-gradient(180deg,
      #10b981 0%,
      #b779ff 45%,
      #3b82f6 85%,
      rgba(59, 130, 246, 0.1) 100%);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Milestone Item
   -------------------------------------------------------------------------- */
.roadmap-milestone {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 50px;
}

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

/* Timeline Left Node Marker */
.roadmap-node-marker {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roadmap-milestone:hover .roadmap-node-marker {
  transform: scale(1.08);
}

.roadmap-node-marker svg {
  width: 24px;
  height: 24px;
}

/* Node Variants */
.roadmap-milestone.status-done .roadmap-node-marker {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.roadmap-milestone.status-in-progress .roadmap-node-marker {
  background: linear-gradient(135deg, #b779ff, #8b3af5);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(139, 58, 245, 0.4);
}

.roadmap-milestone.status-planned .roadmap-node-marker {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* --------------------------------------------------------------------------
   Milestone Card
   -------------------------------------------------------------------------- */
.roadmap-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.roadmap-milestone.status-in-progress .roadmap-card {
  border-color: rgba(183, 121, 255, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
}

.roadmap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.roadmap-milestone-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a1528;
  letter-spacing: -0.01em;
  text-align: left;
}

/* Status Badges */
.roadmap-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.roadmap-status-badge.badge-done {
  background: var(--status-done-bg);
  color: var(--status-done-text);
  border: 1px solid var(--status-done-border);
}

.roadmap-status-badge.badge-in-progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
  border: 1px solid var(--status-progress-border);
}

.roadmap-status-badge.badge-planned {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
  border: 1px solid var(--status-planned-border);
}

/* Card Body & Feature Items */
.roadmap-card-body {
  color: #333333;
}

.roadmap-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: #374151;
  text-align: left;
}

.roadmap-feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.status-done .roadmap-feature-icon {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.status-in-progress .roadmap-feature-icon {
  color: #8b3af5;
  background: rgba(183, 121, 255, 0.16);
}

.status-planned .roadmap-feature-icon {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.12);
}

.roadmap-feature-content {
  flex: 1;
}

.roadmap-feature-content strong {
  color: #111827;
  font-weight: 600;
  display: inline;
}

.roadmap-feature-content p {
  margin: 4px 0 0 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
  text-align: left;
}

/* Fallback Freeform Content Block */
.roadmap-freeform-content {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  text-align: left;
}

.roadmap-freeform-content p {
  text-align: left;
  font-size: 17px;
  margin-bottom: 14px;
}

.roadmap-freeform-content ul {
  padding-left: 20px;
  margin: 12px 0;
}

.roadmap-freeform-content li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* --------------------------------------------------------------------------
   CTA / Feedback Section
   -------------------------------------------------------------------------- */
.roadmap-cta-card {
  margin-top: 70px;
  background: linear-gradient(135deg, #180d33 0%, #2b1754 100%);
  border-radius: 28px;
  padding: 48px 40px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(24, 13, 51, 0.15);
}

.roadmap-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(183, 121, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.roadmap-cta-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.roadmap-cta-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.roadmap-cta-card p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px 0;
  line-height: 1.5;
  text-align: center;
}

.roadmap-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b779ff 0%, #8b3af5 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(139, 58, 245, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.roadmap-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 58, 245, 0.45);
  filter: brightness(1.08);
  color: #ffffff;
}

.roadmap-cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.roadmap-cta-button:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .roadmap-hero {
    padding: 125px 20px 85px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .roadmap-hero h1 {
    font-size: 44px;
  }

  .roadmap-hero p.roadmap-subtitle {
    font-size: 17px;
  }

  .roadmap-main-section {
    padding: 0 16px;
    margin: 40px auto 70px auto;
  }

  .roadmap-timeline::before {
    left: 20px;
  }

  .roadmap-node-marker {
    width: 44px;
    height: 44px;
  }

  .roadmap-node-marker svg {
    width: 20px;
    height: 20px;
  }

  .roadmap-milestone {
    gap: 20px;
    margin-bottom: 36px;
  }

  .roadmap-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .roadmap-milestone-title {
    font-size: 22px;
  }

  .roadmap-cta-card {
    padding: 36px 24px;
    border-radius: 22px;
  }

  .roadmap-cta-card h2 {
    font-size: 26px;
  }
}

@media (max-width: 540px) {
  .roadmap-hero {
    padding: 120px 16px 65px 16px;
  }

  .roadmap-hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }

  .roadmap-stats-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .roadmap-stat-pill {
    padding: 7px 14px;
    font-size: 13px;
    gap: 6px;
    width: auto;
    flex: 0 1 auto;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
  }

  .roadmap-timeline::before {
    left: 17px;
  }

  .roadmap-node-marker {
    width: 36px;
    height: 36px;
  }

  .roadmap-node-marker svg {
    width: 16px;
    height: 16px;
  }

  .roadmap-milestone {
    gap: 14px;
  }

  .roadmap-card {
    padding: 20px 16px;
  }

  .roadmap-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .roadmap-cta-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    box-sizing: border-box;
  }
}