/* ============================================================================
   LunaFY Landing Page — Design System & Styles
   Theme: Earthy greens, nature-inspired, glassmorphism
   ============================================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette */
  --primary: #6B7C40;
  --primary-light: #8DA05B;
  --primary-dark: #4A5B2E;
  --primary-muted: rgba(107, 124, 64, 0.15);

  /* Secondary */
  --secondary: #4E7A5F;
  --secondary-light: #6B9B7C;
  --secondary-dark: #3A5C47;

  /* Accent */
  --accent: #FFD700;
  --accent-light: #FFEB99;

  /* Backgrounds */
  --bg: #F5F7F2;
  --bg-dark: #1a2e1a;
  --bg-darker: #0f1f0f;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-glass-light: rgba(255, 255, 255, 0.85);

  /* Text */
  --text: #2C3E2D;
  --text-secondary: #6B7B6C;
  --text-tertiary: #9CA99D;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255, 255, 255, 0.7);

  /* Semantic */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #FF6961;
  --info: #2196F3;

  /* Macro Colors */
  --protein: #EF9A9A;
  --carbs: #FFE082;
  --fat: #90CAF9;
  --water: #2196F3;

  /* UI */
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 31, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-inverse);
}

.nav-logo-text span {
  font-weight: 300;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-inverse-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--text-inverse);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--text-inverse) !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 124, 64, 0.4);
}

/* Mobile Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0f1f0f 0%, #1a3a1a 30%, #2a4a2a 50%, #1a3a1a 70%, #0f1f0f 100%);
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

/* Animated background orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 124, 64, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float-orb 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(78, 122, 95, 0.25) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(141, 160, 91, 0.4);
  border-radius: 50%;
  animation: particle-float linear infinite;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: fade-in-up 0.8s ease forwards;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-inverse-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.8s ease 0.5s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-inverse);
}

.hero-stat-value span {
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  animation: fade-in-up 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fade-in-up 1s ease 0.4s forwards;
  opacity: 0;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
  transition: transform 0.6s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: var(--bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

/* Floating glow behind phone */
.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107, 124, 64, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Floating feature badges around phone */
.float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float-badge 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.float-badge .badge-icon {
  font-size: 1.2rem;
}

.float-badge:nth-child(1) {
  top: 15%;
  left: -60px;
  animation-delay: 0s;
}

.float-badge:nth-child(2) {
  top: 45%;
  right: -70px;
  animation-delay: 1s;
}

.float-badge:nth-child(3) {
  bottom: 20%;
  left: -50px;
  animation-delay: 2s;
}

/* ============================================================================
   STORE BUTTONS
   ============================================================================ */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.store-btn:hover::before {
  opacity: 1;
}

.store-btn-apple {
  background: var(--text-inverse);
  color: #1a1a1a;
}

.store-btn-apple:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.store-btn-google {
  background: transparent;
  color: var(--text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.store-btn-google:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.1);
}

.store-icon {
  font-size: 1.4rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-text-small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-text-main {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */
.features {
  padding: var(--space-5xl) 0;
  background: var(--bg);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-light);
  /* animate-on-scroll default state */
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(107, 124, 64, 0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-md);
  position: relative;
}

.feature-icon.icon-ai {
  background: linear-gradient(135deg, rgba(107, 124, 64, 0.15), rgba(141, 160, 91, 0.1));
  color: var(--primary);
}

.feature-icon.icon-water {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
  color: var(--water);
}

.feature-icon.icon-macro {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
  color: var(--warning);
}

.feature-icon.icon-journey {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  color: var(--success);
}

.feature-icon.icon-plan {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(156, 39, 176, 0.05));
  color: #9C27B0;
}

.feature-icon.icon-report {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
  color: #E91E63;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================================
   SCREENSHOTS SECTION
   ============================================================================ */
.screenshots {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #e8ede3 100%);
  overflow: hidden;
}

.screenshots-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.screenshots-track {
  display: flex;
  gap: var(--space-xl);
  animation: scroll-infinite 30s linear infinite;
  width: max-content;
}

.screenshot-item {
  flex-shrink: 0;
  width: 240px;
  transition: transform 0.4s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-phone {
  background: #1a1a1a;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.screenshot-phone img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */
.how-it-works {
  padding: var(--space-5xl) 0;
  background: var(--surface);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 16.66%;
  width: 66.66%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-muted), var(--primary), var(--primary-muted));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  box-shadow: 0 8px 32px rgba(107, 124, 64, 0.3);
}

.step-number span {
  font-size: 2rem;
  color: var(--text-inverse);
  font-weight: 800;
}

.step-number .step-emoji {
  font-size: 2.5rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */
.testimonials {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-inverse);
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta {
  padding: var(--space-5xl) 0;
  background: linear-gradient(160deg, #0f1f0f 0%, #1a3a1a 40%, #2a4a2a 60%, #1a3a1a 80%, #0f1f0f 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 124, 64, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
}

.cta h2 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-inverse-muted);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: var(--bg-darker);
  padding: var(--space-3xl) 0 var(--space-lg);
  color: var(--text-inverse-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-description {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-inverse);
}

.footer-logo span {
  font-weight: 300;
  color: var(--accent);
}

.footer-column h4 {
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-sm);
}

.footer-column a {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes particle-float {
  from {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes scroll-infinite {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes counter-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   SCROLL ANIMATION CLASSES
   ============================================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-60px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(60px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

.animate-on-scroll.scale-in {
  transform: scale(0.85);
}

.animate-on-scroll.scale-in.visible {
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ============================================================================
   LEGAL PAGES (Privacy, Terms, Support)
   ============================================================================ */
.legal-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
  background: var(--bg);
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-muted);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

/* Legal page navbar dark variant */
.legal-page ~ .navbar,
.navbar.legal-nav {
  background: rgba(15, 31, 15, 0.95);
  backdrop-filter: blur(20px);
}

/* ============================================================================
   SUPPORT PAGE SPECIFIC
   ============================================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.support-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.support-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.support-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition-fast);
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: var(--primary-muted);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 31, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .phone-mockup {
    width: 220px;
    transform: perspective(1000px) rotateY(0);
  }

  .float-badge {
    display: none;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-item {
    width: 180px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .phone-mockup {
    width: 200px;
  }

  .hero-stat-value {
    font-size: 1.4rem;
  }
}

/* ============================================================================
   PREFERS REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .screenshots-track {
    animation: none;
  }
}
