/* Homepage Specific Styles */

/* ============================================
   NAVBAR SCROLL BEHAVIOR - Hidden initially
   ============================================ */
.app-header {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease;
}

.app-header.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hide navbar logo initially - hero logo takes over */
.app-header .header-logo {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-header.logo-visible .header-logo {
  opacity: 1;
}

/* ============================================
   MINI FROSTED GLASS HEADER - Small, rounded, disappears when main header shows
   ============================================ */
.mini-frosted-header {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 16px 40px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

.mini-frosted-header.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.mini-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.mini-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Titillium Web', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mini-nav-link:hover {
  color: #FFFFFF;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  /* Hide mini-frosted-header completely on mobile */
  .mini-frosted-header {
    display: none !important;
  }
  
  /* Mobile: Always show header, no hide/reveal on scroll */
  .app-header {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  
  /* Mobile: Show the logo in the header - always visible */
  .app-header .header-logo {
    display: block;
    opacity: 1 !important;
  }
  
  /* Mobile: Hide the hero logo */
  .hero-logo-container {
    display: none;
  }
  
  /* Mobile: Hero content starts 30px below navbar */
  .hero {
    padding-top: 100px; /* navbar height (70px) + 30px gap */
    align-items: flex-start;
    min-height: auto;
    padding-bottom: var(--spacing-xl);
  }
  
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }
  
  .hero-glass {
    margin-top: 20px;
    transform: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
  margin-top: -100px; /* Extend hero behind the hidden navbar space */
  padding-top: calc(var(--spacing-2xl) + 100px); /* Compensate for the margin */
}

/* ============================================
   HERO LOGO - Large logo above frosted glass card
   ============================================ */
.hero-logo-container {
  position: relative;
  z-index: 10;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  pointer-events: none;
  margin-bottom: 40px; /* More padding above the glass card */
  transform: translateY(-80px); /* Move up 80px */
  /* Animation - starts hidden, animates in FIRST */
  opacity: 0;
}

.hero-logo-container.animate-in {
  animation: logoFadeIn 0.8s ease-out forwards;
  animation-delay: 0s; /* Logo animates first */
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-110px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(-80px) scale(1);
  }
}

.hero-logo {
  width: 360px; /* 3x the navbar logo size (120px) - 50% bigger than 240px */
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transition: all 0.4s ease-out;
}

/* Hide hero logo when scrolled */
.hero-logo-container.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* ============================================
   LEARN ABOUT THE SCIENCE BUTTON
   ============================================ */
.hero-science-btn {
  position: absolute;
  bottom: 50px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(145deg, #2d5a47, #1a3d2e);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-family: 'Titillium Web', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  /* Animation - starts hidden, animates in last */
  opacity: 0;
  transform: translateY(20px);
}

.hero-science-btn.animate-in {
  animation: scienceBtnFadeIn 0.6s ease-out forwards;
  animation-delay: 2.5s; /* Last - after all other animations */
}

@keyframes scienceBtnFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-science-btn:hover {
  background: linear-gradient(145deg, #3a6b55, #234d3a);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-science-btn i {
  font-size: 1.2rem;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(3px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-left: 5%;
}

.hero-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-2xl) var(--spacing-3xl);
  max-width: 580px;
  text-align: left;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-80px); /* Move up 80px */
  /* Animation - glass card is completely hidden until animation starts */
  opacity: 0;
  visibility: hidden; /* Completely hidden until animation starts */
}

.hero-glass.animate-in {
  /* Animation includes visibility change so it stays hidden during delay */
  animation: glassCardFadeIn 0.6s ease-out both;
  animation-delay: 0.9s; /* After logo animation completes (0.8s) */
}

@keyframes glassCardFadeIn {
  0% {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-50px);
  }
  0.01% {
    visibility: visible;
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    visibility: visible;
    opacity: 1;
    transform: translateY(-80px);
  }
}

/* Hero glass content animations - each element animates sequentially */
.hero-glass h1 {
  color: #fff;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-size: clamp(32px, 4.5vw, 46px);
  /* Animation */
  opacity: 0;
  transform: translateY(20px);
}

.hero-glass.animate-in h1 {
  animation: contentFadeIn 0.5s ease-out both;
  animation-delay: 1.3s; /* After glass card (0.9s + 0.6s duration, starts a bit before it ends) */
}

.hero-glass p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.05rem;
  line-height: 1.6;
  /* Animation */
  opacity: 0;
  transform: translateY(20px);
}

.hero-glass.animate-in p.body-large {
  animation: contentFadeIn 0.5s ease-out both;
  animation-delay: 1.5s; /* After h1 */
}

.hero-glass.animate-in p:not(.body-large) {
  animation: contentFadeIn 0.5s ease-out both;
  animation-delay: 1.7s; /* After body-large */
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-glass p strong {
  font-weight: 700;
  font-size: 1.1em;
  color: #fff;
}

.hero-glass .body-large {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* App Store Buttons */
.app-store-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  height: 54px;
}

.store-button img {
  height: 100%;
  width: auto;
}

/* Google Play badge has extra padding, so we need to scale it up */
.store-button[aria-label="Get it on Google Play"],
.store-button.google-play-coming-soon {
  height: 80px;
  margin: -13px 0;
}

.store-button {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-button:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Smaller store buttons for pricing cards */
.pricing-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--spacing-lg);
  align-items: center;
}

.store-button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  height: 44px;
}

.store-button-small img {
  height: 100%;
  width: auto;
}

/* Google Play badge has extra padding */
.store-button-small[aria-label="Get it on Google Play"],
.store-button-small.google-play-coming-soon {
  height: 65px;
  margin: -10px 0;
}

.store-button-small:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--spacing-lg);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  padding: var(--spacing-3xl);
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 24px;
  box-shadow: 
    12px 12px 32px rgba(180, 165, 140, 0.4),
    -10px -10px 24px rgba(255, 252, 245, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-on-surface);
  box-shadow: 
    4px 4px 8px rgba(180, 165, 140, 0.25),
    -3px -3px 6px rgba(255, 255, 255, 0.5);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
  box-shadow: 
    6px 6px 12px rgba(180, 165, 140, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.6);
}

.modal-close i {
  font-size: 24px;
}

.modal-content {
  text-align: center;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-green-flat) 0%, var(--color-seafoam-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    8px 8px 16px rgba(80, 155, 83, 0.3),
    -6px -6px 12px rgba(255, 255, 255, 0.5);
}

.modal-icon i {
  font-size: 40px;
  color: white;
}

