/* ========================================
   RANKMYAPP ROADMAP — Design System
   Inspirado em Linear / Vercel / Notion AI
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #09090b;
  --bg-secondary: #0f0f12;
  --bg-card: #141419;
  --bg-card-hover: #1a1a22;
  --bg-elevated: #1e1e28;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-violet: #7c3aed;

  --status-live: #22c55e;
  --status-progress: #eab308;
  --status-planned: #3b82f6;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6, #7c3aed);
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 60%);

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-medium);
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s 0.5s ease both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* --- TIMELINE PROGRESS --- */
.timeline-progress {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transition: var(--transition-medium);
}

.timeline-progress.visible {
  opacity: 1;
}

.timeline-bar {
  width: 2px;
  height: 200px;
  background: var(--border-medium);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: height 0.4s ease;
}

.timeline-dots {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}

.timeline-dot span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.timeline-dot.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
}

.timeline-dot.active span {
  color: var(--accent-purple);
}

/* --- PHASE SECTIONS --- */
.phase {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding) 24px;
}

.phase-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.phase-number {
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.phase-info {
  flex: 1;
}

.phase-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.phase-narrative {
  font-size: 18px;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 16px;
}

.phase-description {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.phase-status-summary {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.status-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.live {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-live);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-pill.progress {
  background: rgba(234, 179, 8, 0.12);
  color: var(--status-progress);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-pill.planned {
  background: rgba(59, 130, 246, 0.12);
  color: var(--status-planned);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- CARDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0), transparent);
  transition: var(--transition-medium);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.card[data-status="live"]:hover {
  border-color: rgba(34, 197, 94, 0.2);
}

.card[data-status="progress"]:hover {
  border-color: rgba(234, 179, 8, 0.2);
}

.card[data-status="planned"]:hover {
  border-color: rgba(59, 130, 246, 0.2);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.live {
  background: var(--status-live);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.progress {
  background: var(--status-progress);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
  animation: pulse-yellow 2s infinite;
}

.status-dot.planned {
  background: var(--status-planned);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  filter: grayscale(0.2);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-impact {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.impact-text {
  font-size: 13px;
  color: var(--accent-purple);
  font-weight: 500;
}

/* --- LEGEND --- */
.legend-section {
  padding: 40px 24px 80px;
}

.legend-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.legend-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.legend-items {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-divider {
  margin: 0 8px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-6px);
  }
  60% {
    transform: rotate(45deg) translateY(-3px);
  }
}

@keyframes pulse-yellow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .timeline-progress {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .phase-header {
    flex-direction: column;
    gap: 20px;
  }

  .phase-number {
    font-size: 48px;
  }

  .phase-status-summary {
    order: -1;
  }

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

  .hero-stats {
    gap: 32px;
  }

  .stat-number {
    font-size: 28px;
  }

  .legend-items {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .phase-title {
    font-size: 24px;
  }
}
