/* ==========================================================================
   SleepWave Marketing Website - High-Contrast Sharp Hero & Opening Animation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Quattrocento+Sans:wght@400;700&display=swap');

/* --- CSS Variables & Color Theory Design Tokens --- */
:root {
  /* Soft Neumorphic Palette */
  --bg-page: #ECE7F6;
  --bg-neu-card: #ECE7F6;
  --bg-card-dark: #0F0E17;

  /* Color Theory Palette: High-Contrast Crisp Acoustics */
  --color-primary: #5B6EF5;
  --color-primary-dark: #3730A3;
  --color-headline-deep: #0F0C20;
  --color-tagline-vibrant: #3730A3;
  --color-subtext-readable: #2D3748; /* High-contrast slate-indigo (WCAG AA > 4.5:1) */
  --color-indigo-dark: #0F0C20;

  /* Uniform Section Gap Rhythm */
  --section-gap: clamp(3.5rem, 8vw, 7rem);

  /* 30% Intensity Soft Dual Shadows */
  --neu-outset: 5px 5px 12px rgba(200, 192, 220, 0.45), -5px -5px 12px #FFFFFF;
  --neu-outset-hover: 7px 7px 16px rgba(190, 180, 215, 0.55), -7px -7px 16px #FFFFFF;
  --neu-outset-pill: 3px 3px 8px rgba(200, 192, 220, 0.45), -3px -3px 8px #FFFFFF;
  --neu-inset: inset 3px 3px 6px rgba(200, 192, 220, 0.45), inset -3px -3px 6px #FFFFFF;
  --neu-inset-deep: inset 4px 4px 8px rgba(190, 180, 215, 0.55), inset -4px -4px 8px #FFFFFF;

  --font-apple: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-pill: 9999px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --ease-butter: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 250ms var(--ease-butter);
  --transition-normal: all 500ms var(--ease-butter);
  --transition-slow: all 1000ms var(--ease-butter);
}

/* --- Base Reset & Global Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
  background-color: var(--bg-page);
  color: var(--color-subtext-readable);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Light Mode Staggered Blur Text Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF !important;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 700ms var(--ease-butter),
              transform 700ms var(--ease-butter),
              visibility 0s 750ms;
}

.preloader.done {
  opacity: 0;
  transform: scale(1.02);
  visibility: hidden;
  pointer-events: none;
}

.preloader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.loading-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  width: 100%;
  height: 100px;
  line-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text span {
  display: inline-block;
  margin: 0 4px;
  color: #0F0C20;
  font-family: 'Quattrocento Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loading-text span:nth-child(1) { filter: blur(0px); animation: blur-text 1.5s 0s infinite linear alternate; }
.loading-text span:nth-child(2) { filter: blur(0px); animation: blur-text 1.5s 0.2s infinite linear alternate; }
.loading-text span:nth-child(3) { filter: blur(0px); animation: blur-text 1.5s 0.4s infinite linear alternate; }
.loading-text span:nth-child(4) { filter: blur(0px); animation: blur-text 1.5s 0.6s infinite linear alternate; }
.loading-text span:nth-child(5) { filter: blur(0px); animation: blur-text 1.5s 0.8s infinite linear alternate; }
.loading-text span:nth-child(6) { filter: blur(0px); animation: blur-text 1.5s 1.0s infinite linear alternate; }
.loading-text span:nth-child(7) { filter: blur(0px); animation: blur-text 1.5s 1.2s infinite linear alternate; }
.loading-text span:nth-child(8) { filter: blur(0px); animation: blur-text 1.5s 1.4s infinite linear alternate; }
.loading-text span:nth-child(9) { filter: blur(0px); animation: blur-text 1.5s 1.6s infinite linear alternate; }

@keyframes blur-text {
  0% {
    filter: blur(0px);
    opacity: 1;
  }
  100% {
    filter: blur(6px);
    opacity: 0.25;
  }
}

.loader-subtext {
  font-size: 0.925rem;
  color: var(--color-subtext-readable);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.loader-subtext a {
  color: var(--color-headline-deep);
  font-weight: 700;
  border-bottom: 1px dashed rgba(30, 27, 75, 0.3);
  transition: var(--transition-fast);
}

.loader-subtext a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.loader-percent {
  font-family: var(--font-apple);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-headline-deep);
  margin-top: 0.4rem;
  letter-spacing: -0.02em;
}

/* --- Neumorphic Scrollbar --- */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: rgba(175, 165, 220, 0.5);
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-inset);
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(175, 165, 220, 0.5) var(--bg-page);
}

