/* =========================================================
   Uni Consultorias | site institucional v2
   Identidade: identidade/design-guide.md
   ========================================================= */

/* Fontes hospedadas no próprio site (subconjunto latino, cobre todos os acentos do português) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2"); }

:root {
  --bg: #061C2F;
  --bg-deep: #03101C;
  --bg-raise: #0A2740;
  --navy: #002E6B;
  --navy-light: #0B4596;
  --glow: #6F9BD8;
  --ink: #FFFFFF;
  /* Mesmas cores em R, G, B, para as transparências (o tema claro troca só estes valores) */
  --ink-rgb: 255, 255, 255;
  --bg-rgb: 6, 28, 47;
  --deep-rgb: 3, 16, 28;
  --raise-rgb: 10, 39, 64;
  --ink-2: rgba(var(--ink-rgb), 0.72);
  --ink-3: rgba(var(--ink-rgb), 0.48);
  --line: rgba(var(--ink-rgb), 0.10);
  --line-2: rgba(var(--ink-rgb), 0.18);
  --glass: rgba(var(--raise-rgb), 0.42);
  /* Cor dos links ao passar o mouse: azul claro no escuro, azul-marinho no claro */
  --link-hover: #6F9BD8;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--navy-light); color: #fff; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Tipografia base ===== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--glow); }
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; background: var(--bg); z-index: 2; }
.section__head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section__lead { margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 560px; }

/* Máscara do text reveal */
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ===== Botões ===== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn--primary:hover { color: var(--ink); }
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(var(--ink-rgb), 0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(var(--ink-rgb), 0.5); }

.btn--text { padding: 0 8px; color: var(--ink-2); }
.btn--text:disabled { opacity: 0.3; cursor: default; }

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--glow); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }

/* ===== Abertura ===== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
}
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__logo { width: 72px; opacity: 0.9; }
.loader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--ink); }
.loader__count { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ===== Cursor ===== */

.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
.cursor__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.35);
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cursor__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--ink-rgb), 0.08); border-color: rgba(var(--ink-rgb), 0.6); backdrop-filter: blur(2px); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ink); border-color: var(--ink); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }

/* ===== Cena 3D e textura ===== */

.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } 100% { transform: translate(0, 0); } }

/* ===== Header ===== */

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: transform 0.6s var(--ease); }
.header::before { content: ""; position: absolute; inset: 0 0 -24px; background: linear-gradient(to bottom, rgba(var(--deep-rgb), 0.92), rgba(var(--deep-rgb), 0)); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { position: relative; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 88px; }
.header__logo { margin-right: auto; }
.header__logo img { width: 56px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(var(--bg-rgb), 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__link { padding: 8px 14px; font-size: 14px; color: var(--ink-2); transition: color 0.3s; }
.nav__link:hover { color: var(--link-hover); }
.nav__cta { margin-left: 8px; padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; background: var(--ink); color: var(--bg); }

.header__toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), 0.5); backdrop-filter: blur(12px); place-content: center; gap: 6px; }
.header__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
.header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ===== 01. Hero ===== */

.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 88px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to bottom, transparent, rgba(var(--deep-rgb), 0.6)); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; margin: auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(40px, min(7.2vw, 11.5vh), 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 1180px;
}
.hero__title { color: var(--ink-2); }
.hero__title-accent { display: block; font-weight: 600; color: var(--ink); }
.hero__subtitle { margin-top: 36px; max-width: 540px; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* No fluxo (não sobrepõe os botões) e com folga à direita para o botão do chat */
.hero__meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 32px; padding-right: max(var(--gutter), 104px); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 36px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ===== 02. Narrativa ===== */

.story { position: relative; z-index: 2; height: 480vh; }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story__inner { position: relative; }
.story__label { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.story__label span { color: var(--ink); }
.story__label b { font-weight: 400; font-variant-numeric: tabular-nums; }
.story__lines { position: relative; min-height: 3.4em; font-family: var(--font-display); font-size: clamp(30px, 5vw, 76px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 300; }
.story__line { position: absolute; top: 0; left: 0; max-width: 1080px; opacity: 0; }
.story__line em { font-style: normal; color: var(--ink-3); }
.story__line--final em { color: var(--ink); font-weight: 600; }
.story__line small { display: block; margin-top: 24px; font-family: var(--font-body); font-size: clamp(16px, 1.4vw, 20px); letter-spacing: 0; color: var(--ink-2); }
.story__progress { margin-top: 56px; width: min(320px, 60vw); height: 1px; background: var(--line); }
.story__progress span { display: block; height: 100%; width: 0; background: var(--ink); }

/* ===== 03. Tipografia cinética ===== */

.kinetic { position: relative; z-index: 2; padding: 44px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.kinetic__row { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; font-family: var(--font-display); font-size: clamp(32px, 5.2vw, 80px); line-height: 1.1; letter-spacing: -0.04em; font-variation-settings: "wght" var(--wght, 300); will-change: transform; }
.kinetic__row i { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 1px solid var(--glow); }
.kinetic__row--outline { color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.28); }

/* ===== 04. Soluções (bento) ===== */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; gap: 16px; perspective: 1400px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.045), rgba(var(--ink-rgb), 0.01));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease);
}
.tile:hover { border-color: var(--line-2); }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 155, 216, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.tile__glow { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 155, 216, 0.10), transparent 55%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.tile:hover::before, .tile:hover .tile__glow { opacity: 1; }

