/* ================================
   ACCESSIBILITY & SEO ENHANCEMENTS
   ================================ */

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Enhanced Focus Outlines */
*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* High contrast focus for interactive elements */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.filter-chip:focus,
.phase-nav-chip:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Focus visible for modern browsers */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contrast Improvements */
@media (prefers-contrast: high) {
  .glass-card {
    border: 2px solid currentColor;
    background: rgba(255, 255, 255, 0.1);
  }

  .phase-nav-chip,
  .filter-chip {
    border: 2px solid currentColor;
  }

  .phase-numeral {
    border: 2px solid white;
  }
}

/* Inline styles extracted for security - Replaces inline style attributes */

/* Animation delays for floating stars */
.floating-star-delay-0 {
  animation-delay: 0s;
  box-shadow: 0 0 10px var(--primary);
}

.floating-star-delay-1 {
  animation-delay: -1s;
  box-shadow: 0 0 8px var(--secondary);
}

.floating-star-delay-2 {
  animation-delay: -2s;
  box-shadow: 0 0 12px var(--accent);
}

.floating-star-delay-3 {
  animation-delay: -3s;
  box-shadow: 0 0 6px var(--primary);
}

.floating-star-delay-4 {
  animation-delay: -4s;
  box-shadow: 0 0 9px var(--secondary);
}

/* Animation delays for floating elements */
.floating-element-delay-1 {
  animation-delay: -1s;
}

.floating-element-delay-2 {
  animation-delay: -2s;
}

/* Enhanced fade-in-up animations with staggered delays */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal classes */
.scroll-reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease-out;
}

.scroll-reveal-up.revealed,
.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger animations */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}
.stagger-5 {
  transition-delay: 0.5s;
}
.stagger-6 {
  transition-delay: 0.6s;
}

