/* ============================================================
   FinanCerto – Landing (página inicial pública)
   ============================================================ */

:root {
  --bg-deep: #080c14;
  --bg-card: #0e1320;
  --bg-soft: #111826;
  --border: rgba(16, 185, 129, 0.15);
  --border-soft: rgba(255, 255, 255, 0.07);
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --text-primary: #eef3f1;
  --text-secondary: #8aa097;
  --text-muted: #5d6a66;
  --income: #10d9a0;
  --savings: #38bdf8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── fundo animado ── */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: homeFloat 24s ease-in-out infinite;
}

.bg-animation .s1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  top: -12%;
  left: -8%;
}

.bg-animation .s2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  top: 42%;
  right: -10%;
  opacity: 0.14;
  animation-delay: -8s;
}

.bg-animation .s3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #10d9a0, transparent 70%);
  bottom: -14%;
  left: 35%;
  opacity: 0.1;
  animation-delay: -14s;
}

@keyframes homeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -30px) scale(1.06); }
}

/* ── header ── */
.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #05241b;
  font-size: 1rem;
  font-weight: 800;
}

.brand-name span {
  color: var(--accent-light);
}

/* ── botões ── */
.btn-entrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #04241a;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-entrar.btn-lg {
  padding: 15px 40px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent);
}

/* ── hero ── */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--savings), var(--income));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 0 0 30px;
  max-width: 34rem;
  font-size: 1.06rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-art {
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── módulos ── */
.modules {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-glow);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-light);
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.module-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ── chamada final ── */
.home-cta {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.18), transparent 55%),
    var(--bg-card);
}

.cta-box h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
}

.cta-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ── rodapé ── */
.home-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  padding: 24px clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.home-footer .footer-links {
  display: flex;
  gap: 20px;
}

.home-footer a:hover {
  color: var(--accent-light);
}

/* ── responsivo ── */
@media (max-width: 980px) {
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .home-header {
    padding: 14px 18px;
  }

  .modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .btn-entrar.btn-lg,
  .btn-ghost {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-footer {
    justify-content: center;
    text-align: center;
  }
}