.tile--ia { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 620px; }
.tile--google { grid-column: 3; grid-row: 1; }
.tile--atrair { grid-column: 3; grid-row: 2; }
.tile--crm { grid-column: 1 / 3; grid-row: 3; }
.tile--processos { grid-column: 3; grid-row: 3; }

.tile__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tile__index { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile__tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tile__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.tile--ia .tile__title { font-size: clamp(28px, 3vw, 44px); font-weight: 400; max-width: 480px; }
.tile__text { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 420px; }

/* Mock: chat */
.mock-chat { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; transform: translateZ(40px); }
.mock-chat__msg { max-width: 82%; padding: 12px 16px; font-size: 14px; line-height: 1.45; border-radius: 16px; opacity: 0; transform: translateY(12px); }
.mock-chat__msg--in { align-self: flex-start; background: rgba(var(--ink-rgb), 0.07); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mock-chat__msg--out { align-self: flex-end; background: var(--navy); border-bottom-right-radius: 4px; }
.mock-chat__typing { display: flex; gap: 4px; padding: 14px 16px; width: 60px; border-radius: 16px; background: rgba(var(--ink-rgb), 0.07); opacity: 0; }
.mock-chat__typing span, .msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: typing 1.2s infinite; }
.mock-chat__typing span:nth-child(2), .msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-chat__typing span:nth-child(3), .msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Mock: busca */
.mock-search { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; transform: translateZ(30px); }
.mock-search__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 100px; background: rgba(var(--ink-rgb), 0.06); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.mock-search__bar svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.mock-search__typed::after { content: "|"; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-search__result { display: grid; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); }
.mock-search__result b { font-size: 14px; font-weight: 600; }
.mock-search__result span { font-size: 12px; color: var(--ink-3); }
.mock-search__result:not(.is-top) b, .mock-search__result:not(.is-top) span { height: 8px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.08); }
.mock-search__result:not(.is-top) b { width: 50%; }
.mock-search__result:not(.is-top) span { width: 75%; }
.mock-search__result.is-top { background: rgba(0, 46, 107, 0.45); border-color: rgba(111, 155, 216, 0.35); }

/* Mock: barras */
.mock-bars { margin-top: auto; padding-top: 24px; height: 120px; display: flex; align-items: flex-end; gap: 8px; transform: translateZ(30px); }
.mock-bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(111, 155, 216, 0.15), rgba(111, 155, 216, 0.6)); transform-origin: bottom; transform: scaleY(0); }
.mock-bars span:last-child { background: linear-gradient(to top, rgba(var(--ink-rgb), 0.3), var(--ink)); }

