/* Copattech: identidade das páginas públicas (hub, produtos, termos).
   Mesma linguagem da EazConvert: vidro estilo Windows 11, Montserrat, só branco/cinza, sem degradê.
   Toque retrô-Miami sutil: horizonte em linhas finas e o sol só em contorno, nunca em cor. */
@font-face { font-family: 'Montserrat'; src: url(/assets/montserrat.ttf) format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --fundo: #ededf0; --fundo2: #e4e4e8; --vidro: rgba(250, 250, 252, .62); --borda: rgba(255, 255, 255, .8);
  --linha: rgba(0, 0, 0, .08); --linha-forte: rgba(0, 0, 0, .16); --txt: #17171b; --txt2: #4a4a52; --txt3: #75757e;
  --acento: #2c2c31; --sobre-acento: #fff; --sombra: 0 30px 80px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  --raio: 20px; --larg: 1180px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --fundo: #141416; --fundo2: #1b1b1e; --vidro: rgba(34, 34, 38, .6); --borda: rgba(255, 255, 255, .1);
    --linha: rgba(255, 255, 255, .08); --linha-forte: rgba(255, 255, 255, .18); --txt: #f3f3f5; --txt2: #c4c4cc; --txt3: #8d8d96;
    --acento: #ececf0; --sobre-acento: #141416; --sombra: 0 30px 80px rgba(0, 0, 0, .55); color-scheme: dark; }
  .inverte-escuro { filter: invert(1); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--txt); font: 500 16px/1.6 'Montserrat', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--acento); color: var(--sobre-acento); }

/* grão leve por cima de tudo (textura, não cor) */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.envolve { width: min(var(--larg), 100% - 32px); margin-inline: auto; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.topo .envolve { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: var(--vidro); border: 1px solid var(--borda); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.2px; }
.marca img, .marca svg { width: 30px; height: 30px; }
.topo nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topo nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--txt2); padding: 8px 14px; border-radius: 999px; }
.topo nav a:hover { color: var(--txt); background: var(--linha); }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--acento); color: var(--sobre-acento) !important; font: 700 15px 'Montserrat', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.botao:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .2); }
.botao.claro { background: var(--vidro); color: var(--txt) !important; border: 1px solid var(--linha-forte); box-shadow: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.botao svg { width: 18px; height: 18px; }
.topo .botao { padding: 9px 16px; font-size: 13.5px; }

/* ---------- tipografia ---------- */
.rotulo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--txt3); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.fino { font-weight: 300; }
/* palavra de destaque: bem fina e cinza (contorno vazado mostrava as emendas internas da fonte variável) */
.contorno { font-weight: 200; color: var(--txt3); letter-spacing: -.045em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--txt2); max-width: 600px; }

/* ---------- vidro ---------- */
.vidro { background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6); }

/* ---------- horizonte retrô (só linhas) ---------- */
.horizonte { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; overflow: hidden; }
/* linhas cada vez mais juntas e mais fortes perto do chão (perspectiva), opacidade por linha: sem degradê */
.horizonte i { position: absolute; left: 0; right: 0; height: 1px; background: var(--txt); }
.sol { position: absolute; border-radius: 50%; border: 1px solid var(--linha-forte); pointer-events: none; }

/* ---------- seções ---------- */
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.cabeca-secao { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 48px 0 60px; font-size: 14px; color: var(--txt2); }
.rodape .envolve { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.rodape .marca { color: var(--txt); }
.rodape nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.rodape nav a { text-decoration: none; }
.rodape nav a:hover { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
.rodape small { display: block; width: 100%; color: var(--txt3); font-size: 12.5px; }

/* ---------- entrada escalonada ---------- */
@keyframes sobe { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.entra { animation: sobe .9s cubic-bezier(.2, .8, .2, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; } .d5 { animation-delay: .6s; }
.revela { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.revela.visto { opacity: 1; transform: none; }

/* ---------- páginas de texto (termos/privacidade) ---------- */
.doc { padding: 40px 0 100px; }
.doc .papel { max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 64px); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 10px; line-height: 1.3; }
.doc p, .doc li { color: var(--txt2); }
.doc ul { padding-left: 20px; }
.doc .data { color: var(--txt3); font-size: 14px; }

@media (max-width: 720px) {
  .topo nav a:not(.botao) { display: none; }
  .rodape nav { margin-left: 0; }
}

/* ---------- vitruviano (assets/vitruvio.js): eixos, círculo e quadrado, traçados uma vez a partir da logo ---------- */
.vitruvio { overflow: visible; color: var(--txt); }
.vitruvio .traco { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .26; stroke-dasharray: 1; stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke; animation: traca 1.8s cubic-bezier(.65, 0, .25, 1) var(--d, 0s) forwards; }
@keyframes traca { to { stroke-dashoffset: 0; } }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- GSAP (assets/movimento.js): com ele ativo, as animações em CSS saem de cena ---------- */
.gs .entra { animation: none; }
.gs .revela { transition: none; }
.mascara { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.pal { display: inline-block; will-change: transform; }
