/*══════════════════════════════════════════
  ROADMAP PAGE STYLES
══════════════════════════════════════════*/

/*── Hero Section ──*/
.roadmap-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.roadmap-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.roadmap-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.roadmap-hero .math-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(108, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 80%);
}

.roadmap-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.roadmap-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.roadmap-hero h1 span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roadmap-hero p {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/*── Intro Section ──*/
.roadmap-intro {
  padding: 60px 0 80px;
  background: var(--bg);
}

.roadmap-intro-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
}

.roadmap-intro-card h2 {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.roadmap-intro-card p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/*── Timeline Section ──*/
.roadmap-timeline {
  padding: 40px 0 100px;
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary-light));
  border-radius: 3px;
}

/*── Phase Card ──*/
.phase {
  position: relative;
  padding-left: 80px;
  margin-bottom: 64px;
}

.phase:last-child {
  margin-bottom: 0;
}

.phase-dot {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-d);
  box-shadow: 0 0 0 6px rgba(108, 58, 237, 0.12), 0 4px 12px rgba(108, 58, 237, 0.25);
  z-index: 2;
  transition: var(--ease);
}

.phase.active .phase-dot {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(108, 58, 237, 0.2), 0 0 20px rgba(108, 58, 237, 0.4);
  transform: scale(1.15);
}

.phase-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: var(--ease);
}

.phase-card:hover {
  border-color: rgba(108, 58, 237, 0.15);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.phase-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background: rgba(108, 58, 237, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.phase.completed .phase-label {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.phase.in-progress .phase-label {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.phase.upcoming .phase-label {
  background: rgba(108, 58, 237, 0.08);
  color: var(--primary);
}

.phase-card h3 {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text);
}

.phase-objective {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.phase-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text);
  margin: 20px 0 10px;
}

.phase-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.phase-feature::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-top: 8px;
}

.phase-quote {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(108, 58, 237, 0.04);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--text-sec);
  font-style: italic;
  line-height: 1.6;
}

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.phase-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 58, 237, 0.06);
  color: var(--primary);
  transition: var(--ease);
}

.phase-tag:hover {
  background: rgba(108, 58, 237, 0.12);
  transform: translateY(-2px);
}

/*── Status-specific styling ──*/
.phase.completed .phase-card {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.02);
}

.phase.in-progress .phase-card {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.02);
}

.phase.upcoming .phase-card {
  opacity: 0.85;
}

/*── Section Blocks (Business, Vision, Market) ──*/
.roadmap-section {
  padding: 80px 0;
}

.roadmap-section:nth-child(even) {
  background: var(--bg-alt);
}

.roadmap-section:nth-child(odd) {
  background: var(--bg);
}

.roadmap-section-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.roadmap-section-inner h2 {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--text);
}

.roadmap-section-inner p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 16px;
}

.roadmap-section-inner p:last-child {
  margin-bottom: 0;
}

/*── Revenue Grid ──*/
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  text-align: center;
}

.revenue-item {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 24px 16px;
  transition: var(--ease);
}

.revenue-item:hover {
  border-color: rgba(108, 58, 237, 0.15);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.revenue-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.revenue-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/*── Vision Brands ──*/
.vision-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.vision-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: var(--ease);
}

.vision-brand:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/*── Market Highlight ──*/
.market-highlight {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*── Contribute Section ──*/
.contribute-section {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.contribute-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contribute-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.contribute-description {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contribute-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/*── Final CTA (shared) ──*/
.final-cta {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  min-height: 420px;
}

.final-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 58, 237, 0.2), transparent 70%);
  transform: translate(0, -50%);
  pointer-events: none;
  z-index: 1;
}

.cta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 420px;
}

.cta-visual {
  position: relative;
  align-self: end;
  z-index: 2;
}

.cta-visual img {
  height: 440px;
  width: auto;
  margin-bottom: -4px;
  margin-left: -40px;
  filter: drop-shadow(0 -10px 40px rgba(108, 58, 237, 0.3));
  animation: floatSlow 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.cta-content {
  padding: 60px 40px 60px 20px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.cta-content .section-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content .section-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 36px;
  max-width: 480px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--sh-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

/*── Animations ──*/
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.js-reveal-ready .reveal.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/*── Responsive ──*/
@media (max-width: 1024px) {
  .revenue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-visual {
    text-align: center;
    order: 2;
  }

  .cta-visual img {
    margin: 0 auto -4px;
    height: 300px;
  }

  .cta-content {
    text-align: center;
    padding: 60px 24px 20px;
  }

  .cta-content .section-subtitle {
    margin: 0 auto 36px;
  }

  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .roadmap-hero {
    padding: 120px 0 60px;
  }

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

  .roadmap-intro-card {
    padding: 32px 24px;
  }

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

  .phase {
    padding-left: 56px;
    margin-bottom: 48px;
  }

  .phase-dot {
    left: 6px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .phase-card {
    padding: 24px 20px;
  }

  .phase-card h3 {
    font-size: 19px;
  }

  .revenue-grid {
    grid-template-columns: 1fr;
  }

  .vision-brands {
    flex-direction: column;
    align-items: center;
  }

  .cta-visual img {
    height: 220px;
    margin: 0 auto -4px;
  }

  .contribute-buttons {
    flex-direction: column;
  }

  .contribute-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .roadmap-hero h1 {
    font-size: 28px;
  }

  .phase {
    padding-left: 48px;
  }

  .phase-dot {
    left: 4px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .roadmap-intro-card {
    padding: 24px 16px;
  }

  .roadmap-intro-card h2 {
    font-size: 22px;
  }

  .roadmap-section-inner h2,
  .contribute-title {
    font-size: 20px;
  }

  .phase-card {
    padding: 16px 12px;
  }
}
