/* ═══════════════════════════════════════════
   ROADMAP PAGE STYLES — SolarVisionX
   Aesthetic: Technical Glassmorphism / Product Roadmap Timeline
═══════════════════════════════════════════ */

.roadmap-page {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-24);
  background: var(--bg-canvas);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Background Lighting */
.roadmap-bg-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.roadmap-bg-ambient::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 15%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
  pointer-events: none;
}

.roadmap-bg-ambient::after {
  content: "";
  position: absolute;
  top: 45%;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.roadmap-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Hero Header */
.roadmap-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--sp-12);
}

.roadmap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-xlight);
  border: 1px solid var(--brand-light);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
}

.roadmap-subtitle {
  font-size: 1.12rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0 auto;
}

/* Milestone Progress Metrics Dashboard */
.roadmap-metrics-board {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: var(--sp-10);
}

.roadmap-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.roadmap-metric-box {
  padding: var(--sp-3) var(--sp-4);
  border-right: 1px solid var(--ink-100);
}

.roadmap-metric-box:last-child {
  border-right: none;
}

.roadmap-metric-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.roadmap-metric-val.shipped { color: var(--green); }
.roadmap-metric-val.active { color: var(--blue); }
.roadmap-metric-val.planned { color: var(--ink-500); }

.roadmap-metric-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Linear Progress Bar */
.roadmap-bar-wrap {
  width: 100%;
}

.roadmap-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}

.roadmap-track {
  width: 100%;
  height: 10px;
  background: var(--ink-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.roadmap-fill-shipped {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  border-radius: var(--radius-full);
}

.roadmap-fill-active {
  position: absolute;
  top: 0;
  left: 75%;
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: var(--radius-full);
  opacity: 0.85;
}

/* Filter Controls */
.roadmap-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.roadmap-filter-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.roadmap-filter-btn:hover {
  background: #ffffff;
  border-color: var(--brand);
  color: var(--brand);
}

.roadmap-filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.roadmap-filter-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.08);
}

.roadmap-filter-btn.active .roadmap-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ═══════════════════════════════════════════
   ROADMAP TIMELINE & PHASES
═══════════════════════════════════════════ */

.roadmap-timeline {
  position: relative;
}

/* Center connecting spine line */
.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, #16a34a 0%, #3b82f6 30%, #cbd5e1 75%, transparent 100%);
  z-index: 0;
  border-radius: 2px;
}

.roadmap-phase-block {
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-12);
}

/* Phase Header */
.roadmap-phase-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--sp-6);
}

.roadmap-phase-node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
}

.roadmap-phase-block.phase-shipped .roadmap-phase-node {
  border-color: #16a34a;
  background: #dcfce7;
  color: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.15);
}

.roadmap-phase-block.phase-active .roadmap-phase-node {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
  animation: pulse-node 2s infinite ease-in-out;
}

.roadmap-phase-block.phase-planned .roadmap-phase-node {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #64748b;
}

@keyframes pulse-node {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.roadmap-phase-title-group {
  flex-grow: 1;
}

.roadmap-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.roadmap-phase-block.phase-shipped .roadmap-phase-tag { color: #15803d; }
.roadmap-phase-block.phase-active .roadmap-phase-tag { color: #1d4ed8; }
.roadmap-phase-block.phase-planned .roadmap-phase-tag { color: #64748b; }

.roadmap-phase-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* Milestone Cards Grid */
.roadmap-cards-grid {
  margin-left: 78px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
}

/* Single Milestone Card */
.roadmap-item-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.roadmap-item-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
  border-color: var(--brand-light);
}

.roadmap-item-card.is-shipped {
  border-left: 4px solid #16a34a;
}

.roadmap-item-card.is-active {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(180deg, #ffffff 0%, rgba(239, 246, 255, 0.4) 100%);
}

.roadmap-item-card.is-planned {
  border-left: 4px solid #cbd5e1;
}

.roadmap-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.roadmap-item-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.roadmap-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.roadmap-status-badge.shipped {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.roadmap-status-badge.active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.roadmap-status-badge.planned {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.roadmap-item-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.roadmap-item-desc {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.roadmap-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ink-100);
}

.roadmap-tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ink-50);
  color: var(--ink-700);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--ink-100);
}

/* Callout Banner at Bottom */
.roadmap-feedback-banner {
  margin-top: var(--sp-16);
  margin-left: 78px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  box-shadow: 0 20px 40px -10px var(--brand-glow);
}

.roadmap-feedback-content h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.roadmap-feedback-content p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

.roadmap-feedback-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.roadmap-feedback-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background: var(--brand-xlight);
  color: var(--brand-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .roadmap-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-metric-box:nth-child(2) {
    border-right: none;
  }
  .roadmap-timeline::before {
    left: 20px;
  }
  .roadmap-phase-node {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .roadmap-cards-grid,
  .roadmap-feedback-banner {
    margin-left: 0;
    margin-top: 1.25rem;
  }
  .roadmap-feedback-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .roadmap-metrics-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-metric-box {
    border-right: none;
    border-bottom: 1px solid var(--ink-100);
    padding-bottom: 0.75rem;
  }
  .roadmap-metric-box:last-child {
    border-bottom: none;
  }
}
