/* RapidRebus Landing Page Styles */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors from Flutter App */
  --primary-green: #2D5A3D;
  --accent-orange: #FF6B35;
  --warm-cream: #FDF7E4;
  --neutral-white: #FFFFFF;
  --trust-blue: #4A90C2;
  --subtle-gray: #F5F7FA;
  --text-dark: #2C3E50;
  --text-medium: #5A6C7D;
  --text-light: #8B9AAB;
  --success-green: #27AE60;
  --warning-yellow: #F39C12;
  --error-red: #E74C3C;
  --info-blue: #3498DB;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-green), var(--trust-blue));
  --accent-gradient: linear-gradient(135deg, var(--accent-orange), var(--warning-yellow));
  --hero-gradient: linear-gradient(135deg, var(--primary-green), var(--trust-blue), var(--accent-orange));
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 25px rgba(45, 90, 61, 0.2);
  --shadow-accent: 0 10px 25px rgba(255, 107, 53, 0.2);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--neutral-white);
}

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

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

/* ===== LAYOUT & CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition-fast);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary-green);
  background-color: rgba(45, 90, 61, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--neutral-white);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg) 0;
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu .nav-link {
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
  }
  
  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-menu .nav-link:hover {
    background-color: var(--subtle-gray);
  }
  
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(140deg, #1a3d28 0%, #2D5A3D 35%, #3a6b8a 70%, #2a4a6b 100%);
  padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-3xl);
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  animation: float 20s infinite linear;
  z-index: 0;
  pointer-events: none;
}

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

/* Ensure hero content doesn't overflow into other sections */
.hero {
  contain: layout style paint;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Hero eyebrow */
.hero-eyebrow {
  margin-bottom: var(--spacing-md);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-2xl);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #7fffb4, #a8d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xl);
  max-width: 480px;
  line-height: 1.65;
}

/* Hero social proof inline */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.hero-stars {
  color: #FFD700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hero-proof-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-proof-text strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.hero-features {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.9rem;
}

.hero-features .feature-icon {
  font-size: 1rem;
}

.feature-icon-wrapper .feature-icon {
  font-size: 3rem;
  line-height: 1;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 20;
}

/* Try demo link */
.btn-try-demo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-try-demo:hover {
  color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  gap: var(--spacing-sm);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
}

.puzzle-demo {
  position: relative;
  animation: floatPuzzle 3s ease-in-out infinite alternate;
}

.puzzle-rotating {
  position: relative;
}

.puzzle-rotating::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary-green);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 10;
  animation: spin 1.2s linear infinite;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--neutral-white);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatPuzzle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.puzzle-card {
  background: var(--neutral-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
}

.puzzle-clues {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.clue-item {
  width: 80px;
  height: 80px;
  background: var(--warm-cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--subtle-gray);
  transition: var(--transition-normal);
}

.clue-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-green);
}

.answer-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.answer-box {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: var(--neutral-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  animation: typeWriter 0.5s ease-out forwards;
  opacity: 0;
  transform: scale(0.8);
}

.answer-box:nth-child(1) { animation-delay: 0.1s; }
.answer-box:nth-child(2) { animation-delay: 0.2s; }
.answer-box:nth-child(3) { animation-delay: 0.3s; }
.answer-box:nth-child(4) { animation-delay: 0.4s; }
.answer-box:nth-child(5) { animation-delay: 0.5s; }
.answer-box:nth-child(6) { animation-delay: 0.6s; }
.answer-box:nth-child(7) { animation-delay: 0.7s; }
.answer-box:nth-child(8) { animation-delay: 0.8s; }
.answer-box:nth-child(9) { animation-delay: 0.9s; }
.answer-box:nth-child(10) { animation-delay: 1.0s; }

@keyframes typeWriter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  animation: celebrate 2s ease-out 1.5s forwards;
}

@keyframes celebrate {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.success-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-primary);
  text-align: center;
}

/* Puzzle label in hero card */
.puzzle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* Hero store buttons */
.hero-store-button {
  display: block;
  transition: var(--transition-normal);
  width: 190px;
  height: 58px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.hero-store-button:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.hero-store-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hero app badges (stats panel) */
.hero-app-badges {
  width: 100%;
  max-width: 320px;
}

.app-badge-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-md);
}