body {
  font-family: var(--font-apple);
  color: var(--color-text-main);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Animated Gradient Wavy Background --- */
.wavy-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.wavy-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.3;
}

.wavy-path {
  will-change: transform;
  transform-origin: center;
}

.wave-path-1 {
  animation: waveFlow1 14s ease-in-out infinite alternate;
}

.wave-path-2 {
  animation: waveFlow2 18s ease-in-out infinite alternate;
}

.wave-path-3 {
  animation: waveFlow3 22s ease-in-out infinite alternate;
}

@keyframes waveFlow1 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(35px) scaleY(1.15) skewX(2deg); }
  100% { transform: translateY(-25px) scaleY(0.92) skewX(-2deg); }
}

@keyframes waveFlow2 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(-40px) scaleY(1.18) skewX(-3deg); }
  100% { transform: translateY(30px) scaleY(0.95) skewX(2deg); }
}

@keyframes waveFlow3 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(25px) scaleY(1.1); }
  100% { transform: translateY(-35px) scaleY(0.9); }
}

/* --- Neumorphic Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 2.5rem;
}

.navbar.scrolled {
  background: rgba(236, 231, 246, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 14px rgba(200, 192, 220, 0.25);
  padding: 0.85rem 2.5rem;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-apple);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: var(--neu-outset-pill);
  transition: var(--transition-fast);
}

.nav-brand:hover .brand-icon {
  transform: scale(1.05);
  box-shadow: var(--neu-inset);
}

.brand-subtitle {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-subtle);
  font-weight: 600;
  display: block;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  box-shadow: var(--neu-inset);
}

.mobile-toggle {
  display: none;
  background: var(--bg-neu-card);
  border: none;
  cursor: pointer;
  padding: 0.65rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  box-shadow: var(--neu-outset-pill);
  color: var(--color-text-main);
  align-items: center;
  justify-content: center;
}

/* --- Navbar Compact Pill CTA --- */
.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  font-family: var(--font-apple);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3730A3;
  background: var(--bg-neu-card);
  box-shadow: var(--neu-outset-pill);
  border-radius: var(--radius-pill);
  cursor: not-allowed;
  user-select: none;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.nav-cta-pill:hover {
  box-shadow: var(--neu-outset-hover);
}

/* --- Neumorphic Buttons & CTA Badges --- */
.btn-google-play-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-neu-card);
  color: var(--color-headline-deep);
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-outset);
  user-select: none;
  cursor: not-allowed;
  position: relative;
  transition: var(--transition-fast);
  border: none;
  filter: grayscale(20%);
}

.btn-google-play-disabled:hover {
  box-shadow: var(--neu-outset-hover);
}

.btn-google-play-disabled .google-play-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.play-btn-text .btn-small-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.play-btn-text .btn-main-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-headline-deep);
}

.btn-status-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(91, 110, 245, 0.08);
  color: var(--color-primary);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-inset);
  margin-left: 0.2rem;
}

.btn-secondary-apple {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-neu-card);
  color: var(--color-headline-deep);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: var(--neu-outset);
  border: none;
}

.btn-secondary-apple:hover {
  color: var(--color-primary);
  box-shadow: var(--neu-outset-hover);
  transform: translateY(-2px);
}

.btn-secondary-apple:active {
  box-shadow: var(--neu-inset);
  transform: translateY(0);
}

/* --- Full-Screen Hero Section --- */
.hero-section-minimal {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  padding: 6.5rem 1.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-mobile-moon-wrapper {
  display: none; /* Hidden on desktop */
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Showcase Phone Banner (Appears when scrolling past hero) */
.hero-showcase-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-showcase-phone-card {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(60, 50, 120, 0.35), var(--neu-outset);
  background: var(--bg-card-dark);
  padding: 10px;
  animation: heroFloat 5s ease-in-out infinite alternate;
}

.hero-showcase-phone-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 10px);
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-16px); }
}

