/* HealthMemory Radial Pulse - Cinematic Visual */

#healthmemory-pulse {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: visible;
  z-index: 1;
  padding-top: 4rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Soft, on-brand separators for 'This Is How We Fix It' (top & bottom) */
#healthmemory-pulse::before,
#healthmemory-pulse::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 2;
  filter: none;
}

#healthmemory-pulse::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0) 100%
  );
}

#healthmemory-pulse::after {
  content: none;
}

@media (max-width: 900px) {
  #healthmemory-pulse::before,
  #healthmemory-pulse::after {
    width: 100%;
    height: 28px;
  }
}

.pulse-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#healthmemory-canvas {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 70%;
  display: block;
}

/* Fallback for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #healthmemory-pulse {
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.15) 0%, transparent 50%);
  }
  
  #healthmemory-canvas {
    display: none;
  }
  
  #healthmemory-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.8) 0%, rgba(108, 92, 231, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-badge {
    opacity: 1;
    transform: none;
  }
}

/* Optional overlay content */
.pulse-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FAFAFA;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Title/subtext that must stay visible during the entire sticky animation */
.intro-overlay {
  position: absolute;
  top: 6vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FAFAFA;
  z-index: 15;
  pointer-events: none;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  transition: opacity 0.8s ease;
}

.intro-overlay .intro-title {
  margin-bottom: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FAFAFA;
  line-height: 1.1;
}

.intro-overlay .intro-description {
  margin-bottom: 0;
  color: #bdbdbd;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Phase Explanations */
.phase-explanations {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FAFAFA;
  z-index: 5;
  pointer-events: none;
  width: 95%;
  max-width: 800px;
}

.phase-explanation {
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  width: 100%;
}

.phase-explanation.active {
  opacity: 1;
}

.phase-explanation h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #05B0F0;
}

.phase-explanation p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: #bdbdbd;
  line-height: 1.5;
}

/* Force single line for lattice explanation on desktop */
.lattice-explanation p {
  white-space: nowrap;
}

.pulse-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pulse-subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.7;
  color: #bdbdbd;
  margin-bottom: 1.5rem;
}

/* Tiny blue pill shown at end of animation below subtext */
.coming-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin: 10px auto 0;
  height: 24px;
  border-radius: 999px;
  background: #05B0F0; /* brand blue */
  color: #FFFFFF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap; /* avoid orphan words */
  opacity: 0; /* hidden by default */
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.coming-badge.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .coming-badge {
    font-size: clamp(12px, 0.6rem, 13px); /* ~25% smaller target with accessible floor */
    height: 18px;
    padding: 2px 8px;
    margin: 6px auto 0;
  }
}
@media (min-width: 901px) {
  /* Desktop: nudge pill upward ~8px to create more space above Replay */
  .coming-badge {
    margin: 2px auto 0;
  }
}

/* RESPONSIVE SCALING - Scale everything proportionally */
@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
  
  .intro-overlay {
    top: 10vh;
    padding: 0 1rem;
    max-width: 95%;
  }
  
  .intro-overlay .intro-title {
    font-size: 2rem;
  }
  
  .intro-overlay .intro-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .phase-explanations {
    bottom: 35%;
    padding-bottom: 15px;
  }
  
  .phase-explanation h3 {
    font-size: 1.75rem; /* Much larger for mobile readability */
  }
  
  .phase-explanation p {
    font-size: 1.25rem; /* Much larger for mobile readability */
    line-height: 1.5; /* Better line spacing for mobile */
  }
  
  .lattice-explanation p {
    white-space: normal;
  }
  
  .pulse-title {
    font-size: 2rem;
  }
  
  .pulse-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intro-overlay {
    padding: 0 2.5rem;
  }
  
  .intro-overlay .intro-title {
    font-size: 1.8rem;
  }
  
  .phase-explanations {
    bottom: 22%;
    padding-bottom: 15px;
  }
  
  .pulse-title {
    font-size: 1.5rem;
  }
  
  .pulse-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .intro-overlay {
    padding: 0 2rem;
  }
  
  .intro-overlay .intro-title {
    font-size: 1.6rem;
    line-height: 1.1;
  }
  
  .intro-overlay .intro-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* HealthMemory Benefits Section */
