/* ALL CONEXÕES — tokens da marca (HANDOFF_MARCA_ALL_CONEXOES.md §3 e §7) */
:root {
  --ac-primary: #1F6B3B;
  --ac-deep: #14532B;
  --ac-teal: #1D9E75;
  --ac-tagline: #5F6B62;
  --ac-base: #F6F8F5;
  --ac-mono: #1A1A1A;
  --ac-white: #FFFFFF;
  --ac-border: #E0E6E1;
  --ac-neg-all: #7FC99B;
  --ac-neg-tagline: #B8C4BC;
  --ac-neg-bg: #14241B;
  /* apoio para as faixas escuras (derivados do neg-bg) */
  --ac-ink: #0D1912;
  --ac-ink-line: rgba(127, 201, 155, .16);
  --ac-ink-card: rgba(255, 255, 255, .04);
  --ac-font: Arial, Helvetica, sans-serif;
  --ac-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ac-font);
  color: var(--ac-mono);
  background: var(--ac-base);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ac-teal); }
a:hover { color: var(--ac-deep); }
h1, h2, h3 { color: var(--ac-deep); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ac-code);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ac-teal);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.muted { color: var(--ac-tagline); }

/* Cabeçalho (padrão claro, usado em privacidade/termos) */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ac-border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.top .logo img { width: 200px; height: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ac-mono); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ac-primary); }

/* Cabeçalho escuro (página inicial) */
.top-dark { background: rgba(13, 25, 18, .78); border-bottom-color: var(--ac-ink-line); }
.top-dark .nav a { color: var(--ac-neg-tagline); }
.top-dark .nav a:hover { color: var(--ac-white); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ac-primary);
  transition: background .15s, color .15s, border-color .15s, box-shadow .2s;
}
.btn-primary { background: var(--ac-primary); color: var(--ac-white); }
.btn-primary:hover { background: var(--ac-deep); border-color: var(--ac-deep); color: var(--ac-white); }
.btn-secondary { background: transparent; color: var(--ac-primary); }
.btn-secondary:hover { background: var(--ac-primary); color: var(--ac-white); }
.btn-glow { background: var(--ac-teal); border-color: var(--ac-teal); color: var(--ac-white); box-shadow: 0 0 0 0 rgba(29,158,117,.5); }
.btn-glow:hover { background: var(--ac-primary); border-color: var(--ac-primary); color: var(--ac-white); box-shadow: 0 0 32px rgba(29,158,117,.45); }
.btn-ghost { background: transparent; border-color: rgba(184,196,188,.4); color: var(--ac-white); }
.btn-ghost:hover { border-color: var(--ac-neg-all); color: var(--ac-neg-all); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn { padding: 10px 18px; color: var(--ac-white); }

/* Hero tecnológico */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(29,158,117,.20), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(31,107,59,.30), transparent 60%),
    var(--ac-ink);
  color: var(--ac-white);
  margin-top: -73px; padding-top: 73px;
}
.hero::after { /* grade técnica */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ac-ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ac-ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  opacity: .55;
}
#rede { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding-top: 110px; padding-bottom: 120px;
}
.hero h1 { color: var(--ac-white); }
.hero h1 em { font-style: normal; color: var(--ac-neg-all); }
.hero p.lead { font-size: 1.2rem; color: var(--ac-neg-tagline); max-width: 33em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(127,201,155,.08); border: 1px solid var(--ac-ink-line);
  font-family: var(--ac-code); font-size: .8rem; letter-spacing: .04em;
  color: var(--ac-neg-all); margin-bottom: 26px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ac-teal); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ac-teal); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* Painel ilustrativo do hero */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--ac-ink-line);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  font-family: var(--ac-code);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .78rem; color: var(--ac-neg-tagline); }
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(184,196,188,.25); }
.panel-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--ac-ink-line);
  font-size: .86rem; color: var(--ac-white);
}
.panel-row svg { color: var(--ac-neg-all); }
.panel-row .ok { font-size: .74rem; color: var(--ac-neg-all); display: inline-flex; align-items: center; gap: 6px; }
.panel-row .ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac-teal); box-shadow: 0 0 8px var(--ac-teal); }
.panel-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ac-ink-line); font-size: .74rem; color: var(--ac-neg-tagline); display: flex; justify-content: space-between; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 4px; background: var(--ac-teal); border-radius: 2px; animation: bar 1.6s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; }
.bars i:nth-child(4) { animation-delay: .6s; } .bars i:nth-child(5) { animation-delay: .8s; }
@keyframes bar { 0%,100% { height: 30%; } 50% { height: 100%; } }