/* Mock: kanban */
.mock-kanban { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: translateZ(30px); }
.mock-kanban__col { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 10px; background: rgba(var(--ink-rgb), 0.03); border: 1px solid var(--line); min-height: 150px; }
.mock-kanban__col small { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.k-card { height: 30px; border-radius: 6px; background: rgba(var(--ink-rgb), 0.07); border: 1px solid var(--line); }
.k-card--done { background: var(--navy); border-color: rgba(111, 155, 216, 0.35); }
.k-card--move { animation: kanbanMove 5s var(--ease) infinite; position: relative; z-index: 1; }
@keyframes kanbanMove {
  0%, 15% { transform: translate(0, 0); background: rgba(var(--ink-rgb), 0.07); }
  40%, 55% { transform: translate(calc(100% + 36px), -38px); background: rgba(var(--ink-rgb), 0.12); }
  80%, 100% { transform: translate(calc(200% + 72px), -76px); background: var(--navy); }
}

/* Mock: fluxo */
.mock-flow { margin-top: auto; padding-top: 24px; width: 100%; height: auto; transform: translateZ(30px); }
.mock-flow__line { fill: none; stroke: rgba(111, 155, 216, 0.7); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; }
.mock-flow circle, .mock-flow rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }

/* ===== 05. Método ===== */

.metodo { position: relative; z-index: 2; background: var(--bg-deep); overflow: hidden; }
.metodo__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: 96px 0 clamp(20px, 4vh, 48px); }
.metodo .eyebrow { margin-bottom: clamp(10px, 2vh, 20px); }
.metodo .section__title { font-size: clamp(28px, min(4.2vw, 7vh), 60px); }
.metodo__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(8px, 1.6vh, 18px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.metodo__hint i { width: 36px; height: 1px; background: var(--ink-3); }
.metodo__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.step {
  position: relative;
  flex: none;
  width: min(460px, 78vw);
  height: clamp(240px, calc(100vh - 330px), 420px);
  height: clamp(240px, calc(100svh - 330px), 420px);
  padding: clamp(24px, 3.4vh, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--raise-rgb), 0.7), rgba(var(--bg-rgb), 0.3));
  overflow: hidden;
}
.step::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: clamp(56px, min(8vw, 13vh), 120px); font-weight: 200; line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.35); }
.step h3 { font-family: var(--font-display); font-size: clamp(22px, min(2.2vw, 4vh), 30px); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 360px; }

/* ===== 06. Projetos ===== */

.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1600px; }
.case { display: flex; flex-direction: column; gap: 24px; transform-style: preserve-3d; }
.case__visual { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(120% 100% at 0% 0%, rgba(0, 46, 107, 0.7), rgba(var(--bg-rgb), 0.2) 60%), var(--bg-raise); overflow: hidden; transform-style: preserve-3d; }
.case__layer { position: absolute; }
.case__layer--back { inset: 12%; border-radius: 50%; border: 1px solid var(--line); transform: translateZ(-20px); }
.case__layer--front { left: 12%; right: 12%; top: 16%; bottom: 16%; border-radius: 10px; background: rgba(var(--bg-rgb), 0.85); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); transform: translateZ(60px); transition: transform 0.6s var(--ease); }
.case:hover .case__layer--front { transform: translateZ(90px); }
.case__type { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.case__info h3 { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.025em; }
.case__info p { color: var(--ink-2); font-size: 15px; }

.mock-dash { display: grid; grid-template-columns: 34px 1fr; overflow: hidden; }
.mock-dash__side { display: grid; align-content: start; gap: 10px; padding: 12px 9px; border-right: 1px solid var(--line); }
.mock-dash__side i { height: 16px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.08); }
.mock-dash__side i:first-child { background: var(--navy-light); }
.mock-dash__main { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px; }
.mock-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-dash__kpis span { height: 34px; border-radius: 6px; background: rgba(var(--ink-rgb), 0.05); border: 1px solid var(--line); }
.mock-dash__chart { border-radius: 6px; border: 1px solid var(--line); padding: 8px; }
.mock-dash__chart svg { width: 100%; height: 100%; }
.mock-dash__chart path { fill: none; stroke: var(--glow); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mock-dash__rows { display: grid; gap: 6px; }
.mock-dash__rows span { height: 8px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.07); }
.mock-dash__rows span:nth-child(2) { width: 80%; }
.mock-dash__rows span:nth-child(3) { width: 60%; }