.modal-title {
  font-size: clamp(12px, 3vw, 24px);
  font-weight: 700;
  color: var(--color-on-surface);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.modal-message {
  font-size: 16px;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.modal-message strong {
  color: var(--color-on-surface);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.modal-actions .store-button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

@media (max-width: 768px) {
  .modal-container {
    padding: var(--spacing-xl);
    margin: var(--spacing-md);
  }
  
  .modal-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-lg);
  }
  
  .modal-icon i {
    font-size: 32px;
  }
  
  .modal-title {
    font-size: 22px;
  }
  
  .modal-message {
    font-size: 15px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .glass-button {
    width: 100%;
    justify-content: center;
  }
}

.brain-visualization {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.brain-svg {
  width: 100%;
  height: 100%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ============================================
   SLIDESHOW SECTION - Full-screen animated slides
   TEMPORARILY: Removed sticky behavior for debugging
   ============================================ */

/* Wrapper - exact viewport height, no extra space */
.slideshow-scroll-wrapper {
  position: relative;
  background: #000;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slideshow-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 580px;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #000;
  z-index: 10;
}

@media (min-width: 1024px) {
  .slideshow-section {
    min-height: 630px;
  }
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  /* Enable horizontal swipe - we handle vertical scroll in JS */
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Ensure touch events register */
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.slideshow-container:active {
  cursor: grabbing;
}

/* Slides Wrapper - MUST have explicit height */
.slides-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

/* Individual Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  background: #000; /* Ensure black background */
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Ensure active slide media is visible */
.slide.active .slide-media {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* FORCE all images in active slides to be visible */
.slide.active .slide-image {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 5 !important;
}

.slide.active .slide-video {
  opacity: 0;
  visibility: visible;
}

/* Slide Media (Video/Image) */
.slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 1;
}

.slide-video,
.slide-image,
.slide-desktop-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: cover;
}

/* Video - hidden on desktop, shown on mobile when playing */
.slide-video {
  z-index: 2;
  display: none; /* Hidden on desktop by default */
}

/* Fallback image - ALWAYS visible as base layer */
.slide-image {
  z-index: 1;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Desktop image - hidden by default, shown on desktop */
.slide-desktop-image {
  z-index: 3;
  display: none;
}

/* Desktop: Show images */
@media (min-width: 1024px) {
  .slide-desktop-image {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Show fallback image if desktop image fails */
  .slide-image {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
  }
  
  .slide-video {
    display: none;
  }
  
  .slide-content {
    padding: 0 140px 130px;
    max-width: 1400px;
  }
  
  .slide-bottom-content {
    max-width: 850px;
  }
  
  .slide-title {
    font-size: clamp(38px, 4vw, 56px);
    margin-bottom: 20px;
  }
  
  .slide-description {
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.55;
  }
  
  .slide-header-main {
    font-size: clamp(90px, 10vw, 160px);
  }
  
  .slide-header-sub {
    font-size: clamp(80px, 9vw, 140px);
    margin-left: 32px;
    -webkit-text-stroke: 3.5px #fff;
  }
  
  .slide-top-title {
    top: 100px;
    left: 140px;
    right: 140px;
  }
  
  /* Right positioning for desktop */
  .slide-content-right {
    align-items: flex-end;
  }
  
  .slide-content-right .slide-bottom-content {
    text-align: right;
    max-width: 700px;
  }
  
  .slide-top-title.slide-position-right {
    left: auto;
    right: 140px;
  }
  
  /* Center positioning for desktop */
  .slide-content-center .slide-bottom-content {
    max-width: 900px;
    text-align: center;
  }
}

/* Gradient Overlays */
/* Mobile: Bottom-to-top gradient for all slides */
.slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(45, 35, 25, 0.75) 0%,
    rgba(45, 35, 25, 0.6) 20%,
    rgba(45, 35, 25, 0.4) 40%,
    rgba(45, 35, 25, 0.2) 55%,
    rgba(45, 35, 25, 0.05) 70%,
    transparent 85%
  );
  z-index: 4;
  pointer-events: none;
}

/* Mobile: Right class has same bottom gradient */
.slide-gradient-right {
  background: linear-gradient(
    to top,
    rgba(45, 35, 25, 0.95) 0%,
    rgba(45, 35, 25, 0.85) 20%,
    rgba(45, 35, 25, 0.6) 40%,
    rgba(45, 35, 25, 0.3) 55%,
    rgba(45, 35, 25, 0.1) 70%,
    transparent 85%
  );
}

/* Top gradient overlay for title readability */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(30, 25, 20, 0.8) 0%,
    rgba(30, 25, 20, 0.6) 30%,
    rgba(30, 25, 20, 0.35) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Desktop: Horizontal gradients based on text position */
@media (min-width: 1024px) {
  /* Left-aligned content: gradient from left */
  .slide-gradient {
  background: linear-gradient(
      to right,
      rgba(45, 35, 25, 0.95) 0%,
      rgba(45, 35, 25, 0.9) 20%,
      rgba(45, 35, 25, 0.7) 40%,
      rgba(45, 35, 25, 0.4) 55%,
      rgba(45, 35, 25, 0.15) 70%,
      transparent 85%
    );
  }
  
  /* Right-aligned content: gradient from right */
  .slide-gradient-right {
    background: linear-gradient(
      to left,
      rgba(45, 35, 25, 0.95) 0%,
      rgba(45, 35, 25, 0.9) 20%,
      rgba(45, 35, 25, 0.7) 40%,
      rgba(45, 35, 25, 0.4) 55%,
      rgba(45, 35, 25, 0.15) 70%,
      transparent 85%
    );
  }
  
  /* Desktop: top gradient is subtler since text is larger */
  .slide::before {
    height: 50%;
    background: linear-gradient(
      to bottom,
      rgba(30, 25, 20, 0.7) 0%,
      rgba(30, 25, 20, 0.5) 35%,
      rgba(30, 25, 20, 0.25) 65%,
      transparent 100%
    );
  }
}

/* Slide Content */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 100px;
  z-index: 5;
  color: #fff;
  box-sizing: border-box;
}

/* Top Title Section (Affirmation/Manifesting headers) */
/* Positioned relative to .slide not .slide-content */
.slide-top-title {
  position: absolute;
  top: 120px;
  left: 48px;
  right: 48px;
  padding-top: 0;
  margin-bottom: 0;
  z-index: 15;
}

.slide-title-line {
  display: none;
}

.slide-header-main {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(60px, 14vw, 120px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  padding-bottom: 0.05em;
  /* Gradient text: strong fade from transparent at top to white at bottom */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  opacity: 0;
  transform: translateY(-30px);
}

.slide.active .slide-header-main {
  animation: slideDown 0.8s ease-out 0.2s forwards;
}

.slide-header-sub {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(50px, 12vw, 100px);
  font-weight: 700;
  font-style: italic;
  line-height: 0.85;
  margin: 0;
  margin-left: 24px;
  /* Outlined/hollow text - stroke only, transparent fill */
  color: transparent;
  -webkit-text-stroke: 2.5px #fff;
  text-shadow: none;
  opacity: 0;
  transform: translateY(-30px);
}

.slide.active .slide-header-sub {
  animation: slideDown 0.8s ease-out 0.35s forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom Content */
.slide-bottom-content {
  max-width: 800px;
}

.slide-bottom-only {
  align-self: center;
  text-align: center;
  max-width: 900px;
  margin-top: auto;
}

/* Right-aligned content positioning */
.slide-content-right {
  align-items: flex-end;
  text-align: right;
}

.slide-content-right .slide-bottom-content {
  align-items: flex-end;
}

/* Center-aligned content positioning */
.slide-content-center {
  align-items: center;
  text-align: center;
}

.slide-content-center .slide-bottom-content {
  align-items: center;
  text-align: center;
}

/* Top title right positioning */
.slide-top-title.slide-position-right {
  left: auto;
  text-align: right;
}

/* Top title center positioning */
.slide-top-title.slide-position-center {
  text-align: center;
}

.slide-position-center .slide-header-sub {
  margin-left: 0;
}

.slide-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-title {
  animation: slideUp 0.7s ease-out 0.5s forwards;
}

.slide-title .text-bold {
  font-weight: 900;
}

.slide-description {
  font-family: 'Avenir', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.7;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-description {
  animation: slideUp 0.7s ease-out 0.65s forwards;
}

.slide-description strong {
  font-weight: 700;
  color: #fff;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 18;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.slide-indicator.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

@media (min-width: 1024px) {
  .slide-indicators {
    bottom: 50px;
    gap: 16px;
  }
  
  .slide-indicator {
    width: 14px;
    height: 14px;
  }
}

/* Navigation Arrows */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(60, 50, 40, 0.55);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 
    0 12px 40px rgba(60, 50, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.slide-nav:hover {
  background: rgba(60, 50, 40, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.slide-nav-prev {
  left: 32px;
}

.slide-nav-next {
  right: 32px;
}

@media (min-width: 1024px) {
  .slide-nav {
    width: 70px;
    height: 70px;
    font-size: 36px;
  }
  
  .slide-nav-prev {
    left: 48px;
  }
  
  .slide-nav-next {
    right: 48px;
  }
}

/* Responsive Slideshow */
@media (max-width: 1023px) {
  .slide-content {
    padding: 0 80px 120px;
  }
  
  .slide-nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .slide-nav-prev {
    left: 16px;
  }
  
  .slide-nav-next {
    right: 16px;
  }
  
  .slide-header-main {
    font-size: clamp(70px, 12vw, 100px);
  }
  
  .slide-header-sub {
    font-size: clamp(60px, 10vw, 90px);
    margin-left: 20px;
    -webkit-text-stroke: 2.5px #fff;
  }
  
  .slide-top-title {
    top: 80px;
    left: 80px;
    right: 80px;
  }
  
  /* Right positioning for tablet */
  .slide-top-title.slide-position-right {
    left: auto;
    right: 80px;
  }
}

@media (max-width: 767px) {
  .slideshow-section {
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
    min-height: 480px;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: #000;
  }
  
  /* Ensure slide media container is visible on mobile */
  .slide-media {
    z-index: 1;
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile: Show videos (they will play if supported) */
  .slide-video {
    display: block;
    z-index: 2;
    opacity: 0; /* Hidden until video plays */
    visibility: visible;
    transition: opacity 0.5s ease;
  }
  
  .slide-video.playing {
    opacity: 1 !important; /* Show when playing */
    z-index: 10 !important; /* Above everything including image */
  }
  
  /* Image is ALWAYS visible as fallback - FORCE VISIBILITY */
  .slide-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important; /* Higher z-index to ensure visibility */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    background-color: #333; /* Fallback background if image fails */
  }
  
  /* Keep image visible behind video - video will overlay when playing */
  .slide-video.playing ~ .slide-image {
    z-index: 1 !important;
    /* Keep opacity 1 so image shows if video fails */
  }
  
  .slide-desktop-image {
    display: none !important; /* Hide desktop image on mobile */
  }
  
  .slide-content {
    padding: 0 24px 100px;
    max-height: 100vh;
    max-height: 100dvh;
  }
  
  .slide-top-title {
    top: 90px;
    left: 24px;
    right: 24px;
  }
  
  .slide-header-main {
    font-size: clamp(48px, 14vw, 70px);
  }
  
  .slide-header-sub {
    font-size: clamp(42px, 12vw, 60px);
    margin-left: 12px;
    -webkit-text-stroke: 2px #fff;
  }
  
  .slide-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 16px;
  }
  
  .slide-description {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.6;
  }
  
  /* Nav buttons on mobile */
  .slide-nav {
    display: flex !important;
    width: 52px;
    height: 52px;
    font-size: 22px;
    background: rgba(60, 50, 40, 0.55);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 100;
    box-shadow: 
      0 12px 40px rgba(60, 50, 40, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  
  .slide-nav:hover,
  .slide-nav:active {
    background: rgba(60, 50, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
  }
  
  .slide-nav-prev {
    left: 12px;
  }
  
  .slide-nav-next {
    right: 12px;
  }
  
  .slide-indicators {
    bottom: 32px;
    z-index: 90;
  }
  
  .slide-indicator {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
  }
  
  .slide-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
  }
  
  .slide-bottom-content {
    max-width: 100%;
  }
  
  .slide-bottom-only {
    max-width: 100%;
    text-align: left;
    align-self: flex-start;
  }
  
  /* Mobile: Reset right positioning to left for readability */
  .slide-content-right {
    align-items: flex-start;
    text-align: left;
  }
  
  .slide-content-right .slide-bottom-content {
    text-align: left;
  }
  
  .slide-top-title.slide-position-right {
    left: 24px;
    right: 24px;
    text-align: left;
  }
  
  /* Mobile: Center positioning */
  .slide-content-center {
    align-items: flex-start;
    text-align: left;
  }
  
  .slide-content-center .slide-bottom-content {
    text-align: left;
  }
  
  .slide-top-title.slide-position-center {
    text-align: left;
  }
}

/* ============================================
   END SLIDESHOW SECTION
   ============================================ */

/* Differentiation Section */
.differentiation {
  background: #F5EDE0;
}

.differentiation-icon {
  font-size: 48px;
  color: var(--color-on-primary-container);
  margin-bottom: var(--spacing-md);
}

/* ==========================================
   BRAINWAVES STICKY CARD STACK SECTION
   ========================================== */

.brainwaves-stack-section {
  background: #EDE5D8;
  position: relative;
}

/* Intro Header - Sticky header that scrolls away with last card */
.brainwaves-intro {
  position: sticky;
  top: 70px; /* Below header */
  /* Must stay UNDER the navbar (.app-header is z-index: 1000 in design-system.css) */
  z-index: 950;
  padding: var(--spacing-md) 0 var(--spacing-sm); /* Title only - no subtitle visible when sticking */
  background: #EDE5D8;
  transition: all 0.3s ease-out;
}

/* When scrolling together, remove sticky so intro scrolls with cards */
.brainwaves-intro.scroll-together {
  position: relative;
  top: auto;
  margin-bottom: 0;
}

.brainwaves-intro h2 {
  color: var(--color-on-surface);
  margin-bottom: var(--spacing-sm);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brainwaves-intro p {
  color: var(--color-on-surface-variant);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Subtitle stays visible while cards are visible - NO FADE */

/* Stack Container */
.brainwave-stack-container {
  position: relative;
  padding-top: 15px; /* 15px margin below title */
}

/* Spacer after last card to ensure proper sticky behavior */
.brainwave-stack-spacer {
  height: 100vh; /* Increased to 100vh to match card scroll distance */
  width: 100%;
  pointer-events: none;
}

/* ============================================
   NEXT BRAINWAVE BUTTON
   ============================================ */
.brainwave-next-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(145deg, #2d5a47, #1a3d2e);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brainwave-next-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brainwave-next-btn:hover {
  background: linear-gradient(145deg, #3a6b55, #234d3a);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brainwave-next-btn i {
  font-size: 1.3rem;
  animation: bounce-down 2s ease-in-out infinite;
}

/* Individual Stack Cards - Neumorphic Green Style */
.brainwave-stack-card {
  position: sticky;
  top: 270px; /* Position from viewport top - moved down 10px */
  margin-bottom: 100vh; /* Scroll distance per card - SAME for ALL cards including last */
  padding: 0 5%;
  /* Must stay UNDER the navbar (.app-header is z-index: 1000). Keep stack ordering within the cards. */
  z-index: calc(960 + var(--card-index));
  will-change: transform;
}

/* Note: We intentionally avoid :last-of-type here because there is a spacer div after the last card.
   All cards already use the same margin-bottom for consistent scroll distance. */

/* When scrolling together, remove sticky so cards scroll with intro */
.brainwave-stack-card.scroll-together {
  position: relative;
  top: auto;
  margin-bottom: 0;
}

/* Card Inner Container - Solid Neumorphic Clay */
.brainwave-stack-inner {
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s ease;
}

.brainwave-stack-card:hover .brainwave-stack-inner {
  transform: translateY(-4px);
}

/* Visual Side (Wave Animation) */
.brainwave-visual {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
}

.brainwave-wave-canvas {
  position: absolute;
  top: 50px; /* Moved down 50px */
  left: 0;
  width: 100%;
  height: 100%;
}

.brainwave-hz {
  position: relative;
  z-index: 2;
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: translateY(-50px); /* Move up 50px */
}

/* Info Side */
.brainwave-info {
  flex: 1;
  padding: var(--spacing-2xl) var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brainwave-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 16px;
  margin-bottom: var(--spacing-sm);
  width: fit-content;
}

.brainwave-name {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  margin: 0 0 var(--spacing-xs) 0;
  line-height: 1;
}

.brainwave-subtitle {
  font-size: 1rem;
  color: var(--color-on-surface-variant);
  margin: 0 0 var(--spacing-lg) 0;
}

.brainwave-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

.brainwave-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  font-size: 0.95rem;
  color: var(--color-on-surface);
}

.brainwave-features li i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.brainwave-use-case {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.use-case-label {
  font-size: 0.8rem;
  color: var(--color-on-surface-variant);
}

.use-case-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-on-surface);
}

/* Card color variations - Green Shades (Dark to Light) */
/* Delta - Darkest Green */
.brainwave-stack-card[data-card="0"] .brainwave-stack-inner {
  background: linear-gradient(135deg, #1a3d2e 0%, #142e22 100%);
  box-shadow: 
    12px 12px 30px rgba(180, 165, 140, 0.35),
    -6px -6px 20px rgba(255, 252, 245, 0.5);
}
.brainwave-stack-card[data-card="0"] .brainwave-visual {
  background: linear-gradient(135deg, #234d3a 0%, #1a3d2e 100%);
}
.brainwave-stack-card[data-card="0"] .brainwave-hz {
  color: rgba(255, 255, 255, 0.12);
}
.brainwave-stack-card[data-card="0"] .brainwave-info {
  background: transparent;
}
.brainwave-stack-card[data-card="0"] .brainwave-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #a8e6cf;
}
.brainwave-stack-card[data-card="0"] .brainwave-name {
  color: #fff;
}
.brainwave-stack-card[data-card="0"] .brainwave-subtitle,
.brainwave-stack-card[data-card="0"] .brainwave-features li {
  color: rgba(255, 255, 255, 0.9);
}
.brainwave-stack-card[data-card="0"] .brainwave-features li i {
  color: #7dd3a8;
}
.brainwave-stack-card[data-card="0"] .use-case-label {
  color: rgba(255, 255, 255, 0.5);
}
.brainwave-stack-card[data-card="0"] .use-case-value {
  color: #fff;
}
.brainwave-stack-card[data-card="0"] .brainwave-use-case {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* Theta - Dark Green */
.brainwave-stack-card[data-card="1"] .brainwave-stack-inner {
  background: linear-gradient(135deg, #2d5a47 0%, #234d3a 100%);
  box-shadow: 
    12px 12px 30px rgba(180, 165, 140, 0.35),
    -6px -6px 20px rgba(255, 252, 245, 0.5);
}
.brainwave-stack-card[data-card="1"] .brainwave-visual {
  background: linear-gradient(135deg, #3a6b55 0%, #2d5a47 100%);
}
.brainwave-stack-card[data-card="1"] .brainwave-hz {
  color: rgba(255, 255, 255, 0.12);
}
.brainwave-stack-card[data-card="1"] .brainwave-info {
  background: transparent;
}
.brainwave-stack-card[data-card="1"] .brainwave-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #b8f0d8;
}
.brainwave-stack-card[data-card="1"] .brainwave-name {
  color: #fff;
}
.brainwave-stack-card[data-card="1"] .brainwave-subtitle,
.brainwave-stack-card[data-card="1"] .brainwave-features li {
  color: rgba(255, 255, 255, 0.9);
}
.brainwave-stack-card[data-card="1"] .brainwave-features li i {
  color: #8de4bc;
}
.brainwave-stack-card[data-card="1"] .use-case-label {
  color: rgba(255, 255, 255, 0.5);
}
.brainwave-stack-card[data-card="1"] .use-case-value {
  color: #fff;
}
.brainwave-stack-card[data-card="1"] .brainwave-use-case {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* Alpha - Light Green with Dark Text */
.brainwave-stack-card[data-card="2"] .brainwave-stack-inner {
  background: linear-gradient(135deg, #a8d8b8 0%, #8cc9a0 100%);
  box-shadow: 
    12px 12px 30px rgba(180, 165, 140, 0.35),
    -6px -6px 20px rgba(255, 252, 245, 0.5);
}
.brainwave-stack-card[data-card="2"] .brainwave-visual {
  background: linear-gradient(135deg, #b8e4c8 0%, #a8d8b8 100%);
}
.brainwave-stack-card[data-card="2"] .brainwave-hz {
  color: rgba(20, 60, 40, 0.12);
}
.brainwave-stack-card[data-card="2"] .brainwave-info {
  background: transparent;
}
.brainwave-stack-card[data-card="2"] .brainwave-tag {
  background: rgba(20, 60, 40, 0.15);
  color: #1a4d32;
}
.brainwave-stack-card[data-card="2"] .brainwave-name {
  color: #0f3d28;
}
.brainwave-stack-card[data-card="2"] .brainwave-subtitle,
.brainwave-stack-card[data-card="2"] .brainwave-features li {
  color: rgba(15, 61, 40, 0.9);
}
.brainwave-stack-card[data-card="2"] .brainwave-features li i {
  color: #1a5a3a;
}
.brainwave-stack-card[data-card="2"] .use-case-label {
  color: rgba(15, 61, 40, 0.6);
}
.brainwave-stack-card[data-card="2"] .use-case-value {
  color: #0f3d28;
}
.brainwave-stack-card[data-card="2"] .brainwave-use-case {
  border-top-color: rgba(20, 60, 40, 0.2);
}

/* Beta - Lightest Green with Dark Text */
.brainwave-stack-card[data-card="3"] .brainwave-stack-inner {
  background: linear-gradient(135deg, #d4f0dc 0%, #c0e8cc 100%);
  box-shadow: 
    12px 12px 30px rgba(180, 165, 140, 0.35),
    -6px -6px 20px rgba(255, 252, 245, 0.5);
}
.brainwave-stack-card[data-card="3"] .brainwave-visual {
  background: linear-gradient(135deg, #e0f5e6 0%, #d4f0dc 100%);
}
.brainwave-stack-card[data-card="3"] .brainwave-hz {
  color: rgba(20, 60, 40, 0.1);
}
.brainwave-stack-card[data-card="3"] .brainwave-info {
  background: transparent;
}
.brainwave-stack-card[data-card="3"] .brainwave-tag {
  background: rgba(20, 60, 40, 0.12);
  color: #1a4d32;
}
.brainwave-stack-card[data-card="3"] .brainwave-name {
  color: #0a3020;
}
.brainwave-stack-card[data-card="3"] .brainwave-subtitle,
.brainwave-stack-card[data-card="3"] .brainwave-features li {
  color: rgba(10, 48, 32, 0.85);
}
.brainwave-stack-card[data-card="3"] .brainwave-features li i {
  color: #155a38;
}
.brainwave-stack-card[data-card="3"] .use-case-label {
  color: rgba(10, 48, 32, 0.55);
}
.brainwave-stack-card[data-card="3"] .use-case-value {
  color: #0a3020;
}
.brainwave-stack-card[data-card="3"] .brainwave-use-case {
  border-top-color: rgba(20, 60, 40, 0.15);
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .brainwave-stack-inner {
    flex-direction: column;
    border-radius: 28px;
  }
  
  .brainwave-visual {
    flex: 0 0 180px;
    min-height: 180px;
  }
  
  .brainwave-info {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .brainwave-name {
    font-size: clamp(32px, 7vw, 44px);
  }
  
  /* KEEP margin-bottom: 100vh for sticky to work - do NOT reduce */
}

@media (max-width: 767px) {
  .brainwave-stack-card {
    top: 190px; /* Moved down 40px */
    padding: 0 var(--spacing-md);
    /* KEEP margin-bottom: 100vh for sticky to work - do NOT reduce */
  }
  
  .brainwave-stack-inner {
    border-radius: 24px;
  }
  
  .brainwave-visual {
    flex: 0 0 140px;
    min-height: 140px;
  }
  
  .brainwave-hz {
    font-size: clamp(28px, 10vw, 48px);
  }
  
  .brainwave-info {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .brainwave-name {
    font-size: clamp(26px, 8vw, 36px);
  }
  
  .brainwave-subtitle {
    font-size: 0.9rem;
  }
  
  .brainwave-features li {
    font-size: 0.85rem;
  }
}

/* Legacy brainwave styles (keeping for reference) */
.brainwaves {
  background: #EDE5D8;
}

.brainwave-card {
  text-align: center;
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 32px 24px;
  border: none;
  box-shadow: 
    10px 10px 25px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
}

.brainwave-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-4px);
}

.brainwave-frequency {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-on-primary-container);
  margin-bottom: var(--spacing-sm);
}

.brainwave-benefits {
  list-style: none;
  text-align: left;
  margin: var(--spacing-md) 0;
  padding-left: 0;
}

.brainwave-benefits li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--color-on-surface-variant);
}

.brainwave-benefits li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-on-primary-container);
  font-weight: bold;
}

.differentiation .card ul {
  list-style: none;
  margin-top: var(--spacing-md);
}

.differentiation .card ul li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
}

.differentiation .card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Features Section */
.features {
  background: #EDE5D8;
}

.feature-card {
  text-align: center;
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 36px 28px;
  border: none;
  box-shadow: 
    10px 10px 25px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
}

.feature-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 48px;
  color: var(--color-on-primary-container);
  margin-bottom: var(--spacing-md);
  /* Soft icon glow */
  filter: drop-shadow(0 2px 4px rgba(42, 86, 72, 0.15));
}

.feature-card h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-on-primary-container);
}

/* Modalities Section */
.modalities {
  background: #F5EDE0;
}

.modality-card {
  text-align: center;
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 36px 28px;
  border: none;
  box-shadow: 
    10px 10px 25px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
}

.modality-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-6px);
}

.modality-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  color: var(--color-on-primary-container);
  filter: drop-shadow(0 2px 4px rgba(42, 86, 72, 0.15));
}

.modality-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-on-primary-container);
}

/* Goals Section */
.goals {
  background: #EDE5D8;
  padding-top: 60px;
  position: relative;
  z-index: 999; /* Below navbar (1000), above modality cards (900) */
  margin-top: calc(-100vh + 70px); /* Pull up to overlap last modality's scroll space */
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

@media (max-width: 1023px) {
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .goals-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.goal-card {
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 32px 28px;
  border: none;
  box-shadow: 
    10px 10px 24px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.goal-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-6px);
}

.goal-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.15), rgba(42, 86, 72, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  box-shadow: 
    inset 2px 2px 6px rgba(255, 255, 255, 0.5),
    inset -2px -2px 6px rgba(42, 86, 72, 0.1);
}

.goal-icon i {
  font-size: 2.5rem;
  color: var(--color-on-primary-container);
  filter: drop-shadow(0 2px 4px rgba(42, 86, 72, 0.2));
}

.goal-card h4 {
  color: var(--color-on-surface);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.goal-card p {
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Goals Search Bar */
.goals-search-wrapper {
  position: sticky;
  top: 92px; /* 80px navbar + 12px margin */
  z-index: 100;
  margin: var(--spacing-4xl) auto var(--spacing-xl);
  max-width: 600px;
}

.goals-search-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.goals-search-glass:focus-within {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.goals-search-icon {
  font-size: 1.5rem;
  color: var(--color-on-surface-variant);
  flex-shrink: 0;
}

.goals-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-on-surface);
  outline: none;
  font-family: inherit;
}

.goals-search-input::placeholder {
  color: var(--color-on-surface-variant);
  opacity: 0.6;
}

.goals-search-clear {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(42, 86, 72, 0.1);
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.goals-search-clear:hover {
  background: rgba(42, 86, 72, 0.2);
  transform: scale(1.1);
}

.goals-search-clear i {
  font-size: 1.2rem;
}

/* Goals Container */
.goals-container {
  margin-top: var(--spacing-xl);
}

.goals-loading,
.goals-error {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--color-on-surface-variant);
}

/* Goals Categories Grid */
.goals-categories-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Goal Category Card */
.goal-category-card {
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 0;
  border: none;
  box-shadow: 
    10px 10px 24px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

.goal-category-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
}

/* Goal Category Header */
.goal-category-header {
  display: flex;
  align-items: center;
  padding: 32px 28px;
  cursor: pointer;
  gap: var(--spacing-lg);
  transition: all 0.2s ease;
  position: relative;
}

.goal-category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(42, 86, 72, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.goal-category-header:hover {
  background-color: rgba(42, 86, 72, 0.03);
}

.goal-category-header:hover::after {
  opacity: 1;
}

.goal-category-card.expanded .goal-category-header::after {
  opacity: 1;
}

.goal-category-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.15), rgba(42, 86, 72, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 2px 2px 6px rgba(255, 255, 255, 0.5),
    inset -2px -2px 6px rgba(42, 86, 72, 0.1);
}

.goal-category-icon i {
  font-size: 2.5rem;
  color: var(--color-on-primary-container);
  filter: drop-shadow(0 2px 4px rgba(42, 86, 72, 0.2));
  display: block;
  line-height: 1;
}

.goal-category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.goal-category-info h4 {
  color: var(--color-on-surface);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.goal-count {
  color: var(--color-on-surface-variant);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-count::before {
  content: '→';
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.goal-category-header:hover .goal-count::before {
  transform: translateX(3px);
  opacity: 0.8;
}

.goal-category-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.1), rgba(42, 86, 72, 0.05));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-on-primary-container);
  position: relative;
}

.goal-category-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.2), rgba(42, 86, 72, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.goal-category-toggle:hover {
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.15), rgba(42, 86, 72, 0.08));
  transform: scale(1.1);
}

.goal-category-toggle:hover::before {
  opacity: 1;
}

.goal-category-toggle i {
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounce-hint 2s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.goal-category-card.expanded .goal-category-toggle i {
  transform: rotate(180deg);
  animation: none;
}

.goal-category-card.expanded .goal-category-toggle:hover i {
  transform: rotate(180deg) scale(1.1);
}

/* Goal Category Content */
.goal-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 28px;
}

.goal-category-card.expanded .goal-category-content {
  max-height: 5000px;
  padding: 0 28px 32px 28px;
}

/* Goal Items Grid */
.goal-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  padding-top: var(--spacing-xl);
}

@media (max-width: 1023px) {
  .goal-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
  }
}

@media (max-width: 640px) {
  .goal-items-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Goal Item */
.goal-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    inset 2px 2px 8px rgba(255, 255, 255, 0.8),
    inset -2px -2px 8px rgba(180, 165, 140, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.goal-item:hover {
  box-shadow: 
    inset 2px 2px 10px rgba(255, 255, 255, 0.9),
    inset -2px -2px 10px rgba(180, 165, 140, 0.3),
    4px 4px 12px rgba(180, 165, 140, 0.2);
  transform: translateY(-2px);
}

.goal-item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(42, 86, 72, 0.1), rgba(42, 86, 72, 0.05));
  box-shadow: 
    4px 4px 12px rgba(180, 165, 140, 0.2),
    -2px -2px 8px rgba(255, 255, 255, 0.5);
}

.goal-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.goal-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.goal-item-info h5 {
  color: var(--color-on-surface);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.goal-item-info p {
  color: var(--color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Custom Goal CTA Section */
.custom-goal-cta-content {
  max-width: 800px;
  margin: var(--spacing-4xl) auto 0;
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-3xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(42, 86, 72, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.custom-goal-cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-xl);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(42, 86, 72, 0.2), rgba(42, 86, 72, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    8px 8px 20px rgba(42, 86, 72, 0.2),
    -4px -4px 12px rgba(255, 255, 255, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      8px 8px 20px rgba(42, 86, 72, 0.2),
      -4px -4px 12px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 
      12px 12px 30px rgba(42, 86, 72, 0.3),
      -6px -6px 18px rgba(255, 255, 255, 0.7);
  }
}

.custom-goal-cta-icon i {
  font-size: 3rem;
  color: var(--color-on-primary-container);
  filter: drop-shadow(0 2px 8px rgba(42, 86, 72, 0.3));
}

.custom-goal-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-on-surface);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.custom-goal-cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-on-surface-variant);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.custom-goal-cta-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-on-surface);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.custom-goal-cta-description strong {
  color: var(--color-on-primary-container);
  font-weight: 700;
}

.custom-goal-cta-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.custom-goal-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-on-surface);
  font-size: 0.95rem;
  font-weight: 500;
}

.custom-goal-feature i {
  font-size: 1.25rem;
  color: var(--color-on-primary-container);
  filter: drop-shadow(0 1px 3px rgba(42, 86, 72, 0.2));
}

/* Search no results */
.goals-search-no-results {
  text-align: center;
  padding: var(--spacing-4xl);
  color: var(--color-on-surface-variant);
}

.goals-search-no-results i {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.5;
}

@media (max-width: 767px) {
  .goals-search-wrapper {
    top: 82px; /* 60px navbar + 12px margin */
    margin: var(--spacing-3xl) auto var(--spacing-lg);
  }
  
  .goals-search-glass {
    padding: 14px 20px;
  }
  
  .custom-goal-cta-content {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-3xl) var(--spacing-lg);
  }
  
  .custom-goal-cta-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-lg);
  }
  
  .custom-goal-cta-icon i {
    font-size: 2.5rem;
  }
  
  .custom-goal-cta h3 {
    font-size: 1.5rem;
  }
  
  .custom-goal-cta-subtitle {
    font-size: 1.1rem;
  }
  
  .custom-goal-cta-description {
    font-size: 0.95rem;
  }
  
  .custom-goal-cta-features {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
}

