/* ===================================
   RedEarthOne - Modern Design Overrides
   Based on clean SaaS aesthetic
   Mobile-First Approach (390x844px base)
   =================================== */

/* ===================================
   Typography Upgrade
   =================================== */

/* Import modern font pairing */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Updated Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Modern Shadows - Subtle elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.1);

  /* Modern Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* SCALING PATCH: Reduced spacing by 18% for compact, elegant feel */
  --space-section: clamp(2.25rem, 6vw, 4.5rem);     /* Was: 3rem, 8vw, 6rem */
  --space-container: clamp(1rem, 3vw, 1.5rem);      /* Was: 1rem, 4vw, 2rem */

  /* Max-width constraints for content */
  --max-width-content: 1200px;   /* Main content max-width */
  --max-width-text: 800px;       /* Text content max-width */
  --max-width-narrow: 600px;     /* Narrow content (CTAs, forms) */

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px);
}

/* ===================================
   Base Typography Modernization
   =================================== */

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* SCALING PATCH: Refined typography - 15% reduction for elegance */
h1 {
  font-size: clamp(1.75rem, 6.5vw, 2.75rem);   /* Was: 2rem, 8vw, 3.5rem */
  font-weight: 800;
  line-height: 1.15;
  max-width: var(--max-width-text);
  margin-inline: auto;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);      /* Was: 1.75rem, 6vw, 2.75rem */
  font-weight: 700;
  line-height: 1.2;
  max-width: var(--max-width-text);
  margin-inline: auto;
}

h3 {
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);   /* Was: 1.25rem, 4vw, 1.75rem */
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.65;                            /* Was: 1.7 - slightly tighter */
  font-size: clamp(0.9375rem, 2vw, 1rem);      /* Was: 0.9375rem, 2vw, 1.0625rem */
  max-width: var(--max-width-text);
  margin-inline: auto;
}

/* ===================================
   Modern Header Navigation
   =================================== */

/* SCALING PATCH: Reduced header height for compact feel */
.header {
  height: 70px;                                 /* Was: 80px */
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header.scrolled {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.16);
}

.home-page .header {
  background: rgba(18, 18, 18, 0.7) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.header-inner {
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* VISIBILITY ENHANCEMENT: More visible logo */
.logo-img {
  height: 58px;                                 /* Increased from 52px for better visibility */
  filter: brightness(1.4) contrast(1.1) drop-shadow(0 2px 16px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
  transition: all 0.3s ease;
}

.logo-img:hover {
  filter: brightness(1.5) contrast(1.15) drop-shadow(0 2px 20px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
  transform: scale(1.02);
}

/* Navigation Links - Modern Spacing */
.nav-menu {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: rgba(255, 255, 255, 1);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--earth-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Header Actions - Modern Buttons */
.header-actions {
  gap: clamp(0.75rem, 2vw, 1rem);
}

.language-selector-button {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.language-selector-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   Modern Button System
   =================================== */

/* SCALING PATCH: More compact button sizing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.625rem, 1.8vw, 0.875rem) clamp(1.25rem, 3.5vw, 1.75rem); /* Reduced */
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);  /* Was: 0.9375rem, 2vw, 1rem */
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--earth-red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139, 44, 31, 0.3);
}

.btn-primary:hover {
  background: var(--earth-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 44, 31, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: transparent;
  border-color: var(--earth-red);
  color: var(--earth-red);
}

.btn-secondary:hover {
  background: var(--earth-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 44, 31, 0.25);
}

/* SCALING PATCH: Reduced large button size */
.btn-large {
  padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1.75rem, 4.5vw, 2.25rem); /* Reduced */
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem); /* Was: 1rem, 2.5vw, 1.125rem */
}

/* ===================================
   Hero Section Modernization
   =================================== */

/* SCALING PATCH: Reduced hero height for better proportions */
.hero-video-section {
  min-height: 85vh;                             /* Was: 100vh */
  max-height: 900px;                            /* Prevent excessive height */
  position: relative;
}

.hero-text-overlay {
  max-width: var(--max-width-content);          /* Was: 1280px */
  padding: 0 var(--space-container);
}

/* SCALING PATCH: More refined hero typography */
.hero-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);   /* Was: 0.8125rem, 2vw, 0.9375rem */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(0.875rem, 2.5vw, 1.25rem); /* Reduced */
  padding: 0.4rem 0.875rem;                      /* Slightly smaller */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.hero-headline {
  font-size: clamp(2rem, 7.5vw, 3.5rem);         /* Was: 2.25rem, 9vw, 4.5rem */
  font-weight: 800;
  line-height: 1.12;                             /* Slightly more breathing room */
  letter-spacing: -0.03em;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);     /* Reduced */
  color: var(--white);
  max-width: var(--max-width-text);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--earth-red) 0%, #D44A3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);  /* Was: 1rem, 2.5vw, 1.25rem */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: var(--max-width-narrow);            /* Was: 600px */
  margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem); /* Reduced */
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: center;
}

