/* styles.css - Core styles for QuickPlate marketing site */

/* ===========================
   CSS Variables (Design System)
   =========================== */
:root {
  /* Colors - matching app */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;

  /* Macro colors */
  --calories: #8b5cf6;
  --protein: #3b82f6;
  --carbs: #10b981;
  --fats: #f59e0b;

  /* Neutrals - Light Mode */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-secondary: #f3f4f6;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-padding: 6rem 1.5rem;
  --content-max-width: 1200px;

  /* Animation */
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-spring-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-spring: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-secondary: #252525;
  --text: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --border: #27272a;
  --border-light: #1f1f23;
}

/* Dark mode adjustments for specific elements */
[data-theme="dark"] .nav--scrolled {
  background: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .phone-frame {
  background: linear-gradient(145deg, #3d3d3d, #2a2a2a);
}

[data-theme="dark"] .hero-bg-gradient {
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   Sparkle Container
   =========================== */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

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

.nav-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Ensure nav button has correct colors */
.nav-links a.btn-primary {
  color: white;
}

.nav-links a.btn-primary:hover {
  color: white;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface-secondary);
}

.theme-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  color: var(--text-secondary);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-spring-snappy);
}

/* Moon icon - visible in light mode (click to go dark) */
.theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Dark mode: show sun (click to go light), hide moon */
[data-theme="dark"] .theme-icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--duration-spring) var(--ease-spring-snappy),
              box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--content-max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--protein));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Phone Mockup */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1a202c;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
}

/* Mock App Content */
.mock-app {
  padding: 50px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-header {
  text-align: center;
}

.mock-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 8px;
}

.mock-nav-arrow {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.mock-nav-hidden {
  visibility: hidden;
}

.mock-date-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mock-macro-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.mock-macro-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mock-macro-label {
  font-size: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mock-macro-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.mock-macro-target {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 9px;
}

.mock-macro-bar-container {
  width: 100%;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.mock-macro-bar {
  height: 100%;
  border-radius: 2px;
}

.mock-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mock-progress {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mock-calories {
  text-align: center;
  margin-bottom: 12px;
}

.mock-cal-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.mock-cal-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-cal-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.mock-cal-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

.mock-macros {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.mock-macro {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-macro-bar {
  height: 4px;
  border-radius: 2px;
}

.mock-macro-calories { background: var(--calories); }
.mock-macro-protein { background: var(--protein); }
.mock-macro-carbs { background: var(--carbs); }
.mock-macro-fats { background: var(--fats); }

.mock-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-message {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  max-width: 85%;
}

.mock-message-user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mock-food-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-left: 12px;
}

.mock-food-cal {
  color: var(--primary);
  font-weight: 600;
}

/* Mock Input Area */
.mock-input-area {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  margin: 0 -16px -16px;
  padding: 12px 16px;
}

.mock-input-field {
  flex: 1;
  background: var(--surface-secondary);
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.mock-placeholder {
  color: var(--text-tertiary);
  font-size: 12px;
}

.mock-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.mock-mic-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
}

/* ===========================
   Section Common Styles
   =========================== */
.section-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

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

/* ===========================
   Features Section
   =========================== */
.features {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: 16px;
  text-align: center;
  transition: transform var(--duration-spring) var(--ease-spring),
              box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.icon-svg {
  width: 36px;
  height: 36px;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Waveform Animation */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.waveform-bar {
  width: 4px;
  height: 15px;
  background: white;
  border-radius: 2px;
}

/* Macro Bars in Feature Icon */
.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 50px;
}

.macro-bar {
  height: 6px;
  border-radius: 3px;
}

.macro-bar--protein { background: var(--protein); width: 45px; }
.macro-bar--carbs { background: var(--carbs); width: 38px; }
.macro-bar--fats { background: var(--fats); width: 30px; }

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
  background: var(--bg);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Reverse layout: visual - number - content */
.step--reverse {
  grid-template-columns: 1fr auto 1fr;
}

.step--reverse .step-number {
  order: 0;
}

.step--reverse .step-content {
  order: 1;
}

.step--reverse .step-visual {
  order: -1;
  justify-self: end;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Step Visuals */
.chat-bubble {
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-bubble--user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.food-cards-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.food-card-mini {
  background: var(--surface);
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--ease-spring);
  gap: 8px;
}

.food-card-mini:hover {
  transform: translateX(8px);
}

.food-name {
  font-weight: 600;
}

.food-cals {
  color: var(--primary);
  font-weight: 600;
}

.progress-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.progress-item {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 1rem;
  align-items: center;
}

.progress-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.5s var(--ease-spring);
}

.progress-fill--calories { background: var(--calories); }
.progress-fill--protein { background: var(--protein); }

.progress-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
  background: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: 16px;
  transition: transform var(--duration-spring) var(--ease-spring);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--fats);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-location {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ===========================
   Download CTA Section
   =========================== */
.download-cta {
  background: var(--bg);
  padding: 4rem 1.5rem;
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 4rem 3rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.cta-gradient-text {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  position: relative;
}

.store-button {
  display: block;
  transition: transform 0.3s var(--ease-spring-snappy);
}

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

.store-badge {
  height: 50px;
  width: auto;
}

.cta-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  position: relative;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-brand {
  margin-bottom: 3rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

  .mock-app {
    padding: 45px 12px 12px;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .step--reverse .step-visual {
    order: 0;
  }

  .step-number {
    margin: 0 auto;
  }

  .step-visual {
    display: flex;
    justify-content: center;
  }

  .progress-item {
    grid-template-columns: 70px 1fr 80px;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  /* Hide scroll indicator on mobile to prevent overlap with buttons */
  .scroll-indicator {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-card {
    padding: 3rem 1.5rem;
  }

  .phone-frame {
    width: 200px;
    height: 420px;
    border-radius: 30px;
  }

  .phone-notch {
    width: 70px;
    height: 22px;
    top: 14px;
  }

  .phone-screen {
    border-radius: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-card {
    max-width: 340px;
    width: 100%;
  }

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

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}