/* Testimonials Section */
.testimonials {
  background: #F5EDE0;
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
}

.testimonials-track {
  overflow: hidden;
  padding: 20px 15px 35px; /* Space for shadows */
  margin: -20px -15px -35px; /* Compensate for padding */
}

.testimonials-carousel {
  display: flex;
  gap: var(--spacing-xl);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.333% - var(--spacing-xl) * 2 / 3);
  min-width: calc(33.333% - var(--spacing-xl) * 2 / 3);
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 32px 28px;
  border: none;
  box-shadow: 
    10px 10px 25px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: auto;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-background);
}

.testimonial-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(42, 86, 72, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonial Navigation - Clay Circular Buttons */
.testimonial-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 10;
  background: none;
  padding: 0 10px;
}

.testimonial-nav-prev {
  left: 0;
  padding-right: 20px;
}

.testimonial-nav-next {
  right: 0;
  padding-left: 20px;
}

.testimonial-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border: none;
  box-shadow: 
    6px 6px 16px rgba(180, 165, 140, 0.4),
    -4px -4px 12px rgba(255, 252, 245, 0.6),
    inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
  box-shadow: 
    8px 8px 20px rgba(180, 165, 140, 0.45),
    -5px -5px 14px rgba(255, 252, 245, 0.7),
    inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.12);
}

