@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0d0b;
  --bg-2: #141612;
  --ink: #ecebe4;
  --mute: #9a9c92;
  --line: rgba(236, 235, 228, 0.11);
  --acc: #ff5b1f;
  --acc-ink: #0c0d0b;
  --wa: #25d366;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grade + grão */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 20%, transparent 75%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 75%) var(--my, 20%), rgba(255, 91, 31, 0.13), transparent 60%);
  transition: background 0.2s;
}

a { color: inherit; }
strong { font-weight: 650; color: #fff; }
.accent { color: var(--acc); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

h1, h2, h3 { font-stretch: 125%; font-weight: 800; letter-spacing: -0.025em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  background: var(--acc); color: var(--acc-ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 0 0 var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); outline: 1px solid var(--line); outline-offset: -1px; }
.btn-ghost:hover { outline-color: var(--ink); box-shadow: 4px 4px 0 0 var(--acc); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(12, 13, 11, 0.78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 125%; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand b { font-weight: 400; color: var(--mute); margin-left: 4px; }
.brand-mark { width: 28px; height: 28px; fill: var(--acc); transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.nav nav { display: flex; gap: 32px; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--mute); position: relative; transition: color 0.2s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--pad) 72px;
}
.kicker { color: var(--mute); font-size: 15px; margin: 0 0 28px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--acc); }
.hero-title { font-size: clamp(2.8rem, 6vw, 6rem); line-height: 0.9; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.lead { max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); color: #c9c8c0; margin: 32px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* console do agente */
.console {
  background: linear-gradient(180deg, rgba(25, 27, 23, 0.9), rgba(16, 17, 15, 0.9));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 91, 31, 0.05);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2b2d28; }
.console-title { margin-left: 10px; }
.live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--wa); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); animation: blink 1.6s infinite; }
.chat { list-style: none; margin: 0; padding: 20px 18px; height: 380px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; font-size: 15px; }
.chat li { max-width: 86%; animation: pop 0.45s var(--ease) both; }
.msg { padding: 10px 14px; border-radius: 12px; line-height: 1.45; }
.msg-user { align-self: flex-end; background: #24261f; border-bottom-right-radius: 3px; }
.msg-agent { align-self: flex-start; border: 1px solid rgba(255, 91, 31, 0.45); border-bottom-left-radius: 3px; }
.msg-agent::before { content: "Agente"; display: block; font-size: 12px; font-weight: 700; color: var(--acc); margin-bottom: 2px; }
.act { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); padding-left: 2px; }
.act::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--mute); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.act.done { color: #b8f0c9; }
.act.done::before { border: 0; background: var(--wa); animation: none; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='black' stroke-width='2.2'/></svg>") center / contain no-repeat; }
.rec { align-self: stretch; max-width: none !important; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 91, 31, 0.08); border-left: 3px solid var(--acc); font-size: 13px; }
.rec b { font-size: 14px; color: #fff; }
.rec span { color: var(--mute); }
.rec b, .rec span { grid-column: 1; }
.rec em { font-style: normal; grid-column: 2; grid-row: 1 / span 2; align-self: center; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.console-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.console-foot span { border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.ticker span::after { content: ""; width: 12px; height: 12px; background: var(--acc); transform: rotate(45deg); margin-left: 28px; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* ---------- seções ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--pad) 0; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head p { color: var(--mute); max-width: 420px; margin: 0; font-size: 18px; }

/* serviços */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 56px; gap: 16px 48px; align-items: start;
  padding: 36px 20px; border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease);
}
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); }
.service h3 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); transition: transform 0.45s var(--ease); }
.service p { margin: 0 0 14px; color: var(--mute); transition: color 0.35s; }
.service .tags { grid-column: 2; }
.service p { grid-column: 2; grid-row: 1; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; transition: border-color 0.35s; }
.arrow { grid-column: 3; grid-row: 1; justify-self: end; font-size: 34px; line-height: 1; transition: transform 0.45s var(--ease); }
.service-hot h3::after { content: "em alta"; display: inline-block; vertical-align: top; margin-left: 12px; font-size: 12px; font-stretch: 100%; letter-spacing: 0; font-weight: 700; padding: 4px 8px; border-radius: 4px; background: var(--acc); color: var(--acc-ink); transition: background 0.35s, color 0.35s; }
@media (hover: hover) {
  .service:hover { color: var(--acc-ink); }
  .service:hover::before { transform: scaleY(1); }
  .service:hover h3 { transform: translateX(14px); }
  .service:hover p { color: rgba(12, 13, 11, 0.8); }
  .service:hover .tags li { border-color: rgba(12, 13, 11, 0.35); }
  .service:hover .arrow { transform: rotate(-45deg); }
  .service-hot:hover h3::after { background: var(--acc-ink); color: var(--acc); }
}

/* processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--acc); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.step { padding-top: 44px; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; background: var(--bg); border: 2px solid var(--acc); transform: rotate(45deg); z-index: 1; }
.step h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin-bottom: 14px; }
.step p { color: var(--mute); margin: 0; }

/* sobre */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-copy p { color: #c9c8c0; font-size: 19px; max-width: 600px; }
.about-copy h2 { margin-bottom: 36px; }
.certs { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.certs li { font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.certs li::before { content: ""; width: 8px; height: 8px; background: var(--acc); transform: rotate(45deg); }
.stats { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat dt { color: var(--mute); font-size: 16px; }
.stat dd { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.stat:first-child dd { color: var(--acc); }

/* contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); margin-bottom: 28px; }
.contact-copy > p { color: var(--mute); font-size: 19px; max-width: 460px; }
.wa-big { display: block; margin-top: 40px; text-decoration: none; padding: 24px 0; border-block: 1px solid var(--line); }
.wa-big span { color: var(--wa); font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.wa-big strong { font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; transition: color 0.25s; }
.wa-big:hover strong { color: var(--wa); }
.link-out { display: inline-block; margin-top: 20px; color: var(--mute); text-decoration: none; }
.link-out:hover { color: var(--ink); }

.form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--mute); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px;
  transition: border-color 0.2s;
}
.form select { appearance: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239a9c92' stroke-width='1.6'/></svg>") right center no-repeat; }
.form select option { background: var(--bg-2); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--acc); }
.form [aria-invalid="true"] { border-color: #ff6b6b; }
.form-error { margin: 0; color: #ff8a8a; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 13px; color: var(--mute); }

/* footer */
.footer { margin-top: clamp(96px, 14vw, 180px); padding: 0 var(--pad) 28px; overflow: hidden; }
.footer-big { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(8rem, 34vw, 32rem); line-height: 0.78; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 228, 0.18); user-select: none; }
.footer-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; color: var(--mute); font-size: 14px; }

/* whatsapp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--wa); color: #06210f;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring 2.4s var(--ease) infinite; }
.wa-float:hover { transform: translateY(-4px) rotate(-6deg); }

/* ---------- animações ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js.ready .hero-title .line > span { transform: none; }
.js.ready .hero-title .line:nth-child(2) > span { transition-delay: 0.1s; }
.js.ready .hero-title .line:nth-child(3) > span { transition-delay: 0.2s; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.45); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title .line > span { opacity: 1; transform: none; }
  .console { transform: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .console { transform: none; max-width: 560px; }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr 32px; padding: 28px 0; }
  .service h3 { grid-column: 1; }
  .service p, .service .tags { grid-column: 1 / -1; grid-row: auto; }
  .arrow { grid-column: 2; font-size: 26px; }
  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 36px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .step { padding-top: 0; }
  .step::before { left: -36px; }
  .chat { height: 340px; font-size: 14px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
