/* ==========================================================================
   LP do Sam — Labitec.  Identidade do CRM da Labitec: grafite + prata cromada,
   fonte Jost, azul da marca (contabilidade) com os 4 quadradinhos do logo
   (vermelho/amarelo/azul/azul). Universo visual próprio — nada do Pquadrado.
   ========================================================================== */
:root {
  /* base grafite/prata (tokens do CRM da Labitec) */
  --bg: hsl(150 7% 8%);
  --bg-2: hsl(150 7% 7%);
  --card: hsl(150 5% 15%);
  --card-2: hsl(150 6% 17%);
  --fg: hsl(150 4% 89%);
  --fg-dim: hsl(150 4% 66%);
  --fg-mute: hsl(150 4% 52%);
  --line: hsl(150 6% 30%);
  --line-soft: hsl(150 6% 22%);

  /* marca */
  --azul: #2676C8;          /* azul da marca Labitec */
  --azul-vivo: hsl(211 74% 48%);
  --azul-claro: hsl(211 82% 66%);
  --azul-fundo: #0C2949;    /* azul profundo p/ o fundo */
  --vermelho: #D83B32;
  --amarelo: #F5C518;

  /* prata / cromado */
  --prata: hsl(40 4% 62%);
  --prata-claro: hsl(40 5% 80%);
  --metal-hi: #ffffff;
  --metal-mid: #dad8d8;
  --metal-lo: #a7a3a2;

  /* balões do chat (iguais ao CRM) */
  --bolha-sam-bg: hsl(211 42% 26% / 0.72);
  --bolha-sam-bd: hsl(211 40% 50% / 0.30);
  --bolha-eu-bg: hsl(150 6% 17% / 0.85);
  --bolha-eu-bd: hsl(150 6% 32%);

  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  --serif: 'Jost', Georgia, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1140px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 80% -8%, hsl(211 72% 26% / 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 6%, hsl(211 40% 12% / 0.7), transparent 55%),
    url("../assets/circuito.svg");
  background-size: auto, auto, 300px 300px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* símbolo-circuito da Labitec (o mesmo da tela de carregamento do CRM),
   em azul e bem suave, à direita do hero */
.hero::after {
  content: ""; position: absolute; z-index: 1; right: -3%; top: 50%;
  transform: translateY(-50%); width: clamp(240px, 36vw, 520px); aspect-ratio: 1;
  background: linear-gradient(135deg, #7FD8FF, #2676C8 60%, #1E6E9E);
  -webkit-mask: url("../assets/ci-simbolo.png") center / contain no-repeat;
  mask: url("../assets/ci-simbolo.png") center / contain no-repeat;
  opacity: 0.16; pointer-events: none;
}
@media (max-width: 860px) { .hero::after { opacity: 0.09; right: -12%; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia utilitária ---------- */
.serif { font-style: italic; font-weight: 500; }
.azul { color: var(--azul-claro); }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker { display: inline-block; color: var(--azul-claro); margin-bottom: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--fg-dim); letter-spacing: 0.02em;
  margin: 0 0 20px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-soft); border-radius: 100px; background: hsl(150 6% 14% / 0.6);
}
.eyebrow__ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--azul-claro); box-shadow: 0 0 10px 1px hsl(211 60% 45% / 0.7); }
.h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.lede { font-size: 1.1rem; color: var(--fg-dim); max-width: 46ch; margin: 0 0 20px; }
strong { font-weight: 600; color: var(--fg); }

