/* ========================================
   MODERN HOMEPAGE STYLES - Portal do Poupador
   Anti-Cliché Design | Trust & Control
   ======================================== */

/* ===== VARIABLES ===== */
:root {
  /* Brand Colors */
  --verde-primario: #034d42;
  --verde-secundario: #505d3c;
  --verde-escuro: #2d5a4d;
  --dourado: #FFB800;
  --dourado-queimado: #d4a574;
  
  /* Neutrals */
  --branco: #ffffff;
  --preto: #1a1a1a;
  --cinza-escuro: #2d3436;
  --cinza-medio: #636e72;
  --cinza-claro: #f5f5f5;
  
  /* Feedback Colors */
  --verde-positivo: #28a745;
  --vermelho-negativo: #dc3545;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Borders - Sharp for Trust */
  --border-radius-sharp: 2px;
  --border-radius-small: 4px;
}

/* ===== HERO SECTION - ASYMMETRIC 70/30 ===== */
.hero-section-modern {
  background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-escuro) 100%);
  padding: var(--spacing-xl) 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Content (Left 70%) */
.hero-content {
  padding-right: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--branco);
  margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
  color: var(--dourado);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  max-width: 540px;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.btn-primary-sharp {
  background: var(--dourado);
  color: var(--preto);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sharp);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.btn-primary-sharp:hover {
  background: #e6a700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
  color: var(--preto);
}

.btn-primary-sharp svg {
  transition: transform 0.2s ease;
}

.btn-primary-sharp:hover svg {
  transform: translateX(4px);
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Hero Visual (Right 30%) */
.hero-visual {
  position: relative;
  height: 500px;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--branco);
  border-radius: var(--border-radius-small);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  min-width: 220px;
}

.floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}


/* Card 1: Receitas - Right Column Top */
.floating-card.card-1 {
  top: 8%;
  right: 5%;
  animation: float 6s ease-in-out infinite;
  z-index: 5;
}

/* Card 2: Despesas - Left Column Top */
.floating-card.card-2 {
  top: 15%;
  right: 50%;
  animation: float 6s ease-in-out 1.5s infinite;
  z-index: 4;
}

/* Card 3: Saldo Atual - Right Column Middle */
.floating-card.card-3 {
  top: 40%;
  right: 8%;
  animation: float 6s ease-in-out 3s infinite;
  z-index: 3;
}

/* Card 4: A Pagar - Left Column Bottom */
.floating-card.card-4 {
  top: 55%;
  right: 52%;
  animation: float 6s ease-in-out 4.5s infinite;
  z-index: 2;
}

/* Card 5: Saldo Projetado - Right Column Bottom */
.floating-card.card-5 {
  bottom: 8%;
  right: 0%;
  animation: float 6s ease-in-out 6s infinite;
  z-index: 1;
}


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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.green {
  background: linear-gradient(135deg, var(--verde-primario), var(--verde-positivo));
  color: var(--branco);
}

.card-icon.red {
  background: linear-gradient(135deg, #c0392b, var(--vermelho-negativo));
  color: var(--branco);
}

.card-icon.gold {
  background: linear-gradient(135deg, var(--dourado-queimado), var(--dourado));
  color: var(--preto);
}

.card-icon.orange {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: var(--branco);
}

.card-icon.blue {
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: var(--branco);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-label {
  font-size: 0.875rem;
  color: var(--cinza-medio);
  font-weight: 500;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--preto);
  letter-spacing: -0.5px;
}

.card-value.positive {
  color: var(--verde-positivo);
}

.card-value.warning {
  color: #e67e22;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-section-modern {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
  }
  
  .floating-card {
    min-width: 180px;
    padding: 0.8rem;
  }
  
  .card-value {
    font-size: 1.25rem;
  }

  /* Zig-zag pattern for medium screens */
  .floating-card.card-1 { top: 0%; right: 5%; }
  .floating-card.card-2 { top: 20%; right: auto; left: 5%; }
  .floating-card.card-3 { top: 40%; right: 5%; }
  .floating-card.card-4 { top: 60%; right: auto; left: 5%; }
  .floating-card.card-5 { top: 80%; right: 5%; bottom: auto; }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-primary-sharp {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-visual {
    height: 480px;
    margin-top: 2rem;
  }

  .floating-card {
    min-width: 145px;
    padding: 0.6rem;
    gap: 0.5rem;
  }
  
  .card-icon {
    width: 32px;
    height: 32px;
  }
  
  .card-icon svg {
    width: 16px;
    height: 16px;
  }

  .card-value {
    font-size: 1.1rem;
  }
  .card-label {
    font-size: 0.75rem;
  }
}

/* ===== FEATURES SECTION UPDATES ===== */
.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--preto);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--cinza-medio);
  max-width: 600px;
  margin: 0 auto;
}

/* Remove Purple - Apply Green-Dark Instead */
.flip-card-back[style*="#6c5ce7"],
.flip-card-back[style*="#a29bfe"] {
  background: linear-gradient(135deg, var(--verde-escuro) 0%, #3d6b5e 100%) !important;
}