/* Music Visualization Canvas Container */
#hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-headline-apple,
.hero-tagline-apple,
.hero-subtext-apple,
.hero-actions-group,
.hero-cute-moon-wrapper {
  position: relative;
  z-index: 2;
}

/* High-Precision Premium Sleepy Moon Graphic */
.hero-cute-moon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 5;
}

.cute-sleepy-moon-svg {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(99, 102, 241, 0.45));
  animation: cuteMoonFloat 3.8s ease-in-out infinite alternate;
}

@keyframes cuteMoonFloat {
  0% {
    transform: translateY(0px) rotate(-4deg);
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.35));
  }
  100% {
    transform: translateY(-8px) rotate(5deg);
    filter: drop-shadow(0 16px 32px rgba(167, 139, 250, 0.6));
  }
}

/* Animated Hero Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-apple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0.85;
  transition: var(--transition-fast);
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  color: var(--color-primary-dark);
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}



/* JS-driven hero entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(35px);
  /* Super smooth, slow spring curve for rich, high-quality entrance */
  transition: opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-anim.hero-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background elements bloom in dynamically */
.hero-bg-anim {
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 2200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-bg-anim.hero-visible {
  opacity: 1;
  transform: scale(1);
}

/* Circular Blurry Animated Hero Background Waves */
.hero-bg-circular-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Re-apply translate here, and combine with scale in animation */
  transform: translate(-50%, -50%) scale(0.65);
  width: 100%;
  max-width: 650px;
  height: 650px;
  pointer-events: none;
  z-index: -2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-circular-waves.hero-visible {
  transform: translate(-50%, -50%) scale(1);
}

.circular-wave {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  transform-origin: center;
}

.wave-circle-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.22) 0%, rgba(142, 110, 245, 0.1) 60%, transparent 80%);
  filter: blur(35px);
  animation: circularWavePulse 12s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.wave-circle-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(142, 110, 245, 0.16) 0%, rgba(128, 203, 196, 0.08) 65%, transparent 85%);
  filter: blur(45px);
  animation: circularWavePulse 16s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate-reverse;
  animation-delay: -4s;
}

.wave-circle-3 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.12) 0%, rgba(200, 190, 245, 0.06) 70%, transparent 90%);
  filter: blur(55px);
  animation: circularWavePulse 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  animation-delay: -8s;
}

@keyframes circularWavePulse {
  0% {
    transform: scale(0.85) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15) translateY(-18px);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.92) translateY(14px);
    opacity: 0.6;
  }
}

/* Sharp, High-Contrast Non-Washed-Out Hero Typography */
.hero-headline-apple {
  font-family: var(--font-apple);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #0F0C20 !important;
  -webkit-text-fill-color: #0F0C20 !important;
  margin-bottom: 0.85rem;
  text-shadow: none !important;
}

.hero-tagline-apple {
  font-family: var(--font-apple);
  font-size: clamp(1.2rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #3730A3 !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 720px;
  line-height: 1.25;
}

.hero-subtext-apple {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-subtext-readable) !important;
  font-weight: 500;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.mobile-break {
  display: none;
}

.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* --- Full-Screen Feature Highlights --- */
.features-section {
  scroll-snap-align: start;
  padding: var(--section-gap) 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-apple);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-headline-deep);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
  margin-bottom: 5.5rem;
  scroll-snap-align: start;
  padding-top: 1.5rem;
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-row:nth-child(even) .feature-text {
  order: 1;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-phone-card {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 35px 70px -15px rgba(60, 50, 120, 0.22), var(--neu-outset);
  transition: var(--transition-normal);
  background: var(--bg-neu-card);
  padding: 10px;
}

.feature-phone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 85px -15px rgba(60, 50, 120, 0.28), var(--neu-outset-hover);
}

.feature-phone-card.dark-theme-card {
  background: var(--bg-card-dark);
  padding: 10px;
  box-shadow: 0 35px 70px -15px rgba(30, 20, 70, 0.35), var(--neu-outset);
}

.feature-phone-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 10px);
}

.feature-text {
  max-width: 480px;
}