/* Faixa de tecnologias */
.ticker { background: var(--ac-ink); border-top: 1px solid var(--ac-ink-line); border-bottom: 1px solid var(--ac-ink-line); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--ac-code); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-neg-tagline); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: "◆"; color: var(--ac-teal); font-size: .55rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Seções */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: var(--ac-white);
  border: 1px solid var(--ac-border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Pilha de soluções */
.stack { display: grid; gap: 16px; }
.layer {
  display: grid; grid-template-columns: 150px 1.1fr 1.4fr; gap: 28px; align-items: start;
  background: var(--ac-white); border: 1px solid var(--ac-border); border-radius: var(--radius);
  padding: 30px 32px; position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.layer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ac-teal), var(--ac-primary));
  opacity: 0; transition: opacity .2s;
}
.layer:hover { border-color: rgba(29,158,117,.45); box-shadow: 0 18px 50px rgba(20,83,43,.10); transform: translateY(-2px); }
.layer:hover::before { opacity: 1; }
.layer .num { font-family: var(--ac-code); font-size: .8rem; color: var(--ac-tagline); }
.layer .ico {
  width: 52px; height: 52px; border-radius: 14px; margin-top: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29,158,117,.14), rgba(31,107,59,.06));
  color: var(--ac-primary); border: 1px solid rgba(29,158,117,.25);
}
.layer h3 { font-size: 1.35rem; margin-bottom: 8px; }
.layer p { color: var(--ac-tagline); margin: 0; }
.layer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.layer li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ac-mono); font-size: .97rem; }
.layer li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border: 2px solid var(--ac-teal); border-radius: 50%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--ac-code); font-size: .72rem; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 6px;
  background: var(--ac-base); border: 1px solid var(--ac-border); color: var(--ac-deep);
}

/* Como funciona */
.steps { counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--ac-ink-card); border: 1px solid var(--ac-ink-line); }
.step .n { font-family: var(--ac-code); font-size: .8rem; color: var(--ac-neg-all); display: block; margin-bottom: 18px; }
.step h3 { color: var(--ac-white); }
.step p { color: var(--ac-neg-tagline); margin: 0; font-size: .95rem; }

/* Perfis */
.perfil { border-top: 3px solid var(--ac-primary); }
.perfil:nth-child(2) { border-top-color: var(--ac-teal); }
.perfil:nth-child(3) { border-top-color: var(--ac-deep); }
.perfil .tag { display: inline-block; margin-bottom: 14px; }

/* Faixas escuras */
.dark { background: var(--ac-ink); color: var(--ac-white); position: relative; overflow: hidden; }
.dark h2 { color: var(--ac-white); }
.dark .muted { color: var(--ac-neg-tagline); }
.dark .eyebrow { color: var(--ac-neg-all); }
.stat { padding: 22px; border-radius: 14px; background: var(--ac-ink-card); border: 1px solid var(--ac-ink-line); }
.stat strong { display: block; font-size: 1.6rem; color: var(--ac-neg-all); line-height: 1.15; margin-bottom: 6px; }
.stat span { color: var(--ac-neg-tagline); font-size: .92rem; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact dl { margin: 0; }
.contact dt { font-family: var(--ac-code); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-tagline); margin-top: 18px; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact dd a { color: var(--ac-mono); text-decoration: none; }
.contact dd a:hover { color: var(--ac-primary); }

/* Rodapé */
footer { background: var(--ac-white); border-top: 1px solid var(--ac-border); padding: 44px 0 36px; font-size: .9rem; color: var(--ac-tagline); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer img { width: 180px; margin-bottom: 14px; }
footer a { color: var(--ac-tagline); text-decoration: none; }
footer a:hover { color: var(--ac-primary); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer .legal { border-top: 1px solid var(--ac-border); margin-top: 32px; padding-top: 20px; font-size: .82rem; }
footer strong { color: var(--ac-mono); }

/* Páginas de texto (privacidade, termos) */
.doc { background: var(--ac-white); }
.doc .wrap { max-width: 780px; padding-top: 64px; padding-bottom: 80px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc li { margin-bottom: 6px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ac-primary); color: var(--ac-white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(20, 83, 43, .35);
}
.wa-float:hover { background: var(--ac-deep); color: var(--ac-white); }

/* Revelar ao rolar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .bars i, .pulse::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .hero .wrap, .contact { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
  .layer .ico { margin-top: 0; }
  footer .cols { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section { padding: 68px 0; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .top .logo img { width: 150px; }
  .nav .btn { padding: 9px 14px; font-size: .88rem; }
  .wrap { padding: 0 16px; }
  .panel-foot { flex-direction: column; }
}