.app-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-badge-number {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.app-badge-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-badge-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }

  .hero-social-proof {
    justify-content: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }
  
  .hero {
    padding: calc(100px + var(--spacing-xl)) 0 var(--spacing-2xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-app-badges {
    max-width: 280px;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }
  
  .hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-2xl);
  }
  
  .puzzle-card {
    min-width: 250px;
    padding: var(--spacing-lg);
  }
  
  .clue-item {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .answer-box {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .hero-store-button {
    width: 170px;
    height: 52px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
  position: relative;
  z-index: 25;
}

.btn-primary {
  background: var(--neutral-white);
  color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--warm-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--neutral-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-icon {
  transition: var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== INTERACTIVE DEMOS SECTION ===== */
.interactive-demos {
  padding: var(--spacing-3xl) 0;
  background: var(--neutral-white);
  position: relative;
  z-index: 2;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.demo-card {
  background: var(--neutral-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.demo-card:nth-child(1) { animation-delay: 0.1s; }
.demo-card:nth-child(2) { animation-delay: 0.2s; }
.demo-card:nth-child(3) { animation-delay: 0.3s; }
.demo-card:nth-child(4) { animation-delay: 0.4s; }
.demo-card:nth-child(5) { animation-delay: 0.5s; }
.demo-card:nth-child(6) { animation-delay: 0.6s; }

.demo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.demo-card[data-solved="true"] {
  border-color: var(--success-green);
  background: linear-gradient(135deg, var(--neutral-white), rgba(39, 174, 96, 0.05));
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--subtle-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-header h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.demo-timer {
  font-size: 0.9rem;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.demo-puzzle {
  padding: var(--spacing-xl);
  text-align: center;
}

.demo-clues {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  min-height: 80px;
  align-items: center;
}

.demo-clue {
  width: 70px;
  height: 70px;
  background: var(--warm-cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--subtle-gray);
  transition: var(--transition-normal);
}

.demo-clue:hover {
  transform: scale(1.05);
  border-color: var(--primary-green);
}

.demo-clue.pi-symbol {
  font-family: 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-green);
  background: var(--neutral-white);
  border: 2px solid var(--primary-green);
}

.demo-clues.special-layout {
  flex-direction: column;
  position: relative;
  height: 80px;
}

.demo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-dark);
  position: absolute;
}

.demo-text.top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.demo-text.bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--primary-green);
}

.demo-clue-combo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.demo-word {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--subtle-gray);
  border-radius: var(--radius-md);
  background: var(--warm-cream);
}

.demo-word.crossed-out {
  position: relative;
  color: var(--text-light);
}

.demo-word.crossed-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--error-red);
  transform: translateY(-50%);
}

.demo-text-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
}

.reading-line {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  letter-spacing: 3px;
}

.between-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-green);
  background: rgba(45, 90, 61, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--primary-green);
}

.crossed-reading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.reading-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-dark);
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.cross-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 3px;
  background: var(--error-red);
  z-index: 3;
}

.answer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
  max-width: 300px;
  margin: 0 auto;
}

.answer-grid.mind-over-matter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 350px;
}

.answer-grid.reading-between-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 400px;
}

.answer-grid.i-understand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 380px;
}

.word-row {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
}

.demo-box {
  width: 35px;
  height: 35px;
  background: var(--subtle-gray);
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.demo-box.revealed {
  background: var(--primary-green);
  color: var(--neutral-white);
  transform: scale(1.1);
  animation: revealLetter 0.5s ease-out;
}

@keyframes revealLetter {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.demo-hint {
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(45, 90, 61, 0.05);
  color: var(--text-medium);
  font-style: italic;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-action {
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: center;
}

.demo-btn {
  background: var(--primary-gradient);
  color: var(--neutral-white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-body);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.demo-btn:disabled {
  background: var(--success-green);
  cursor: not-allowed;
  transform: none;
}

.demos-cta {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--subtle-gray);
  border-radius: var(--radius-xl);
  margin-top: var(--spacing-2xl);
}

.demos-cta p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-lg);
}

.demo-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(39, 174, 96, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--neutral-white);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-normal);
  border-radius: var(--radius-xl);
}

.demo-success.show {
  opacity: 1;
  transform: scale(1);
}

