/* ============================================================================
   tema.css — identidade visual do Calctto (extraída da landing v2)
   ----------------------------------------------------------------------------
   Fonte da verdade das cores, tipografia e gestos da marca. Existe porque a
   landing v2, o blog (33 artigos), a página do Desafio e o Programa de
   Parceiros estavam cada um com sua própria paleta: a v2 em âmbar/madeira, o
   blog em verde/roxo, o Desafio e Parceiros em ciano. Três marcas diferentes
   no mesmo domínio.

   Duas coisas definem o Calctto visualmente e precisam aparecer em toda página:
     1. ÂMBAR (#F59E0B) como acento — é madeira, é marcenaria. Não é ciano.
     2. O GRÃO (.wood-band) — a textura de veio de madeira no fundo das seções.

   Azul é a cor de AÇÃO (botão, link); verde é DINHEIRO (comissão, economia);
   âmbar é a MARCA. Quem misturar isso quebra a leitura da página.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #0A0C10;
  --surface: #0B111E;
  --card: #0F1A2E;
  --card-high: #162032;

  --blue: #2E7DFF;
  --blue-light: #558dff;
  --blue-dim: rgba(46,125,255,0.14);

  --amber: #F59E0B;
  --amber-light: #fbbf24;
  --amber-dim: rgba(245,158,11,0.12);

  --green: #10B981;
  --green-light: #4edea3;
  --green-dim: rgba(16,185,129,0.12);

  --text: #e2e8f0;
  --text-muted: #8FA0B7;
  --text-dim: #94a3b8;

  --border: rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.05);
  --glass: rgba(255,255,255,0.03);
  --glass-hi: rgba(255,255,255,0.055);

  --ease-out: cubic-bezier(.22,.68,0,1);
  --max-w: 1180px;
}

/* ── BASE ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── O GRÃO DA MADEIRA ───────────────────────────────────────────────────
   A assinatura visual do Calctto. Veios e nós desenhados em SVG âmbar a 6%
   de opacidade — de perto some, de longe dá a textura de uma chapa. Vai em
   seção (`class="wood-band"`), nunca no body inteiro: repetido demais vira
   ruído e cansa. */
.wood-band { position: relative; }
.wood-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%23F59E0B' stroke-opacity='0.06' stroke-width='1.2'%3E%3Cpath d='M0 18 Q 105 10 210 18 T 420 16'/%3E%3Cpath d='M0 52 Q 126 42 252 52 T 420 50'/%3E%3Cpath d='M0 88 Q 94 80 189 88 T 420 85'/%3E%3Cpath d='M0 124 Q 147 114 273 124 T 420 122'/%3E%3Cpath d='M0 160 Q 105 152 210 160 T 420 157'/%3E%3Cpath d='M0 196 Q 136 186 262 196 T 420 194'/%3E%3Cellipse cx='95' cy='106' rx='19' ry='7'/%3E%3Cellipse cx='95' cy='106' rx='32' ry='13'/%3E%3Cellipse cx='325' cy='62' rx='15' ry='6'/%3E%3Cellipse cx='325' cy='62' rx='27' ry='11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 220px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
}

/* Luz ambiente — só nas bordas, pra dar profundidade sem chamar atenção. */
.ambient { position: fixed; width: 640px; height: 640px; border-radius: 50%; pointer-events: none; z-index: 0; }
.ambient-blue  { background: radial-gradient(circle, rgba(46,125,255,0.07) 0%, transparent 70%); top: -220px; left: -220px; }
.ambient-amber { background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%); top: 30%; right: -260px; }

/* ── TIPOGRAFIA ──────────────────────────────────────────────────────── */
/* Manrope 900 nos títulos, Inter no corpo: é o contraste que dá a "cara" da
   v2. Título em Inter fica genérico — parece qualquer SaaS. */
h1, h2, h3, .section-title, .display {
  font-family: 'Manrope', sans-serif; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; color: #fff;
}
.mono { font-family: 'JetBrains Mono', monospace; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 14px; }
.section-sub { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; }

/* Rótulo de seção: âmbar, com um traço de cada lado. É o "carimbo" da v2. */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 16px;
}
.section-tag::before, .section-tag::after {
  content: ''; width: 22px; height: 1px; background: rgba(245,158,11,0.4);
}

/* ── BOTÕES ──────────────────────────────────────────────────────────── */
.btn-primary, .btn-success, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 14px 'Manrope', sans-serif; cursor: pointer; text-decoration: none;
  padding: 12px 22px; border-radius: 13px; border: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, #2569db 100%); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(46,125,255,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(46,125,255,0.65), inset 0 1px 0 rgba(255,255,255,0.18); }

.btn-success { background: linear-gradient(135deg, #059669 0%, var(--green) 100%); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(16,185,129,0.5), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(16,185,129,0.6); }

.btn-ghost { background: var(--glass); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--glass-hi); transform: translateY(-1px); }

/* O brilho que atravessa o botão no hover — detalhe da v2 que dá o toque de
   produto caro. Só nos cheios; no ghost fica sujo. */
.btn-primary::after, .btn-success::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg); transition: left 0.55s var(--ease-out);
}
.btn-primary:hover::after, .btn-success:hover::after { left: 130%; }

.btn-lg { padding: 15px 30px; font-size: 15.5px; border-radius: 15px; }
.btn-block { width: 100%; }

/* ── SUPERFÍCIES ─────────────────────────────────────────────────────── */
.card {
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 24px;
  transition: transform 0.28s var(--ease-out), border-color 0.28s, box-shadow 0.28s;
}
.card-hover:hover { transform: translateY(-6px); border-color: rgba(46,125,255,0.3);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45); }

/* ── REVEAL AO ROLAR ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ── GESTOS ──────────────────────────────────────────────────────────── */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse-live { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.float-y { animation: float-y 4.2s ease-in-out infinite; }
.pulse-live { animation: pulse-live 2s ease-in-out infinite; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--amber)); z-index: 1000; }

/* ── ACESSIBILIDADE ──────────────────────────────────────────────────── */
/* Quem pediu menos movimento recebe a página inteira parada — e, crucial, o
   .rv precisa ficar VISÍVEL, senão o conteúdo some pra essa pessoa. */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .float-y, .pulse-live { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── NOTEBOOK ────────────────────────────────────────────────────────────
   1366×768 e 1440×900 são as telas mais comuns em escritório de marcenaria:
   sobram ~640px úteis. Sem isto, o CTA cai abaixo da dobra. Comprime só a
   vertical — a horizontal já está resolvida pelos clamp(). */
@media (min-width: 900px) and (max-height: 820px) {
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: clamp(26px, 3.2vw, 36px); }
}
