/* ============================================================
   index.css — PixManager Landing Page
   
   Organização:
   1. Variáveis globais (cores, fontes)
   2. Reset e base
   3. Navbar
   4. Hero (seção principal)
   5. Seções de conteúdo (quem somos, o que ofertamos)
   6. Cards de features
   7. Planos e preços
   8. FAQ
   9. Footer
   10. Responsivo (mobile)
============================================================ */


/* ── 1. VARIÁVEIS GLOBAIS ───────────────────────────────────
   Todas as cores e valores reutilizáveis ficam aqui.
   Para mudar a cor principal do site, altere apenas --verde.
──────────────────────────────────────────────────────────── */
:root {
  /* Cores principais */
  --verde:        #00c853;   /* Verde Pix — cor de destaque */
  --verde-dark:   #00a040;   /* Verde mais escuro para hover */
  --verde-glow:   rgba(0, 200, 83, 0.18); /* Brilho verde suave */

  /* Fundos */
  --bg-dark:      #0a0d12;   /* Fundo principal da página */
  --bg-card:      #111722;   /* Fundo dos cards */
  --bg-card2:     #161d2b;   /* Fundo alternativo de cards */

  /* Bordas e textos */
  --border:       rgba(255, 255, 255, 0.07); /* Borda sutil */
  --text-muted:   #8a94a6;   /* Texto secundário/apagado */
  --white:        #f0f4ff;   /* Branco levemente azulado */
}


/* ── 2. RESET E BASE ────────────────────────────────────────
   Remove margens/paddings padrão do navegador e define
   configurações básicas para toda a página.
──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Scroll suave ao clicar nos links da navbar */
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden; /* Evita scroll horizontal indesejado */
}

/* Títulos usam fonte Sora (mais pesada e moderna) */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
}


/* ── 3. NAVBAR ──────────────────────────────────────────────
   Barra de navegação fixada no topo da página.
   Fica transparente mas com blur de fundo para não encobrir o conteúdo.
──────────────────────────────────────────────────────────── */
.navbar-site {
  position: fixed;        /* Sempre visível ao rolar a página */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;          /* Fica na frente de tudo */
  padding: 1rem 0;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(16px); /* Efeito de vidro fosco */
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

/* Navbar fica mais compacta quando o usuário rola a página */
.navbar-site.scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 13, 18, 0.97);
}

/* Logo da navbar */
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ícone quadrado com raio dentro do logo */
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: #00c853;        /* Verde sólido — padrão da logo */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFD600;             /* Raio amarelo */
  flex-shrink: 0;
}

/* Parte colorida do nome "Manager" */
.nav-logo .accent {
  color: var(--verde);
}

/* Lista de links no centro da navbar */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

/* Links individuais da navbar */
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Botão de login no canto direito da navbar */
.btn-login-nav {
  color: var(--white) !important;
  border: 1px solid var(--border) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  text-decoration: none;
}

.btn-login-nav:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}


/* ── 4. HERO ────────────────────────────────────────────────
   Seção principal que ocupa a tela inteira ao entrar no site.
   Tem o título, subtítulo, botões de ação e o mockup do sistema.
──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;     /* Ocupa toda a altura da tela */
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;  /* Espaço extra no topo por causa da navbar fixa */
  position: relative;
  overflow: hidden;
}

/* Gradiente circular decorativo atrás do hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, transparent 65%);
  pointer-events: none; /* Não interfere com cliques */
}

/* Badge pequeno acima do título (ex: "Exclusivo para Sicredi") */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: var(--verde);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

/* Título principal do hero */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem); /* Tamanho responsivo */
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Palavra destacada em verde dentro do título */
.hero-title .highlight {
  background: linear-gradient(135deg, var(--verde), #69f0ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtítulo abaixo do título principal */
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Botão principal de ação (verde, grande) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--verde);
  color: #000;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--verde-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 83, 0.3);
}

/* Botão secundário (transparente, com borda) */
.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s;
  border: 1px solid var(--border);
}

.btn-secondary-cta:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Badges pequenos de prova social abaixo dos botões */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.2);
  color: var(--verde);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Mockup do sistema (imagem simulada do app) ── */
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* Barra superior do mockup (simula janela de app) */
.mockup-bar {
  background: #0d1420;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* Bolinhas coloridas no topo do mockup (estilo macOS) */
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-screen {
  padding: 1.5rem;
}

.mockup-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.mockup-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

/* Campo de input simulado */
.mockup-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 32px;
  width: 100%;
}