.testimonial-nav-btn:active {
  box-shadow: 
    inset 3px 3px 8px rgba(180, 165, 140, 0.4),
    inset -2px -2px 6px rgba(255, 252, 245, 0.5);
}

.testimonial-nav-btn i {
  font-size: 24px;
  color: var(--color-on-primary-container);
}

/* Responsive Testimonials */
@media (max-width: 1023px) {
  .testimonial-card {
    flex: 0 0 calc(50% - var(--spacing-lg) / 2);
    min-width: calc(50% - var(--spacing-lg) / 2);
  }
  
  .testimonials-wrapper {
    padding: 0 60px;
  }
  
  .testimonial-nav-btn {
    width: 48px;
    height: 48px;
  }
  
  .testimonial-nav-btn i {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .testimonials-wrapper {
    padding: 0 50px;
  }
  
  .testimonial-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-nav-btn i {
  font-size: 18px;
  }
}

/* Pricing Section */
.pricing {
  background: #EDE5D8;
}

.pricing-card {
  text-align: center;
  position: relative;
  background: linear-gradient(145deg, #FAF5EC, #EDE5D6);
  border-radius: 28px;
  padding: 36px 28px;
  border: none;
  box-shadow: 
    10px 10px 25px rgba(180, 165, 140, 0.35),
    -6px -6px 16px rgba(255, 252, 245, 0.5);
  transition: all 0.35s ease;
}

.pricing-card:hover {
  box-shadow: 
    12px 12px 28px rgba(180, 165, 140, 0.4),
    -8px -8px 20px rgba(255, 252, 245, 0.6);
  transform: translateY(-6px);
}

.pricing-featured {
  background: linear-gradient(145deg, #F5EFE4, #E8E0D0);
  border: none;
  transform: scale(1.05);
  box-shadow: 
    12px 12px 30px rgba(180, 165, 140, 0.4),
    -8px -8px 22px rgba(255, 252, 245, 0.55);
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-on-primary-container);
  color: var(--color-background);
  padding: 4px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: var(--spacing-lg) 0;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.pricing-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 16px;
  color: var(--color-on-surface-variant);
  margin-left: var(--spacing-xs);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: var(--spacing-lg) 0;
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* FAQ Section */
.faq {
  background: var(--color-background);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--color-outline-variant);
  margin-bottom: var(--spacing-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-on-surface);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question i {
  transition: transform var(--transition-fast);
  color: var(--color-primary);
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer p {
  padding-bottom: var(--spacing-lg);
  color: var(--color-on-surface-variant);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* CTA Section */
.cta {
  background: var(--gradient-primary-dark);
  color: var(--color-on-primary-container);
}

.cta-content h2 {
  color: var(--color-on-primary-container);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  color: var(--color-on-primary-container);
  opacity: 0.9;
}

/* CTA Hero Section with Background Image */
.cta-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
  margin-bottom: 0;
  overflow: hidden;
}

.section.cta-hero {
  padding: 0 !important;
}

.cta-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cta-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
  z-index: 2;
}

.cta-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-xl);
  padding-bottom: var(--spacing-2xl);
}

.cta-hero-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xl) var(--spacing-2xl);
  max-width: 500px;
  text-align: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-hero-glass h3 {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--spacing-sm) 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-hero-glass p {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.5;
}