.mock-site { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.mock-site__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mock-site__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.18); }
.mock-site__bar span { flex: 1; height: 10px; margin-left: 8px; border-radius: 100px; background: rgba(var(--ink-rgb), 0.06); }
.mock-site__body { display: grid; align-content: start; gap: 8px; padding: 12px 14px; }
.mock-site__nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mock-site__nav i { width: 18px; height: 8px; margin-right: auto; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.mock-site__nav span { width: 16px; height: 5px; border-radius: 3px; background: rgba(var(--ink-rgb), 0.14); }
.mock-site__body b { height: 11px; border-radius: 4px; background: var(--ink); opacity: 0.85; }
.mock-site__body span { height: 6px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.1); }
.mock-site__body .is-short { width: 65%; }
.mock-site__body em { width: 40%; height: 18px; margin-top: 6px; border-radius: 100px; background: var(--navy-light); }

.mock-agent { display: grid; place-items: center; align-content: center; gap: 20px; }
.mock-agent__orb { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--glow) 35%, var(--navy) 75%); box-shadow: 0 0 60px rgba(111, 155, 216, 0.5); animation: orb 4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.08); box-shadow: 0 0 90px rgba(111, 155, 216, 0.65); } }
.mock-agent__lines { display: grid; gap: 6px; width: 60%; }
.mock-agent__lines span { height: 7px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.1); }
.mock-agent__lines span:nth-child(2) { width: 80%; }
.mock-agent__lines span:nth-child(3) { width: 50%; }

.mock-profile { display: grid; grid-template-rows: 44% 1fr; overflow: hidden; }
.mock-profile__map { position: relative; background-color: rgba(0, 46, 107, 0.35); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.mock-profile__map i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -14px 0 0 -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); box-shadow: 0 0 0 8px rgba(var(--ink-rgb), 0.1); }
.mock-profile__body { display: grid; align-content: start; gap: 8px; padding: 14px; }
.mock-profile__body b { width: 60%; height: 10px; border-radius: 4px; background: var(--ink); opacity: 0.85; }
.mock-profile__body span { height: 7px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.1); }
.mock-profile__body span:nth-of-type(2) { width: 70%; }
.mock-profile__btns { display: flex; gap: 6px; margin-top: 6px; }
.mock-profile__btns i { flex: 1; height: 22px; border-radius: 100px; border: 1px solid var(--line-2); }
.mock-profile__btns i:first-child { background: var(--navy-light); border-color: transparent; }

/* ===== 06b. Clientes ===== */