/* Botão simulado de gerar Pix */
.mockup-btn {
  background: var(--verde);
  border-radius: 6px;
  height: 36px;
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* QR Code simulado (grade de quadradinhos) */
.mockup-qr {
  background: white;
  border-radius: 6px;
  width: 80px;
  height: 80px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  padding: 6px;
}

.mockup-qr span {
  background: #111;
  border-radius: 1px;
}

.mockup-qr span.w {
  background: white; /* Quadrado branco do QR */
}


/* ── 5. SEÇÕES GERAIS ───────────────────────────────────────
   Estilos reutilizáveis para todas as seções de conteúdo.
──────────────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}

/* Tag pequena colorida acima dos títulos de seção */
.section-tag {
  display: inline-block;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.25);
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Título de cada seção */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

/* Subtítulo/descrição abaixo do título da seção */
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}


/* ── 6. CARDS ───────────────────────────────────────────────
   Cards usados nas seções "Quem somos" e "O que ofertamos".
──────────────────────────────────────────────────────────── */

/* Card da seção "Quem somos" */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: rgba(0, 200, 83, 0.25);
  transform: translateY(-4px);
}

/* Ícone no topo dos cards */
.about-icon {
  width: 48px;
  height: 48px;
  background: var(--verde-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--verde);
  margin-bottom: 1.2rem;
}

/* Grade de cards das features (o que ofertamos) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Card individual de feature */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* Linha verde no topo do card ao fazer hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--verde), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 200, 83, 0.2);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Ícone dos cards de feature */
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--verde-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--verde);
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}


/* ── 7. PLANOS E PREÇOS ─────────────────────────────────────
   Seção de planos com toggle mensal/anual e card de preço.
──────────────────────────────────────────────────────────── */
.pricing-section {
  padding: 6rem 0;
}

/* Card principal do plano */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 200, 83, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Brilho decorativo no canto do card de preço */
.pricing-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.12), transparent 70%);
  pointer-events: none;
}

/* Badge "Plano Básico" no topo do card */
.pricing-popular {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Toggle para alternar entre mensal e anual */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.billing-toggle span {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.billing-toggle span.active {
  color: var(--white);
  font-weight: 600;
}

/* Botão de toggle (switch) */
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--verde);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  outline: none;
}

/* Bolinha branca dentro do switch */
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.3s;
}

/* Move a bolinha para a direita quando anual está ativo */
.toggle-switch.anual::after {
  left: 23px;
}

/* Bloco com o valor do plano */
.price-block {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.price-value {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: var(--white);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Texto de economia (ex: "economize 2 meses") */
.price-saving {
  font-size: 0.82rem;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 1.75rem;
  min-height: 1.2rem;
}

/* Lista de benefícios incluídos no plano */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--white);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Ícone de check verde em cada item */
.pricing-features .check {
  color: var(--verde);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Botão de assinar */
.btn-assinar {
  display: block;
  width: 100%;
  background: var(--verde);
  color: #000;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-assinar:hover {
  background: var(--verde-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.3);
}

/* Nota pequena abaixo do botão de assinar */
.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}


/* ── 8. FAQ ─────────────────────────────────────────────────
   Acordeão de perguntas frequentes.
──────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(0, 200, 83, 0.2);
}

/* Linha clicável com a pergunta */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-card);
  user-select: none; /* Impede seleção de texto ao clicar */
}

/* Ícone + que vira x quando aberto */
.faq-icon {
  color: var(--verde);
  transition: transform 0.3s;
  flex-shrink: 0;
}

/* Rotaciona o ícone quando o item está aberto */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Resposta (escondida por padrão, exibida com JS) */
.faq-answer {
  display: none;
  padding: 1rem 1.4rem 1.2rem;
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}


/* ── 9. FOOTER ──────────────────────────────────────────────
   Rodapé simples com logo e links.
──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo .accent {
  color: var(--verde);
}


/* ── 10. DIVISOR ────────────────────────────────────────────
   Linha horizontal entre seções.
──────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}


/* ── 11. RESPONSIVO ─────────────────────────────────────────
   Ajustes para telas menores (celular/tablet).
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Botões do hero ficam em coluna no mobile */
  .hero {
    padding: 7rem 0 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Links da navbar somem no mobile (Bootstrap cuida do hamburguer) */
  .nav-links {
    display: none;
  }
}

/* Logo box — quadrado verde com raio amarelo (usado no footer e auth) */
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #00c853;
  border-radius: 7px;
  color: #FFD600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
