/* Fluxo v7 — Shared shell CSS (nav, hero, sections, cards, footer, motion).
   Source of truth: index.html inline <style>. Used by produtos.html, cases.html,
   sobre.html, blog.html, politica.html, terms.html. Home keeps inline copy. */

@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Geist-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Geist-SemiBold.woff2') format('woff2');
}

:root {
  --bg-canvas: #ffffff;
  --bg-elevated: #f8f8f8;
  --bg-strong: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #666666;
  --text-on-strong: #ffffff;
  --border-subtle: #e5e5e5;
  --border-strong: #0a0a0a;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-soft: #dcfce7;
  --container-max: 1200px;
  --container-pad-d: 48px;
  --container-pad-t: 32px;
  --container-pad-m: 20px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --ease-out-fluxo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-fluxo: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring-soft: cubic-bezier(0.34, 1.26, 0.64, 1);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-reveal: 400ms;
  --motion-hero: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text-primary); color: var(--text-on-strong);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--accent); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%; max-width: var(--container-max); margin: 0 auto;
  padding-left: var(--container-pad-m); padding-right: var(--container-pad-m);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-canvas); height: 64px;
  display: flex; align-items: center;
  transition: border-color 150ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--border-subtle); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--text-primary); letter-spacing: -0.01em; }
.nav__logo svg { width: 28px; height: 28px; }
.nav__menu { display: none; gap: 32px; align-items: center; }
.nav__menu a { color: var(--text-primary); font-size: 15px; font-weight: 500; position: relative; transition: color var(--motion-base) var(--ease-out-fluxo), text-underline-offset var(--motion-base) var(--ease-out-fluxo); }
.nav__menu a:hover { color: var(--accent); text-decoration: none; text-underline-offset: 6px; }
.nav__menu a[aria-current="page"] { color: var(--accent); }
.nav__cta-group { display: none; gap: 16px; align-items: center; }
.nav__hamburger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 0; color: var(--text-primary); padding: 0; }