.clientes { padding: clamp(72px, 9vw, 128px) 0; background: var(--bg-deep); border-top: 1px solid var(--line); overflow: hidden; }
.clientes .section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.clientes__title { font-size: clamp(28px, 3.6vw, 52px); }
.logos { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; width: max-content; list-style: none; animation: logosLeft 45s linear infinite; }
.logos__track--right { animation-name: logosRight; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logosLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes logosRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo { --logo-base: clamp(50px, 5.6vw, 78px); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; width: clamp(160px, 16vw, 230px); height: clamp(84px, 8vw, 110px); margin-right: 16px; padding: 14px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.02); transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.logo:hover { border-color: var(--line-2); background: rgba(var(--ink-rgb), 0.04); }
/* Área visual parecida pra todos: logo quadrado fica mais estreito, logo comprido fica mais baixo (--ar = largura/altura, no HTML) */
.logo img { display: block; width: auto; height: 100%; height: calc(var(--logo-base) / sqrt(var(--ar, 1))); max-width: 100%; max-height: 100%; min-width: 0; object-fit: contain; opacity: 0.85; transition: opacity 0.4s var(--ease); }
.logo:hover img { opacity: 1; }
.logo--placeholder { border-style: dashed; }
.logo--placeholder span { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; color: var(--ink-3); text-align: center; }

/* ===== 07. Manifesto ===== */

.manifesto { position: relative; z-index: 2; padding: clamp(140px, 20vw, 260px) 0; background: radial-gradient(80% 60% at 50% 40%, var(--bg-raise), var(--bg-deep)); overflow: hidden; }
.manifesto__layer { position: absolute; inset: 0; pointer-events: none; }
.manifesto__layer--far { filter: blur(3px); opacity: 0.6; }
.manifesto__layer--mid { filter: blur(0.8px); opacity: 0.8; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.ring--xl { width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; }
.ring--md { width: 220px; height: 220px; right: 8%; top: 12%; }
.ring--lg { width: 420px; height: 420px; left: -6%; bottom: -12%; border-color: rgba(111, 155, 216, 0.3); }
.hline { position: absolute; left: 0; right: 0; top: 30%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.vline { position: absolute; top: 0; bottom: 0; left: 72%; width: 1px; background: linear-gradient(transparent, var(--line-2), transparent); }
.manifesto__inner { position: relative; text-align: center; display: grid; justify-items: center; }
.manifesto__title { font-family: var(--font-display); font-size: clamp(36px, 6.4vw, 100px); font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; max-width: 1100px; }
.principios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(64px, 8vw, 112px); text-align: left; width: 100%; }
.principio { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.principio span { display: block; font-size: 12px; color: var(--glow); margin-bottom: 16px; }
.principio p { color: var(--ink-2); font-size: 15px; }

/* ===== 08. IA ===== */

.ia { background: var(--bg); overflow: hidden; }
.ia::before { content: ""; position: absolute; right: -10%; top: 10%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 46, 107, 0.55), transparent 65%); pointer-events: none; }
.ia__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); background: rgba(var(--ink-rgb), 0.02); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.console, .chat-panel {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(var(--raise-rgb), 0.75), rgba(var(--deep-rgb), 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(var(--ink-rgb), 0.06);
  overflow: hidden;
}
.console { height: 560px; }
.console__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.console__head strong { display: block; font-size: 15px; font-weight: 600; }
.console__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 1px solid rgba(111, 155, 216, 0.4); }
.console__avatar img { width: 22px; }
.console__reset { margin-left: auto; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); transition: color 0.3s, border-color 0.3s; }
.console__reset:hover { color: var(--ink); border-color: rgba(var(--ink-rgb), 0.5); }
.console__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.console__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.console__messages { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.console__form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.console__form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.04); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color 0.3s; }
.console__form input:focus { border-color: rgba(111, 155, 216, 0.6); }
.console__form input::placeholder { color: var(--ink-3); }
.console__form button { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.console__form button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.console__form button:disabled { opacity: 0.4; }

.msg { max-width: 86%; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; border-radius: 16px; white-space: pre-line; animation: msgIn 0.5s var(--ease); }
.msg--bot { align-self: flex-start; background: rgba(var(--ink-rgb), 0.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--navy); border-bottom-right-radius: 4px; }
.msg--typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg--note { align-self: center; max-width: 100%; padding: 4px 10px; font-size: 12px; color: var(--ink-3); background: none; border: 0; text-align: center; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }

/* ===== 09. Time ===== */

.time { background: var(--bg-deep); }
.time__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: end; }
.pessoas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1200px; }
.pessoa { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.04), transparent); transform-style: preserve-3d; }
.pessoa__mono { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 56px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--font-display); font-size: 22px; font-weight: 300; letter-spacing: 0.04em; transform: translateZ(40px); }
/* Foto do sócio no lugar das iniciais (Gabriel ainda usa as iniciais até mandar a foto) */
.pessoa__foto { width: 88px; height: 88px; margin-bottom: 40px; padding: 0; object-fit: cover; object-position: 50% 30%; border: 2px solid rgba(111, 155, 216, 0.45); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7); }
.pessoa h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.pessoa p { color: var(--ink-2); font-size: 15px; }

/* ===== 10. FAQ ===== */

.faq { background: var(--bg); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; list-style: none; font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.015em; transition: color 0.3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--link-hover); }
.faq__item summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item p { padding: 0 0 28px; max-width: 620px; color: var(--ink-2); }

/* ===== 11. Diagnóstico ===== */