.healthmemory-benefits {
  padding: 88px 0;
  position: relative;
  background: transparent;
  margin-top: 40px;
}

.healthmemory-benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, rgba(108,92,231,0) 0%, rgba(108,92,231,0.35) 50%, rgba(108,92,231,0) 100%);
  filter: blur(0.5px);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 900px) {
  .healthmemory-benefits {
    margin-top: 24px;
  }
  .healthmemory-benefits::before {
    width: 90%;
    opacity: 1;
  }
}

.benefits-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 2rem;
}

.benefits-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #FAFAFA;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(2rem + 10px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.healthmemory-benefits .benefit-card {
  background: rgba(9, 10, 16, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(108, 92, 231, 0.12) !important;
  border-radius: 12px !important;
  padding: 2.25rem 1.5rem !important;
  box-sizing: border-box !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 280px !important;
}

.benefit-card:hover {
  background: rgba(9, 10, 16, 0.6);
  border-color: rgba(108, 92, 231, 0.18);
}

.benefit-icon {
  margin-bottom: 0 !important;
  display: flex;
  justify-content: center;
}

.benefit-icon svg {
  width: 64px;
  height: 64px;
}

.benefit-icon svg text {
  font-size: 60px;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: 'Segoe UI Symbol','Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji', sans-serif;
}

.benefit-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FAFAFA;
  margin: 0 !important;
  line-height: 1.2;
}

.benefit-card p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: #bdbdbd;
  line-height: 1.6;
  margin: 0 !important;
  text-wrap: balance;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 90%;
  width: 90%;
}

.benefits-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(108, 92, 231, 0.2);
}

.benefits-cta-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.2rem;
  color: #FAFAFA;
  margin-bottom: 2rem;
}

.benefits-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6C5CE7 0%, #7A6AF0 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.benefits-cta-btn:hover {
  background: linear-gradient(135deg, #7A6AF0 0%, #8A7AF3 100%);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 901px) and (max-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(2rem + 10px);
  }
  .healthmemory-benefits .benefit-card {
    box-sizing: border-box !important;
    min-height: 420px !important;
  }
}

