/* ============================================================
   INTERFALA — css/base.css
   Reset global e estilos base do documento.
   Deve ser carregado APÓS variables.css e ANTES de qualquer
   outro CSS de componente ou página.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h, 80px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body, 'Inter Tight', system-ui, sans-serif);
  font-size: 16px;
  line-height: var(--lh-normal, 1.6);
  color: var(--color-gray-900, #1a1130);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

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

ul, ol { list-style: none; }

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── BASE TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  letter-spacing: var(--ls-tight, -0.03em);
  line-height: var(--lh-tight, 1.15);
  color: var(--color-gray-900, #1a1130);
}

p {
  color: var(--color-gray-700, #4a4365);
  line-height: var(--lh-relaxed, 1.7);
}

strong { font-weight: var(--fw-bold, 700); }
small  { font-size: var(--fs-sm, 13px); }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 24px);
}

.section {
  padding: var(--section-py, 100px) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-gray-900, #1a1130);
  letter-spacing: var(--ls-tight, -0.03em);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--color-gray-500, #8b85a3);
  line-height: var(--lh-relaxed, 1.7);
  max-width: 560px;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
/* Classe utilitária usada em todas as páginas */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
              transform 0.8s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }
.fade-up.delay-6 { transition-delay: 0.6s; }

/* ── BUTTON SYSTEM ───────────────────────────────────────── */
/* Complementa e estende os botões em components.css */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-weight: var(--fw-semibold, 600);
  font-size: 15px;
  border-radius: var(--radius-lg, 12px);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-arrow {
  transition: transform 0.2s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
  display: inline-block;
}

.btn-primary {
  background: var(--color-purple, #7130f0);
  color: #fff;
  box-shadow: 0 10px 40px rgba(113,48,240,0.35);
}
.btn-primary:hover {
  background: #5f24d6;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(113,48,240,0.45);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--color-purple, #7130f0);
  border: 1.5px solid rgba(113,48,240,0.3);
}
.btn-ghost:hover {
  background: rgba(113,48,240,0.06);
  transform: translateY(-2px);
  border-color: var(--color-purple, #7130f0);
}

.btn-white {
  background: #fff;
  color: var(--color-purple, #7130f0);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,255,255,0.25);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-lg  { padding: 18px 36px; font-size: 16px; }
.btn-sm  { padding: 9px 18px;  font-size: 13px; border-radius: var(--radius-md, 8px); }