.feature-headline-graphics {
  font-family: var(--font-apple);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.feature-subheadline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-headline-deep);
  margin-bottom: 0.85rem;
}

.feature-desc {
  font-size: 0.975rem;
  color: var(--color-subtext-readable);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-neu-card);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--neu-inset);
}

.bullet-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.track-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.chip {
  background: var(--bg-neu-card);
  color: var(--color-primary);
  box-shadow: var(--neu-outset-pill);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

.gallery-section {
  scroll-snap-align: start;
  padding: var(--section-gap) 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-card {
  background: var(--bg-neu-card);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: 0 25px 50px -12px rgba(60, 50, 120, 0.2), var(--neu-outset);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 65px -12px rgba(60, 50, 120, 0.28), var(--neu-outset-hover);
}

.gallery-card-img-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: var(--bg-card-dark);
}

.gallery-card img {
  width: 100%;
  display: block;
}

.gallery-caption {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-headline-deep);
  text-align: center;
  margin-top: auto;
}

/* --- Full-Screen Neumorphic Trust Badges --- */
.trust-section {
  scroll-snap-align: start;
  padding: var(--section-gap) 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  background: var(--bg-neu-card);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(60, 50, 120, 0.15), var(--neu-outset);
  transition: var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 55px -10px rgba(60, 50, 120, 0.22), var(--neu-outset-hover);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-neu-card);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  box-shadow: var(--neu-inset);
}

.trust-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-headline-deep);
  margin-bottom: 0.25rem;
}

.trust-desc {
  font-size: 0.825rem;
  color: var(--color-subtext-readable);
  line-height: 1.45;
}

/* --- Full-Screen Neumorphic FAQ Section --- */
.faq-section {
  scroll-snap-align: start;
  padding: var(--section-gap) 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-neu-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--neu-outset);
  transition: var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--neu-outset-hover);
}

.faq-button {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-apple);
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--color-headline-deep);
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-neu-card);
  box-shadow: var(--neu-outset-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--color-primary);
  transition: var(--transition-fast);
}

.faq-item.active {
  box-shadow: var(--neu-inset);
}

.faq-item.active .faq-icon {
  box-shadow: var(--neu-inset);
  background: var(--color-primary);
}

.faq-item.active .faq-icon svg {
  fill: #FFF;
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 450ms var(--ease-butter), padding 450ms var(--ease-butter);
  padding: 0 1.6rem;
}

.faq-item.active .faq-panel {
  max-height: 250px;
  padding: 0 1.6rem 1.4rem;
}

.faq-content {
  font-size: 0.95rem;
  color: var(--color-subtext-readable);
  line-height: 1.65;
}

/* --- Full-Screen Download CTA Band --- */
.cta-band-section {
  min-height: 80vh;
  min-height: 80dvh;
  scroll-snap-align: start;
  padding: 4.5rem 1.25rem;
  max-width: 1000px;
  margin: 1rem auto 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.cta-band-card {
  position: relative;
  background: var(--bg-neu-card);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.75rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--neu-outset);
}

.cta-band-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-apple);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-headline-deep);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.cta-subtext {
  font-size: 1rem;
  color: var(--color-subtext-readable);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-neu-card);
  box-shadow: var(--neu-inset);
  font-family: var(--font-apple);
  font-size: 0.925rem;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.waitlist-input:focus {
  box-shadow: var(--neu-inset-deep);
}

.waitlist-btn {
  background: var(--color-primary);
  color: #FFF;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.925rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 3px 3px 8px rgba(190, 180, 215, 0.5), -3px -3px 8px #FFFFFF;
}

.waitlist-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  scroll-snap-align: start;
  background: var(--bg-neu-card);
  box-shadow: inset 0 6px 12px rgba(200, 192, 220, 0.25);
  padding: 3.5rem 1.25rem 2rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(30, 29, 48, 0.08);
}

.footer-brand {
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-subtext-readable);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  box-shadow: var(--neu-inset);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.developer-credit {
  font-weight: 600;
  color: var(--color-headline-deep);
}

.developer-credit a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.developer-credit a:hover {
  color: var(--color-primary-dark);
}

/* --- Privacy Policy Specific --- */
.privacy-body {
  background: var(--bg-page);
}

