/* ============================================================
   BASE — variáveis, reset e estilos globais
   ============================================================ */

:root {
  /* Cores */
  --bg:            #F0F4F8;
  --surface:       #FFFFFF;
  --surface2:      #F8FAFC;
  --surface3:      #EEF2F7;
  --indigo:        #16A34A;
  --indigo-light:  #22C55E;
  --indigo-dark:   #15803D;
  --green:         #16A34A;
  --green-dim:     #15803D;

  /* Texto */
  --text1: #0F172A;
  --text2: #475569;
  --text3: #94A3B8;

  /* Bordas */
  --border:  #E2E8F0;
  --border2: #CBD5E1;

  /* Forma */
  --radius:    10px;
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
}

/* ============================================================
   BODY
   ============================================================ */

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;

  /* 🔥 melhora MUITO renderização da fonte */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */

/* Título principal (hero) */
h1,
.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Subtítulos e seções */
h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Texto principal */
p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}

/* Subtítulo da hero (frase principal) */
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 520px;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Botões */
button {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 5px; }

::-webkit-scrollbar-track {
  background: var(--surface2);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

/* ============================================================
   ANIMAÇÕES GLOBAIS
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40%           { opacity: 1; }
}

/* ============================================================
   BACKGROUND GLOW
   ============================================================ */

.bg-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(
    ellipse at center top,
    rgba(22, 163, 74, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}