/* =========================================================================
   SPIN SOLAR — DESIGN SYSTEM v1.0
   Identidade visual oficial. Use em LP, Hub e futuro site institucional.
   ========================================================================= */

/* ---------- TIPOGRAFIA ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ----- CORES PRINCIPAIS -----
     Identidade Spin: azul-noite + dourado-sol + neutros quentes.
     Transmite seriedade (azul-noite), energia (dourado) e calor humano (neutros). */
  --spin-noite: #0A1628;         /* azul-noite, fundo dominante */
  --spin-noite-2: #142336;       /* surface elevation */
  --spin-noite-3: #1E2F47;       /* surface elevation +1 */
  --spin-sol: #F5B638;           /* dourado-sol, accent principal */
  --spin-sol-claro: #FCD37A;     /* dourado claro, hover/glow */
  --spin-sol-escuro: #B8861E;    /* dourado escuro, texto sobre dourado */
  --spin-neve: #FAF8F3;          /* off-white quente, fundo claro */
  --spin-areia: #E8E2D5;         /* divisor sutil */
  --spin-grafite: #2D3748;       /* texto secundário sobre claro */
  --spin-grafite-2: #4A5568;     /* texto terciário */
  --spin-verde: #34D399;         /* economia/sucesso */
  --spin-coral: #F87171;         /* alerta/objeção */

  /* ----- TIPOGRAFIA -----
     Fraunces (display, editorial) + Inter (corpo, UI). */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ----- ESCALA ----- */
  --fs-hero: clamp(2.4rem, 5.5vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono-display: clamp(2rem, 4vw, 3rem);

  /* ----- ESPAÇAMENTO ----- */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;

  /* ----- LAYOUT ----- */
  --max-content: 1200px;
  --max-prose: 720px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* ----- TRANSIÇÕES ----- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms var(--ease-out);
  --t-med: 320ms var(--ease-out);
  --t-slow: 600ms var(--ease-out);
}

/* ---------- RESET MÍNIMO ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--spin-noite);
  background: var(--spin-neve);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- TIPOGRAFIA UTIL ---------- */
.t-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.t-body { font-family: var(--font-body); font-weight: 400; }
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spin-sol);
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.container-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--spin-sol);
  color: var(--spin-noite);
  border-color: var(--spin-sol);
}
.btn-primary:hover {
  background: var(--spin-sol-claro);
  border-color: var(--spin-sol-claro);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(245, 182, 56, 0.5);
}
.btn-secondary {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-secondary:hover { opacity: 1; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--spin-noite);
  border-color: transparent;
  padding: 0.75rem 1.25rem;
}
.btn-ghost:hover { background: rgba(10, 22, 40, 0.06); }
.btn-lg { padding: 1.25rem 2.25rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ---------- ANIMAÇÕES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 182, 56, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(245, 182, 56, 0); }
}
@keyframes counterUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- UTILIDADES ---------- */
.dark-section {
  background: var(--spin-noite);
  color: var(--spin-neve);
}
.dark-section .t-eyebrow { color: var(--spin-sol-claro); }
.section { padding: var(--sp-2xl) 0; }
.section-tight { padding: var(--sp-xl) 0; }
.divider {
  height: 1px;
  background: var(--spin-areia);
  border: none;
  margin: var(--sp-lg) 0;
}
.text-center { text-align: center; }
.muted { color: var(--spin-grafite-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- RESPONSIVO BASE ---------- */
@media (max-width: 768px) {
  .section { padding: var(--sp-xl) 0; }
}