.scroll-indicator {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   MODULE 1: Trust Strip - Floating Cards
   =================================== */

.trust-strip {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: linear-gradient(to bottom, var(--charcoal), var(--dark-grey));
  position: relative;
  overflow: visible;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* SCALING PATCH: Reduced trust item padding */
.trust-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);       /* Was: 1.5rem, 3vw, 2rem */
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;                                 /* Was: 1rem */
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 44, 31, 0.2);
}

/* SCALING PATCH: Reduced icon size */
.trust-icon {
  flex-shrink: 0;
  width: 42px;                                   /* Was: 48px */
  height: 42px;                                  /* Was: 48px */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--earth-red), var(--earth-red-light));
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(139, 44, 31, 0.25);
}

.trust-icon svg {
  width: 22px;                                   /* Scale SVG proportionally */
  height: 22px;
}

.trust-icon svg {
  color: var(--white);
}

.trust-text h4 {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.trust-text p {
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  color: var(--clay-brown);
  margin: 0;
  line-height: 1.5;
}

/* ===================================
   MODULE 2: Platform Overview - Modern Cards
   =================================== */

/* SCALING PATCH: Tighter vertical rhythm */
.section {
  padding: var(--space-section) 0;
}

/* SCALING PATCH: Constrained max-width for elegance */
.container {
  max-width: var(--max-width-content);          /* Was: 1280px */
  margin: 0 auto;
  padding: 0 var(--space-container);
}

/* SCALING PATCH: Tighter section header spacing */
.section-header {
  text-align: center;
  max-width: var(--max-width-text);              /* Was: 720px */
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);     /* Was: 3rem, 6vw, 4rem */
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-red);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 44, 31, 0.08);
  border-radius: var(--radius-full);
}

.section-eyebrow-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--charcoal);
  text-align: center;  /* Ensure heading is centered */
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--clay-brown);
  line-height: 1.6;
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

/* SCALING PATCH: Reduced feature card padding */
.feature-card {
  background: var(--white);
  border: 1px solid rgba(214, 206, 194, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);       /* Was: 2rem, 4vw, 2.5rem */
  box-shadow: var(--shadow-sm);
  transition: all 0.3s 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: 4px;
  background: linear-gradient(90deg, var(--earth-red), var(--earth-red-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(139, 44, 31, 0.15);
}

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

/* SCALING PATCH: Reduced badge size */
.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;                                   /* Was: 56px */
  height: 48px;                                  /* Was: 56px */
  background: linear-gradient(135deg, var(--earth-red), var(--earth-red-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;                           /* Was: 1.25rem */
  font-weight: 800;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;                        /* Was: 1.5rem */
  box-shadow: 0 4px 16px rgba(139, 44, 31, 0.25);
}

.feature-card h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--clay-brown);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--clay-brown);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  line-height: 1.6;
}

.feature-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--earth-red);
  font-weight: 700;
  font-size: 1rem;
}

/* ===================================
   MODULE 3: Compliance Highlight
   =================================== */

.compliance-highlight {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-grey) 100%);
  position: relative;
  overflow: hidden;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.compliance-text h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.compliance-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.compliance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Compliance Visual Cards */
.compliance-card-stack {
  position: relative;
  height: 400px;
  margin: 0 auto;
  max-width: 400px;
}

/* SCALING PATCH: Reduced compliance card padding */
.c-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;                               /* Was: 1.75rem */
  box-shadow: var(--shadow-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 280px;                              /* Was: 320px */
  border: 1px solid rgba(214, 206, 194, 0.2);
}

.c-card-1 {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.c-card-2 {
  top: 60px;
  left: 20px;
  transform: rotate(2deg);
  z-index: 2;
}

.c-card-3 {
  top: 120px;
  left: 10px;
  transform: rotate(-3deg);
  z-index: 3;
}

.c-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

.c-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--earth-red), var(--earth-red-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(139, 44, 31, 0.25);
}

.c-card-icon svg {
  color: var(--white);
}

.c-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.c-card-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.c-card-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ===================================
   Mobile Optimization (390px base)
   =================================== */

