/* Polaryix: páginas internas (serviços, segmentos, conteúdo). Mesmo tema da home, sem animações pesadas. */
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-normal-300-800.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono-normal-400.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #07090d; --bg-2: #0b0e14; --bg-3: #11151d;
  --ink: #e9edf3; --ink-2: rgba(233, 237, 243, .74); --ink-3: rgba(233, 237, 243, .6);
  --line: rgba(233, 237, 243, .1); --line-2: rgba(233, 237, 243, .18);
  --accent: #9cc0ff; --accent-soft: rgba(156, 192, 255, .12); --wa: #3ee08f;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --g: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--g); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; z-index: 10; }
.skip:focus { top: 12px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 99px; font: 500 15px var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa svg { width: 18px; height: 18px; fill: var(--wa); }

/* Cabeçalho */
.pg-nav { border-bottom: 1px solid var(--line); background: rgba(7, 9, 13, .85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.pg-nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .24em; font-size: 15px; min-height: 44px; }
.logo svg { width: 26px; height: 26px; }
.pg-nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.pg-nav nav a { text-decoration: none; padding: 10px 0; }
.pg-nav nav a:hover, .pg-nav nav a[aria-current="page"] { color: var(--ink); }
.pg-nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* Trilha */
.crumbs { padding-top: 28px; font-size: 14px; color: var(--ink-3); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; display: inline-block; padding-block: 4px; min-height: 24px; }
.crumbs a:hover { color: var(--ink); }

/* Topo da página */
.pg-hero { padding-block: 40px 72px; display: grid; gap: 24px; }
.pg-hero > * { max-width: 900px; }
.kicker { color: var(--accent); font-size: 15px; font-weight: 500; }
.pg-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.pg-hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Conteúdo */
.block { padding-block: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.block h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.block .txt { display: grid; gap: 18px; color: var(--ink-2); max-width: 68ch; }
.block .txt strong { color: var(--ink); font-weight: 500; }
.block ul { padding: 0; list-style: none; display: grid; gap: 12px; }
.block li { display: flex; gap: 12px; }
.block li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%239cc0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Incluso */
.incl { padding-block: 64px; border-top: 1px solid var(--line); }
.incl h2, .faq h2, .rel h2, .proj h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.grid > div { background: var(--bg); padding: 26px; }
.grid b { display: block; font-weight: 500; margin-bottom: 6px; }
.grid p { color: var(--ink-3); font-size: 15px; }

/* Etapas */
.steps { padding-block: 64px; border-top: 1px solid var(--line); }
.steps h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.035em; font-weight: 500; margin-bottom: 32px; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line-2); padding-top: 18px; }
.steps li::before { content: "0" counter(s); display: block; font: 500 13px var(--mono); color: var(--accent); margin-bottom: 10px; }
.steps b { display: block; font-weight: 500; margin-bottom: 4px; }
.steps p { color: var(--ink-3); font-size: 15px; }

/* Projeto relacionado */
.proj { padding-block: 64px; border-top: 1px solid var(--line); }
.proj a.card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; text-decoration: none; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); transition: border-color .3s; }
.proj a.card:hover { border-color: var(--line-2); }
.proj img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.proj b { display: block; font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 8px; }
.proj p { color: var(--ink-2); }
.proj small { color: var(--ink-3); font-size: 14px; }
.proj span.go { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 500; }

/* FAQ */
.faq { padding-block: 64px; border-top: 1px solid var(--line); }
.faq details { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 1.1rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 68ch; }

/* Relacionados */
.rel { padding-block: 64px; border-top: 1px solid var(--line); }
.rel ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel a { display: block; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .3s, background-color .3s; }
.rel a:hover { border-color: var(--line-2); background: var(--bg-2); }
.rel b { display: block; font-weight: 500; margin-bottom: 4px; }
.rel span { color: var(--ink-3); font-size: 15px; }

/* Chamada final */
.cta { margin-block: 32px 80px; padding: clamp(32px, 6vw, 64px); border-radius: 24px; background: var(--bg-3); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; max-width: 18ch; }
.cta p { color: var(--ink-2); margin-top: 10px; }

/* Rodapé */
.pg-foot { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 15px; }
.pg-foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pg-foot h2 { font: 500 13px var(--mono); color: var(--ink-3); margin-bottom: 14px; }
.pg-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.pg-foot a { text-decoration: none; color: var(--ink-2); display: inline-block; padding-block: 2px; max-width: 100%; overflow-wrap: anywhere; }
.pg-foot a:hover { color: var(--ink); }
.pg-foot .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }

/* Índices (hubs) */
.hub { list-style: none; padding: 0 0 72px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hub a { display: grid; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: var(--bg-2); transition: border-color .3s; height: 100%; }
.hub a:hover { border-color: var(--line-2); }
.hub b { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.hub span { color: var(--ink-2); }
.hub em { font-style: normal; color: var(--accent); font-size: 15px; margin-top: 8px; }

@media (max-width: 900px) {
  .pg-nav nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 20px; padding-bottom: 6px; scrollbar-width: none; }
  .pg-nav .btn { margin-left: auto; }
  .block { grid-template-columns: 1fr; gap: 20px; padding-block: 48px; }
  .grid, .rel ul, .hub { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .proj a.card { grid-template-columns: 1fr; }
  .pg-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .steps ol, .pg-foot .cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
