:host {
  display: block;
  --brand-primary: #E33DCF;
  --brand-soft: rgba(227, 61, 207, 0.15);
  --brand-bg-light: #FDF4FC; /* Um rosa/branco muito sutil */
  --text-main: #0F172A;
  --text-muted: #64748B;
}

.home-wrapper {
  position: relative;
  min-height: 100vh;
  /* Não usamos overflow-hidden aqui para permitir o sticky footer funcionar nativamente */
}

/* ========================================= */
/* ✅ FUNDO GLOBAL FIXO (CORREÇÃO)           */
/* ========================================= */
.home-global-bg {
  position: fixed; /* Fixo na tela */
  inset: 0;        /* Cobre top, right, bottom, left */
  z-index: -1;     /* Fica atrás de tudo */
  background-color: #F8FAFC; /* Cor base sólida */
  overflow: hidden;
}

/* O Mesh Overlay dá a textura geral */
.mesh-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 10%, var(--brand-soft) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(3, 15, 170, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
}

/* Blobs flutuantes e suaves */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatBlob 10s ease-in-out infinite;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: rgba(227, 61, 207, 0.12);
}

.blob-2 {
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(3, 15, 170, 0.08);
  animation-delay: -5s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}

/* ========================================= */
/* CONTEÚDO SCROLLÁVEL                       */
/* ========================================= */
.content-scroll {
  position: relative;
  z-index: 1; /* Garante que o texto fique acima do fundo */
  padding-top: 120px; /* Espaço para o Header Fixed */
}

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */
.hero-container {
  margin-bottom: 60px;
}

.badge-saas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(227, 61, 207, 0.2);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(227, 61, 207, 0.05);

  .pulse {
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(227, 61, 207, 0.15);
  }
}

.display-title {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin-bottom: 24px;

  @media(max-width: 992px) { font-size: 2.8rem; }
  @media(max-width: 576px) { font-size: 2.2rem; }

  .text-gradient {
    background: linear-gradient(90deg, var(--brand-primary) 0%, #030FAA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.lead-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
  
  strong { color: var(--text-main); }
}

/* Botões */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary-saas {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 25px -5px rgba(227, 61, 207, 0.3);

  &:hover {
    transform: translateY(-2px);
    background: #d42bbf;
    box-shadow: 0 15px 30px -5px rgba(227, 61, 207, 0.4);
  }
}

.btn-secondary-saas {
  background: white;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.2);
    transform: translateY(-2px);
  }
}

.trust-strip {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  
  span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  i { color: var(--brand-primary); font-size: 16px; }
}

/* ========================================= */
/* MOCKUP 3D (DIREITA)                       */
/* ========================================= */
.mockup-perspective {
  position: relative;
  perspective: 1000px;
  padding: 20px;
  
  @media(max-width: 992px) {
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }
}

.mockup-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform 0.5s ease;
  
  width: 100%;
  max-width: 480px;
  min-height: 340px;
  padding: 24px;

  &:hover {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-10px);
  }
}

/* Detalhes internos do Mock */
.mock-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  
  .dots span {
    display: inline-block;
    width: 10px; height: 10px;
    background: #E2E8F0; border-radius: 50%;
    margin-right: 6px;
  }
  .bar {
    margin-left: auto;
    font-size: 11px; 
    color: var(--text-muted); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

.kpi-row { 
  display: flex; 
  gap: 12px; 
  margin-bottom: 24px; 
}

.kpi-box { 
  flex: 1; 
  background: #fff; 
  padding: 12px 16px; 
  border-radius: 12px; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);

  small { 
    display: block; 
    color: var(--text-muted); 
    font-size: 11px; 
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  strong { 
    font-size: 22px; 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif;
  }
}

.fake-chart {
  display: flex; 
  align-items: flex-end; 
  gap: 12px; 
  height: 100px; 
  margin-bottom: 24px;
  padding: 0 10px;

  .bar { 
    flex: 1; 
    background: #F1F5F9; 
    border-radius: 6px; 
    transition: height 1s ease;
  }
  .bar.active { 
    background: linear-gradient(180deg, var(--brand-primary) 0%, #B832A8 100%);
    box-shadow: 0 4px 10px rgba(227, 61, 207, 0.2);
  }
}

.fake-list .item {
  height: 36px; 
  background: white; 
  margin-bottom: 10px; 
  border-radius: 8px;
  display: flex; 
  align-items: center; 
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,0.02);
  
  span { 
    width: 20px; 
    height: 20px; 
    background: #F1F5F9; 
    border-radius: 50%; 
    margin-right: 12px;
  }
  .line { 
    flex: 1; 
    height: 6px; 
    background: #F1F5F9; 
    border-radius: 4px; 
  }
}

.floating-badge {
  position: absolute;
  bottom: 40px;
  left: -30px;
  background: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 10;

  @media(max-width: 576px) { left: 0; bottom: -20px; }

  i { color: #10B981; font-size: 18px; }
}

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

/* ========================================= */
/* FEATURES SECTION                          */
/* ========================================= */
.features-section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px); /* Glassmorphism nos cards também */
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(227, 61, 207, 0.1);

    .icon-sq {
      background: var(--brand-primary);
      color: white;
      transform: scale(1.1) rotate(-3deg);
    }
  }

  .icon-sq {
    width: 54px; 
    height: 54px;
    background: rgba(227, 61, 207, 0.08);
    color: var(--brand-primary);
    border-radius: 14px;
    display: grid; 
    place-items: center;
    font-size: 22px;
    margin-bottom: 22px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: var(--text-main);
  }
  
  p { 
    font-size: 15px; 
    color: var(--text-muted); 
    line-height: 1.6; 
  }
}

/* Utilitário de Animação */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}