/* ═══════════════════════════════════════════════════════════════
   CalorieCalcApp.com — Design System
   Emerald-based premium design matching the Flutter app theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Primary Emerald Palette */
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-deep: #065F46;
  --emerald-light: #6EE7B7;
  --emerald-muted: #34D399;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-900: #064E3B;
  --emerald-950: #022C22;

  /* Surface & Background */
  --surface: #F0FDF8;
  --surface-alt: #ECFDF5;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(16, 185, 129, 0.12);

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-on-dark: #F1F5F9;

  /* Macro Colors */
  --protein: #EF4444;
  --carbs: #D97706;
  --fat: #3B82F6;
  --calories: #F97316;

  /* Accent */
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --pink: #EC4899;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

/* ─── 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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  overflow-x: hidden;
}

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

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

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ────────────────────────────────────────────── */
.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald), var(--emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-dark);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ─── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-brand span {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px !important;
  font-size: 0.9rem !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-phone-wrapper {
  position: relative;
  width: 320px;
}

.hero-phone {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 3px solid rgba(16, 185, 129, 0.15);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: 10%;
  left: -60px;
  animation-delay: 0s;
}

.hero-floating-card.card-2 {
  bottom: 20%;
  right: -60px;
  animation-delay: 1.5s;
}

.hero-floating-card.card-3 {
  bottom: 5%;
  left: -40px;
  animation-delay: 3s;
}

.float-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.float-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.float-value.protein { color: var(--protein); }
.float-value.carbs { color: var(--carbs); }
.float-value.calories { color: var(--calories); }

/* ─── Section Common ────────────────────────────────────────── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ─── Features Section ──────────────────────────────────────── */
.features-section {
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

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

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.emerald { background: var(--emerald-50); }
.feature-icon.blue { background: #EFF6FF; }
.feature-icon.purple { background: #F5F3FF; }
.feature-icon.orange { background: #FFF7ED; }
.feature-icon.pink { background: #FDF2F8; }
.feature-icon.amber { background: #FFFBEB; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── How It Works ──────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-900), var(--emerald-deep));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310B981' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.how-it-works .section-label {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--emerald-light);
}

.how-it-works .section-header h2 {
  color: #fff;
}

.how-it-works .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-deep);
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ─── AI Section ────────────────────────────────────────────── */
.ai-section {
  background: #fff;
}

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

.ai-content { animation: fadeInUp 0.6s ease-out; }

.ai-features-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.ai-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ai-features-list li:last-child { border-bottom: none; }

.ai-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--emerald);
}

.ai-feature-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.ai-feature-text span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.ai-demo-card {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-deep));
  border-radius: var(--radius-xl);
  padding: 32px;
  color: #fff;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-demo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ai-demo-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.ai-demo-header p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.ai-demo-content {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.ai-demo-content .highlight {
  color: var(--emerald-light);
  font-weight: 600;
}

.ai-demo-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.ai-macro {
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
}

.ai-macro-value {
  font-size: 1.3rem;
  font-weight: 800;
}

.ai-macro-value.protein { color: #F87171; }
.ai-macro-value.carbs { color: #FBBF24; }
.ai-macro-value.fat { color: #60A5FA; }

.ai-macro-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ─── Pricing Section ───────────────────────────────────────── */
.pricing-section {
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--emerald);
  transform: scale(1.03);
  box-shadow: var(--shadow-md), 0 0 30px rgba(16, 185, 129, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-dark), var(--emerald));
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-btn {
  background: #fff;
  color: var(--emerald-deep);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.2);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--emerald-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand h3 img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--emerald-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--emerald-light);
}

/* ─── Legal Pages ───────────────────────────────────────────── */
.legal-page {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.legal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 60px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.legal-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-card .effective-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.legal-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--emerald);
  border-radius: 2px;
}

.legal-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-card ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-card strong {
  color: var(--text-primary);
}

.legal-card a {
  color: var(--emerald-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card a:hover {
  color: var(--emerald);
}

/* ─── Animations ────────────────────────────────────────────── */
/* ─── Detailed Features ───────────────────────────────────────── */
.detailed-features {
  background: #fff;
  padding: var(--section-padding);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image-side {
  flex: 1;
  position: relative;
}

.feature-image-side img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(16, 185, 129, 0.05);
}

.feature-content-side {
  flex: 1;
}

.feature-content-side .section-label {
  margin-bottom: 24px;
}

.feature-content-side h2 {
  margin-bottom: 20px;
}

.feature-content-side p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.feature-list-plus {
  list-style: none;
  padding: 0;
}

.feature-list-plus li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-list-plus li span {
  width: 24px;
  height: 24px;
  background: var(--emerald-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-dark);
  font-size: 0.8rem;
}

/* ─── Extra Features Grid ─────────────────────────────────────── */
.extra-features {
  background: var(--surface-alt);
  padding: var(--section-padding);
}

.extra-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.extra-feature-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.08);
  transition: all 0.3s ease;
}

.extra-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-light);
}

.extra-feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.extra-feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.extra-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { flex-direction: column !important; text-align: center; gap: 40px; }
  .extra-features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone-wrapper { width: 260px; }
  .hero-floating-card { display: none; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .extra-features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .legal-card { padding: 32px 20px; border-radius: var(--radius-lg); }
  .legal-card h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stats { gap: 24px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
}