/* SCALING PATCH: Mobile optimizations */
@media (max-width: 768px) {
  .header {
    height: 64px;                                /* Was: 72px - more compact */
  }

  .logo-img {
    height: 50px;                                /* Increased from 44px for better visibility */
  }

  /* Hero adjustments for mobile */
  .hero-video-section {
    min-height: 80vh;                            /* Was: 100vh */
    max-height: 700px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(24px);
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .compliance-card-stack {
    height: 320px;
    margin-top: 3rem;
  }

  .c-card {
    max-width: 280px;
  }

  .c-card-1 {
    top: 0;
    left: 5%;
  }

  .c-card-2 {
    top: 50px;
    left: 10%;
  }

  .c-card-3 {
    top: 100px;
    left: 5%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .grid-3 .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ===================================
   Benefits Section - Modern Cards
   =================================== */

.section-alt {
  background: linear-gradient(to bottom, var(--soft-sand), var(--warm-sand));
  padding: var(--space-section) 0;
}

/* SCALING PATCH: Reduced benefit card padding */
.benefit-card {
  background: var(--white);
  border: 1px solid rgba(214, 206, 194, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);       /* Was: 2rem, 4vw, 2.5rem */
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--earth-red), var(--earth-red-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(139, 44, 31, 0.15);
}

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

/* SCALING PATCH: Reduced badge size */
.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;                                   /* Was: 56px */
  height: 48px;                                  /* Was: 56px */
  background: linear-gradient(135deg, var(--earth-red), var(--earth-red-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;                           /* Was: 1.25rem */
  font-weight: 800;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;                        /* Was: 1.5rem */
  box-shadow: 0 4px 16px rgba(139, 44, 31, 0.25);
}

.benefit-card h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-weight: 700;
}

.benefit-card p {
  color: var(--clay-brown);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===================================
   CTA Section - Modern Glassmorphism
   =================================== */

/* ===================================
   CTA Section - Enhanced Visibility
   =================================== */

.cta-section {
  background: linear-gradient(135deg,
    var(--charcoal) 0%,
    #1a1a1a 50%,
    var(--charcoal) 100%
  );
  padding: var(--space-section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 44, 31, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* SCALING PATCH: Constrained CTA content */
.cta-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-text);              /* Was: 800px */
  margin: 0 auto;
  padding: 0 var(--space-container);
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ===================================
   Footer - Modern & Clean
   =================================== */

/* SCALING PATCH: Reduced footer padding */
.footer {
  background: var(--charcoal);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem); /* Reduced */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo img,
.footer-logo .logo-img {
  height: 70px;
  width: auto;
  filter: brightness(1.4) contrast(1.1) drop-shadow(0 2px 12px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.footer-logo:hover img,
.footer-logo:hover .logo-img {
  filter: brightness(1.5) contrast(1.15) drop-shadow(0 2px 16px rgba(255, 255, 255, 0.4));
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  transition: color 0.2s ease;
}

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

/* ===================================
   Section Variants & Utilities
   =================================== */

/* SCALING PATCH: Tighter section header spacing */
.section-header {
  text-align: center;
  max-width: var(--max-width-text);              /* Was: 720px */
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);     /* Was: 3rem, 6vw, 4rem */
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

/* Video Dots Modernization */
.video-dots {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

.video-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.video-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.video-dots .dot.active {
  background: var(--white);
  border-color: var(--earth-red);
  height: 32px;
  border-radius: 6px;
}

/* Scroll Indicator Modernization */
.scroll-indicator {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ===================================
   Accessibility & Performance
   =================================== */

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

/* Focus states for accessibility */
.btn:focus-visible,
.nav-menu a:focus-visible,
.language-selector-button:focus-visible {
  outline: 2px solid var(--earth-red);
  outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .trust-item,
  .feature-card,
  .c-card {
    border-width: 2px;
  }
}

/* Feature Icon Image Variant */
.feature-icon-image {
  background-color: transparent !important;
  padding: 0.5rem;
  width: 80px;
  height: 80px;
}

.feature-icon-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* ===================================
   Pricing Page Hero Background
   =================================== */

.pricing-page .hero-simple {
  position: relative;
  background-image: url('/assets/images/farm-landscape-pricing.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
  overflow: hidden;
}

/* Dark overlay for text visibility */
.pricing-page .hero-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.75) 0%,
    rgba(139, 44, 31, 0.4) 50%,
    rgba(18, 18, 18, 0.7) 100%
  );
  z-index: 1;
}

/* Ensure content is above overlay */
.pricing-page .hero-simple .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* White text for visibility on dark background */
.pricing-page .hero-simple h1 {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4),
               0 4px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.pricing-page .hero-simple .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pricing-page .hero-simple {
    min-height: 300px;
    padding: clamp(3rem, 8vw, 5rem) 0;
  }
}

/* Ensure all section headings are centered */
.section h1,
.section h2 {
  text-align: center;
}

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

/* ===================================
   Platform Hero Section Enhancement
   =================================== */

/* Base hero spacing — applied to any <section class="hero"> */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
}

.platform-hero {
  background: linear-gradient(135deg,
    #0d0d0d 0%,
    #1a1a1a 50%,
    #0d0d0d 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

.platform-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 44, 31, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.platform-hero .hero-content {
  position: relative;
  z-index: 2;
}

.platform-hero .hero-text {
  text-align: center !important;
}

.platform-hero h1 {
  color: var(--white) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.2 !important;
}

.platform-hero p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Secondary button on dark hero needs light colors to be readable */
.platform-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.platform-hero .btn-secondary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Hero badge styling */
.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

/* Earth red highlight for emphasized text */
.hero-highlight-earth {
  color: var(--warm-sand) !important;
  font-weight: 800;
  background: linear-gradient(135deg, #d6cec2 0%, #e6dfd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
