/* ============================================================
   calculos.ai — Global CSS
   Tema: Dark técnico-jurídico premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  /* Cores base */
  --bg:           #07090f;
  --bg2:          #0b0f1a;
  --bg3:          #0f1525;
  --surface:      #131929;
  --surface2:     #1a2235;
  --border:       rgba(255,255,255,0.06);
  --border2:      rgba(255,255,255,0.12);

  /* Cores de marca */
  --blue:         #2563eb;
  --blue-light:   #3b82f6;
  --blue-glow:    #60a5fa;
  --gold:         #d4af37;
  --gold-light:   #f0cc50;
  --gold-dim:     rgba(212,175,55,0.15);

  /* Texto */
  --text:         #e8eaf0;
  --text-dim:     #8892a4;
  --text-muted:   #4a5568;
  --text-gold:    #d4af37;

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Espaçamentos */
  --section-pad:  120px;
  --container:    1200px;
  --radius:       12px;
  --radius-lg:    20px;

  /* Sombras */
  --shadow-blue:  0 0 40px rgba(37,99,235,0.25);
  --shadow-gold:  0 0 40px rgba(212,175,55,0.20);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.75;
}

/* ── Botões ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}
.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border2);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-glow);
  background: rgba(37,99,235,0.08);
}

.btn-gold {
  background: var(--gold);
  color: #07090f;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ── Badge / Pill ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(37,99,235,0.15);
  color: var(--blue-glow);
  border: 1px solid rgba(37,99,235,0.30);
}

.badge-gold {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.35);
}

.badge-ai {
  background: rgba(96,165,250,0.10);
  color: var(--blue-glow);
  border: 1px solid rgba(96,165,250,0.25);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

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

.card-blue { border-top: 3px solid var(--blue); }
.card-gold { border-top: 3px solid var(--gold); }

/* ── Separador decorativo ──────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  margin: 24px 0;
}

/* ── Grid técnico de fundo ─────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Glow decorativo ───────────────────────────────────────── */
.glow-blue {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-gold {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Seções ────────────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section-alt { background: var(--bg2); }
.section-dark { background: var(--bg3); }

/* ── Utilitários ───────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-blue   { color: var(--blue-glow); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.text-mono   { font-family: var(--font-mono); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }
.gap-32      { gap: 32px; }
.gap-48      { gap: 48px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* ── Animações de entrada ──────────────────────────────────── */
/*.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; } */

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Seleção de texto ──────────────────────────────────────── */
::selection {
  background: rgba(37,99,235,0.35);
  color: #fff;
}

/* ── Responsivo ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 24px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
}