/* ==========================================================================
   VITALVES — Design System v5
   Temas: dark (padrão da marca) e light via [data-theme] + prefers-color-scheme
   Performance: anima apenas transform/opacity; respeita prefers-reduced-motion
   ========================================================================== */

/* ---------- Fontes self-hosted (Core Web Vitals: sem CDN bloqueante) ------ */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/outfit-v15-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* ---------- Design Tokens ------------------------------------------------- */
:root {
  /* Tema escuro (padrão da marca) */
  --bg-0: #07080c;
  --bg-1: #0b0e14;
  --bg-2: #10141c;
  --bg-3: #161b26;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(13, 16, 23, 0.85);
  --text-1: #eef2f7;
  --text-2: #a7b0c0;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  --gold: #c9a94e;
  --gold-2: #e8cf7e;
  --gold-deep: #8a6d24;
  --gold-ink: #141002;
  --gold-grad: linear-gradient(135deg, #ecd489 0%, #c9a94e 48%, #a8862f 100%);
  --gold-text-grad: linear-gradient(120deg, #f4e2a4 0%, #d9bb62 45%, #b89b43 100%);
  --gold-glow: rgba(201, 169, 78, 0.16);

  --ok: #22c55e;
  --danger: #ef4444;
  --info: #38bdf8;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 34px rgba(201, 169, 78, 0.22);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 74px;

  color-scheme: dark;
  accent-color: var(--gold);
}

/* Tema claro */
:root[data-theme='light'] {
  --bg-0: #f6f4ee;
  --bg-1: #faf9f6;
  --bg-2: #ffffff;
  --bg-3: #f0ede5;
  --glass: rgba(23, 26, 33, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --text-1: #171a21;
  --text-2: #49525f;
  --line: rgba(23, 26, 33, 0.13);
  --line-soft: rgba(23, 26, 33, 0.075);

  --gold: #8a6d24;
  --gold-2: #a8862f;
  --gold-deep: #6d5518;
  --gold-ink: #141002;
  --gold-grad: linear-gradient(135deg, #d9bb62 0%, #b89b43 48%, #8a6d24 100%);
  --gold-text-grad: linear-gradient(120deg, #a8862f 0%, #8a6d24 60%, #6d5518 100%);
  --gold-glow: rgba(184, 155, 67, 0.16);

  --shadow-1: 0 6px 24px rgba(23, 26, 33, 0.08);
  --shadow-2: 0 18px 50px rgba(23, 26, 33, 0.13);
  --shadow-gold: 0 10px 34px rgba(184, 155, 67, 0.28);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  background-color: var(--bg-1);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-2); }
:root[data-theme='light'] a:hover { color: var(--gold-deep); }

img, svg, video { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
ul[class], ol[class] { list-style: none; }

::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Acessibilidade */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 3000;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

.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;
}

/* ---------- Layout -------------------------------------------------------- */
.container { width: min(92%, 1200px); margin-inline: auto; }
.container-wide { width: min(94%, 1400px); margin-inline: auto; }

section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }

/* Seções abaixo da dobra: o navegador pula o render até aproximar */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 720px; }

.section-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--gold-grad);
}

.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; }

.grad-text {
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Header / Navegação ------------------------------------------- */
.main-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}
.main-header.scrolled {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-1);
}
.main-header.hidden { transform: translateY(-100%); }

.main-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-word {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.28rem;
  letter-spacing: 0.14em; color: var(--text-1);
}
.logo-word em { font-style: normal; color: var(--gold); }

/* Navegação desktop */
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 10px;
  color: var(--text-1); font-weight: 500; font-size: 0.94rem;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-body);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after, .nav-link[aria-current='page']::after, .has-drop:hover .nav-link::after { transform: scaleX(1); }
.nav-link:hover { color: var(--gold); }
.nav-link .caret { transition: transform var(--transition); width: 10px; height: 10px; }
.has-drop:hover .caret, .has-drop:focus-within .caret, .has-drop.open .caret { transform: rotate(180deg); }

/* Dropdown Soluções (mega leve) */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  translate: -50% 0;
  width: min(92vw, 620px);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.dropdown::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.drop-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px; border-radius: 12px;
  transition: background-color var(--transition);
}
.drop-item:hover { background: var(--glass); }
.drop-item .d-ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--gold-glow); color: var(--gold);
  transition: transform var(--transition);
}
.drop-item:hover .d-ico { transform: scale(1.08) rotate(-4deg); }
.drop-item .d-ico svg { width: 20px; height: 20px; }
.drop-item strong { display: block; color: var(--text-1); font-size: 0.94rem; font-weight: 600; }
.drop-item span { display: block; color: var(--text-2); font-size: 0.8rem; line-height: 1.45; margin-top: 2px; }

