/* ============================================
   NUTRI PRIME — DESIGN SYSTEM
   Paleta idêntica ao pacotenutriprime.site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Roboto:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   1. TOKENS DE DESIGN — NutriPrime Official
   ============================================ */
:root {
  /* ── Backgrounds (igual ao site) ── */
  --bg-primary:     #ffffff;
  --bg-secondary:   #f0fdf4;   /* --light-green-bg */
  --bg-tertiary:    #f9fafb;   /* --section-bg-light */
  --bg-glass:       rgba(255, 255, 255, 0.75);
  --bg-glass-hover: rgba(240, 253, 244, 0.9);
  --bg-overlay:     rgba(31, 41, 55, 0.6);

  /* ── Bordas ── */
  --border-glass:   #e5e7eb;   /* --border-color */
  --border-accent:  rgba(34, 197, 94, 0.4);
  --border-subtle:  #f3f4f6;

  /* ── Verde Principal (igual ao site) ── */
  --accent:         #22c55e;   /* --primary-green */
  --accent-light:   #4ade80;
  --accent-dark:    #1D9008;   /* --deep-green */
  --accent-glow:    rgba(34, 197, 94, 0.25);

  /* ── Gradientes ── */
  --gradient-accent:  linear-gradient(180deg, #05e81a 0%, #01C414 100%);
  --gradient-green:   linear-gradient(135deg, #22c55e 0%, #1D9008 100%);
  --gradient-gold:    linear-gradient(135deg, #f59e0b 0%, #e8a800 100%);
  --gradient-bg:      #ffffff;

  /* ── Status ── */
  --green:          #22c55e;
  --green-glow:     rgba(34, 197, 94, 0.2);
  --green-bg:       #f0fdf4;
  --gold:           #f59e0b;
  --gold-bg:        #fef3c7;
  --red:            #ef4444;
  --red-bg:         #fef2f2;

  /* ── Texto (igual ao site) ── */
  --text-primary:   #1f2937;   /* --text-dark */
  --text-secondary: #4b5563;   /* --text-light */
  --text-muted:     #9ca3af;
  --text-disabled:  #d1d5db;
  --text-on-green:  #ffffff;

  /* ── Tipografia (Poppins + Roboto, igual ao site) ── */
  --font-heading:   'Poppins', sans-serif;
  --font-body:      'Roboto', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* ── Espaçamentos ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ── Border Radius ── */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* ── Sombras ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 5px 20px rgba(1, 196, 20, 0.35);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.08);

  /* ── Transições ── */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* ── Z-index ── */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

/* ============================================
   3. TIPOGRAFIA
   ============================================ */
.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.heading-sm {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Gradiente verde igual ao texto do site */
.text-gradient {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary  { color: var(--text-secondary); }
.text-muted      { color: var(--text-muted); }
.text-green      { color: var(--accent-dark); }
.text-xs         { font-size: 0.75rem; }
.text-sm         { font-size: 0.875rem; }
.text-lg         { font-size: 1.125rem; }
.font-mono       { font-family: var(--font-mono); }

/* ============================================
   4. LAYOUT UTILITÁRIOS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-sm {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-1  { gap: var(--sp-1); }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ============================================
   5. CARD BASE
   ============================================ */
.glass {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.glass-hover {
  transition: box-shadow var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.glass-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

/* ── Fundo decorativo ── */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-particles::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.bg-particles::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(29,144,8,0.04) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
}

/* ── Divisores ── */
.gradient-line {
  height: 2px;
  background: var(--gradient-green);
  opacity: 0.3;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
  margin: var(--sp-6) 0;
}

/* ============================================
   6. SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    #f3f4f6 25%,
    #e9faf0 50%,
    #f3f4f6 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   7. ANIMAÇÕES DE ENTRADA
   ============================================ */
.fade-in {
  animation: fade-in var(--duration-slow) var(--ease) both;
}

.fade-up {
  animation: fade-up var(--duration-slow) var(--ease) both;
}

.fade-up-delay-1 { animation-delay: 100ms; }
.fade-up-delay-2 { animation-delay: 200ms; }
.fade-up-delay-3 { animation-delay: 300ms; }
.fade-up-delay-4 { animation-delay: 400ms; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulsar igual ao botão CTA do site */
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 5px 15px rgba(1, 196, 20, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(1, 196, 20, 0.55);
    transform: scale(1.02);
  }
}

/* ============================================
   8. SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ============================================
   9. ACESSIBILIDADE
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   10. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container    { padding: 0 var(--sp-4); }
  .container-sm { padding: 0 var(--sp-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-3); }
}
