/* ============================================
   JOULE - Landing Page Styles
   Refined Editorial Aesthetic
   ============================================ */

/* CSS Variables */
:root {
  /* Brand Colors */
  --sage: #5A7061;
  --sage-light: #7C9885;
  --sage-dark: #3D4D43;

  --amber: #D4A574;
  --amber-light: #E5C49E;
  --amber-dark: #A67C4D;

  /* Backgrounds */
  --bg-main: #FAFAFA;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F5F5F5;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-tertiary: #777777;
  --text-muted: #999999;

  /* Macro Colors */
  --protein: #8B7FC4;
  --carbs: #D49A6A;
  --fat: #C4937F;

  /* Utility */
  --border: #E5E5E5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

  /* Typography */
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* 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;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-elevated);
  background: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--sage);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 140px var(--space-lg) var(--space-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-elevated) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--sage);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-lg);
}

.hero-accent {
  color: var(--sage);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* App Store Buttons */
.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--text-primary);
  color: white;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 2px solid var(--text-primary);
}

.store-btn:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn.coming-soon {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
  cursor: default;
}

.store-btn.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.store-btn.large {
  padding: var(--space-md) var(--space-xl);
}

.store-icon {
  width: 24px;
  height: 24px;
}

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

.store-label {
  font-size: 10px;
  opacity: 0.8;
  line-height: 1;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.phone-mockup {
  width: 280px;
  background: var(--bg-elevated);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}

.phone-screen {
  background: var(--bg-main);
  border-radius: 28px;
  padding: var(--space-md);
  min-height: 520px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.mockup-title {
  font-size: 16px;
  font-weight: 700;
}

.mockup-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

.mockup-streak svg {
  color: var(--amber);
}

.mockup-calories {
  text-align: center;
  margin-bottom: var(--space-md);
}

.mockup-cal-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--sage);
}

.mockup-cal-label {
  font-size: 14px;
  color: var(--text-muted);
}

.mockup-progress {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.mockup-bar {
  height: 100%;
  width: var(--progress);
  background: var(--color);
  border-radius: 100px;
  transition: width 1s ease-out;
}

.mockup-macros {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.mockup-macro {
  flex: 1;
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.macro-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.macro-label {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

.macro-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.macro-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress);
  background: var(--color);
  border-radius: 100px;
}

.mockup-meals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mockup-meal {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
}

.meal-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 60px;
}

.meal-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.meal-cal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage);
  font-weight: 500;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: white;
  border-radius: var(--radius-sm);
}

.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  left: -15%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--bg-elevated);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sage);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-light);
}

.feature-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Snap Demo Animation */
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.snap-demo {
  position: relative;
  width: 240px;
}

.snap-frame {
  width: 200px;
  height: 200px;
  position: relative;
  margin: 0 auto var(--space-md);
}

.snap-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid var(--sage);
}

.snap-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.snap-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.snap-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.snap-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.snap-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px dashed var(--amber);
  border-radius: 50%;
  animation: scan 2s ease-in-out infinite;
}

.snap-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.snap-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 13px;
  animation: slideIn 0.5s ease-out backwards;
}

.snap-item:nth-child(1) { animation-delay: 0.5s; }
.snap-item:nth-child(2) { animation-delay: 0.7s; }
.snap-item:nth-child(3) { animation-delay: 0.9s; }

.snap-name {
  font-weight: 500;
}

.snap-cal {
  font-family: var(--font-mono);
  color: var(--sage);
  font-weight: 500;
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--bg-main);
}

.how-container {
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.step {
  flex: 1;
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.step-arrow {
  color: var(--border);
  flex-shrink: 0;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--bg-elevated);
}

.pricing-container {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.price-card {
  padding: var(--space-xl);
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

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

.price-card.featured {
  border-color: var(--sage);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-main) 100%);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-md);
  background: var(--sage);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 100px;
}

.price-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.price-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-currency {
  font-size: 20px;
  color: var(--text-secondary);
}

.price-value {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.price-alt {
  font-size: 13px;
  color: var(--sage);
  margin-top: var(--space-sm);
}

.price-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-features li svg {
  color: var(--sage);
  flex-shrink: 0;
}

.price-features li.highlighted {
  color: var(--text-primary);
  font-weight: 500;
}

.price-cta {
  display: block;
  width: 100%;
  padding: var(--space-md);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.price-cta.primary {
  background: var(--sage);
  color: white;
}

.price-cta.primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.price-cta.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.price-cta.secondary:hover {
  border-color: var(--text-primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--text-primary);
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
}

.cta .store-btn {
  background: white;
  color: var(--text-primary);
  border-color: white;
}

.cta .store-btn:hover {
  background: var(--bg-main);
  border-color: var(--bg-main);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}

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

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.footer-name {
  font-size: 20px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-page {
  padding: 120px var(--space-lg) var(--space-4xl);
  min-height: 100vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text-primary);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-content ul, .legal-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--sage);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--sage-dark);
}

/* ============================================
   Support Page
   ============================================ */
.support-page {
  padding: 120px var(--space-lg) var(--space-4xl);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-elevated) 100%);
}

.support-container {
  max-width: 600px;
  margin: 0 auto;
}

.support-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.support-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.support-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.support-form {
  background: var(--bg-elevated);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-display);
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--bg-elevated);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: var(--sage);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: var(--space-md);
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(90, 112, 97, 0.1);
  color: var(--sage);
  border: 1px solid var(--sage);
}

.form-message.error {
  display: block;
  background: rgba(212, 165, 116, 0.1);
  color: var(--amber-dark);
  border: 1px solid var(--amber);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes scan {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    order: -1;
  }

  .floating-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-large {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .feature-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px var(--space-md) var(--space-2xl);
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
  }

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

  .feature-large {
    grid-column: span 1;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

  .footer-main {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .phone-mockup {
    width: 260px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 28px;
  }

  .step-number {
    font-size: 36px;
  }
}