.diagnostico { background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.diagnostico__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.diagnostico__info { list-style: none; margin-top: 48px; display: grid; gap: 18px; }
.diagnostico__info li { display: grid; gap: 2px; }
.diagnostico__info span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.diagnostico__info a { font-size: 17px; transition: color 0.3s; }
.diagnostico__info a:hover { color: var(--link-hover); }

.wizard { position: relative; padding: clamp(24px, 3.5vw, 44px); border-radius: 20px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); min-height: 520px; display: flex; flex-direction: column; }
.wizard__honeypot { position: absolute; left: -9999px; }
.wizard__top { display: grid; gap: 12px; margin-bottom: 36px; }
.wizard__step-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.wizard__progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 25%; background: var(--ink); transition: width 0.6s var(--ease); }
.wizard__step { display: none; border: 0; }
.wizard__step.is-active { display: block; animation: stepIn 0.6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.wizard__step legend { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 28px; }
.wizard__step legend small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--ink-3); }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options--row { grid-template-columns: repeat(4, 1fr); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: flex; align-items: center; min-height: 56px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: border-color 0.3s, background 0.3s, color 0.3s; }
.option:hover span { border-color: var(--line-2); color: var(--ink); }
.option input:checked + span { border-color: rgba(111, 155, 216, 0.7); background: rgba(0, 46, 107, 0.55); color: var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input { width: 100%; height: 60px; padding: 22px 18px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.03); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color 0.3s; }
.field input:focus { border-color: rgba(111, 155, 216, 0.7); }
.field span { position: absolute; left: 18px; top: 19px; font-size: 15px; color: var(--ink-3); pointer-events: none; transition: transform 0.3s var(--ease), font-size 0.3s var(--ease); transform-origin: left; }
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-11px); font-size: 11px; }
.field.is-invalid input { border-color: rgba(var(--ink-rgb), 0.7); }
/* Campo que aparece ao marcar "Outro" no segmento (js/diagnostico.js) */
.wizard__outro { margin-top: 12px; animation: outro-entra 0.4s var(--ease); }
.wizard__outro[hidden] { display: none; }
@keyframes outro-entra { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .wizard__outro { animation: none; } }

.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 36px; }
.wizard__error { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--ink-2); text-align: right; }
.wizard__done { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: 14px; animation: stepIn 0.6s var(--ease); }
.wizard__done[hidden] { display: none; }
.wizard__done h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.03em; }
.wizard__done p { color: var(--ink-2); max-width: 380px; }
.wizard__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(111, 155, 216, 0.6); background: rgba(0, 46, 107, 0.5); }
.wizard__check svg { width: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-dasharray: 30; stroke-dashoffset: 30; animation: check 0.8s 0.2s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }

/* ===== Footer ===== */