.drawer {
  position: fixed; inset: 0; background: var(--bg-canvas); z-index: 60;
  padding: 24px 20px; transform: translateX(100%);
  transition: transform 200ms ease; display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.drawer__close { background: transparent; border: 0; color: var(--text-primary); padding: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.drawer__list { display: flex; flex-direction: column; gap: 4px; }
.drawer__list a { color: var(--text-primary); font-size: 22px; font-weight: 600; padding: 12px 0; letter-spacing: -0.01em; }
.drawer__list a:hover { color: var(--accent); text-decoration: none; }
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 500; line-height: 1;
  text-decoration: none; border: 0;
  transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }
.btn--secondary { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn--secondary:hover { background: var(--text-primary); color: #ffffff; }
.btn--full { width: 100%; }
.btn__arrow { display: inline-block; transition: transform 150ms ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }
.btn--primary:hover .btn__arrow { transform: translateX(3px) rotate(-4deg); }

.link-tertiary { color: var(--accent); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.link-tertiary:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  padding: 44px 0 40px; text-align: center;
  position: relative; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  background-repeat: no-repeat; opacity: 0.55;
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px; padding: 6px 14px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); background: var(--bg-canvas);
}
.hero__h1 {
  font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em;
  color: var(--text-primary); max-width: 720px; margin: 0 auto;
}
.hero__h1-soft { display: block; font-weight: 400; color: var(--text-muted); margin-top: 8px; }
.hero__sub { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 560px; margin: 20px auto 0; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 40px auto 0; }
.hero__microcopy { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

.section { padding: 72px 0; }
.section--compact { padding: 48px 0; }
.section--alt { background: var(--bg-elevated); }
.section--dark { background: var(--bg-strong); color: var(--text-on-strong); padding: 80px 0; }
.section__eyebrow {
  display: block; text-align: center; font-size: 13px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 32px;
}
.section__title {
  font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em;
  color: var(--text-primary);
}
.section__title--center { text-align: center; max-width: 720px; margin: 0 auto; }
.section__sub { font-size: 17px; line-height: 1.55; color: var(--text-secondary); margin-top: 16px; max-width: 640px; }
.section__sub--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }

.grid { display: grid; gap: 16px; margin-top: 40px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-canvas); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 24px;
  transition: border-color var(--motion-base) var(--ease-out-fluxo);
}
.card:hover { border-color: var(--text-primary); }
.card__number { font-size: 30px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.015em; margin-bottom: 16px; line-height: 1; }
.card__title { font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; margin-bottom: 12px; }
.card__desc { font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 500; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__eyebrow { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }

/* Product / case / team / post cards used by new pages */
.product-block {
  background: var(--bg-canvas); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 32px;
  transition: border-color var(--motion-base) var(--ease-out-fluxo);
}
.product-block:hover { border-color: var(--text-primary); }
.product-block__eyebrow { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.product-block__h2 { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--text-primary); letter-spacing: -0.015em; margin-bottom: 12px; }
.product-block__sub { font-size: 16px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 20px; }
.product-block__bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.product-block__bullets li { font-size: 15px; line-height: 1.55; color: var(--text-secondary); position: relative; padding-left: 20px; }
.product-block__bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.case-detail {
  background: var(--bg-canvas); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 32px;
  transition: border-color var(--motion-base) var(--ease-out-fluxo);
}
.case-detail:hover { border-color: var(--text-primary); }
.case-detail__eyebrow { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 12px; }
.case-detail__h2 { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--text-primary); letter-spacing: -0.015em; margin-bottom: 12px; }
.case-detail__sub { font-size: 16px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 24px; }
.case-detail__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; padding: 20px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.case-detail__metric { font-size: 28px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.1; }
.case-detail__metric-label { display: block; font-size: 13px; line-height: 1.4; color: var(--text-muted); margin-top: 4px; }
.case-detail__quote { font-size: 16px; font-style: italic; line-height: 1.5; color: var(--text-primary); border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 20px; }
.case-detail__stack { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.case-detail__actions h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.005em; }
.case-detail__actions ul { display: flex; flex-direction: column; gap: 8px; }
.case-detail__actions li { font-size: 14px; line-height: 1.5; color: var(--text-secondary); position: relative; padding-left: 16px; }
.case-detail__actions li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.team-card { background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 24px; text-align: center; }
.team-card__avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--bg-elevated); margin: 0 auto 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; color: var(--text-primary); }
.team-card__name { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.team-card__role { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.team-card__bio { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

.post-card { background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color var(--motion-base) var(--ease-out-fluxo); }
.post-card:hover { border-color: var(--text-primary); }
.post-card__category { font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.post-card__title { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; }
.post-card__excerpt { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.post-card__meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.testimonial {
  background: var(--bg-canvas); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 32px; max-width: 800px; margin: 40px auto 0;
}
.testimonial__quote { font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--text-primary); letter-spacing: -0.005em; margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.testimonial__avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; flex-shrink: 0; }
.testimonial__name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.testimonial__role { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

.cta-final { text-align: center; }
.cta-final__title { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; color: var(--text-on-strong); max-width: 760px; margin: 0 auto; }
.cta-final__sub { font-size: 17px; line-height: 1.55; color: #d4d4d4; max-width: 560px; margin: 16px auto 0; }
.cta-final__cta { margin-top: 32px; display: inline-flex; }
.cta-final__link { display: block; margin-top: 20px; font-size: 14px; color: #d4d4d4; }
.cta-final__link:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

.footer { background: var(--bg-canvas); border-top: 1px solid var(--border-subtle); padding: 56px 0 24px; }
.footer__tagline { font-size: 15px; color: var(--text-muted); max-width: 480px; margin-bottom: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer__col-title { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.footer__list a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-muted); }
.footer__list a:hover { color: var(--text-primary); text-decoration: none; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--text-muted); }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-subtle); transition: color 150ms ease, border-color 150ms ease; }
.footer__socials a:hover { color: var(--text-primary); border-color: var(--text-primary); text-decoration: none; }
.footer__socials svg { width: 18px; height: 18px; }

.sticky-zap { position: fixed; bottom: 16px; right: 16px; z-index: 40; box-shadow: 0 8px 24px rgba(0, 82, 255, 0.25); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 70; pointer-events: none; }

@keyframes fluxoFadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.reveal {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity var(--motion-reveal) var(--ease-out-fluxo),
              transform var(--motion-reveal) var(--ease-out-fluxo);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal-stagger.is-visible > * { animation: fluxoFadeUp var(--motion-reveal) var(--ease-out-fluxo) both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 400ms; }
.reveal-stagger:not(.is-visible) > * { opacity: 0; }

/* Legal-doc article styles (politica/terms) */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; margin-top: 48px; margin-bottom: 16px; }
.legal-doc h3 { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--text-primary); margin-top: 24px; margin-bottom: 8px; }
.legal-doc p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; list-style: disc; margin-bottom: 14px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc .legal-badge { display: inline-block; font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.legal-doc .legal-updated { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* Page-specific hero variants */
.hero--page { padding: 56px 0 48px; }
.hero--page .hero__h1 { font-size: 32px; }

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; max-width: none; justify-content: center; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
  .container { padding-left: var(--container-pad-t); padding-right: var(--container-pad-t); }
  .nav { height: 72px; }
  .section { padding: 96px 0; }
  .section--compact { padding: 56px 0; }
  .section--dark { padding: 112px 0; }
  .hero { padding: 72px 0 64px; }
  .hero--page { padding: 80px 0 56px; }
  .hero__h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
  .hero--page .hero__h1 { font-size: 44px; }
  .hero__sub { font-size: 17px; }
  .section__title { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
  .section__sub { font-size: 18px; }
  .cta-final__title { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
  .grid { gap: 24px; margin-top: 56px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .testimonial { padding: 40px; }
  .testimonial__quote { font-size: 24px; line-height: 1.4; }
  .product-block__h2, .case-detail__h2 { font-size: 28px; }
  .case-detail__metric { font-size: 36px; }
  .legal-doc h2 { font-size: 26px; }
}

@media (min-width: 1024px) {
  .container { padding-left: var(--container-pad-d); padding-right: var(--container-pad-d); }
  .section { padding: 120px 0; }
  .section--dark { padding: 144px 0; }
  .hero { padding: 96px 0 80px; }
  .hero--page { padding: 96px 0 64px; }
  .hero__h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.025em; }
  .hero--page .hero__h1 { font-size: 48px; }
  .section__title { font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; }
  .cta-final__title { font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .nav__menu, .nav__cta-group { display: flex; }
  .nav__hamburger { display: none; }
  .sticky-zap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .scroll-progress { transition: none; }
}
