/* =========================================
   ECOMANIAS - PREMIUM DESIGN SYSTEM v2
   High-Conversion Visual Identity
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* === HIGH-CONVERSION COLOR PALETTE === */
:root {
  /* Primary - Trust & Nature */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  /* Eco-Mint - Brand Accent */
  --eco-mint-100: #d1fae5;
  --eco-mint-400: #34d399;
  --eco-mint-500: #10b981;
  --eco-mint-600: #059669;

  /* Eco-Forest - Brand Deep Tones */
  --eco-forest-100: #d1fae5;
  --eco-forest-300: #6ee7b7;
  --eco-forest-500: #047857;
  --eco-forest-600: #065f46;
  --eco-forest-700: #064e3b;
  --eco-forest-800: #022c22;
  --eco-forest-900: #1a2f23;

  /* Eco-Sand - Neutral Warm Tones */
  --eco-sand-50: #fafaf9;
  --eco-sand-100: #f5f5f4;
  --eco-sand-200: #e7e5e4;

  /* Accent - Urgency & Action */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --red-600: #dc2626;

  /* Trust - Credibility */
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --indigo-500: #6366f1;

  /* Neutrals - Premium Feel */
  --white: #ffffff;
  --gray-25: #fcfcfd;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-50: #ecfdf5;
  --secondary: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Text Hierarchy */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Premium Gradients */
  --gradient-brand: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-trust: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-premium: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);

  /* Spacing - 8px Grid */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2rem;
  --space-6: 2.4rem;
  --space-8: 3.2rem;
  --space-10: 4rem;
  --space-12: 4.8rem;
  --space-16: 6.4rem;
  --space-20: 8rem;
  --space-24: 9.6rem;

  /* Border Radius */
  --radius-sm: 0.6rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.2rem;
  --radius-xl: 1.6rem;
  --radius-2xl: 2.4rem;
  --radius-full: 9999px;

  /* Premium Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-brand: 0 10px 40px -10px rgba(5, 150, 105, 0.4);
  --shadow-cta: 0 10px 40px -10px rgba(245, 158, 11, 0.4);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Ring (Focus) */
  --ring-brand: 0 0 0 3px rgba(5, 150, 105, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 128rem;
  --container-padding: 2.4rem;
  --header-height: 7.2rem;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1,
.h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 800;
}

h2,
.h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
}

h3,
.h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h4,
.h4 {
  font-size: 1.8rem;
}

h5,
.h5 {
  font-size: 1.6rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--primary-dark);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* === LAYOUT === */
.page-width {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Flex */
.flex {
  display: flex;
}

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

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

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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

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

@media (max-width: 1200px) {

  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 989px) {

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

@media (max-width: 768px) {

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

@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Spacing */
.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

/* Section Variants */
.section-white {
  background: var(--white);
}

.section-gray {
  background: var(--bg-secondary);
}

.section-gradient {
  background: var(--gradient-subtle);
}

.section-brand {
  background: var(--gradient-brand);
  color: var(--white);
}

.section-premium {
  background: var(--gradient-premium);
  color: var(--white);
}

/* === FOCUS & SELECTION === */
:focus-visible {
  outline: none;
  box-shadow: var(--ring-brand);
}

::selection {
  background: var(--green-200);
  color: var(--green-900);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* === IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

/* === TRUST INDICATORS === */
.trust-bar {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-3) 0;
  font-size: 1.3rem;
  text-align: center;
}

.trust-bar .flex {
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.9;
}

.trust-bar-item svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--green-400);
}

/* === URGENCY ELEMENTS === */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--red-500);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* === SOCIAL PROOF === */
.social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  font-size: 1.4rem;
}

.social-proof-avatars {
  display: flex;
}

.social-proof-avatars .avatar {
  width: 3.2rem;
  height: 3.2rem;
  margin-left: -0.8rem;
  border: 2px solid var(--white);
}

.social-proof-avatars .avatar:first-child {
  margin-left: 0;
}

/* === CREDIBILITY SEAL === */
.seal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--white);
  border: 2px solid var(--green-500);
  border-radius: var(--radius-lg);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-700);
}

.seal svg {
  width: 2rem;
  height: 2rem;
  color: var(--green-500);
}