.demo-success h4 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.demo-success p {
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .demos-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .demo-clue {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .demo-box {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .reading-line {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .between-text {
    font-size: 0.7rem;
  }
  
  .demo-text {
    font-size: 1rem !important;
  }
  
  .demo-text.bottom {
    font-size: 1.2rem !important;
  }
  
  .reading-text {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
  
  .cross-line {
    width: 110%;
    height: 2px;
  }
  
  .answer-grid.mind-over-matter {
    max-width: 280px;
  }
  
  .answer-grid.reading-between-lines {
    max-width: 320px;
  }
  
  .answer-grid.i-understand {
    max-width: 300px;
  }
  
  .word-row {
    gap: var(--spacing-xs);
  }
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--spacing-3xl) 0;
  background: var(--subtle-gray);
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.feature-card {
  background: var(--neutral-white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 92px;
  height: 92px;
  background: rgba(45, 90, 61, 0.08);
  border: 1.5px solid rgba(45, 90, 61, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 3rem;
  line-height: 1;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(45, 90, 61, 0.14);
  border-color: rgba(45, 90, 61, 0.3);
  transform: scale(1.08);
}

.feature-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

.feature-card.free-highlight {
  background: linear-gradient(135deg, var(--neutral-white), rgba(39, 174, 96, 0.05));
  border: 2px solid var(--success-green);
  position: relative;
  overflow: visible;
}



.feature-card.free-highlight .feature-icon-wrapper {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.3);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
  }
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
  padding: var(--spacing-3xl) 0;
  background: var(--neutral-white);
  position: relative;
  z-index: 2;
}

.screenshots-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
  transition: var(--transition-normal);
}

.screenshot-item img:hover {
  transform: scale(1.05);
}

.screenshot-caption h4 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.screenshot-caption p {
  color: var(--text-medium);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
  padding: var(--spacing-3xl) 0;
  background: var(--primary-gradient);
  color: var(--neutral-white);
  position: relative;
  z-index: 2;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.download-text h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.download-text p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.9;
}

.download-stats {
  display: flex;
  gap: var(--spacing-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.store-button {
  display: block;
  transition: var(--transition-normal);
  width: 180px;
  height: 60px;
}

.store-button:hover {
  transform: scale(1.05);
}

.store-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .download-stats {
    justify-content: center;
  }
  
  .store-button {
    width: 160px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .store-button {
    width: 140px;
    height: 45px;
  }
  
  .download-buttons {
    gap: var(--spacing-md);
  }
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: var(--spacing-3xl) 0;
  background: var(--subtle-gray);
  position: relative;
  z-index: 2;
}

.faq-grid {
  display: grid;
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition-normal);
}

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

.faq-question {
  padding: var(--spacing-lg) var(--spacing-xl);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.faq-question:hover {
  background: rgba(45, 90, 61, 0.02);
}

.faq-question h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-green);
  font-weight: 300;
  transition: var(--transition-normal);
}

.faq-answer {
  padding: 0 var(--spacing-xl) var(--spacing-lg);
  color: var(--text-medium);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* ===== UTILITY ===== */
.desktop-only {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: var(--neutral-white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

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

.footer-store-badges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-store-badge {
  display: block;
  transition: var(--transition-fast);
  width: 140px;
  height: 42px;
  opacity: 0.8;
}

.footer-store-badge:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Legacy footer-content removed in favour of footer-top */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.footer-brand-name {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-white);
}

.footer-description {
  margin-bottom: var(--spacing-lg);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

.footer-section h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--neutral-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  opacity: 0.7;
}

.footer-bottom p {
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-store-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--neutral-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--subtle-gray);
}

.modal-header h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-close {
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--error-red);
}

.modal-body {
  padding: var(--spacing-xl);
}

.contact-info {
  margin-top: var(--spacing-lg);
}

.contact-item {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--subtle-gray);
  border-radius: var(--radius-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshots-carousel {
    grid-template-columns: 1fr;
  }
  
  .download-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.btn:focus,
.nav-link:focus,
.social-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-light: #666;
    --subtle-gray: #e0e0e0;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero,
  .modal {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section-title {
    color: black !important;
  }
}

/* ===== DEMO CARD INPUT ===== */
.demo-action {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.demo-input-area {
  display: flex;
  width: 100%;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.demo-guess-input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  border: 2px solid rgba(45, 90, 61, 0.2);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--neutral-white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.demo-guess-input:focus {
  border-color: var(--primary-green);
}

.demo-guess-input::placeholder {
  color: var(--text-light);
}

.demo-submit-btn {
  padding: 0 1rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.demo-submit-btn:hover {
  background: var(--success-green);
}

.demo-reveal-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.demo-reveal-btn:hover {
  color: var(--text-medium);
}

/* Wrong answer shake */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.demo-guess-input.demo-input-wrong {
  border-color: #e74c3c;
  animation: inputShake 0.4s ease-in-out;
}

/* Correct guess bounce */
@keyframes cardPop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.04); }
}

.demo-card-correct {
  animation: cardPop 0.5s ease-in-out;
}

/* ===== DEMOS CTA STORE BUTTONS ===== */
.demos-cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

/* ===== STICKY DOWNLOAD BAR ===== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--neutral-white);
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.sticky-bar-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-bar-text strong {
  color: var(--neutral-white);
}

.sticky-bar-buttons {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-shrink: 0;
}

.sticky-store-btn {
  display: block;
  transition: var(--transition-normal);
  height: 40px;
  width: auto;
}

.sticky-store-btn img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.sticky-store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.sticky-bar-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 var(--spacing-xs);
  line-height: 1;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.sticky-bar-close:hover {
  color: var(--neutral-white);
}

@media (max-width: 640px) {
  .sticky-bar-text {
    display: none;
  }

  .sticky-bar-inner {
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
  }

  .sticky-store-btn {
    height: 36px;
  }
}

/* ===== SOCIAL PROOF / TESTIMONIALS SECTION ===== */
.social-proof {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, #f0f4f0 0%, var(--subtle-gray) 100%);
  position: relative;
  z-index: 2;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.rating-stars {
  color: #FFD700;
  font-size: 1.75rem;
  letter-spacing: 2px;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.rating-value {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.rating-count {
  font-size: 0.85rem;
  color: var(--text-medium);
}

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

.review-card {
  background: var(--neutral-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-xl);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-green);
  opacity: 0.12;
  font-family: Georgia, serif;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: #FFD700;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reviewer-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--neutral-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-2xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.trust-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .rating-summary {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .rating-details {
    text-align: center;
    align-items: center;
  }
}

/* ===== POST-DEMO CTA OVERLAY ===== */
.demo-success-cta {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a3d28 0%, #2D5A3D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--neutral-white);
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-xl);
  z-index: 10;
  text-align: center;
}

.demo-success-cta.show {
  opacity: 1;
  transform: scale(1);
}

.demo-success-cta .cta-emoji {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.demo-success-cta h4 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.demo-success-cta p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.demo-success-cta .cta-stores {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.demo-success-cta .cta-store-btn {
  display: block;
  height: 38px;
  transition: var(--transition-fast);
  opacity: 0.92;
}

.demo-success-cta .cta-store-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.demo-success-cta .cta-store-btn img {
  height: 100%;
  width: auto;
}

/* ===== ENHANCED SCREENSHOTS SECTION ===== */
.screenshots {
  background: linear-gradient(180deg, #1a2a20 0%, #0f1a14 100%);
  padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) + var(--spacing-xl));
}

.screenshots .section-title {
  color: var(--neutral-white);
}

.screenshots .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.screenshots-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.screenshot-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.screenshot-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-item:nth-child(2) { transition-delay: 0.15s; }
.screenshot-item:nth-child(3) { transition-delay: 0.3s; }

.screenshot-item img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--spacing-lg);
  transition: transform 0.4s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-item img:hover {
  transform: translateY(-8px) scale(1.02);
}

.screenshot-caption h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-white);
  margin-bottom: var(--spacing-sm);
}

.screenshot-caption p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .screenshots-carousel {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    max-width: 300px;
  }
}

/* ===== IMPROVED DOWNLOAD SECTION ===== */
.download-text h2 {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
}

.download-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
}

.store-button {
  display: block;
  transition: var(--transition-normal);
  width: 200px;
  height: 65px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.store-button:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}

.store-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Download section QR placeholder */
.download-qr {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.download-qr-label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

.qr-box {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ===== PLATFORM-SPECIFIC STORE BUTTON VISIBILITY ===== */
/* Default: show both. JS will add .platform-ios or .platform-android to <body> */
body.platform-ios .android-only { display: none !important; }
body.platform-android .ios-only { display: none !important; }
body.platform-ios .hero-cta-group .hero-store-button,
body.platform-android .hero-cta-group .hero-store-button {
  width: 220px;
  height: 66px;
}