.nav-cta { margin-left: 8px; }

/* Botão tema */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-1); cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme='light'] .theme-toggle .ico-sun { display: block; }
:root[data-theme='light'] .theme-toggle .ico-moon { display: none; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line);
  cursor: pointer; z-index: 1201;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text-1);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s, background-color 0.3s;
}
.mobile-menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--gold); }
.mobile-menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--gold); }

/* ---------- Botões -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
  cursor: pointer; border: 1.5px solid transparent;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 4px 18px rgba(201, 169, 78, 0.25); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.55s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); color: var(--gold-ink); }
.btn-primary:hover::after { left: 130%; }

.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-glow); transform: translateY(-3px); color: var(--gold); }
:root[data-theme='light'] .btn-outline:hover { color: var(--gold-deep); }

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

.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { background: #23c05e; color: #fff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(31, 170, 83, 0.35); }

.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 7vw, 88px);
  overflow: clip;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 44% at 78% 12%, var(--gold-glow), transparent 68%),
    radial-gradient(40% 36% at 12% 82%, rgba(56, 189, 248, 0.07), transparent 70%);
}
/* Grade técnica sutil */
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 32%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 32%, #000 30%, transparent 100%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
/* Evita que conteúdo largo (ex.: <pre> do code-window) estoure a coluna */
.hero-grid > * { min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 22px;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); flex: none;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; color: var(--text-2); font-size: 0.88rem; padding: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* Visual do hero: janela de código */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: 8% -6% -8% 6%; z-index: -1;
  background: var(--gold-grad); opacity: 0.14; filter: blur(60px);
  border-radius: 50%;
}