.cta-hero-glass .app-store-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

@media (max-width: 767px) {
  .cta-hero {
    min-height: 60vh;
  }
  
  .cta-hero-content {
    padding: var(--spacing-xl) var(--spacing-md);
    padding-bottom: var(--spacing-2xl);
  }
  
  .cta-hero-glass {
    padding: var(--spacing-lg) var(--spacing-xl);
    max-width: 90%;
  }
}

/* ==========================================
   MODALITIES PARALLAX SECTION
   ========================================== */

/* ==========================================
   MODALITIES - STICKY STACK SECTION
   Cards stack on top of each other like brainwaves
   ========================================== */

.modalities-parallax {
  position: relative;
  width: 100%;
  background: #EDE5D8; /* Match page background to fill gaps between sticky cards */
}

/* Spacer after last modality to ensure proper sticky behavior */
.modality-stack-spacer {
  height: 100vh;
  width: 100%;
  pointer-events: none;
}

.modality-section {
  /* Each modality is a fullscreen sticky container */
  position: sticky;
  top: 70px; /* Below header */
  margin-bottom: 100vh; /* Scroll distance per card */
  margin-top: -1px; /* Slight overlap to prevent gaps between cards */
  padding: 0;
  z-index: calc(900 + var(--modality-index, 0)); /* Stack ordering */
  will-change: transform;
}

/* First modality doesn't need negative margin */
.modality-section:first-child {
  margin-top: 0;
}

/* Set modality index CSS variables for z-index stacking */
/* Later cards need HIGHER z-index to appear on top of earlier cards */
.modality-section[data-modality="breathwork"] { --modality-index: 1; }
.modality-section[data-modality="sleep"] { --modality-index: 2; }
.modality-section[data-modality="meditation"] { --modality-index: 3; }
.modality-section[data-modality="affirmations"] { --modality-index: 4; }

/* Last modality keeps same margin for proper sticky behavior */
/* Goals section will overlap this space with negative margin */

/* The visible card container - Fullscreen */
.modality-sticky {
  position: relative;
  width: 100%;
  height: calc(100vh - 68px); /* Full viewport minus header, slightly taller to prevent gaps */
  min-height: calc(100vh - 68px);
  overflow: visible; /* Allow background to extend beyond for seamless transitions */
  display: flex;
  align-items: flex-start;
}

/* Background Image Layer - Image moved up 70px from bottom */
.modality-bg {
  position: absolute;
  top: -70px; /* Move image up 70px */
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center bottom;
  z-index: 1;
}

/* Dark overlay for readability */
.modality-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

/* Sine Wave Canvas Layer - Positioned behind brainwave badge, moved up 80px */
.sine-wave-canvas {
  position: absolute;
  bottom: 80px; /* Move up 80px */
  left: 0;
  width: 100%;
  height: 300px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

/* Move sine wave and brainwave badge up 200px for all modalities except the last one (affirmations) */
.modality-section:not([data-modality="affirmations"]) .sine-wave-canvas {
  bottom: 280px !important; /* 80px + 200px = 280px */
}

.modality-section:not([data-modality="affirmations"]) .modality-brainwave-badge {
  bottom: 230px !important; /* 30px + 200px = 230px */
}

/* Content Container - Aligned to top, 40px from top of screen */
.modality-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 40px;
  padding-top: 40px; /* 40px from top of screen */
  display: flex;
  align-items: flex-start; /* Align content to top */
  min-height: auto;
}

