/* ── BASE / CHROME compartilhado (nav, footer, botões, tokens, fixed-ui) ───────── */
:root {
  --bg: #f7f7f8;
  --bg-white: #ffffff;
  --border: rgba(12,11,30,.09);
  --border-md: rgba(12,11,30,.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  --text: #0c0b1e;
  --muted: rgba(12,11,30,.52);
  --dim: rgba(12,11,30,.33);
  --dark-bg: #0c0b1e;
  --dark-text: #ffffff;
  --dark-muted: rgba(237,234,255,.55);
  --dark-dim: rgba(237,234,255,.28);
  --purple: #8b52ff;
  --purple-lt: #a87bff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; scrollbar-gutter: stable;
}
h1, h2, h3, h4 { font-family: 'Source Sans 3', sans-serif; font-weight: 900; letter-spacing: -.025em; line-height: 1.07; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; }
.eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.s-lg { padding: 6.5rem 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Inter', sans-serif; font-weight: 600; text-decoration: none; border-radius: 9999px; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer; background: none; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:active { transform: translateY(1px) !important; }
.btn-sm { font-size: .8125rem; padding: .5rem 1.125rem; }
.btn-md { font-size: .875rem; padding: .6875rem 1.375rem; }
.btn-lg { font-size: 1rem; padding: .875rem 2rem; }
.btn-fill { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-fill:hover { background: var(--purple-lt); border-color: var(--purple-lt); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139,82,255,.32); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-md); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-dark:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* Nav */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 1.125rem 0; background: var(--bg-white); border-bottom: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.nav-inner .nav-logo { justify-self: start; }
.nav-inner .nav-links { justify-self: center; }
.nav-inner > .btn { justify-self: end; }
.nav-logo { display: flex; align-items: center; gap: .5625rem; text-decoration: none; }
.nav-logo img { height: 26px; width: auto; }
.nav-logo span { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .9375rem; color: var(--text); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Footer */
footer { background: #000; border-top: 1px solid rgba(255,255,255,.07); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: .5625rem; text-decoration: none; margin-bottom: 1.25rem; }
.footer-logo-wrap img { height: 57px; filter: brightness(0) invert(1); }
.footer-logo-wrap span { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .9rem; color: var(--dark-text); }
.footer-slogan { display: block; font-size: .8125rem; font-weight: 600; color: var(--purple); letter-spacing: -.01em; margin-bottom: 1.25rem; }
.footer-tagline { font-size: .875rem; color: var(--dark-dim); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-dim); margin-bottom: 1.375rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .875rem; }
.footer-col a { font-size: .875rem; color: var(--dark-muted); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--dark-text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.07); }
.footer-copy { font-size: .8125rem; color: var(--dark-dim); }

/* Fixed UI: back-to-top + lang */
#fixed-ui { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
#back-top { width: 36px; height: 36px; border-radius: 9999px; background: #0c0b1e; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 20px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.55); opacity: 0; pointer-events: none; transition: opacity .25s, color .15s; }
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { color: rgba(255,255,255,.7); }
.lang-pill { display: flex; align-items: center; gap: .1875rem; background: #0c0b1e; border: 1px solid rgba(255,255,255,.14); border-radius: 9999px; padding: .25rem; box-shadow: 0 4px 20px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.14); }
.lang-opt { font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: rgba(255,255,255,.4); background: none; border: none; padding: .375rem .75rem; border-radius: 9999px; transition: color .15s, background .15s; }
.lang-opt.active { background: rgba(255,255,255,.14); color: #fff; }
.lang-opt:hover:not(.active) { color: rgba(255,255,255,.7); }

/* Reveal */
.reveal { transition: opacity .65s ease, transform .65s ease; }
.js-ready .reveal { opacity: 0; transform: translateY(26px); }
.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Evita flash do idioma errado: body fica oculto até o JS aplicar o idioma salvo (ver script inline no <head>) */
html:not(.lang-ready) body { visibility: hidden; }
html.lang-ready body { visibility: visible; }

/* Page hero (dark) shared by sub-pages */
.page-hero { background: var(--dark-bg); padding: 9.5rem 0 4.5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -200px; right: -100px; width: 900px; height: 900px; background: radial-gradient(circle, rgba(139,82,255,.12) 0%, transparent 55%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--purple-lt); display: block; margin-bottom: 1rem; }
.page-hero h1 { color: var(--dark-text); max-width: 18ch; }
.page-hero p { color: var(--dark-muted); font-size: 1.0625rem; line-height: 1.7; max-width: 56ch; margin-top: 1.25rem; }

/* Portfolio / Work section — shared by home, sobre, servicos */
#work { background: var(--dark-bg); padding: 6.5rem 0 5rem; }
@media (min-width: 1540px) { #work .wrap { max-width: 1460px; } }
.work-head-center { text-align: center; margin-bottom: 2.75rem; }
.work-head-center h2 { margin-top: .5rem; margin-bottom: .625rem; color: var(--dark-text); }
.work-head-center p { color: var(--dark-muted); font-size: .9375rem; }
.work-eyebrow { color: var(--purple-lt); }
.gallery-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.gallery-slide { width: 100%; }
@media (max-width: 1180px) { .gallery-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery-track { grid-template-columns: 1fr; } }
.gallery-card { position: relative; border-radius: 1.25rem; overflow: hidden; height: 480px; border: 1px solid rgba(255,255,255,.15); transition: border-color .25s; }
.gallery-card:hover { border-color: rgba(139,82,255,.35); }
.gallery-card img.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 0%; transform: scale(1.1) translateY(-6%); transition: transform .5s ease; }
.gallery-card:hover .gallery-img { transform: scale(1.16) translateY(-6%); }
.gallery-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 14%, rgba(12,11,30,.10) 26%, rgba(12,11,30,.38) 38%, rgba(12,11,30,.74) 50%, rgba(12,11,30,.94) 62%, rgba(12,11,30,.99) 75%, rgba(12,11,30,1) 100%); }
.gallery-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 1.75rem; }
.gallery-bullets { list-style: none; padding: 0; margin: .625rem 0 .875rem; display: flex; flex-direction: column; gap: .3rem; }
.gallery-bullets li { font-size: .775rem; color: rgba(255,255,255,.68); padding-left: 1rem; position: relative; line-height: 1.45; }
.gallery-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--purple-lt); font-size: .7rem; top: .05em; }
.gallery-title { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: #fff; margin-bottom: .5rem; line-height: 1.3; }
.gallery-desc { font-size: .8125rem; color: rgba(255,255,255,.65); line-height: 1.65; }
.gallery-tags { margin-top: .875rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.gallery-chip { display: inline-flex; align-items: center; padding: .2rem .625rem; border-radius: 999px; border: 1px solid rgba(139,82,255,.45); background: rgba(139,82,255,.12); font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(184,140,255,.9); pointer-events: none; user-select: none; }

/* Dark full-width CTA section — shared by home and glossary articles */
.cta-dark-section { background: var(--dark-bg); text-align: center; padding: 9rem 0; position: relative; overflow: hidden; }
.cta-dark-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(139,82,255,.12) 0%, transparent 65%); pointer-events: none; }
.cta-dark-section .wrap { position: relative; z-index: 1; }
.cta-dark-section .cta-eyebrow { display: block; margin-bottom: 1rem; color: var(--purple-lt); }
.cta-dark-section h2 { color: var(--dark-text); margin-bottom: 1.125rem; font-size: clamp(2.25rem, 4.5vw, 4rem); }
.cta-dark-section .cta-sub { color: var(--dark-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 460px; margin: 0 auto 2.5rem; }

/* Article (glossary term page) */
.article-hero { background: var(--dark-bg); padding: 9rem 0 3rem; position: relative; overflow: hidden; }
.article-hero::before { content: ''; position: absolute; top: -200px; right: -100px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(139,82,255,.12) 0%, transparent 55%); pointer-events: none; }
.article-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { font-size: .8125rem; color: var(--dark-dim); margin-bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--purple-lt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-back { font-size: .8125rem; color: var(--purple-lt); text-decoration: none; margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: .375rem; transition: color .15s; }
.article-back:hover { color: var(--dark-text); }
.article-back svg { width: 11px; height: 11px; }
.article-hero h1 { color: var(--dark-text); max-width: 22ch; }
.article-hero .lead { color: var(--dark-muted); font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; margin-top: 1rem; }
.article-meta { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--dark-dim); margin-top: 1.5rem; }
.article-meta strong { color: var(--dark-muted); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dark-dim); }
.article-meta-avatar { width: 41px; height: 41px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article { background: var(--bg); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 .875rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--text); font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; }
.article-body ul { margin: 0 0 1.25rem 1.5rem; }
.article-body li { color: var(--text); font-size: 1.0625rem; line-height: 1.7; margin-bottom: .5rem; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.article-next { margin: 2.5rem 0 0; padding: 1.25rem 1.5rem; background: rgba(139,82,255,.05); border: 1px solid rgba(139,82,255,.18); border-radius: .875rem; }
.article-next-label { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: .5rem; }
.article-next a { font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; }
.article-next a:hover { color: var(--purple); }
.article-figure { margin: 2.25rem 0; }
.article-figure img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-sm); display: block; }
.article-figure figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); text-align: center; }

/* Process / "Como trabalhamos" — shared by home and servicos */
#process { background: var(--bg-white); }
.process-head { text-align: center; margin-bottom: 4.5rem; }
.process-eyebrow { display: block; margin-bottom: .75rem; }
.process-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-top: .875rem; max-width: 52ch; text-align: center; margin-left: auto; margin-right: auto; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.process-connector { position: absolute; top: 1.5rem; left: 10%; right: 10%; height: 1px; background: rgba(139,82,255,.3); z-index: 0; pointer-events: none; }
.step { position: relative; z-index: 1; text-align: center; }
.step-num { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--purple); background: var(--bg); color: var(--purple); display: flex; align-items: center; justify-content: center; font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 1.125rem; margin: 0 auto 1.375rem; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .875rem; color: var(--muted); line-height: 1.6; max-width: 24ch; margin: 0 auto; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-logo span { display: none; }
  #nav .btn-sm { display: none; }
  .nav-inner { grid-template-columns: 1fr; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .process-connector { display: none; }
}
@media (max-width: 480px) { .wrap { padding: 0 1.25rem; } .s-lg { padding: 4.5rem 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }
