/* =============================================
   MoovvFIT Landing Page Styles
   ============================================= */

/* Font Faces */
@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --brand-blue: #4069FF;
  --bg-dark-1: #07060D;
  --bg-dark-2: #182132;
  --bg-dark-3: #1B2C6A;
  --bg-dark-4: #090A12;
  --bg-dark-5: #202C59;
  --cta-blue: #4069FF;

  --white-100: #FFFFFF;
  --white-80: rgba(255, 255, 255, 0.80);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-4: rgba(255, 255, 255, 0.04);

  --success-green: #10B981;
  --pain-red: #EF4444;

  --font-heading: 'Lufga', sans-serif;
  --font-body: 'Noto Sans', sans-serif;

  --container-max: 1280px;
  --section-padding: 60px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-100);
  background: var(--bg-dark-1);
  overflow-x: hidden;
}

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

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-blue {
  color: var(--brand-blue);
}

.text-white {
  color: var(--white-100);
}

.emoji {
  font-style: normal;
}

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1280px;
  padding: 12px 24px;
  border-radius: 60px;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: linear-gradient(135deg, rgba(27, 44, 106, 0.7) 0%, rgba(32, 44, 89, 0.8) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo,
.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--white-100);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-icon {
  width: 28px;
  height: 14px;
  margin: 0 -1px;
  vertical-align: middle;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white-100);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white-100);
}

.btn-nav-cta {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--white-100);
  background: linear-gradient(135deg, rgba(64, 105, 255, 0.8) 0%, rgba(107, 138, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, rgba(64, 105, 255, 1) 0%, rgba(107, 138, 255, 0.8) 100%);
  transform: translateY(-2px);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white-100);
  transition: all 0.3s ease;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--bg-dark-1);
  background: var(--white-100);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64, 105, 255, 0.3);
}

.btn-secondary {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--white-100);
  background: linear-gradient(180deg, rgba(109, 128, 175, 0.25) 0%, rgba(107, 138, 255, 0.6) 100%);
  border: 1px solid var(--white-15);
  border-radius: 50px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(109, 128, 175, 0.35) 0%, rgba(107, 138, 255, 0.7) 100%);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark-3) 0%, var(--bg-dark-4) 50%, var(--bg-dark-2) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.5;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero-logo-animation {
  width: 280px;
  height: 160px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--white-80);
  max-width: 550px;
  margin-bottom: 32px;
  min-height: 54px;
}

/* Email Form */
.email-form {
  display: flex;
  align-items: center;
  background: var(--white-4);
  border: 1px solid var(--white-15);
  border-radius: 50px;
  padding: 6px;
  max-width: 500px;
  backdrop-filter: blur(10px);
}

.email-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white-100);
}

.email-form input::placeholder {
  color: var(--white-60);
}

/* Agreement Text */
.form-agreement {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--white-60);
  margin-top: 12px;
  text-align: center;
  max-width: 500px;
  /* Match form width */
}

.form-agreement a {
  color: var(--white-80);
  text-decoration: underline;
  transition: color 0.2s;
}

.form-agreement a:hover {
  color: var(--brand-blue);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: var(--white-60);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(8px);
  }

  60% {
    transform: translateY(4px);
  }
}

/* =============================================
   Why This Matters Section
   ============================================= */
.why-matters {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%);
  position: relative;
  overflow: hidden;
}

.why-matters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/PlanBG.png') center/cover no-repeat;
  opacity: 0.3;
}

.why-matters-container {
  display: grid;
  grid-template-columns: 400px 1fr 450px;
  gap: 60px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 700px;
}

/* Body Scan (Left) */
.body-scan-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.body-scan-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(12, 15, 30, 0.5) 0%, rgba(18, 22, 38, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.body-scan-inner {
  position: relative;
  width: 85%;
  margin: 0 auto;
}

.body-scan-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1);
  position: relative;
  z-index: 1;
}

/* Pain Area Images */
.pain-area-image {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
  z-index: 21;
  /* Raised above text */
  transform: translate(-50%, -50%) scale(0.5);
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8));
}

.pain-area-image.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: pulse 1.5s infinite;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 1));
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8));
  }

  50% {
    filter: drop-shadow(0 0 24px rgba(239, 68, 68, 1)) drop-shadow(0 0 32px rgba(239, 68, 68, 0.6));
  }

  100% {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8));
  }
}

/* Specific Pain Point Positions */
.pain-head-l {
  top: 7%;
  left: 56%;
}

.pain-neck {
  top: 15%;
  left: 45%;
}

.pain-upper-back {
  top: 26%;
  left: 50%;
}

.pain-lumbar {
  top: 42%;
  left: 50%;
}

.pain-lumbar-l {
  top: 38%;
  left: 60%;
}

.pain-shoulder-l {
  top: 19%;
  left: 66%;
}

.pain-shoulder-r {
  top: 19%;
  left: 34%;
}

.pain-elbow-l {
  top: 36%;
  left: 78%;
}

.pain-elbow-r {
  top: 30%;
  left: 22%;
}

.pain-hip-l {
  top: 45%;
  left: 62%;
}

.pain-hip-r {
  top: 48%;
  left: 40%;
}

.pain-knee-l {
  top: 72%;
  left: 60%;
}

.pain-knee-r {
  top: 68%;
  left: 35%;
}

.pain-ankle-l {
  top: 84%;
  left: 83%;
}

.pain-ankle-r {
  top: 91%;
  left: 80%;
}


/* Pain Text Overlay with Frosted Glass */
.pain-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
}

.pain-text {
  position: absolute;
  bottom: 100px;
  /* Moved higher up */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--white-100);

  /* Glassy Background matching the image */
  background: rgba(168, 28, 64, 0.6);
  /* Darker reddish/pink */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 12px 24px;
  border-radius: 50px;
  /* Rounded pill shape */
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: max-content;
  max-width: 90%;
  white-space: normal;
}

.pain-text.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Center Content */
.why-matters-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.icon-row {
  display: none;
}

.why-matters-center h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}

.why-matters-center p {
  font-size: 15px;
  color: var(--white-80);
  line-height: 1.7;
}

/* Phone Mockups (Right) */
.phone-mockups-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 600px;
  padding-right: 20px;
}

/* Tilted Phone Background */
.phone-background {
  position: absolute;
  width: 100%;
  max-width: 320px;
  z-index: 1;
  transform: rotate(-5deg) translateX(-120px);
}

.phone-bg-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4)) brightness(0.95);
  opacity: 0.75;
}

/* Feature Screenshots Stack */
.phone-features {
  position: relative;
  width: 100%;
  max-width: 300px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.feature-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.92);
  z-index: 1;
}

.feature-card.active {
  transform: scale(1.05);
  z-index: 10;
}

.feature-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) brightness(1.05);
  border-radius: 8px;
}

/* Feature Text Below Image */
.feature-text {
  margin-top: -20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.feature-card.active .feature-text {
  opacity: 1;
  transform: translateY(0);
}

.feature-text p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--white-100);
  margin: 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(64, 105, 255, 0.95) 0%, rgba(107, 138, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(64, 105, 255, 0.5);
  text-align: center;
  white-space: nowrap;
}

/* =============================================
   How It Works Section
   ============================================= */
.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--bg-dark-1);
  overflow: hidden;
}

.how-screens-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 550px;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 520px;
  z-index: 50;
  pointer-events: none;
}

.phone-frame-css {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  border: 10px solid #1a1a1a;
  box-shadow:
    0 0 0 2px #333,
    0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  background: transparent;
  overflow: hidden;
  /* Clips corner of screen if any */
}

/* Reflections / Gloss */
.phone-frame-css::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 34px;
  box-shadow: inset 4px 4px 10px rgba(255, 255, 255, 0.1), inset -4px -4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #1a1a1a;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 52;
}

.screens-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-screen {
  position: absolute;
  width: 230px;
  /* Match inner width of phone */
  height: auto;
  border-radius: 20px;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

/* Center Position - Inside Phone */
.carousel-screen.pos-center {
  z-index: 40;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  width: 230px;
  /* Height will be auto approx */
  border-radius: 36px;
  /* Match phone frame inner radius approx */
  box-shadow: none;
  margin-top: 0;
}

/* Right Positions (Future) */
.carousel-screen.pos-right-1 {
  z-index: 30;
  transform: translateX(180px) scale(0.85) rotate(8deg);
  opacity: 1;
  filter: brightness(0.6);
}

.carousel-screen.pos-right-2 {
  z-index: 20;
  transform: translateX(310px) scale(0.75) rotate(14deg);
  opacity: 0.8;
  filter: brightness(0.4);
}

.carousel-screen.pos-right-3 {
  z-index: 10;
  transform: translateX(410px) scale(0.65) rotate(18deg);
  opacity: 0;
  filter: brightness(0.2);
}

/* Left Positions (Past) */
.carousel-screen.pos-left-1 {
  z-index: 30;
  transform: translateX(-180px) scale(0.85) rotate(-8deg);
  opacity: 1;
  filter: brightness(0.6);
}

.carousel-screen.pos-left-2 {
  z-index: 20;
  transform: translateX(-310px) scale(0.75) rotate(-14deg);
  opacity: 0.8;
  filter: brightness(0.4);
}

.carousel-screen.pos-left-3 {
  z-index: 10;
  transform: translateX(-410px) scale(0.65) rotate(-18deg);
  opacity: 0.4;
  filter: brightness(0.2);
}

.carousel-screen.pos-hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

/* How It Works Text */
.how-text {
  text-align: center;
  padding: 0 24px;
}

.how-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}

.how-text p {
  font-size: 18px;
  color: var(--white-80);
}

/* =============================================
   Real Stories Section
   ============================================= */
.stories {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
}

.stories-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
  font-style: italic;
}

.stories-subtitle {
  text-align: center;
  color: var(--white-80);
  font-size: 18px;
  margin-bottom: 32px;
}

.stories-grid {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  /* Slight negative gap/margin via flex items to blend */
  gap: 0;
  position: relative;
  z-index: 1;
}

.story-tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 200px;
  flex-shrink: 0;
  justify-content: center;
  /* Overlap the card slightly */
  margin-right: -20px;
  z-index: 10;
  pointer-events: auto;
}

.story-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--white-80);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
}

.story-tab img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.story-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white-100);
  transform: translateY(-2px);
}

.story-tab.active {
  color: var(--white-100);
  background: linear-gradient(135deg, #4069FF 0%, #2952E3 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(64, 105, 255, 0.3);
  transform: translateX(10px) scale(1.05);
  /* Push slightly right into card */
  z-index: 20;
}

/* Story Carousel */
.story-carousel-wrapper {
  position: relative;
  flex: 1;
  min-height: 550px;
  z-index: 1;
}

.story-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  height: 100%;
}

.story-slide {
  display: none;
  height: 100%;
  animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.story-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 40px;
  overflow: hidden;
  min-height: 550px;
}

.story-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Standard padding now that tabs are outside */
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  /* Stronger gradient on left to support contrast text */
  background: linear-gradient(90deg,
      rgba(10, 15, 30, 0.9) 0%,
      rgba(10, 15, 30, 0.6) 50%,
      rgba(10, 15, 30, 0) 100%);
  pointer-events: none;
}

.story-content blockquote {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--white-100);
  max-width: 550px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.story-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift image slightly right if needed to make space for text */
  object-position: center 20%;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 20;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
  /* Space between dots and arrows */
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white-15);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--brand-blue);
  width: 24px;
  border-radius: 5px;
}

/* =============================================
   Features Showcase Section
   ============================================= */
.features-showcase {
  background: var(--bg-dark-1);
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.features-showcase-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* Left - Placeholder Image */
.features-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.features-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 42px);
  color: var(--white-100);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-content {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.features-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.features-img-container {
  width: 500px;
  height: 500px;
  border: 1px solid var(--white-10);
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-img {
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  flex-shrink: 0;
}

/* Right - Glass Panels */
.features-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.glass-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(64, 105, 255, 0.05);
  /* Very subtle blue tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(64, 105, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: default;
}

.glass-panel:hover {
  background: rgba(64, 105, 255, 0.1);
  border-color: rgba(64, 105, 255, 0.4);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(64, 105, 255, 0.15);
}

.panel-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(64, 105, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(64, 105, 255, 0.3);
  box-shadow: 0 0 15px rgba(64, 105, 255, 0.2);
}

.panel-icon svg {
  width: 28px;
  height: 28px;
  stroke: #60A5FA;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.6));
}

.panel-icon-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.panel-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white-100);
  margin-bottom: 8px;
}

.panel-content p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white-80);
  line-height: 1.5;
}

/* =============================================
   Science Section
   ============================================= */
.science {
  position: relative;
  background: #050511;
  /* Deep dark blue/black background */
  padding: var(--section-padding) 24px;
}

.science-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  /* Wider container for text */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}



.science-card {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  /* Center align text */
  padding: 80px 40px;
  background: transparent;
  /* Remove glass card background */
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  margin: 0;
}

/* Glowing effect behind card */
.science-card::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(64, 105, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.science-card h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--white-100);
}

