/* =========================================================
   VARIÁVEIS GLOBAIS - Paleta de finanças (azul-marinho, azul, verde-água)
   ========================================================= */
:root {
  /* Cores */
  --color-navy: #0b1f3a;
  --color-navy-dark: #071528;
  --color-blue: #1d5fd6;
  --color-blue-light: #4d8dff;
  --color-teal: #0fb9a7;
  --color-teal-light: #6fe3d6;
  --color-bg: #f6f9fc;
  --color-bg-alt: #eef3f8;
  --color-white: #ffffff;
  --color-text: #16233b;
  --color-text-muted: #526079;
  --color-border: #dde5ef;

  /* Gradientes */
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-blue),
    var(--color-teal)
  );
  --gradient-hero: linear-gradient(
    160deg,
    var(--color-navy) 0%,
    #123a63 55%,
    #0f5c66 100%
  );

  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Tipografia */
  --font-base:
    "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial,
    sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.18);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-navy);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow {
  max-width: 760px;
}

/* Acessibilidade: link para pular ao conteúdo */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  z-index: 100;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--large {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--header {
  display: none;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.logo__icon {
  font-size: 1.4rem;
}

.nav__list {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  max-height: 0;
  overflow: hidden;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: max-height var(--transition);
}

.nav-mobile.is-open {
  max-height: 400px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--gradient-hero);
  color: var(--color-white);
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-teal-light);
  margin-bottom: var(--space-sm);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-md);
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--color-teal-light),
    var(--color-blue-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
  margin-bottom: var(--space-md);
}

.hero__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn--ghost:hover {
  border-color: var(--color-teal-light);
  color: var(--color-teal-light);
}

.hero__trust {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Mockup / espaço para imagem da planilha */
.hero__visual {
  display: flex;
  justify-content: center;
}

.mockup {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup__body {
  padding: var(--space-xl) var(--space-md);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__placeholder {
  text-align: center;
  color: var(--color-text-muted);
}

.mockup__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.mockup__placeholder code {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.7rem;
  background: var(--color-bg-alt);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  word-break: break-word;
}

/* =========================================================
   SEÇÕES GERAIS
   ========================================================= */
.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section__header .eyebrow {
  color: var(--color-teal);
}

.section__subtitle {
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* =========================================================
   CARDS DE RECURSOS
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   BENEFÍCIOS
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.benefit__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.benefit h3 {
  margin-bottom: var(--space-xs);
}

.benefit p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.step {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.step__number {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.2rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.testimonial footer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  font-weight: 600;
  text-align: left;
  color: var(--color-navy);
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding-inline: var(--space-md);
}

.faq-answer p {
  padding-bottom: var(--space-md);
  color: var(--color-text-muted);
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  padding: var(--space-2xl) 0;
  background: var(--gradient-hero);
  color: var(--color-white);
  text-align: center;
}

.cta-final__inner h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: var(--space-sm);
}

.cta-final__inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cta-final__note {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand .logo__text {
  color: var(--color-white);
}

.footer__brand p {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--color-teal-light);
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer__bottom {
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
}

/* =========================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================= */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
  z-index: 40;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   ANIMAÇÕES DE SCROLL (leve)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Tablet (>= 640px) */
@media (min-width: 640px) {
  .hero__cta {
    flex-wrap: nowrap;
  }
}

/* Tablet grande / desktop pequeno (>= 768px) */
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .nav__list {
    display: flex;
    gap: var(--space-md);
  }

  .nav__list a {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
  }

  .nav__list a:hover {
    color: var(--color-blue);
  }

  .nav__toggle,
  .nav-mobile {
    display: none;
  }

  .btn--header {
    display: inline-flex;
  }
}