.modality-content-left {
  justify-content: flex-start;
}

.modality-content-right {
  justify-content: flex-end;
}

/* Frosted Glass Card Layer */
.modality-glass {
  background: rgba(60, 50, 40, 0.55);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: var(--spacing-xl) var(--spacing-2xl);
  max-width: 550px;
  box-shadow: 
    0 12px 40px rgba(60, 50, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Modality Section Title (similar to Affirmation Reprogramming) */
.modality-section-title {
  margin-bottom: var(--spacing-lg);
}

.modality-header-main {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  margin: 0;
  padding-bottom: 0.05em;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.modality-header-sub {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(30px, 7vw, 60px);
  font-weight: 700;
  font-style: italic;
  line-height: 0.9;
  margin: 0;
  margin-left: 10px;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Marketing Title (smaller) */
.modality-marketing-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); /* Even stronger shadow */
}

/* Text Group */
.modality-text-group {
  padding-top: var(--spacing-sm);
}

/* Legacy - keeping for backwards compatibility */
.modality-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Brainwave Badge Layer - Positioned in bottom of card */
.modality-brainwave-badge {
  position: absolute;
  bottom: 30px;
  z-index: 4;
}

.modality-brainwave-badge.brainwave-position-right {
  right: 40px;
}

.modality-brainwave-badge.brainwave-position-left {
  left: 40px;
}

.modality-brainwave-badge .card-clay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 48px;
  background: linear-gradient(
    145deg,
    rgba(42, 86, 72, 0.98) 0%,
    rgba(35, 72, 60, 1.0) 100%
  );
  border-radius: 24px;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.5),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modality-brainwave-badge .brainwave-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85); /* More visible */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.modality-brainwave-badge .brainwave-value {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Description Text */
.modality-description {
  font-size: 1.05rem; /* Slightly larger */
  color: #fff; /* Solid white for maximum readability */
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.modality-description strong {
  color: #fff;
  font-weight: 800; /* Thicker strong text */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Marketing Copy */
.modality-copy {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95); /* Even brighter */
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

.modality-copy strong {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Modality Next Button - Centered Down Arrow */
.modality-next-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); /* Darker background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modality-next-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modality-next-btn i {
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Modalities */
@media (max-width: 1023px) {
  .modality-section {
    top: 70px;
  }
  
  .modality-content {
    padding: 40px 20px calc(40px + 60px) 20px; /* Move content up 60px from bottom */
  }
  
  /* Explicitly override any combined selector rules - prevent centering */
  .modality-content-left,
  .modality-content-right {
    justify-content: flex-start !important;
  }
  
  .modality-content-left {
    justify-content: flex-start !important;
  }
  
  .modality-content-right {
    justify-content: flex-end !important;
  }
  
  .modality-glass {
    max-width: 550px; /* Keep same max-width as desktop, don't go full screen */
    padding: var(--spacing-2xl);
  }
  
  .modality-brainwave-badge {
    bottom: 20px;
  }
  
  .modality-brainwave-badge.brainwave-position-right {
    right: 20px;
  }
  
  .modality-brainwave-badge.brainwave-position-left {
    left: 20px;
  }
  
  .modality-brainwave-badge .card-clay {
    padding: 16px 24px;
  }
}

@media (max-width: 767px) {
  .modalities-parallax {
    background: #EDE5D8;
    padding-top: 0;
  }
  
  .modality-section {
    top: 60px;
    margin-bottom: 100vh;
    padding: 0;
  }

  .modality-sticky {
    height: calc(100vh - 60px);
  }
  
  .modality-content {
    padding: 24px 24px calc(24px + 60px) 24px; /* Move content up 60px from bottom */
  }
  
  .modality-glass {
    padding: var(--spacing-lg);
    max-width: 550px; /* Keep same max-width as desktop, don't go full screen */
  }
  
  .modality-next-btn {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
  }
  
  /* Show everything on mobile */
  .modality-bg,
  .modality-section .modality-bg {
    opacity: 1;
    transform: none;
  }
  
  .modality-glass,
  .modality-section .modality-glass {
    opacity: 1;
    transform: none;
    padding: var(--spacing-xl);
    border-radius: 24px;
  }
  
  .sine-wave-canvas,
  .modality-section .sine-wave-canvas {
    opacity: 1;
    transform: none;
  }
  
  .modality-brainwave-badge,
  .modality-section .modality-brainwave-badge {
    position: absolute !important;
    bottom: 100px !important;
    right: 16px !important;
    left: auto !important;
    top: auto !important;
    opacity: 1;
    transform: none;
    margin: 0 !important;
    display: block !important;
    justify-content: unset !important;
    width: fit-content !important;
    padding: 0 !important;
    z-index: 10;
  }
  
  /* First modality (breathwork) - badge on left */
  .modality-section[data-modality="breathwork"] .modality-brainwave-badge {
    left: 16px !important;
    right: auto !important;
  }
  
  .modality-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .modality-header-main {
    font-size: clamp(28px, 10vw, 48px);
  }
  
  .modality-header-sub {
    font-size: clamp(24px, 8vw, 40px);
    -webkit-text-stroke: 1px #fff;
  }
  
  .modality-marketing-title {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .modality-description {
    font-size: 0.95rem;
  }
  
  .modality-copy {
    font-size: 0.85rem;
  }
  
  .modality-brainwave-badge .card-clay {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 22px;
    background: rgba(26, 61, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .modality-brainwave-badge .brainwave-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }
  
  .modality-brainwave-badge .brainwave-value {
    font-size: 16px;
    font-weight: 700;
    color: #a8e6cf;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
}

/* ==========================================
   END MODALITIES PARALLAX SECTION
   ========================================== */

/* Responsive Design */
@media (max-width: 1023px) {
  .hero-container {
    align-items: flex-start;
    padding-left: var(--spacing-lg);
  }
  
  .hero-logo {
    width: 300px;
  }
  
  .hero-glass {
    margin-top: 20px;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: left;
  }

  .hero-glass .app-store-buttons {
    justify-content: flex-start;
  }

  .pricing-featured {
    transform: scale(1);
  }
  
  .hero-science-btn {
    right: 30px;
    bottom: 40px;
    padding: 14px 24px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    padding: 100px var(--spacing-sm) var(--spacing-2xl);
  }
  
  .hero-glass {
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 20px;
    margin-top: 20px;
  }
  
  .hero-glass h1 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
  }
  
  .app-store-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .store-button {
    height: 48px;
  }
  
  .store-button[aria-label="Get it on Google Play"],
  .store-button.google-play-coming-soon {
    height: 70px;
    margin: -11px 0;
  }

  .brain-visualization {
    max-width: 300px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Hero logo responsive */
  .hero-logo {
    width: 225px;
  }
  
  /* Learn About Science button responsive */
  .hero-science-btn {
    bottom: 30px;
    right: 20px;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  
  /* Next Brainwave button responsive */
  .brainwave-next-btn {
    bottom: 10px;
    right: 10px;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile: Small screens (up to 480px) */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px var(--spacing-md) var(--spacing-xl);
    margin-top: -70px;
    padding-top: calc(var(--spacing-xl) + 70px);
  }
  
  .hero-container {
    padding-left: 0;
  }
  
  .hero-logo-container {
    margin-bottom: 24px;
    transform: translateY(-40px);
  }
  
  .hero-logo {
    width: 180px;
  }
  
  @keyframes logoFadeIn {
    from {
      opacity: 0;
      transform: translateY(-60px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(-40px) scale(1);
    }
  }
  
  .hero-glass {
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: 16px;
    transform: translateY(-40px);
    margin-top: 20px;
    max-width: 100%;
  }
  
  @keyframes glassCardFadeIn {
    0% {
      visibility: hidden;
      opacity: 0;
      transform: translateY(-20px);
    }
    0.01% {
      visibility: visible;
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      visibility: visible;
      opacity: 1;
      transform: translateY(-40px);
    }
  }
  
  .hero-glass h1 {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-glass p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .hero-glass p.body-large {
    font-size: 1rem;
  }
  
  .hero-cta {
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .app-store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .store-button {
    height: 44px;
  }
  
  .store-button[aria-label="Get it on Google Play"],
  .store-button.google-play-coming-soon {
    height: 64px;
    margin: -8px 0;
  }
  
  /* Learn About Science button */
  .hero-science-btn {
    bottom: 20px;
    right: 16px;
    left: 16px;
    padding: 14px 20px;
    font-size: 0.85rem;
    border-radius: 40px;
    justify-content: center;
  }
  
  /* Brainwave Section - Keep sticky on mobile */
  .brainwaves-intro {
    position: sticky;
    top: 70px; /* Below navbar */
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 950;
    background: #EDE5D8;
  }
  
  .brainwaves-intro h2 {
    font-size: clamp(20px, 5vw, 26px);
    margin-bottom: var(--spacing-xs);
  }
  
  .brainwaves-intro p {
    font-size: 0.85rem;
    padding: 0;
    line-height: 1.4;
    margin-bottom: 0;
  }
  
  .brainwave-stack-card {
    top: 220px; /* Below sticky title/subtitle - moved down 40px */
    padding: 0 var(--spacing-sm);
    margin-bottom: 100vh; /* Keep scroll distance */
  }
  
  .brainwave-stack-inner {
    border-radius: 20px;
  }
  
  .brainwave-visual {
    flex: 0 0 120px;
    min-height: 120px;
  }
  
  .brainwave-hz {
    font-size: clamp(24px, 8vw, 36px);
    transform: translateY(-30px);
  }
  
  .brainwave-wave-canvas {
    top: 30px;
  }
  
  .brainwave-info {
    padding: var(--spacing-md);
  }
  
  .brainwave-tag {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
  
  .brainwave-name {
    font-size: clamp(22px, 6vw, 28px);
  }
  
  .brainwave-subtitle {
    font-size: 0.85rem;
  }
  
  .brainwave-features li {
    font-size: 0.8rem;
    padding: 4px 0;
  }
  
  .brainwave-features li i {
    font-size: 1rem;
    width: 20px;
  }
  
  .brainwave-use-case {
    padding-top: var(--spacing-sm);
  }
  
  .use-case-label,
  .use-case-value {
    font-size: 0.75rem;
  }
  
  /* Next Brainwave Button */
  .brainwave-next-btn {
    bottom: 8px;
    right: 8px;
    left: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    border-radius: 40px;
    justify-content: center;
  }
  
  /* ==========================================
     MODALITY SECTION - FULL SCREEN MOBILE REDESIGN
     Full viewport height with frosted glass overlay
     ========================================== */
  .modality-section {
    top: 70px; /* Below navbar - same as desktop */
    margin-bottom: 100vh; /* Ensure each card gets full scroll distance */
    background: transparent;
  }
  
  /* Full screen sticky container */
  .modality-sticky {
    position: sticky;
    top: 0; /* Sticky at top of viewport when section sticks */
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  
  /* Background image - Moved up 70px */
  .modality-bg {
    display: block !important;
    position: absolute !important;
    top: -70px !important; /* Move image up 70px */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    height: calc(100% + 70px) !important;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center bottom;
    border-radius: 0;
    z-index: 1;
  }
  
  /* Mobile-specific vertical images for each modality */
  .modality-section[data-modality="breathwork"] .modality-bg {
    background-image: url('../assets/images/modalities/meditating_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="sleep"] .modality-bg {
    background-image: url('../assets/images/modalities/sleeping_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="meditation"] .modality-bg {
    background-image: url('../assets/images/modalities/laying_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="affirmations"] .modality-bg {
    background-image: url('../assets/images/modalities/dishes_girl_vertical.png') !important;
  }
  
  /* Dark gradient overlay for readability */
  .modality-bg::after {
    content: '';
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 30%,
      transparent 50%,
      rgba(0, 0, 0, 0.3) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
  }
  
  /* Sine wave canvas - Moved up 80px behind brainwave badge */
  .sine-wave-canvas {
    position: absolute !important;
    bottom: 80px !important; /* Move up 80px */
    top: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 200px;
    opacity: 0.7;
    z-index: 3;
    background: transparent;
    transform: none;
  }
  
  /* Move sine wave and brainwave badge up 200px for all modalities except the last one (affirmations) */
  .modality-section:not([data-modality="affirmations"]) .sine-wave-canvas {
    bottom: 280px !important; /* 80px + 200px = 280px */
  }
  
  .modality-section:not([data-modality="affirmations"]) .modality-brainwave-badge {
    bottom: 230px !important; /* 30px + 200px = 230px (adjust based on original bottom value) */
  }
  
  /* Content wrapper - Frosted glass positioned 40px from top */
  .modality-content {
    position: absolute;
    top: 40px !important; /* 40px from top of screen */
    bottom: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 5;
    background: transparent;
  }
  
  .modality-content-left {
    justify-content: flex-start !important;
    padding-left: 16px;
    padding-right: 0;
  }
  
  .modality-content-right {
    justify-content: flex-end !important;
    padding-left: 0;
    padding-right: 16px;
  }
  
  /* Frosted glass overlay */
  .modality-glass {
    background: rgba(40, 35, 30, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 20px 20px 16px;
    margin: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  /* Title section - White text */
  .modality-section-title {
    margin-bottom: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .modality-header-main {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.5px;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #fff;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    display: block;
    width: 100%;
  }
  
  .modality-header-sub {
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    margin-left: 24px;
    margin-top: 2px;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    display: block;
  }
  
  /* Text content area */
  .modality-text-group {
    padding: 0;
  }
  
  /* Marketing title - Hide on mobile */
  .modality-marketing-title {
    display: none;
  }
  
  /* Description - White text */
  .modality-description {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Remove bold styling from description */
  .modality-description strong {
    font-weight: 400;
    color: inherit;
  }
  
  /* Hide long copy on mobile */
  .modality-copy {
    display: none;
  }
  
  /* Brainwave badge - Moved up 60px from bottom, frosted glass */
  .modality-brainwave-badge,
  .modality-section .modality-brainwave-badge {
    position: absolute !important;
    bottom: 160px !important; /* Moved up from 100px to 160px (60px higher) */
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: fit-content !important;
    padding: 0 !important;
    display: block !important;
    justify-content: unset !important;
    z-index: 10;
  }
  
  /* Move sine wave and brainwave badge up 200px for all modalities except the last one (affirmations) on mobile */
  .modality-section:not([data-modality="affirmations"]) .sine-wave-canvas {
    bottom: 280px !important; /* 80px + 200px = 280px */
  }
  
  .modality-section:not([data-modality="affirmations"]) .modality-brainwave-badge {
    bottom: 360px !important; /* 160px + 200px = 360px */
  }
  
  .modality-brainwave-badge .card-clay {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 22px;
    background: rgba(26, 61, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .modality-brainwave-badge .brainwave-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }
  
  .modality-brainwave-badge .brainwave-value {
    font-size: 16px;
    font-weight: 700;
    color: #a8e6cf;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Next button - Always visible, fixed at bottom, moved up 60px */
  .modality-next-btn {
    position: fixed !important;
    bottom: 84px !important; /* Moved up from 24px to 84px (60px higher) */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 20px;
    background: linear-gradient(145deg, #2d5a47, #1a3d2e);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .modality-next-btn:hover {
    background: linear-gradient(145deg, #3a6b55, #234d3a);
  }
  
  .modality-next-btn i {
    font-size: 22px;
  }
  
  /* Goals Section */
  .goals {
    padding-top: 40px;
  }
  
  .goals-grid {
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
  }
  
  .goal-card {
    padding: 20px;
    border-radius: 20px;
  }
  
  .goal-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: var(--spacing-md);
  }
  
  .goal-icon i {
    font-size: 2rem;
  }
  
  .goal-card h4 {
    font-size: 1rem;
  }
  
  .goal-card p {
    font-size: 0.85rem;
  }
  
  /* Goals Categories - Mobile */
  .goal-category-header {
    padding: 24px 20px;
    gap: var(--spacing-md);
  }
  
  .goal-category-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  
  .goal-category-icon i {
    font-size: 2rem;
  }
  
  .goal-category-info h4 {
    font-size: 1rem;
  }
  
  .goal-category-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .goal-category-content {
    padding: 0 20px;
  }
  
  .goal-category-card.expanded .goal-category-content {
    padding: 0 20px 24px 20px;
  }
  
  .goal-item {
    padding: 16px;
  }
  
  .goal-item-info h5 {
    font-size: 0.95rem;
  }
  
  .goal-item-info p {
    font-size: 0.8rem;
  }
  
  /* Slideshow Section - no sticky on small screens */
  .slideshow-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 430px;
  }
  
  .slide-content {
    padding: 0 50px 90px;
  }
  
  .slide-top-title {
    top: 20px;
    left: 50px;
    right: 50px;
  }
  
  /* Nav buttons on smallest mobile - centered in section */
  .slide-nav {
    display: flex;
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: rgba(60, 50, 40, 0.55);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 100;
    box-shadow: 
      0 12px 40px rgba(60, 50, 40, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  
  .slide-nav-prev {
    left: 8px;
  }
  
  .slide-nav-next {
    right: 8px;
  }
  
  .slide-header-main {
    font-size: clamp(36px, 12vw, 54px);
  }
  
  .slide-header-sub {
    font-size: clamp(32px, 10vw, 48px);
    margin-left: 8px;
    -webkit-text-stroke: 1.5px #fff;
  }
  
  .slide-title {
    font-size: clamp(20px, 5vw, 26px);
    margin-bottom: 12px;
  }
  
  .slide-description {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.5;
  }
  
  .slide-indicators {
    bottom: 24px;
    gap: 10px;
  }
  
  .slide-indicator {
    width: 10px;
    height: 10px;
  }
  
  /* Testimonials Section */
  .testimonials-wrapper {
    padding: 0 40px;
  }
  
  .testimonial-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .testimonial-quote {
    font-size: 0.9rem;
  }
  
  .testimonial-avatar-img {
    width: 48px;
    height: 48px;
  }
  
  .testimonial-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .testimonial-nav-btn i {
    font-size: 16px;
  }
  
  /* CTA Hero Section */
  .cta-hero {
    min-height: 50vh;
    min-height: 50dvh;
  }
  
  .cta-hero-content {
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
  }
  
  .cta-hero-glass {
    padding: var(--spacing-lg);
    max-width: 95%;
    border-radius: 20px;
  }
  
  .cta-hero-glass h3 {
    font-size: clamp(18px, 5vw, 24px);
  }
  
  .cta-hero-glass p {
    font-size: 0.9rem;
  }
  
  .cta-hero-glass .app-store-buttons {
    flex-direction: column;
    gap: 0;
  }
  
  .store-button-small {
    height: 40px;
  }
  
  .store-button-small[aria-label="Get it on Google Play"],
  .store-button-small.google-play-coming-soon {
    height: 58px;
    margin: -8px 0;
  }
}

/* Mobile: Medium screens (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-logo {
    width: 200px;
  }
  
  .hero-glass {
    padding: var(--spacing-xl) var(--spacing-lg);
    /* margin: var(--spacing-md) var(--spacing-sm) 0; */
    margin-top: 1ne20px;

  }
  
  .brainwave-stack-card {
    top: 230px; /* Give space for title and subtitle */
    padding: 0 var(--spacing-md);
  }
  
  .brainwave-visual {
    flex: 0 0 150px;
    min-height: 150px;
  }
  
  .slide-content {
    padding: 0 20px 100px;
  }
  
  .slide-top-title {
    top: 80px;
    left: 20px;
    right: 20px;
  }
  
  /* ==========================================
     MODALITY SECTION - MEDIUM MOBILE REDESIGN
     Same as small mobile for consistency
     ========================================== */
  .modality-section {
    top: 70px; /* Below navbar - same as desktop */
    margin-bottom: 100vh;
    background: transparent;
  }
  
  .modality-sticky {
    position: sticky;
    top: 0;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  
  /* Background image - Moved up 70px (small mobile) */
  .modality-bg {
    display: block !important;
    position: absolute !important;
    top: -70px !important; /* Move image up 70px */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    height: calc(100% + 70px) !important;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center bottom;
    border-radius: 0;
    z-index: 1;
  }
  
  .modality-section[data-modality="breathwork"] .modality-bg {
    background-image: url('../assets/images/modalities/meditating_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="sleep"] .modality-bg {
    background-image: url('../assets/images/modalities/sleeping_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="meditation"] .modality-bg {
    background-image: url('../assets/images/modalities/laying_girl_vertical.png') !important;
  }
  
  .modality-section[data-modality="affirmations"] .modality-bg {
    background-image: url('../assets/images/modalities/dishes_girl_vertical.png') !important;
  }
  
  .modality-bg::after {
    content: '';
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 30%,
      transparent 50%,
      rgba(0, 0, 0, 0.3) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
  }
  
  /* Sine wave canvas - Moved up 80px (small mobile) */
  .sine-wave-canvas {
    position: absolute !important;
    bottom: 80px !important; /* Move up 80px */
    top: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 180px;
    opacity: 0.7;
    z-index: 3;
    background: transparent;
    transform: none;
  }
  
  /* Move sine wave and brainwave badge up 200px for all modalities except the last one (affirmations) on small mobile */
  .modality-section:not([data-modality="affirmations"]) .sine-wave-canvas {
    bottom: 280px !important; /* 80px + 200px = 280px */
  }
  
  .modality-section:not([data-modality="affirmations"]) .modality-brainwave-badge {
    bottom: 360px !important; /* 160px + 200px = 360px (adjust based on original bottom value) */
  }
  
  /* Content wrapper - Frosted glass positioned 40px from top */
  .modality-content {
    position: absolute;
    top: 40px !important; /* 40px from top of screen */
    bottom: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 5;
    background: transparent;
  }
  
  .modality-content-left {
    justify-content: flex-start !important;
    padding-left: 16px;
    padding-right: 0;
  }
  
  .modality-content-right {
    justify-content: flex-end !important;
    padding-left: 0;
    padding-right: 16px;
  }
  
  .modality-glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: block;
    margin: 0;
  }
  
  .modality-section-title {
    margin-bottom: 6px;
    padding: 16px 16px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .modality-header-main {
    font-size: 32px;
    line-height: 1.1;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
  }
  
  .modality-header-sub {
    font-size: 28px;
    margin-left: 24px;
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: #fff;
    line-height: 1.1;
    font-style: italic;
    font-weight: 400;
  }
  
  .modality-text-group {
    padding: 0 16px 12px 16px;
  }
  
  .modality-marketing-title {
    display: none;
  }
  
  .modality-description {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 0;
    font-weight: 400;
  }
  
  .modality-copy {
    display: none;
  }
  
  .modality-brainwave-badge {
    position: absolute !important;
    bottom: 160px !important; /* Moved up from 100px to 160px (60px higher) */
    right: 12px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: fit-content !important;
    z-index: 10;
  }
  
  /* Move sine wave and brainwave badge up 200px for all modalities except the last one (affirmations) on small mobile */
  .modality-section:not([data-modality="affirmations"]) .sine-wave-canvas {
    bottom: 280px !important; /* 80px + 200px = 280px */
  }
  
  .modality-section:not([data-modality="affirmations"]) .modality-brainwave-badge {
    bottom: 360px !important; /* 160px + 200px = 360px */
  }
  
  .modality-brainwave-badge .card-clay {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 22px;
    background: rgba(26, 61, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .modality-brainwave-badge .brainwave-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }
  
  .modality-brainwave-badge .brainwave-value {
    font-size: 16px;
    font-weight: 700;
    color: #a8e6cf;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  
  .modality-next-btn {
    bottom: 76px !important; /* Moved up from 16px to 76px (60px higher) */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    font-size: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
  }
}

/* Tablet: (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-container {
    align-items: flex-start;
    padding-left: var(--spacing-xl);
    padding-top: 120px !important; /* Space from header */
  }
  
  .hero-glass {
    margin-top: 20px;
    text-align: left;
    max-width: 550px;
  }
  
  .hero-glass .app-store-buttons {
    justify-content: flex-start;
  }
  
  .brainwave-stack-card {
    top: 290px; /* Give space for title and subtitle */
  }
  
  /* Explicitly prevent centering - override any combined selectors */
  .modality-content-left,
  .modality-content-right {
    justify-content: flex-start !important;
  }
  
  .modality-content-left {
    justify-content: flex-start !important;
  }
  
  .modality-content-right {
    justify-content: flex-end !important;
  }
  
  /* Tablet-specific images for all modalities */
  .modality-section[data-modality="breathwork"] .modality-bg {
    background-image: url('../assets/images/modalities/meditating_tablet.png') !important;
  }
  
  .modality-section[data-modality="sleep"] .modality-bg {
    background-image: url('../assets/images/modalities/sleeping_tablet.png') !important;
  }
  
  .modality-section[data-modality="meditation"] .modality-bg {
    background-image: url('../assets/images/modalities/laying_tablet.png') !important;
  }
  
  .modality-section[data-modality="affirmations"] .modality-bg {
    background-image: url('../assets/images/modalities/dishes_tablet.png') !important;
  }
  
  /* Tablet-specific content and brainwave positioning */
  
  /* Ensure sine waves are visible on tablet */
  .sine-wave-canvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    top: 60px !important;
    bottom: auto !important;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 2;
  }
  
  /* Base brainwave badge position for tablet - 60px from top */
  .modality-brainwave-badge {
    top: 60px !important;
    bottom: auto !important;
  }
  
  /* Hypnosis (meditation): Content on right, brainwave on left, up 200px from base */
  .modality-section[data-modality="meditation"] .modality-content {
    justify-content: flex-end !important;
  }
  
  .modality-section[data-modality="meditation"] .modality-brainwave-badge {
    left: 40px !important;
    right: auto !important;
    top: 100px !important; /* Closer to top */
  }
  
  /* Sleep programming: Brainwave closer to top */
  .modality-section[data-modality="sleep"] .modality-brainwave-badge {
    top: 100px !important; /* Closer to top */
  }
  
  /* Suggestive breathwork: Keep at base position (60px from top) */
  .modality-section[data-modality="breathwork"] .modality-brainwave-badge {
    top: 60px !important;
  }
  
  /* Subliminal affirmations: Keep at base position (60px from top) */
  .modality-section[data-modality="affirmations"] .modality-brainwave-badge {
    top: 60px !important;
  }
  
  /* Position sine waves relative to brainwave badges */
  .modality-section[data-modality="breathwork"] .sine-wave-canvas {
    top: 60px !important;
  }
  
  .modality-section[data-modality="sleep"] .sine-wave-canvas {
    top: 100px !important; /* Match brainwave badge position, closer to top */
  }
  
  .modality-section[data-modality="meditation"] .sine-wave-canvas {
    top: 100px !important; /* Match brainwave badge position, closer to top */
  }
  
  .modality-section[data-modality="affirmations"] .sine-wave-canvas {
    top: 60px !important;
  }
  
  /* Hide extra content in modality glass on tablet */
  .modality-marketing-title {
    display: none !important;
  }
  
  .modality-copy {
    display: none !important;
  }
  
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-card {
    flex: 0 0 calc(50% - var(--spacing-md));
    min-width: calc(50% - var(--spacing-md));
  }
  
  /* Larger target brainwave badge for iPad */
  .modality-brainwave-badge .card-clay {
    padding: 16px 24px;
  }
  
  .modality-brainwave-badge .brainwave-label {
    font-size: 11px;
  }
  
  .modality-brainwave-badge .brainwave-value {
    font-size: 15px;
  }
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
  
  /* Slideshow - no sticky on iOS */
  .slideshow-section {
    position: relative;
    height: 100vh;
    height: -webkit-fill-available;
  }
  
  .modality-sticky {
    height: -webkit-fill-available;
  }
}

/* Landscape mobile fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-logo-container {
    transform: translateY(0);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-logo {
    width: 150px;
  }
  
  .hero-glass {
    transform: translateY(0);
  }
  
  .hero-science-btn {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    margin-top: var(--spacing-lg);
  }
  
  /* Slideshow - no sticky in landscape */
  .slideshow-section {
    position: relative;
    height: 100vh;
    min-height: 330px;
  }
  
  .modality-sticky {
    height: auto;
    min-height: 100vh;
  }
}

/* ===========================================
   MOBILE HERO FIX - Full screen with button at bottom
   (Must be at end of file to override other rules)
   =========================================== */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding-top: 100px !important; /* navbar (70px) + 30px gap */
    padding-bottom: 100px !important; /* Space for button at bottom */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    /* Mobile-specific hero image */
    background-image: url('../assets/images/general/glowing_headphones_mobile.png') !important;
    background-position: center center !important;
  }
  
  .hero-container {
    padding-top: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  /* Learn about science button - At bottom of hero section, scrolls with content */
  .hero-science-btn {
    position: absolute !important;
    bottom: 24px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    margin: 0 !important;
    z-index: 100;
  }
}

