/* ==========================================================================
   Geremp Labs — estilos
   Manual de marca: Azul Tech #2563EB · Grafite #0B0F14 · Cinza Claro #E2E8F0 · Montserrat
   Seções alternam .dark e .light.
   ========================================================================== */

:root {
  /* Escuro */
  --ink: #0b0f14;
  --ink-2: #111823;
  --ink-3: #172131;
  --line-dark: #ffffff14;
  --line-dark-2: #ffffff24;
  --text-on-dark: #e2e8f0;
  --muted-on-dark: #9aa7ba;

  /* Claro */
  --paper: #f6f8fb;
  --white: #fff;
  --line: #e2e8f0;
  --text: #1e2633;
  --muted: #5a6577;

  /* Azul */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-mid: #3b82f6;
  --blue-light: #93c5fd;
  --blue-soft: #eaf1fe;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, 'Roboto Mono', monospace;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; border-radius: 6px; }

.container { position: relative; z-index: 1; width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.dark { background: var(--ink); color: var(--text-on-dark); }
.light { background: var(--paper); color: var(--text); }
.light.about { background: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--blue-light); }

h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.14; letter-spacing: -.03em; font-weight: 800; }
.dark h2 { color: #fff; }
.light h2 { color: var(--ink); }
.muted { color: #8a94a3; }
.accent { color: var(--blue-mid); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head > p:not(.eyebrow) { margin-top: 18px; font-size: 17px; }
.dark .section-head > p:not(.eyebrow) { color: var(--muted-on-dark); }
.light .section-head > p:not(.eyebrow) { color: var(--muted); }

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 11px; border: 1px solid transparent;
  font: 700 15px var(--font); cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px -10px #2563ebb3; }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 14px 34px -10px #2563ebd9; }
.button-ghost { border-color: var(--line-dark-2); color: #fff; background: #ffffff08; }
.button-ghost:hover { border-color: #3b82f699; background: #3b82f614; }

/* ---------- Cabeçalho ---------- */
/* Transparente sobre o topo; ganha fundo ao rolar (classe .scrolled via script.js) */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 76px; margin-bottom: -76px; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled {
  height: 66px; background: #0b0f14e6; border-bottom-color: var(--line-dark);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* Assinatura horizontal oficial: símbolo | GEREMP / L A B S */
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark { width: 36px; height: 36px; }
.brand-divider { width: 1px; height: 30px; background: #ffffff59; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.brand-sub { margin-top: 6px; font-size: 10px; font-weight: 400; letter-spacing: 1.02em; color: #b9c6dc; }

/* Navegação */
.main-nav { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px;
  background: none; border: 0; font: inherit; color: #c9d2de; cursor: pointer; transition: color .2s, background .2s;
}
.nav-link:hover, .has-menu.open > .nav-link { color: #fff; background: #ffffff0f; }
.chevron { font-size: 14px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.has-menu.open .chevron { transform: rotate(180deg); }
.main-nav .nav-cta { margin-left: 10px; color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; background: var(--blue); transition: background .2s; }
.main-nav .nav-cta:hover { background: var(--blue-dark); }

/* Menu suspenso de soluções */
.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 520px; padding: 10px;
  border-radius: 16px; border: 1px solid var(--line-dark-2);
  background: #0f1620f7; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -16px #000000cc;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* ponte para o hover */
.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-menu-grid a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; transition: background .2s; }
.nav-menu-grid a:hover, .nav-menu-grid a:focus-visible { background: #ffffff0d; }
.nav-menu-grid a > span:last-child { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--muted-on-dark); }
.nav-menu-grid b { font-size: 15px; color: #fff; }
.nav-menu-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 14px;
  border-top: 1px solid var(--line-dark); font-size: 14px; font-weight: 600; color: var(--blue-light);
}
.nav-menu-all:hover { color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
/* ---------- Início (hero) ---------- */
.hero { position: relative; overflow: hidden; padding: 128px 0 96px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: -380px; top: -460px; border-radius: 50%;
  background: radial-gradient(circle, #2563eb4d, transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero-mark { position: absolute; right: -90px; top: 40px; width: 620px; height: 620px; opacity: .05; }
.hero h1 {
  max-width: 900px; color: #fff;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800;
}
.hero-lead { max-width: 620px; margin-top: 26px; font-size: 19px; color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-index { margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-index a {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: #111823cc;
  transition: border-color .2s, transform .2s var(--ease);
}
.hero-index a:hover { border-color: #3b82f680; transform: translateY(-3px); }
.hero-index a > span:last-child { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; color: var(--muted-on-dark); }
.hero-index b { color: #fff; font-size: 16px; }

/* ---------- Mapa do ecossistema (hero) ---------- */
.hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-layout .hero-index { grid-column: 1 / -1; display: none; }
.hero-copy h1 { font-size: clamp(40px, 5.2vw, 70px); }
.hero:has(.eco-map) .hero-mark { display: none; }

.eco-map { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: end; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-ring { fill: none; stroke: #ffffff26; stroke-width: 1; stroke-dasharray: 2 7; transform-box: fill-box; transform-origin: center; }
.eco-ring-1 { animation: eco-spin 50s linear infinite; }
.eco-ring-2 { stroke: #ffffff1a; animation: eco-spin 90s linear infinite reverse; }
.eco-paths path { fill: none; stroke: #3b82f666; stroke-width: 1.5; }
.eco-pulses path {
  fill: none; stroke: #93c5fd; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 7 100; stroke-dashoffset: 7;
  filter: drop-shadow(0 0 4px #3b82f6);
  animation: eco-pulse 3.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.eco-pulses path:nth-child(2) { animation-delay: .8s; }
.eco-pulses path:nth-child(3) { animation-delay: 1.6s; }
.eco-pulses path:nth-child(4) { animation-delay: 2.4s; }
.eco-dots circle { fill: #3b82f6; opacity: .6; }

.eco-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 30%; aspect-ratio: 1; border-radius: 28%;
  background: linear-gradient(150deg, #1b2840, #0e141d); border: 1px solid #3b82f659;
  box-shadow: 0 0 0 8px #3b82f60d, 0 0 60px -6px #2563eb80, inset 0 1px #ffffff1f;
  animation: eco-breathe 4s ease-in-out infinite;
}
.eco-core img { width: 42%; height: auto; }
.eco-core span { font-size: 10px; font-weight: 700; letter-spacing: .22em; color: var(--muted-on-dark); }

.eco-node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translate(-50%, -27px);
  animation: eco-float 6s ease-in-out infinite;
}
.eco-node.n1 { left: 18.08%; top: 21.92%; }
.eco-node.n2 { left: 81.92%; top: 21.92%; animation-delay: -1.5s; }
.eco-node.n3 { left: 18.08%; top: 78.08%; animation-delay: -3s; }
.eco-node.n4 { left: 81.92%; top: 78.08%; animation-delay: -4.5s; }
.eco-node .logo-tile { transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 0 0 1px #ffffff1a, 0 10px 30px -8px #000c; }
.eco-node b {
  font-size: 13px; font-weight: 600; color: #fff; padding: 3px 10px; border-radius: 999px;
  background: #0b0f14cc; border: 1px solid var(--line-dark); transition: border-color .25s, color .25s;
}
.eco-node:hover .logo-tile { transform: scale(1.08); box-shadow: 0 0 0 1px #3b82f699, 0 0 32px -4px #3b82f6; }
.eco-node:hover b { border-color: #3b82f680; color: var(--blue-light); }

@keyframes eco-spin { to { transform: rotate(360deg); } }
@keyframes eco-pulse { 0% { stroke-dashoffset: 7; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes eco-breathe { 0%, 100% { box-shadow: 0 0 0 8px #3b82f60d, 0 0 50px -8px #2563eb73, inset 0 1px #ffffff1f; } 50% { box-shadow: 0 0 0 14px #3b82f608, 0 0 80px -4px #2563eba6, inset 0 1px #ffffff1f; } }
@keyframes eco-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .eco-map { justify-self: center; max-width: 440px; margin-top: 8px; }
}
@media (max-width: 760px) {
  .eco-map { display: none; }
  .hero-layout .hero-index { display: grid; }
  .hero:has(.eco-map) .hero-mark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-ring, .eco-pulses path, .eco-core, .eco-node { animation: none !important; }
  .eco-pulses { display: none; }
}

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-text { padding-top: 40px; }
.about-text .lead { font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.65; }
.about-text p + p { margin-top: 18px; font-size: 16px; color: var(--muted); }

.name-origin { margin-top: 80px; display: grid; grid-template-columns: 1fr auto 1fr auto 1.1fr; align-items: stretch; gap: 16px; }
.origin-card {
  display: flex; align-items: center; gap: 18px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .2s, transform .2s var(--ease);
}
.origin-card:hover { border-color: #2563eb66; transform: translateY(-3px); }
.origin-tag {
  flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .06em;
}
.origin-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.origin-card p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.origin-plus { align-self: center; font-size: 26px; font-weight: 300; color: #a0aab8; }
.origin-result { background: var(--blue-soft); border-color: #2563eb33; }
.origin-result img { width: 52px; height: 52px; flex: none; }

/* ---------- Soluções ---------- */
.solutions { overflow: hidden; border-top: 1px solid var(--line-dark); }
.solutions::after {
  content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: 40%; transform: translateX(-50%);
  background: radial-gradient(ellipse, #2563eb1a, transparent 65%); pointer-events: none;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 300px; padding: 36px; border-radius: 20px;
  border: 1px solid var(--line-dark); background: var(--ink-2);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.product:hover { border-color: #3b82f673; transform: translateY(-4px); box-shadow: 0 24px 60px -24px #2563eb59; }
.product > * { position: relative; z-index: 1; }
.product-wide { grid-column: span 2; }
.product-wide > :not(.product-art) { max-width: 56%; }
.product-head { display: flex; align-items: center; gap: 16px; }
.product h3 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.product-cat { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--blue-light); }
.product-desc { margin: 20px 0 28px; font-size: 16px; color: var(--muted-on-dark); }
.product-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff; transition: gap .2s, color .2s;
}
.product-link .icon { font-size: 16px; stroke-width: 2.2; color: var(--blue-light); }
.product-link:hover { gap: 12px; color: var(--blue-light); }
.product-art {
  position: absolute !important; right: 9%; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid #3b82f62e; background: radial-gradient(circle, #2563eb33, transparent 70%);
  box-shadow: 0 0 0 28px #3b82f608, 0 0 0 56px #3b82f605;
}
.product-art img { width: 124px; height: 124px; border-radius: 28px; box-shadow: 0 24px 60px -14px #000000b3; }

/* Logos dos produtos (cada produto mantém sua identidade) */
.logo-tile {
  display: grid; place-items: center; flex: none; overflow: hidden;
  width: 54px; height: 54px; border-radius: 14px;
  box-shadow: 0 8px 22px -8px #00000099;
}
@media (min-width: 761px) { .product-wide .product-head .logo-tile { display: none; } }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile.mini { width: 42px; height: 42px; border-radius: 11px; }
.logo-buildagents { background: #fff; padding: 7px; }
.logo-buildagents.mini { padding: 5px; }
.logo-validoc { background: #000; border: 1px solid #ffffff1f; padding: 8px; }
.logo-validoc.mini { padding: 6px; }

/* Luz que acompanha o mouse (posição definida no script.js) */
.product::after, .hero-index a::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), #3b82f624, transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.product:hover::after, .hero-index a:hover::after { opacity: 1; }

/* ---------- Diferenciais ---------- */
.dif-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.dif-head { position: sticky; top: 120px; margin-bottom: 0; }
.pillars { border-top: 1px solid var(--line); }
.pillar {
  display: grid; grid-template-columns: 48px 1fr 48px; gap: 20px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s var(--ease);
}
.pillar:hover { background: var(--white); padding-left: 18px; padding-right: 18px; }
.pillar-num { font-size: 15px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.pillar h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.pillar p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pillar-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); font-size: 22px; transition: background .25s, color .25s;
}
.pillar:hover .pillar-icon { background: var(--blue); color: #fff; }

/* ---------- Contato (painel de chamada) ---------- */
.contact { padding-top: 24px; }
.contact-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 48px; border-radius: 28px; border: 1px solid #3b82f640;
  background:
    radial-gradient(700px 320px at 50% -10%, #2563eb47, transparent 70%),
    linear-gradient(180deg, #111a28, #0c121b);
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
}
.contact-panel > * { position: relative; }
.contact-mark { position: absolute !important; width: 360px; height: 360px; right: -90px; bottom: -110px; opacity: .05; }
.contact-panel .eyebrow { justify-content: center; }
.contact-panel h2 { max-width: 720px; margin-inline: auto; font-size: clamp(32px, 4.4vw, 54px); }
.contact-lead { max-width: 560px; margin: 20px auto 0; font-size: 18px; color: var(--muted-on-dark); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.button-lg { padding: 18px 28px; font-size: 16px; border-radius: 13px; }
.button-lg .icon { font-size: 21px; }
.button-whats { background: #1fae58; color: #fff; box-shadow: 0 12px 32px -10px #1fae58b3; }
.button-whats:hover { background: #1a9e50; box-shadow: 0 16px 38px -10px #1fae58d9; }
.contact-mail.copied { border-color: #22c55e80; background: #22c55e14; }
/* sem WhatsApp configurado, o e-mail vira o botão principal */
.contact-actions:not(:has([data-whatsapp]:not([hidden]))) .contact-mail { background: var(--blue); border-color: transparent; }
.contact-alt { margin-top: 28px; font-size: 15px; color: var(--muted-on-dark); }
.contact-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; border-bottom: 1px solid #ffffff40; transition: border-color .2s, color .2s; }
.contact-alt a:hover { color: var(--blue-light); border-color: var(--blue-light); }
.contact-alt .icon { font-size: 16px; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 72px 0 28px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about p { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--muted-on-dark); }
.site-footer .brand-mark { width: 32px; height: 32px; }
.site-footer h3 { margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid nav a, .footer-grid > div:last-child a { font-size: 15px; color: var(--muted-on-dark); transition: color .2s; }
.footer-grid nav a:hover, .footer-grid > div:last-child a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #6f7c90;
}

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: #1fae58; color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px #1fae5899;
  transition: transform .2s var(--ease), background .2s;
}
.whats-float.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
.whats-float { transition: transform .3s var(--ease), opacity .3s, background .2s; }
.whats-float:hover { transform: translateY(-3px); background: #1a9e50; }
.whats-float .icon { font-size: 24px; }

/* ---------- Aparecer ao rolar (só com JS ativo) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .product-grid .reveal:nth-child(2), .js-reveal .pillars .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .product-grid .reveal:nth-child(3), .js-reveal .pillars .reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .product-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .main-nav { gap: 22px; font-size: 14px; }
  .hero-index { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-wide { grid-column: span 2; }
  .dif-grid { grid-template-columns: 1fr; gap: 40px; }
  .dif-head { position: static; }
  .name-origin { grid-template-columns: 1fr; }
  .origin-plus { justify-self: center; line-height: 1; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .site-header, .site-header.scrolled { height: 64px; margin-bottom: -64px; }
  .site-header:has(.main-nav.open) { background: #0b0f14; border-bottom-color: var(--line-dark); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 9px; letter-spacing: .98em; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #0b0f14; padding: 12px 16px 20px; border-bottom: 1px solid var(--line-dark);
  }
  .main-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 6px; font-size: 16px; justify-content: space-between; }
  .has-menu .nav-link { pointer-events: none; color: var(--muted-on-dark); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: none !important; }
  .has-menu .chevron { display: none; }
  .nav-menu, .has-menu.open .nav-menu {
    position: static; width: auto; padding: 0; border: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; backdrop-filter: none;
  }
  .nav-menu::before { display: none; }
  .nav-menu-grid { grid-template-columns: 1fr; }
  .nav-menu-grid a { padding: 10px 6px; }
  .nav-menu-all { display: none; }
  .main-nav .nav-cta { margin: 10px 0 0; padding: 14px; text-align: center; }
  .hero { padding: 112px 0 64px; }
  .hero-mark { width: 340px; height: 340px; right: -140px; top: 20px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-index { grid-template-columns: 1fr 1fr; margin-top: 44px; gap: 10px; }
  .hero-index a { padding: 12px; gap: 10px; }
  .hero-index a > span:last-child { font-size: 12px; }
  .hero-index b { font-size: 14px; }
  .logo-tile.mini { width: 34px; height: 34px; border-radius: 9px; }
  .section { padding: 72px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-wide { grid-column: auto; }
  .product-wide > :not(.product-art) { max-width: none; }
  .product-art { display: none; }
  .product { padding: 26px 22px; min-height: 0; }
  .pillar { grid-template-columns: 34px 1fr; padding: 22px 4px; }
  .pillar:hover { padding-left: 4px; padding-right: 4px; }
  .pillar-icon { display: none; }
  .name-origin { margin-top: 48px; gap: 8px; }
  .origin-card { padding: 14px; gap: 14px; }
  .origin-tag { width: 52px; height: 52px; font-size: 15px; border-radius: 11px; }
  .origin-card p { display: none; }
  .origin-result img { width: 40px; height: 40px; }
  .origin-plus { font-size: 20px; }
  .contact-panel { padding: 52px 22px; border-radius: 20px; }
  .contact-lead { font-size: 16px; }
  .contact-actions .button { flex: 1 1 100%; }
  .contact-mark { width: 240px; height: 240px; right: -80px; bottom: -80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .whats-float { right: 16px; bottom: 16px; padding: 14px; }
  .whats-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ---------- Toques tech ---------- */
/* Grade técnica de fundo na seção de soluções */
.tech-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* Borda que acende (luz percorrendo a borda do card) */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.product::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 62%, #3b82f6 78%, #93c5fd 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.product:hover::before { opacity: 1; animation: border-spin 2.6s linear infinite; }
@keyframes border-spin { to { --angle: 360deg; } }

@media (prefers-reduced-motion: reduce) { .product:hover::before { animation: none !important; } }

/* ---------- Página 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .brand { margin-bottom: 64px; color: #fff; }
.notfound-code { display: flex; }