.code-window {
  background: #111624;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(201, 169, 78, 0.12), var(--shadow-2);
  overflow: hidden;
  font-size: 0.86rem;
  max-width: 100%;
}
:root[data-theme='light'] .code-window { border-color: rgba(23, 26, 33, 0.18); }
.code-header {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-header .dots { display: flex; gap: 7px; }
.circle { width: 11px; height: 11px; border-radius: 50%; }
.circle.red { background: #ff5f56; } .circle.yellow { background: #ffbd2e; } .circle.green { background: #27c93f; }
.code-title { margin-left: 8px; color: #8b93a7; font-family: var(--font-mono); font-size: 0.75rem; }
.code-content { padding: 22px 24px; overflow-x: auto; }
.code-content pre {
  font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7;
  color: #aab4c8; white-space: pre; margin: 0;
}
.code-content .c-k { color: #c792ea; } /* keyword */
.code-content .c-s { color: #c3e88d; } /* string */
.code-content .c-f { color: #82aaff; } /* função */
.code-content .c-c { color: #5c6773; } /* comentário */
.code-content .c-g { color: #e8cf7e; } /* destaque dourado */
.code-cursor { display: inline-block; width: 8px; height: 1em; background: var(--gold); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Métricas / contadores */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric { background: var(--bg-2); padding: 26px 18px; text-align: center; }
.metric b {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.metric span { color: var(--text-2); font-size: 0.85rem; }

/* ---------- Cards (spotlight segue o mouse) ------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card::before { /* brilho superior */
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
:root[data-theme='light'] .card::before { background: linear-gradient(90deg, transparent, rgba(23, 26, 33, 0.12), transparent); }
.card::after { /* spotlight que segue o mouse (JS seta --mx/--my) */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--gold-glow), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 169, 78, 0.4); box-shadow: var(--shadow-1); }
.card:hover::after { opacity: 1; }

.card .c-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-glow); color: var(--gold);
  margin-bottom: 20px;
  transition: transform var(--transition);
}
.card:hover .c-ico { transform: scale(1.1) rotate(-5deg); }
.card .c-ico svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--text-2); font-size: 0.95rem; }
.card .c-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--gold);
}
.card .c-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.card:hover .c-link svg { transform: translateX(5px); }
.card.featured { border-color: rgba(201, 169, 78, 0.45); background: linear-gradient(160deg, var(--gold-glow), transparent 40%), var(--bg-2); }

/* Bento grid (destaques irregulares) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .card.b-2 { grid-column: span 2; }
.bento .card.b-3 { grid-column: span 3; }
.bento .card.b-4 { grid-column: span 4; }
.bento .card.b-6 { grid-column: span 6; }

/* Chips de tecnologia */
.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2); font-size: 0.83rem; font-weight: 500;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.chip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.chip svg { width: 14px; height: 14px; color: var(--gold); }

/* Marquee de tecnologias */
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { flex: none; padding: 10px 20px; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Prova social --------------------------------------------------- */
.testimonials-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testimonials-track {
  display: flex; width: max-content;
  animation: marquee 70s linear infinite;
  will-change: transform;
}
.testimonials-wrap:hover .testimonials-track { animation-play-state: paused; }

.testimonial-card {
  width: min(88vw, 360px); flex: none;
  margin: 0 12px; padding: 28px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.85rem; }
.testimonial-card blockquote { color: var(--text-2); font-size: 0.95rem; font-style: italic; border: 0; padding: 0; background: none; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--gold-grad); color: var(--gold-ink);
  font-weight: 800; font-family: var(--font-heading); font-size: 0.95rem;
}
.t-author b { display: block; color: var(--text-1); font-size: 0.95rem; }
.t-author span { color: var(--gold); font-size: 0.8rem; }

/* ---------- Processo / passos ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: '0' counter(step);
  font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem;
  background: var(--gold-text-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.85; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.9rem; }

/* Lista de checagens */
.check-list { padding: 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.check-list b, .check-list strong { color: var(--text-1); }

/* ---------- FAQ ------------------------------------------------------------ */
.faq-container { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 19px 24px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-family: var(--font-heading); font-size: 1.02rem;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--gold);
  transition: transform 0.3s ease; line-height: 1; flex: none;
}
.faq-item[open] summary { color: var(--gold); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-answer { padding: 0 24px 20px; color: var(--text-2); font-size: 0.96rem; }
.faq-answer a { font-weight: 600; }

/* ---------- Pricing -------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-grid.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.pricing-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 38px 30px; text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(201, 169, 78, 0.4); box-shadow: var(--shadow-1); }
.pricing-card.destaque { border: 2px solid var(--gold); position: relative; background: linear-gradient(170deg, var(--gold-glow), transparent 45%), var(--bg-2); }
.pricing-card .badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: var(--gold-grad); color: var(--gold-ink);
  padding: 5px 16px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pricing-card .ideal { color: var(--text-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.pricing-features { text-align: left; margin: 24px 0 30px; flex: 1; padding: 0; }
.pricing-features li { padding: 9px 0 9px 30px; position: relative; font-size: 0.93rem; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.pricing-features li:last-child { border: 0; }
.pricing-features li::before { content: '✓'; color: var(--gold); position: absolute; left: 4px; font-weight: 700; }

/* ---------- Artigos / Blog -------------------------------------------------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-6px); border-color: rgba(201, 169, 78, 0.4); box-shadow: var(--shadow-1); }
.article-cover {
  height: 150px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, var(--gold-glow), transparent 55%),
    var(--bg-3);
  display: flex; align-items: center; justify-content: center;
}
.article-cover svg { width: 46px; height: 46px; color: var(--gold); opacity: 0.9; transition: transform var(--transition); }
.article-card:hover .article-cover svg { transform: scale(1.15) rotate(-4deg); }
.article-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-meta .tag { color: var(--gold); font-weight: 600; }
.article-card .article-meta time { font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.75; }
.article-body h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.article-body h3 a { color: var(--text-1); }
.article-body h3 a:hover { color: var(--gold); }
.article-body h2 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; } /* variação quando card usa h2 */
.article-body p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
/* Link que cobre o card inteiro */
.article-card .stretch::after { content: ''; position: absolute; inset: 0; }

/* Página de artigo (leitura) */
.article-page { max-width: 760px; margin-inline: auto; }
.article-page .article-header { margin-bottom: 36px; }
.article-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 18px; }
.article-page .article-meta { font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.prose p { margin-bottom: 18px; color: var(--text-2); font-size: 1.02rem; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-1); }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 14px 22px; margin: 24px 0;
  background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-2); font-style: italic;
}
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--glass); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 7px; color: var(--gold-2); }
:root[data-theme='light'] .prose code { color: var(--gold-deep); }
.prose pre { background: #0d1017; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius); padding: 20px; overflow-x: auto; margin-bottom: 20px; }
.prose pre code { background: none; border: 0; padding: 0; color: #aab4c8; font-size: 0.86rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Breadcrumb ------------------------------------------------------ */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.83rem; color: var(--text-2);
  padding: calc(var(--header-h) + 26px) 0 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '›'; color: var(--text-2); opacity: 0.6; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 500; }

/* Hero interno de páginas */
.page-hero { padding: 30px 0 clamp(40px, 6vw, 64px); position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 16px; max-width: 820px; }
.page-hero .lead { font-size: 1.1rem; color: var(--text-2); max-width: 680px; }
.page-hero .hero-badge { margin-bottom: 18px; }

/* ---------- CTA final ------------------------------------------------------- */
.cta-final {
  position: relative; overflow: clip; isolation: isolate;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-final::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 50% 110%, var(--gold-glow), transparent 70%);
}
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-final p { color: var(--text-2); font-size: 1.08rem; max-width: 640px; margin: 0 auto 34px; }
.cta-final .hero-buttons { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------------------------------------------------------- */
.main-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 7vw, 72px) 0 0;
}
:root[data-theme='light'] .main-footer { background: var(--bg-3); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-2); font-size: 0.92rem; margin: 16px 0 20px; max-width: 320px; }
.footer-col h4 {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-1); margin-bottom: 18px;
}
.footer-col ul { padding: 0; list-style: none; margin: 0; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; padding: 0; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-contact { padding: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; margin-bottom: 12px; }
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--text-2); font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp flutuante ---------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1faa53; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(31, 170, 83, 0.45);
  transition: transform var(--transition), opacity 0.4s ease, visibility 0.4s;
  opacity: 0; visibility: hidden; transform: translateY(16px);
}
.wa-float.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1faa53; opacity: 0;
  animation: waPing 2.6s ease-out infinite;
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; } .reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* ---------- Menu mobile (overlay) -------------------------------------------- */
@media (max-width: 1023px) {
  .mobile-menu-btn { display: flex; }
  .theme-toggle.in-header { display: none; }

  /* O header tem transform/backdrop-filter (vira containing block de fixed),
     então o overlay usa position:absolute e o header expande para 100dvh
     quando o menu abre. */
  body.menu-open .main-header {
    height: 100vh;
    height: 100dvh;
    align-items: flex-start;
    transform: none;
  }
  body.menu-open .main-header > .container {
    height: var(--header-h);
    flex: none;
  }
  /* Logo e hambúrguer visíveis acima do overlay */
  body.menu-open .logo { position: relative; z-index: 1201; }

  .main-nav {
    position: absolute; inset: 0; z-index: 1200;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(26px) saturate(1.4);
    backdrop-filter: blur(26px) saturate(1.4);
    display: flex; flex-direction: column; justify-content: center;
    padding: 90px 8% 40px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }

  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .main-nav > ul > li:last-child { border-bottom: 0; }

  .nav-link {
    font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600;
    padding: 16px 0; width: 100%; justify-content: space-between;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
  }
  .nav-link::after { display: none; }
  .main-nav.open .nav-link { opacity: 1; transform: none; }
  .main-nav.open li:nth-child(1) .nav-link { transition-delay: 0.1s; }
  .main-nav.open li:nth-child(2) .nav-link { transition-delay: 0.16s; }
  .main-nav.open li:nth-child(3) .nav-link { transition-delay: 0.22s; }
  .main-nav.open li:nth-child(4) .nav-link { transition-delay: 0.28s; }
  .main-nav.open li:nth-child(5) .nav-link { transition-delay: 0.34s; }
  .main-nav.open li:nth-child(6) .nav-link { transition-delay: 0.4s; }
  .main-nav.open li:nth-child(7) .nav-link { transition-delay: 0.46s; }

  /* Dropdown vira acordeão no mobile */
  .dropdown {
    position: static; translate: none; width: 100%;
    background: transparent; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0 0 12px; grid-template-columns: 1fr;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: none;
  }
  .has-drop.open .dropdown { display: grid; }
  .drop-item { padding: 10px 6px; }
  .drop-item .d-ico { width: 34px; height: 34px; }
  .drop-item strong { font-size: 1rem; }

  .nav-cta { margin: 22px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }

  .nav-mobile-extras {
    margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    opacity: 0; transition: opacity 0.5s ease 0.5s;
  }
  .main-nav.open .nav-mobile-extras { opacity: 1; }
  .nav-mobile-extras .footer-social { gap: 12px; }

  body.menu-open { overflow: hidden; }
}

@media (min-width: 1024px) {
  .nav-mobile-extras { display: none; }
  .main-nav .nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }
}

/* ---------- Responsivo geral -------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card.b-2, .bento .card.b-3 { grid-column: span 1; }
  .bento .card.b-4, .bento .card.b-6 { grid-column: span 2; }
}

@media (max-width: 640px) {
  .services-grid, .steps, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-buttons .btn { flex: 1 1 auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card.b-4, .bento .card.b-6 { grid-column: span 1; }
}

/* ---------- Movimento reduzido ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .testimonials-track { animation: none; flex-wrap: wrap; }
}