/* ---------- botões ---------- */
.btn {
  --cor: var(--azul-vivo);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; text-decoration: none;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn__seta { transition: transform 0.2s var(--ease); }
.btn:hover .btn__seta { transform: translateX(3px); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--azul { background: linear-gradient(180deg, var(--azul-vivo), var(--azul)); color: #fff; box-shadow: 0 10px 30px -12px hsl(211 79% 30% / 0.8), inset 0 1px 0 hsl(211 60% 60% / 0.4); }
.btn--azul:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px hsl(211 79% 32% / 0.9), inset 0 1px 0 hsl(211 60% 60% / 0.5); }
.btn--prata { background: linear-gradient(180deg, var(--prata-claro), var(--prata)); color: hsl(150 10% 12%); font-weight: 600; }
.btn--prata:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px hsl(0 0% 0% / 0.6); }
.btn--fantasma { background: transparent; border-color: var(--line); color: var(--fg); }
.btn--fantasma:hover { border-color: var(--prata-claro); background: hsl(150 6% 16% / 0.6); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-rolou { background: hsl(150 7% 7% / 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 1.18rem; letter-spacing: 0.01em; }
.nav__logo img { border-radius: 9px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 90px 0 60px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__brilho { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 50% at 72% 42%, hsl(211 60% 24% / 0.28), transparent 70%); }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__titulo { font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero__titulo .linha { display: block; }
.hero__titulo em { font-weight: 500;
  background: linear-gradient(92deg, var(--metal-hi), var(--metal-mid) 45%, var(--azul-claro));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--fg-dim); max-width: 54ch; margin: 0 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__provas { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--fg-mute); font-size: 0.9rem; }
.hero__provas span { display: inline-flex; align-items: center; gap: 8px; }
.hero__provas span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); }
.glyph { opacity: 0.85; color: var(--azul-claro); }

/* ---------- seções ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; position: relative; }
.regua { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-soft) 20%, var(--line-soft) 80%, transparent); margin: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- conversar ao vivo ---------- */
.viva, .contato { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.viva__dicas { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.viva__dicas li { color: var(--fg-dim); font-size: 0.96rem; padding: 9px 14px; border: 1px dashed var(--line-soft); border-radius: 10px; background: hsl(150 6% 13% / 0.5); }
.viva__dicas li::before { content: "💬 "; }

/* telefone / chat */
.telefone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.telefone { width: 100%; max-width: 360px; border-radius: 30px; padding: 10px; background: linear-gradient(160deg, hsl(150 6% 22%), hsl(150 7% 11%)); border: 1px solid var(--line); box-shadow: 0 40px 80px -36px #000, inset 0 1px 0 hsl(0 0% 100% / 0.06); }
.telefone__tela { background: var(--bg-2); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; height: 500px; }
.telefone__barra { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: hsl(150 7% 12%); border-bottom: 1px solid var(--line-soft); }
.telefone__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--azul-claro); flex: 0 0 auto; }
.telefone__avatar img { width: 100%; height: 100%; border-radius: 50%; }
.telefone__nome { font-weight: 600; font-size: 0.98rem; }
.telefone__status { font-size: 0.78rem; color: var(--azul-claro); }
.telefone__status.is-digitando { color: var(--fg-mute); font-style: italic; }
.chat { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.chat__dia { align-self: center; font-size: 0.68rem; color: var(--fg-mute); background: hsl(150 6% 15%); padding: 3px 11px; border-radius: 100px; margin-bottom: 4px; }
.msg { max-width: 82%; padding: 9px 13px 7px; border-radius: 15px; font-size: 0.92rem; line-height: 1.45; position: relative; border: 1px solid transparent; animation: pop 0.28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.msg--sam { align-self: flex-start; background: var(--bolha-sam-bg); border-color: var(--bolha-sam-bd); border-bottom-left-radius: 5px; }
.msg--eu { align-self: flex-end; background: var(--bolha-eu-bg); border-color: var(--bolha-eu-bd); border-bottom-right-radius: 5px; }
.msg__hora { display: block; font-size: 0.62rem; color: var(--fg-mute); text-align: right; margin-top: 3px; }
.digitando { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 14px; background: var(--bolha-sam-bg); border: 1px solid var(--bolha-sam-bd); border-radius: 15px; border-bottom-left-radius: 5px; }
.digitando i { width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); opacity: 0.5; animation: ponto 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: 0.2s; } .digitando i:nth-child(3) { animation-delay: 0.4s; }
@keyframes ponto { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__barra { display: flex; gap: 8px; padding: 11px; background: hsl(150 7% 11%); border-top: 1px solid var(--line-soft); }
.chat__barra input { flex: 1; background: hsl(150 6% 16%); border: 1px solid var(--line-soft); border-radius: 100px; padding: 10px 15px; color: var(--fg); font-family: var(--sans); font-size: 0.9rem; outline: none; }
.chat__barra input:focus { border-color: var(--azul-claro); }
.chat__enviar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--azul-vivo), var(--azul)); color: #fff; font-size: 1.15rem; cursor: pointer; transition: transform 0.15s; }
.chat__enviar:hover { transform: scale(1.06); }
.chat__enviar:disabled { opacity: 0.5; cursor: default; }
.telefone__pe { color: var(--fg-mute); }

/* ---------- passos ---------- */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.passo { background: linear-gradient(170deg, var(--card), hsl(150 6% 12%)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 22px; }
.passo__num { color: var(--azul-claro); display: block; margin-bottom: 14px; }
.passo h3 { font-size: 1.18rem; font-weight: 600; margin: 0 0 8px; }
.passo p { color: var(--fg-dim); font-size: 0.96rem; margin: 0; }

/* ---------- formulário ---------- */
.contato__passos { color: var(--fg-dim); padding-left: 20px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 7px; }
.form { background: linear-gradient(170deg, var(--card), hsl(150 6% 12%)); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 70px -40px #000; }
.form__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: block; margin-bottom: 14px; }
.campo__rotulo { display: block; font-size: 0.86rem; color: var(--fg-dim); margin-bottom: 6px; }
.campo__rotulo em { color: var(--fg-mute); font-size: 0.8rem; }
.campo input, .campo textarea { width: 100%; background: hsl(150 7% 11%); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--fg); font-family: var(--sans); font-size: 0.98rem; outline: none; transition: border-color 0.18s, box-shadow 0.18s; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--azul-claro); box-shadow: 0 0 0 3px hsl(211 60% 40% / 0.18); }
.campo.is-invalido input, .campo.is-invalido textarea { border-color: var(--vermelho); }
.agulha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--fg-dim); margin: 6px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__caixa { flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 6px; margin-top: 1px; transition: all 0.15s; position: relative; }
.check input:checked + .check__caixa { background: var(--azul-vivo); border-color: var(--azul-vivo); }
.check input:checked + .check__caixa::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 0.8rem; }
.check--dica em { color: var(--azul-claro); font-style: italic; }
.check.is-invalido .check__caixa { border-color: var(--vermelho); }
.check a { color: var(--azul-claro); }
.form__pe { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form__nota { font-size: 0.84rem; color: var(--fg-mute); margin: 0; }
.form__nota.is-erro { color: var(--vermelho); }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 32px 0; margin-top: 20px; background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.footer__logo img { border-radius: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { color: var(--fg-dim); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--azul-claro); }
.footer__copy { color: var(--fg-mute); font-size: 0.86rem; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .viva, .contato { grid-template-columns: 1fr; }
  .telefone-wrap { order: -1; }
  .passos { grid-template-columns: 1fr; }
  .form__linha { grid-template-columns: 1fr; }
}