.science-card h2 .emoji {
  font-size: 0.9em;
  vertical-align: middle;
  margin-right: 8px;
}

.science-intro {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 400;
}

.science-mission {
  font-size: 16px;
  color: var(--white-100);
  line-height: 1.6;
}

.science-mission strong {
  color: var(--white-100);
  font-weight: 600;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
  padding: 20px 0 60px;
  background: var(--bg-dark-1);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(27, 44, 106, 0.2) 0%, rgba(24, 33, 50, 0.4) 100%);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--white-15);
}

.faq-item.active {
  background: linear-gradient(180deg, rgba(27, 44, 106, 0.35) 0%, rgba(24, 33, 50, 0.6) 100%);
  border-color: var(--white-15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--white-100);
  transition: all 0.2s ease;
}

.faq-number {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--white-60);
  min-width: 24px;
}

.faq-text {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--white-80);
  transition: all 0.3s ease;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.faq-answer p {
  padding: 0 28px 24px 68px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-60);
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
  padding: var(--section-padding) 0 80px;
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--cta-blue) 100%);
  position: relative;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.cta-phone img {
  max-width: 350px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
}

.cta-form-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 48px;
}

.cta-signup-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.cta-form {
  display: flex;
  align-items: center;
  background: var(--white-10);
  border: 1px solid var(--white-15);
  border-radius: 50px;
  padding: 6px;
  width: 100%;
}

.cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white-100);
}

.cta-form input::placeholder {
  color: var(--white-60);
}

/* Agreement Text inside CTA */
.cta-signup-column .form-agreement {
  text-align: left;
  margin-left: 20px;
  max-width: 100%;
}

.benefits-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white-80);
}

.benefit span {
  font-size: 14px;
  color: var(--white-100);
  line-height: 1.4;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: 40px 0;
  background: var(--bg-dark-1);
  border-top: 1px solid var(--white-15);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--white-80);
  margin-bottom: 16px;
}

.footer-logo .nav-logo-text {
  font-size: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--white-80);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white-100);
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1200px) {
  .why-matters-container {
    grid-template-columns: 360px 1fr 400px;
    gap: 40px;
  }

  .body-scan-container {
    max-width: 320px;
  }

  .phone-background {
    max-width: 280px;
  }

  .phone-features {
    max-width: 260px;
  }
}

@media (max-width: 1024px) {
  .nav {
    width: calc(100% - 32px);
    padding: 10px 20px;
  }

  .why-matters-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .body-scan-wrapper {
    order: 2;
  }

  .why-matters-center {
    order: 1;
    text-align: center;
  }

  .icon-row {
    margin: 0 auto 32px;
  }

  .phone-mockups-right {
    order: 3;
  }

  .feature-text {
    display: none;
  }

  /* How It Works - show smaller screens */
  .side-screen {
    width: 120px;
  }

  .phone-frame {
    width: 220px;
  }

  .left-screens {
    margin-right: -40px;
  }

  .right-screens {
    margin-left: -40px;
  }

  .left-screens .screen-2,
  .right-screens .screen-4,
  .right-screens .screen-5 {
    margin-left: -40px;
  }

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

  .science-image {
    order: -1;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-phone {
    order: -1;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  /* Navigation */
  .nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 8px 16px;
  }

  .nav.scrolled {
    background: linear-gradient(135deg, rgba(27, 44, 106, 0.85) 0%, rgba(32, 44, 89, 0.9) 100%);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(7, 6, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transition: right 0.3s ease;
    backdrop-filter: blur(20px);
    border-radius: 0;
  }

  .nav-links.active {
    right: 0;
  }

  .btn-nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 140px 0 100px;
  }

  .hero-logo-animation {
    width: 200px;
    height: 120px;
  }

  .email-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }

  .email-form input {
    width: 100%;
    background: var(--white-4);
    border: 1px solid var(--white-15);
    border-radius: 50px;
  }

  .email-form .btn-primary {
    width: 100%;
  }

  /* Why Matters */
  .why-matters-container {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .body-scan-container {
    max-width: 320px;
    margin: 0 auto;
    min-height: 480px;
  }

  .body-scan-image {
    width: 85%;
  }

  .pain-text {
    font-size: 12px;
    padding: 12px 16px;
    max-width: 90%;
    border-radius: 12px;
  }

  .body-scan-wrapper,
  .phone-mockups-right {
    min-height: auto;
  }

  .phone-background {
    max-width: 240px;
  }

  .phone-features {
    max-width: 220px;
  }

  .feature-text {
    display: block;
    margin-top: -10px;
    /* Adjust spacing since card is smaller */
  }

  .why-matters-center {
    text-align: center;
  }

  .icon-row {
    margin: 0 auto 32px;
  }

  /* How It Works - tablet */
  .how-screens-showcase {
    padding: 0;
    overflow: visible;
  }

  .carousel-container {
    transform: scale(0.8);
    transform-origin: center center;
    margin: -50px 0;
  }

  /* Hide decorative side elements if any were added later, otherwise this space is clean */

  /* Stories */
  /* Stories */
  .stories-grid {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .story-tabs {
    width: 100%;
    margin-right: 0;
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    gap: 12px;
  }

  .story-tabs::-webkit-scrollbar {
    display: none;
  }

  .story-tab {
    flex-shrink: 0;
    padding: 12px 20px;
    width: auto;
    min-width: 120px;
  }

  .story-tab span {
    display: block;
    /* Show text on tablet/mobile for better UX */
    font-size: 14px;
  }

  .story-tab img {
    width: 40px;
    height: 40px;
  }

  .story-carousel-wrapper {
    min-height: auto;
  }

  .story-card {
    flex-direction: column;
    min-height: auto;
    height: auto;
    background: #0f121f;
    /* darker background for card content */
  }

  .story-image {
    position: relative;
    width: 100%;
    height: 280px;
    order: 1;
  }

  .story-content {
    position: relative;
    width: 100%;
    height: auto;
    padding: 32px 24px 100px;
    /* Extra bottom padding for nav */
    background: transparent;
    order: 2;
  }

  .story-content blockquote {
    font-size: 24px;
  }

  .carousel-nav {
    bottom: 32px;
    right: 32px;
  }

  /* CTA */
  .cta-form-wrapper {
    flex-direction: column;
  }

  .cta-form {
    min-width: auto;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }

  .cta-form input {
    width: 100%;
    background: var(--white-10);
    border: 1px solid var(--white-15);
    border-radius: 50px;
  }

  .cta-form .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .nav-logo,
  .footer-logo {
    font-size: 20px;
  }

  .nav-logo-icon {
    width: 22px;
    height: 11px;
  }

  .container {
    padding: 0 16px;
  }

  .story-content {
    padding: 32px 20px;
  }

  /* Features Showcase - Mobile */
  .features-showcase-container {
    padding: 0 16px;
  }

  .features-content {
    flex-direction: column;
    gap: 40px;
  }

  .features-img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .features-img {
    width: calc(100% + 60px);
    height: calc(100% + 60px);
  }

  .glass-panel {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
  }

  .glass-panel:hover {
    transform: none;
  }

  .science-content {
    padding: 32px 24px;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 20px;
    gap: 12px;
  }

  .faq-text {
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0 20px 20px 52px;
    font-size: 14px;
  }
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Science Section Responsiveness
   ============================================= */
@media (max-width: 900px) {
  .science {
    min-height: auto;
    padding: 60px 0 0;
    /* No bottom padding, image sits at bottom */
  }

  .science-container {
    flex-direction: column;
    height: auto;
    padding: 0 20px;
  }

  .science-card {
    width: 100%;
    max-width: 600px;
    margin-left: 0;
    margin-bottom: 40px;
    padding: 40px;
  }

  .science-bg {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 400px;
    /* visible height for doctor */
    margin-bottom: 0;
  }

  .science-bg-img {
    object-position: top center;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }
}

/* =============================================
   Privacy Modal
   ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

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

.modal-content {
  width: 100%;
  max-width: 600px;
  background: var(--bg-dark-1);
  border: 1px solid var(--white-15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--white-100);
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--white-60);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--white-100);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-family: var(--font-body);
  color: var(--white-80);
  font-size: 15px;
  line-height: 1.6;
}

.modal-body h3 {
  color: var(--white-100);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--white-5);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--white-20);
  border-radius: 3px;
}

@media (max-width: 480px) {
  .science-card {
    padding: 30px 24px;
    border-radius: 30px;
  }

  .science-card h2 {
    font-size: 28px;
  }

  .science-bg {
    height: 300px;
  }

  .carousel-container {
    transform: scale(0.65);
    margin: -80px 0;
  }
}