/* Mobile menu animation */
.mobile-menu-enter {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Particle animation */
.animate-particle {
  position: absolute;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  opacity: 0.6;
  animation: floatParticle linear infinite;
  pointer-events: none;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Roadmap-specific styles */
.roadmap-container {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 80px); /* Account for nav height */
  display: flex;
  flex-direction: column;
}

.hero-section {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.roadmap-phase-nav {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ================================
   POLISH: VERTICAL RHYTHM & SPACING
   ================================ */

/* Root spacing scale for consistent vertical rhythm */
:root {
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 0.75rem; /* 12px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* Enhanced shadow scale */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Glass card shadows with theme integration */
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(var(--color-primary-rgb), 0.08);
  --glass-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(var(--color-primary-rgb), 0.12);

  /* Heading scale improvements */
  --text-scale-6xl: 3.75rem; /* 60px */
  --text-scale-5xl: 3rem; /* 48px */
  --text-scale-4xl: 2.25rem; /* 36px */
  --text-scale-3xl: 1.875rem; /* 30px */
  --text-scale-2xl: 1.5rem; /* 24px */
  --text-scale-xl: 1.25rem; /* 20px */
  --text-scale-lg: 1.125rem; /* 18px */
}

.roadmap-phases {
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 300px;
  padding: var(--space-lg) 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Phase anchor positioning - Enhanced */
.phase-anchor {
  scroll-margin-top: 100px;
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* Enhanced heading hierarchy */
h1 {
  font-size: var(--text-scale-5xl);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-scale-3xl);
  line-height: 1.2;
}

h3 {
  font-size: var(--text-scale-xl);
  line-height: 1.3;
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--text-scale-4xl);
  }

  h2 {
    font-size: var(--text-scale-3xl);
  }

  h3 {
    font-size: var(--text-scale-lg);
  }
}

/* Phase navigation chips - Enhanced */
.phase-nav-chip {
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.phase-nav-chip:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Phase anchor positioning */
.phase-anchor {
  scroll-margin-top: 100px; /* Account for fixed nav */
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* Phase Cards - Enhanced vertical rhythm */
.phase-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--glass-shadow);
}

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

.phase-header {
  transition: all 0.2s ease;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-xl);
}

.phase-numeral {
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
  transition: all 0.2s ease;
}

.phase-header:hover .phase-numeral {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

.phase-title h2 {
  font-size: var(--text-scale-3xl);
  line-height: 1.2;
  margin: 0;
}

.toggle-chevron {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
  height: 2.75rem;
}

.toggle-chevron:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.toggle-chevron.rotate-180 {
  transform: rotate(180deg);
}

.toggle-chevron:hover.rotate-180 {
  transform: rotate(180deg) scale(1.05);
}

.phase-body {
  transition: all 0.3s ease;
  padding: 0 var(--space-xl) var(--space-xl) var(--space-xl);
}

.quarter-chip,
.status-chip {
  transition: all 0.2s ease;
  padding: var(--space-xs) var(--space-md);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.quarter-chip:hover,
.status-chip:hover {
  transform: scale(1.05);
}

.empty-body-container {
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  padding: var(--space-2xl) var(--space-xl);
  margin: var(--space-lg) var(--space-xl) var(--space-xl) var(--space-xl);
  border-radius: 0.75rem;
}

.empty-body-container:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Feature Pills - Enhanced grid and spacing */
.feature-grid {
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-pill {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 140px;
  padding: var(--space-lg);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-md);
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
  width: 2.25rem;
  height: 2.25rem;
}

.feature-pill:hover .feature-icon {
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
  transform: scale(1.08);
}

.feature-title h3 {
  line-height: 1.3;
  font-size: var(--text-scale-lg);
  font-weight: 600;
  margin: 0;
}

.feature-header {
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.feature-description {
  line-height: 1.5;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.bullet-list {
  margin-top: var(--space-md);
  gap: var(--space-xs);
}

.bullet-item {
  transition: all 0.2s ease;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0.5rem;
}

/* Generic hover effect for non-roadmap pages */
.bullet-item:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(2px);
}

.bullet-dot {
  margin-top: 0.125rem;
}

/* Responsive Grid Adjustments - Enhanced mobile flow */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-pill {
    min-height: 120px;
    padding: var(--space-md);
  }

  .phase-card {
    margin-bottom: var(--space-xl);
  }

  .phase-header {
    padding: var(--space-lg);
  }

  .phase-body {
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  }

  .phase-numeral {
    width: 3rem;
    height: 3rem;
  }

  .phase-title h2 {
    font-size: var(--text-scale-xl);
  }

  .toggle-chevron {
    width: 2.5rem;
    height: 2.5rem;
  }

  .empty-body-container {
    margin: var(--space-md) var(--space-lg) var(--space-lg) var(--space-lg);
    padding: var(--space-xl) var(--space-md);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .phase-card {
    margin-bottom: var(--space-2xl);
  }
}

@media (min-width: 1025px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* Callout items styling */
.callout-item {
  background: rgba(139, 69, 255, 0.1) !important;
  border: 1px solid rgba(139, 69, 255, 0.2);
  box-shadow: 0 2px 8px rgba(139, 69, 255, 0.1);
}

.callout-item:hover {
  background: rgba(139, 69, 255, 0.15) !important;
  border-color: rgba(139, 69, 255, 0.3);
  transform: translateX(3px);
}

.callout-label {
  color: var(--color-primary);
  font-weight: 600;
}

.callout-content {
  color: var(--color-text-secondary);
}

/* Inline badges for status emojis */
.inline-badges {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(139, 69, 255, 0.1);
  border: 1px solid rgba(139, 69, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.inline-badge:hover {
  background: rgba(139, 69, 255, 0.2);
  border-color: rgba(139, 69, 255, 0.4);
  transform: scale(1.1);
}

/* Enhanced feature title layout */
.feature-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.feature-title h3 {
  flex: 1;
  min-width: 0; /* Allow text truncation if needed */
}

/* Milestones & KPIs Table */
.milestones-section {
  margin-top: 2rem;
}

.milestones-table-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 69, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.milestones-header-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(139, 69, 255, 0.1);
  backdrop-filter: blur(10px);
}

.milestones-header-sticky th {
  font-weight: 600;
  font-size: 0.875rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-right: 1rem;
  /* Removed padding-left to allow Tailwind classes to work */
  border-bottom: 1px solid rgba(139, 69, 255, 0.2);
}

/* Milestones table enhancements */
.milestone-row {
  transition: all 0.2s ease;
}

.milestone-row:hover {
  background: rgba(var(--color-primary-rgb), 0.06) !important;
  transform: translateX(2px);
}

.milestone-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.milestone-row td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.3);
}

.status-emoji {
  font-size: 0.875rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.progress-bar-bg {
  width: 5rem;
  height: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(var(--color-primary-rgb), 0.4);
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 2.5rem;
  text-align: center;
}

.target-date {
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 500;
}

/* Responsive table adjustments - Enhanced mobile */
@media (max-width: 768px) {
  .milestones-header-sticky th,
  .milestone-row td {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    padding-right: var(--space-md);
    /* Removed padding-left to allow Tailwind classes to work */
    font-size: 0.8rem;
  }

  .progress-bar-bg {
    width: 3.5rem;
    height: 0.5rem;
  }

  .status-dot {
    width: 0.75rem;
    height: 0.75rem;
  }

  .progress-text {
    font-size: 0.75rem;
    min-width: 2rem;
  }

  .target-date {
    font-size: 0.8rem;
  }
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(139, 69, 255, 0.6);
  position: relative;
}

.reading-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 4px rgba(139, 69, 255, 0.8);
}

/* Active navigation indicators */
[data-phase-nav] a.active {
  background: rgba(139, 69, 255, 0.2) !important;
  color: var(--color-primary) !important;
  border-color: rgba(139, 69, 255, 0.4) !important;
  transform: scale(1.05);
  font-weight: 600;
}

[data-phase-nav] .active {
  transform: translateY(-2px);
}

/* Smooth scroll behavior enhancement */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
[data-phase]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* === COLLAPSE/EXPAND ANIMATIONS === */

/* Phase body collapse animations */
.phase-body {
  overflow: hidden;
  transition: max-height 300ms ease-out, opacity 300ms ease-out;
}

/* Chevron button animations and states */
.toggle-chevron {
  transition: transform 300ms ease-out, background-color 200ms ease;
}

.toggle-chevron:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(var(--color-primary-rgb), 0.5);
}

.toggle-chevron:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.toggle-chevron svg {
  transition: transform 300ms ease-out;
}

/* Phase header hover effects for collapsible sections */
.phase-header:hover {
  cursor: pointer;
}

.phase-header:hover .toggle-chevron {
  transform: scale(1.1);
}

.phase-header:hover .toggle-chevron.rotate-180 {
  transform: scale(1.1) rotate(180deg);
}

/* Smooth animations for phase card interactions */
.phase-card {
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.phase-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* Enhanced chevron rotation animation */
.toggle-chevron.rotate-180 svg {
  transform: rotate(180deg);
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .phase-body,
  .toggle-chevron,
  .toggle-chevron svg {
    transition: none;
  }
}

/* === ROADMAP REVEAL ANIMATIONS === */

/* Base animation styles - prevent layout shift */
[data-animation-state="prepared"] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Animation variants */
.animate-fade-slide-up[data-animation-state="prepared"] {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-scale[data-animation-state="prepared"] {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

.animate-fade-right[data-animation-state="prepared"] {
  opacity: 0;
  transform: translateX(-20px);
}

.animate-fade-up[data-animation-state="prepared"] {
  opacity: 0;
  transform: translateY(15px);
}

/* Revealed state animations */
.animation-revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
  transition: opacity var(--animation-duration, 800ms)
      var(--animation-easing, ease-out) var(--animation-delay, 0ms),
    transform var(--animation-duration, 800ms) var(--animation-easing, ease-out)
      var(--animation-delay, 0ms);
}

/* Reduced motion override */
.reduced-motion {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* === HOVER GLOW EFFECTS === */

/* Hover-enabled elements */
.animate-hover-enabled {
  position: relative;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.animate-hover-enabled::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.1),
    rgba(var(--color-secondary-rgb), 0.1),
    rgba(var(--color-accent-rgb), 0.1)
  );
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
  z-index: -1;
}

.animate-hover-enabled.is-hovered {
  transform: scale(var(--hover-scale, 1.02));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(var(--color-primary-rgb), var(--hover-glow, 0.1));
}

.animate-hover-enabled.is-hovered::before {
  opacity: var(--hover-glow, 0.15);
}

/* Feature pill specific hover effects */
.feature-pill.animate-hover-enabled.is-hovered {
  transform: scale(var(--hover-scale, 1.02)) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(var(--color-primary-rgb), var(--hover-glow, 0.15));
}

/* Phase card specific hover effects */
.phase-card.animate-hover-enabled.is-hovered {
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15),
    0 0 32px rgba(var(--color-primary-rgb), var(--hover-glow, 0.1));
}

/* Navigation chip specific hover effects */
.phase-nav-chip.animate-hover-enabled.is-hovered {
  transform: scale(var(--hover-scale, 1.05)) translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15),
    0 0 16px rgba(var(--color-primary-rgb), var(--hover-glow, 0.2));
}

/* Chevron button hover effects */
.toggle-chevron.animate-hover-enabled.is-hovered {
  transform: scale(var(--hover-scale, 1.1));
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
    0 0 12px rgba(var(--color-primary-rgb), var(--hover-glow, 0.2));
}

/* Accessibility: Disable hover effects for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-hover-enabled {
    transition: none;
  }

  .animate-hover-enabled::before {
    display: none;
  }

  .animate-hover-enabled.is-hovered {
    transform: none;
    box-shadow: none;
  }
}

/* Performance optimization: Use GPU acceleration */
.animate-fade-slide-up,
.animate-fade-scale,
.animate-fade-right,
.animate-fade-up,
.animate-hover-enabled {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Ensure smooth animations on different devices */
@media (max-width: 768px) {
  .animate-hover-enabled {
    /* Reduce hover effects on touch devices */
    transform: none !important;
  }

  .animate-hover-enabled.is-hovered {
    transform: scale(1.01);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .animate-hover-enabled::before {
    background: transparent;
    border: 1px solid currentColor;
  }

  .animate-hover-enabled.is-hovered {
    box-shadow: 0 0 0 2px currentColor;
  }
}

/* ================================
   ROADMAP FILTERS STYLES
   ================================ */

/* Filter container - Enhanced spacing */
.roadmap-filters-container {
  max-width: 1200px;
  margin: var(--space-2xl) auto;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.roadmap-filters-container:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* Filter header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  gap: var(--space-lg);
}

.filter-title {
  font-size: var(--text-scale-xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.filter-reset-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.filter-reset-btn:active {
  transform: translateY(0);
}

/* Filter chips container - Enhanced spacing */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Individual filter chip - Enhanced design */
.filter-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Chip hover effect */
.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active chip state */
.filter-chip.active {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.2),
    rgba(var(--color-secondary-rgb), 0.2)
  );
  border-color: rgba(var(--color-primary-rgb), 0.4);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.3),
    0 2px 8px rgba(var(--color-primary-rgb), 0.2);
}

.filter-chip.active:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.3),
    rgba(var(--color-secondary-rgb), 0.3)
  );
  box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.5),
    0 4px 16px rgba(var(--color-primary-rgb), 0.3);
}