.privacy-header {
  padding: 2.5rem 1.25rem 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--neu-outset-pill);
  transition: var(--transition-fast);
}

.back-home-link:hover {
  box-shadow: var(--neu-inset);
  transform: translateX(-2px);
}

.privacy-container {
  max-width: 760px;
  margin: 1rem auto 5rem;
  padding: 0 1.25rem;
}

.privacy-card {
  background: var(--bg-neu-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--neu-outset);
}

.privacy-title {
  font-family: var(--font-apple);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.privacy-date {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  margin-bottom: 2rem;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
}

.privacy-section {
  margin-bottom: 1.75rem;
}

.privacy-section h2 {
  font-family: var(--font-apple);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-headline-deep);
  margin-bottom: 0.6rem;
}

.privacy-section p {
  font-size: 0.95rem;
  color: var(--color-subtext-readable);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.privacy-section ul {
  margin-left: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--color-subtext-readable);
  line-height: 1.7;
}

.privacy-section ul li {
  margin-bottom: 0.4rem;
}

/* --- Buttery Smooth Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Rules
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-phone-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-text { max-width: 100%; margin: 0 auto; }
  .feature-bullets { align-items: center; text-align: left; max-width: 320px; margin: 0 auto; }
  .track-chips { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .navbar.scrolled {
    padding: 0.75rem 1.25rem;
  }

  .nav-brand span:first-child {
    font-size: 1.25rem;
  }

  /* Mobile Drawer Menu */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-neu-card);
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    gap: 1.1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(190, 180, 215, 0.5);
    transform: translateY(-150%);
    transition: var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle { 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-container .nav-cta-pill,
  .nav-container .btn-google-play-disabled {
    display: none !important;
  }

  .hero-section-minimal {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    padding: 4.8rem 1.25rem 2.2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  .hero-cute-moon-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 10;
  }

  .cute-sleepy-moon-svg {
    width: 48px !important;
    height: 48px !important;
    display: block !important;
  }

  .hero-headline-apple {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    margin-bottom: 0.6rem;
  }

  .hero-tagline-apple {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  .hero-subtext-apple {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-phone-card {
    max-width: 290px;
    margin: 0.5rem auto 0;
  }

  .hero-soundwave-capsule {
    display: none;
  }

  .hero-actions-group {
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
  }

  .hero-actions-group .btn-google-play-disabled,
  .hero-actions-group .btn-secondary-apple {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
  }

  .hero-bg-circular-waves {
    width: 100%;
    max-width: 380px;
    height: 380px;
  }

  .wave-circle-1 { width: 200px; height: 200px; }
  .wave-circle-2 { width: 300px; height: 300px; }
  .wave-circle-3 { width: 400px; height: 400px; }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.25rem;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 1.25rem 1.5rem;
    margin: 1rem -1.25rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 1.25rem;
  }

  .gallery-card {
    flex: 0 0 250px;
    scroll-snap-align: center;
    max-width: 250px;
  }

  .cta-band-card {
    padding: 2.75rem 1.25rem;
  }

  .waitlist-form {
    flex-direction: column;
    width: 100%;
  }

  .waitlist-input, .waitlist-btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  html {
    scroll-snap-type: none !important;
  }

  .cta-band-section,
  .footer {
    scroll-snap-align: none !important;
  }

  .footer {
    text-align: center;
    padding: 3rem 1.25rem 2rem;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-brand .nav-brand {
    justify-content: center;
    text-align: center;
    margin: 0 auto 0.4rem;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
    text-align: center;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-bottom p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline-apple {
    font-size: clamp(3rem, 13vw, 4.2rem) !important;
    line-height: 1.02;
  }

  .hero-tagline-apple {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem) !important;
    line-height: 1.3;
  }

  .mobile-break {
    display: block;
  }

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

  .faq-button {
    padding: 1.1rem 1.1rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-phone-card,
  .hero-scroll-indicator {
    animation: none !important;
  }

  .wave-layer-1, .wave-layer-2, .wave-layer-3, .loader-logo-wrapper {
    animation: none !important;
  }

  .reveal, .reveal-left, .reveal-right, .hero-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}