.footer { position: relative; z-index: 2; padding: 120px 0 40px; background: var(--bg-deep); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer__cta { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.035em; max-width: 640px; line-height: 1.08; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 72px; padding-top: 28px; padding-right: 84px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer__copy { margin-left: auto; }

/* Rodapé em colunas: marca, serviços, nichos, a Uni e contato (gerado por marketing/paginas/comum.mjs) */
.rodape { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr 0.8fr 1.1fr; gap: 40px 32px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.rodape__marca img { width: 52px; height: auto; margin-bottom: 20px; }
.rodape__marca p { max-width: 300px; color: var(--ink-2); line-height: 1.6; }
.rodape__local { margin-top: 14px; font-size: 13px; color: var(--ink-3) !important; }
.rodape__titulo { margin-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.rodape .rodape__titulo a { color: inherit; }
.rodape .rodape__titulo a:hover { color: var(--link-hover); }
.rodape__col ul { list-style: none; display: grid; gap: 9px; }
.rodape__col a { color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; transition: color 0.3s; }
.rodape__col ul a:hover { color: var(--link-hover); }
.rodape__col--nichos ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer .rodape + .footer__bottom { margin-top: 48px; }

@media (max-width: 1080px) {
  .rodape { grid-template-columns: 1fr 1fr 1fr; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape__marca p { max-width: 520px; }
}
@media (max-width: 640px) {
  .rodape { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 36px 20px; }
  .rodape__col--nichos, .rodape__col:last-child { grid-column: 1 / -1; }
  .rodape__col--nichos ul { grid-template-columns: 1fr 1fr; }
}

/* ===== Chat flutuante ===== */

.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.chat-widget__button { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(111, 155, 216, 0.5); animation: ring 3s infinite; }
@keyframes ring { 0% { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(111, 155, 216, 0.45); } 70%, 100% { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 18px rgba(111, 155, 216, 0); } }
.chat-widget__button .icon { position: absolute; width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transition: transform 0.4s var(--ease), opacity 0.3s; }
.icon-close { opacity: 0; transform: rotate(-90deg); }
.chat-widget__button.is-open { animation: none; }
.chat-widget__button.is-open .icon-chat { opacity: 0; transform: rotate(90deg); }
.chat-widget__button.is-open .icon-close { opacity: 1; transform: none; }
.chat-panel { position: absolute; right: 0; bottom: 76px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px)); opacity: 0; transform: translateY(16px) scale(0.97); transform-origin: bottom right; pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-widget.is-hidden-near-ia { opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s; }
.chat-widget { transition: opacity 0.4s, transform 0.4s; }

/* ===== Entradas suaves sem JS de animação ===== */

.no-motion [data-fade], .no-motion .mock-chat__msg { opacity: 1 !important; transform: none !important; }
.no-motion .mock-bars span { transform: none; }
.no-motion .mock-flow__line { stroke-dashoffset: 0; }
.no-motion .story { height: auto; }
.no-motion .story__pin { position: relative; height: auto; padding: 120px 0; }
.no-motion .story__lines { display: grid; gap: 40px; }
.no-motion .story__line { position: relative; opacity: 1; }
.no-motion .story__label b, .no-motion .story__progress { display: none; }

/* ===== Responsivo ===== */

@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--ia { grid-column: 1 / -1; grid-row: auto; min-height: 520px; }
  .tile--google, .tile--atrair, .tile--processos { grid-column: auto; grid-row: auto; }
  .tile--crm { grid-column: 1 / -1; grid-row: auto; }
  .cases { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(var(--deep-rgb), 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav__link { font-family: var(--font-display); font-size: 32px; font-weight: 300; color: var(--ink); }
  .nav__cta { margin: 24px 0 0; padding: 14px 28px; font-size: 16px; }
  .header__toggle { display: grid; position: relative; z-index: 2; }

  .section__head--split, .ia__grid, .time__grid, .faq__grid, .diagnostico__grid { grid-template-columns: 1fr; gap: 40px; }
  .principios { grid-template-columns: 1fr; }
  .hero__meta span:first-child, .hero__meta span:last-child { display: none; }
  .hero__meta { justify-content: center; }
  .console { height: 520px; }
  .metodo__pin { height: auto; gap: 36px; padding: 96px 0 72px; }
  .metodo__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .metodo__track::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; height: 380px; }
  .metodo__hint { display: none; }
}

@media (max-width: 640px) {
  .bento, .cases, .pessoas { grid-template-columns: 1fr; }
  .tile { padding: 24px; min-height: 0; }
  .tile--ia { min-height: 0; }
  .options, .options--row, .fields { grid-template-columns: 1fr; }
  .options--row { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__eyebrow { flex-wrap: wrap; row-gap: 8px; }
  .story { height: 420vh; }
  .chat-widget { right: 16px; bottom: 16px; }
  .footer__copy { margin-left: 0; }
  .step { padding: 28px; }
  .ring--xl { width: 600px; height: 600px; margin: -300px 0 0 -300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px; padding: 0 var(--gutter); }
  .logos__track .logo { margin-right: 0; }
  .logos__track [aria-hidden="true"] { display: none; }
}

/* ===== Privacidade ===== */

.aviso-privacidade { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.aviso-privacidade a, .console__aviso a, .footer__link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.console__aviso { padding: 0 18px 12px; font-size: 11.5px; color: var(--ink-3); text-align: center; }

.legal { position: relative; z-index: 2; padding: 64px 0 120px; }
.legal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal__top a:last-child { font-size: 14px; color: var(--ink-2); }
.legal__body { max-width: 760px; margin: 0 auto; }
.legal__body h1 { margin: 24px 0 12px; font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
.legal__data { margin-bottom: 48px; font-size: 14px; color: var(--ink-3); }
.legal__body h2 { margin: 48px 0 14px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Página 404 ===== */

.erro { position: relative; z-index: 2; min-height: calc(100vh - 106px); min-height: calc(100svh - 106px); display: flex; align-items: center; padding: 72px 0 96px; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(11, 69, 150, 0.28), transparent 70%); }
.erro__inner { max-width: 820px; }
.erro__titulo { margin: 24px 0 20px; font-family: var(--font-display); font-size: clamp(38px, 6.4vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; }
.erro__titulo span { display: block; color: var(--ink-3); }
.erro__texto { max-width: 560px; font-size: 17px; color: var(--ink-2); }
.erro__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.erro__ajuda { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.erro__ajuda a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Botão de tema (sol e lua) ===== */

.tema-toggle { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), 0.03); color: var(--ink); transition: border-color 0.3s, background 0.3s; }
.tema-toggle:hover { border-color: rgba(var(--ink-rgb), 0.5); }
.tema-toggle:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.tema-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease), opacity 0.3s; }
.tema-toggle__lua { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-tema="claro"] .tema-toggle__sol { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-tema="claro"] .tema-toggle__lua { opacity: 1; transform: none; }

.header .tema-toggle { width: 48px; height: 48px; border-color: var(--line); background: rgba(var(--bg-rgb), 0.45); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.legal__acoes { display: flex; align-items: center; gap: 16px; }

/* Troca suave de cores ao clicar no botão (js/tema.js liga a classe por meio segundo) */
.tema-transicao, .tema-transicao *, .tema-transicao *::before, .tema-transicao *::after { transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease) !important; }
.tema-transicao .tema-toggle svg { transition: transform 0.5s var(--ease), opacity 0.3s !important; }

/* ===== Tema claro =====
   Padrão no blog; no resto do site, só quando a pessoa escolhe no botão. */

[data-tema="claro"] {
  --bg: #FFFFFF;
  --bg-deep: #F4F7FB;
  --bg-raise: #EAF0F7;
  --glow: #2F64AE;
  --ink: #061C2F;
  --ink-rgb: 6, 28, 47;
  --bg-rgb: 255, 255, 255;
  --deep-rgb: 244, 247, 251;
  --raise-rgb: 234, 240, 247;
  --ink-2: rgba(var(--ink-rgb), 0.76);
  --ink-3: rgba(var(--ink-rgb), 0.6);
  --glass: rgba(255, 255, 255, 0.72);
  --link-hover: #0B4596;
}

[data-tema="claro"] body { background: var(--bg); }
[data-tema="claro"] .grain { opacity: 0.03; }

/* Logo branco vira preto */
[data-tema="claro"] .marca, [data-tema="claro"] .loader__logo { filter: invert(1); }

/* Logos dos clientes são azul-claro: escurecem para aparecer no branco */
[data-tema="claro"] .logo img { filter: brightness(0.42) saturate(1.6); }

/* Texto sobre o azul-marinho continua branco */
[data-tema="claro"] .btn--primary:hover, [data-tema="claro"] .msg--user, [data-tema="claro"] .mock-chat__msg--out, [data-tema="claro"] .avatar { color: #fff; }

/* Realces em azul: no fundo branco, um tom bem mais leve */
[data-tema="claro"] .mock-search__result.is-top, [data-tema="claro"] .option input:checked + span { background: rgba(11, 69, 150, 0.08); }
[data-tema="claro"] .mock-profile__map { background-color: rgba(111, 155, 216, 0.18); }
[data-tema="claro"] .case__visual { background: radial-gradient(120% 100% at 0% 0%, rgba(111, 155, 216, 0.35), rgba(255, 255, 255, 0.2) 60%), var(--bg-raise); }
[data-tema="claro"] .ia::before { background: radial-gradient(circle, rgba(111, 155, 216, 0.22), transparent 65%); }
[data-tema="claro"] .wizard__check { background: var(--navy); }

/* Sombras mais leves */
[data-tema="claro"] .console, [data-tema="claro"] .chat-panel { box-shadow: 0 40px 90px -40px rgba(6, 28, 47, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
[data-tema="claro"] .case__layer--front { box-shadow: 0 30px 60px -30px rgba(6, 28, 47, 0.3); }
[data-tema="claro"] .chat-widget__button { box-shadow: 0 16px 32px -12px rgba(6, 28, 47, 0.45); }
[data-tema="claro"] .chat-widget__button:not(.is-open) { animation-name: ringClaro; }
@keyframes ringClaro { 0% { box-shadow: 0 16px 32px -12px rgba(6, 28, 47, 0.45), 0 0 0 0 rgba(47, 100, 174, 0.4); } 70%, 100% { box-shadow: 0 16px 32px -12px rgba(6, 28, 47, 0.45), 0 0 0 18px rgba(47, 100, 174, 0); } }

/* ===== Links de texto ao passar o mouse =====
   Mesma cor em todo o site (--link-hover). Botões, cards e chips têm hover próprio. */
.footer__link, .legal__body a, .erro__ajuda a, .aviso-privacidade a, .console__aviso a { transition: color 0.3s, text-decoration-color 0.3s; }
.footer__link:hover, .legal__body a:hover, .erro__ajuda a:hover, .aviso-privacidade a:hover, .console__aviso a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