/* Chip emoji */
.filter-emoji {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Chip label */
.filter-label {
  font-weight: 600;
  white-space: nowrap;
}

/* Color variations for different status types */
.filter-chip[data-color="green"].active {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3), 0 2px 8px rgba(34, 197, 94, 0.2);
}

.filter-chip[data-color="yellow"].active {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3), 0 2px 8px rgba(234, 179, 8, 0.2);
}

.filter-chip[data-color="blue"].active {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3),
    0 2px 8px rgba(59, 130, 246, 0.2);
}

.filter-chip[data-color="purple"].active {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.3),
    0 2px 8px rgba(147, 51, 234, 0.2);
}

.filter-chip[data-color="orange"].active {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3),
    0 2px 8px rgba(249, 115, 22, 0.2);
}

/* Focus styles for accessibility */
.filter-chip:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.5),
    0 0 0 4px rgba(var(--color-primary-rgb), 0.2);
}

.filter-reset-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.5);
}

/* Filter summary */
.filter-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Hidden state for filtered elements */
.filter-hidden {
  display: none !important;
}

/* Responsive design - Enhanced mobile filters */
@media (max-width: 768px) {
  .roadmap-filters-container {
    margin: var(--space-lg) var(--space-md);
    padding: var(--space-lg);
  }

  .filter-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .filter-title {
    font-size: var(--text-scale-lg);
  }

  .filter-chips {
    justify-content: center;
    gap: var(--space-sm);
  }

  .filter-chip {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }

  .filter-summary {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    font-size: 0.8rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .filter-chip,
  .filter-reset-btn {
    transition: none;
  }

  .filter-chip:hover,
  .filter-reset-btn:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .filter-chip {
    border-width: 2px;
  }

  .filter-chip.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: currentColor;
  }
}