@media (max-width: 900px) {
  .healthmemory-benefits {
    padding: 60px 0;
  }

  .benefits-container {
    padding: 0 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: calc(1.5rem + 10px) !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .healthmemory-benefits .benefit-card {
    padding: 2rem 1.5rem !important;
    box-sizing: border-box !important;
    min-height: 180px !important;
  }
}

@media (max-width: 700px) {
  .healthmemory-benefits .benefit-card {
    padding: 2rem 1.5rem !important;
    box-sizing: border-box !important;
    min-height: 180px !important;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .healthmemory-benefits .benefit-card {
    padding: 2rem 1.5rem !important;
    box-sizing: border-box !important;
    min-height: 180px !important;
  }
}

/* Scale benefits icons appropriately on mobile; desktop remains 64px */
@media (max-width: 768px) {
  .benefit-icon svg {
    width: 48px !important;
    height: 48px !important;
  }
  .benefit-icon svg text {
    font-size: 60px;
  }
  
  /* Force consistent mobile card heights - sized for largest content */
  .healthmemory-benefits .benefit-card {
    min-height: 300px !important;
    max-height: 300px !important;
    height: 300px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  .benefit-card p {
    max-width: 95% !important;
    width: 95% !important;
  }

  /* Align benefits container edge spacing with animation card above */
  .healthmemory-benefits .benefits-container {
    width: 95% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
}

/* Replay button styling (moved from inline JS) */
.replay-btn {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(108, 92, 231, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 15;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
.replay-btn.show {
  display: flex; /* shown when animation completes */
}
.replay-btn:hover,
.replay-btn:focus {
  background: rgba(108, 92, 231, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

/* Phase summary overlay (3-column grid) */
.phase-summary {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  display: none; /* hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  background: rgba(9, 10, 16, 0.55);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.phase-summary.show {
  display: grid; /* visible state */
  opacity: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  align-items: start;
}
.phase-summary .phase-item h4 {
  color: #05B0F0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.phase-summary .phase-item p {
  color: #bdbdbd;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive stacking for summary grid */
@media (max-width: 768px) {
  .phase-summary.show {
    grid-template-columns: 1fr;
  }
  .replay-btn {
    top: 66%;
  }
}

/* Match animation card edge padding on very small screens */
@media (max-width: 480px) {
  .healthmemory-benefits .benefits-container {
    width: 92% !important;
  }
  .healthmemory-benefits .benefit-card {
    padding: 18px !important;
  }
}

/* ============================================
   Pulse Controls and Summary Overlay (no inline styles)
   ============================================ */

/* Replay button */
.replay-btn {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(108, 92, 231, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 15;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
.replay-btn:hover {
  background: rgba(108, 92, 231, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}
.replay-btn.show {
  display: flex;
}

/* Phase summary overlay (3-column grid) */
.phase-summary {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 960px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  background: rgba(9, 10, 16, 0.55);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phase-summary.show {
  display: block;
  opacity: 1;
}

.phase-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.phase-summary-item h4 {
  color: #05B0F0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.phase-summary-item p {
  color: #bdbdbd;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Phase Summary Box - Positioned within HealthMemory section */
.phase-summary-box {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 0.5rem);
  max-width: 2000px;
  min-height: 140px;
  background: rgba(9, 10, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.phase-summary-box.show {
  opacity: 1;
}

/* Desktop: Grid mode - show all phases with highlighting */
.phase-summary-box.desktop-grid-mode {
  max-width: 1200px;
  min-height: 120px;
  padding: 20px 32px;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.phase-summary-box.desktop-grid-mode .phase-item {
  position: relative !important;
  opacity: 0.4 !important;
  transform: none !important;
  padding: 0;
  text-align: center;
  transition: opacity 0.5s ease;
}

.phase-summary-box.desktop-grid-mode .phase-item.highlighted {
  opacity: 1 !important;
}

/* Desktop: Full summary mode - show all phases equally */
.phase-summary-box.full-summary-mode {
  max-width: 1200px;
  min-height: 120px;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.phase-summary-box.full-summary-mode .phase-item {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  padding: 0;
  text-align: center;
}

/* Mobile: Swipeable mode styling */
.phase-summary-box.swipeable-mode {
  pointer-events: auto;
  cursor: grab;
}

.phase-summary-box.swipeable-mode:active {
  cursor: grabbing;
}

/* Mobile: Static mode styling - no interaction */
.phase-summary-box.mobile-static-mode {
  pointer-events: none;
  cursor: default;
}

.phase-summary-box.mobile-static-mode .phase-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phase-summary-box.mobile-static-mode .phase-item.active {
  opacity: 1;
}

/* Carousel dots inside summary box */
.phase-summary-box .carousel-dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.phase-summary-box .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
  cursor: pointer;
}

.phase-summary-box .carousel-dot.active {
  background: #05B0F0;
}

.phase-summary-box .phase-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phase-summary-box .phase-item.active {
  opacity: 1;
}

.phase-summary-box .phase-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #05B0F0;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.phase-summary-box .phase-description {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: #bdbdbd;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustments for rotating card */
@media (max-width: 768px) {
  .phase-summary.show {
    grid-template-columns: 1fr;
  }
  .replay-btn {
    top: 66%;
  }
  .rotating-phase-card {
    bottom: 20%;
    width: 95%;
    max-width: 500px;
    min-height: 120px;
    padding: 20px;
  }
  .rotating-phase-card .phase-item {
    padding: 20px;
  }
  .rotating-phase-card .phase-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .rotating-phase-card .phase-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .rotating-phase-card {
    bottom: 25%;
    width: 92%;
    min-height: 110px;
    padding: 18px;
  }
  
  .rotating-phase-card .phase-item {
    padding: 18px;
  }
  
  .rotating-phase-card .phase-title {
    font-size: 1.1rem;
  }
  
  .rotating-phase-card .phase-description {
    font-size: 0.9rem;
  }
}

/* Desktop: Horizontal stoplight-style phase indicator */
@media (min-width: 901px) {
  .phase-explanations {
    display: none; /* Hide original explanations */
  }
  
  /* Hide mobile rotating card on desktop */
  .rotating-phase-card {
    display: none !important;
  }
  
  /* Hide mobile carousel on desktop */
  .phase-carousel-section {
    display: none !important;
  }
  
  /* Create desktop horizontal phase indicator */
  .desktop-phase-indicator {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
  background: rgba(9, 10, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    pointer-events: none;
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
  }
  
  .desktop-phase-indicator.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  .desktop-phase-item {
    flex: 1;
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .desktop-phase-item.active {
    opacity: 1;
  }
  
  .desktop-phase-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #05B0F0;
    margin: 0 0 8px 0;
    line-height: 1.3;
  }
  
  .desktop-phase-item p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    color: #bdbdbd;
    line-height: 1.4;
    margin: 0;
  }
  
  /* Separator lines between phases */
  .desktop-phase-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .desktop-phase-item {
    position: relative;
  }
}

/* Mobile: Fix positioning to keep cards in same location */
@media (max-width: 900px) {
  .phase-explanations {
    display: none;
  }
  
  /* Hide desktop indicator on mobile */
  .desktop-phase-indicator {
    display: none !important;
  }
  
  /* Fix mobile rotating card position to match carousel position */
  .rotating-phase-card {
    bottom: 20% !important; /* Match carousel position */
  }
  
  /* Ensure carousel appears in same position */
  .phase-carousel-section {
    top: 75% !important; /* Match rotating card position */
  }
}

@media (max-width: 768px) {
  .rotating-phase-card {
    bottom: 25% !important;
  }
  
  .phase-carousel-section {
    top: 78% !important;
  }
}

/* Phase Carousel Section - Swipable Cards like Philosophy Section */
.phase-carousel-section {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 960px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  /* Use same stage height approach as philosophy section */
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.phase-carousel-section.show {
  display: flex;
  opacity: 1;
}

/* Carousel dots - same as philosophy section */
.phase-carousel-section .carousel-dots {
  display: flex !important;
  justify-content: center;
  gap: 12px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  z-index: 2;
  pointer-events: auto;
}

.phase-carousel-section .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999999;
  transition: background 0.3s ease;
  cursor: pointer;
}

.phase-carousel-section .carousel-dot.active {
  background: #05B0F0;
}

/* Carousel container - same structure as philosophy */
.phase-carousel-container {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 20px;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-padding-inline: 20px;
}

.phase-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Spacers for proper centering */
.carousel-spacer {
  flex: 0 0 20px;
}

/* Individual carousel cards */
.phase-carousel-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  scroll-snap-align: center;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  min-height: 0;
  overflow: hidden;
  
  /* Glassmorphic styling */
  background: rgba(9, 10, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phase-carousel-card:hover {
  background: rgba(9, 10, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.phase-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #05B0F0;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.phase-card-description {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: #bdbdbd;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  .phase-carousel-section {
    top: 75%;
    width: 95%;
    height: 160px;
  }
  
  .phase-carousel-card {
    padding: 20px;
  }
  
  .phase-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .phase-card-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .phase-carousel-section {
    top: 78%;
    width: 92%;
    height: 140px;
  }
  
  .phase-carousel-card {
    padding: 18px;
  }
  
  .phase-card-title {
    font-size: 1.1rem;
  }
  
  .phase-card-description {
    font-size: 0.9rem;
  }
}

/* Hide old phase summary when carousel is active */
.phase-summary {
  display: none !important;
}

/* Responsive adjustments for summary */
@media (max-width: 900px) {
  .phase-summary {
    top: 75%;
  }
  .phase-summary-grid {
    grid-template-columns: 1fr;
  }
  .replay-btn {
    top: 66%;
  }
}