/* ================================
   PRINT STYLESHEET - Clean One-Pager Export
   ================================ */

@media print {
  /* Reset and Base Styles */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  @page {
    margin: 0.75in;
    size: A4;
  }

  html,
  body {
    background: white !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Hide unnecessary elements */
  .floating-element,
  .floating-star,
  .gradient-primary,
  #particle-canvas,
  .bg-animated,
  .bg-neural,
  .bg-mesh,
  nav,
  footer,
  .skip-link,
  .roadmap-filters-container,
  .toggle-chevron,
  .phase-nav-section {
    display: none !important;
  }

  /* Main Content Adjustments */
  main {
    padding: 0 !important;
    margin: 0 !important;
  }

  .roadmap-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Header Styling */
  .roadmap-hero {
    margin-bottom: 1.5rem;
    page-break-after: avoid;
  }

  .roadmap-hero h1 {
    font-size: 24pt !important;
    font-weight: bold !important;
    text-align: center;
    margin-bottom: 0.5rem !important;
    color: black !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
  }

  .roadmap-hero p {
    font-size: 11pt !important;
    text-align: center;
    margin-bottom: 1rem !important;
    line-height: 1.3;
  }

  /* Legend */
  .roadmap-hero .flex:last-child {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .roadmap-hero .flex:last-child > div {
    border: 1px solid #ccc !important;
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem !important;
    font-size: 9pt !important;
  }

  /* Phase Cards */
  .phase-card {
    border: 2px solid black !important;
    border-radius: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .phase-header {
    border-bottom: 1px solid black !important;
    padding: 0.75rem !important;
    background: #f5f5f5 !important;
  }

  .phase-numeral {
    width: 2rem !important;
    height: 2rem !important;
    background: black !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 14pt !important;
    font-weight: bold !important;
  }

  .phase-title h2 {
    font-size: 16pt !important;
    font-weight: bold !important;
    margin: 0 !important;
  }

  .status-chip {
    border: 1px solid black !important;
    padding: 0.25rem !important;
    font-size: 10pt !important;
  }

  .quarter-chip {
    border: 1px solid #666 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 9pt !important;
    margin-left: 0.5rem;
  }

  /* Phase Body Content */
  .phase-body {
    padding: 0.75rem !important;
  }

  /* Feature Pills as List Items */
  .feature-grid {
    display: block !important;
    columns: 2;
    column-gap: 1rem;
    column-fill: balance;
  }

  .feature-pill {
    display: inline-block !important;
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem !important;
    page-break-inside: avoid;
    background: #fafafa !important;
  }

  .feature-icon {
    display: none !important;
  }

  .feature-title h3 {
    font-size: 11pt !important;
    font-weight: bold !important;
    margin: 0 0 0.25rem 0 !important;
  }

  .feature-description {
    font-size: 9pt !important;
    line-height: 1.3;
  }

  .bullet-list {
    margin-top: 0.5rem !important;
  }

  .bullet-item {
    padding: 0.125rem 0 !important;
    font-size: 9pt !important;
    margin-left: 1rem !important;
  }

  .bullet-dot {
    display: inline !important;
    margin-right: 0.25rem;
  }

  /* Milestones Table */
  .milestones-section {
    margin-top: 1rem !important;
    page-break-inside: avoid;
  }

  .milestones-header h3 {
    font-size: 12pt !important;
    font-weight: bold !important;
    margin-bottom: 0.5rem !important;
  }

  .milestones-table-container {
    border: 1px solid black !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th,
  td {
    border: 1px solid #ccc !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-right: 0.5rem !important;
    /* Allow custom padding-left from HTML classes */
    font-size: 9pt !important;
    text-align: left !important;
  }

  th {
    background: #f0f0f0 !important;
    font-weight: bold !important;
  }

  .status-dot {
    display: inline-block !important;
    width: 0.5rem !important;
    height: 0.5rem !important;
    border: 1px solid black !important;
    border-radius: 50% !important;
    margin-right: 0.25rem !important;
  }

  .progress-container {
    display: inline-block !important;
  }

  .progress-bar-bg,
  .progress-bar-fill {
    display: none !important;
  }

  .progress-text::after {
    content: " complete";
    font-size: 8pt;
  }

  /* Typography Improvements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  /* Utilities */
  .page-break {
    page-break-before: always;
  }

  .no-break {
    page-break-inside: avoid;
  }

  /* Footer for Print */
  .roadmap-container::after {
    content: "Fourlaunch Roadmap - Generated: " counter(page);
    display: block;
    text-align: center;
    font-size: 8pt;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
  }
}
