/* ===== Tokens ===== */
:root {
  --bg: #f7f6f1;
  --bg-raised: #f0eee6;
  --bg-card: #ffffff;
  --line: rgba(23,25,15,0.11);
  --line-soft: rgba(23,25,15,0.07);
  --ink: #191b12;
  --ink-soft: #55584a;
  --ink-dim: #8a8c7c;

  --c-posts: #b9873f;
  --c-editorial: #a06a2e;
  --c-bots: #1f8a5f;
  --c-crm: #6b7d40;
  --c-processos: #3f6b6b;
  --c-juridico: #8a5a2e;
  --c-dados: #1f7d6c;
  --c-votacao: #7a5c26;
  --c-transcricao: #3f7a37;
  --c-contabilidade: #93701f;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-heading: 'Ubuntu', sans-serif;
  --ff-body: 'Ubuntu', sans-serif;

  --accent: #1f8a5f;
  --accent-soft: rgba(31,138,95,0.13);
  --accent-ink: #14523a;

  --radius-btn: 8px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  color-scheme: light;
}

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url('/fonts/MaterialSymbolsRounded.woff2') format('woff2');
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark-text { font-family: var(--ff-heading); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
em { font-family: var(--ff-display); font-style: italic; font-weight: 500; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-band { padding: 96px 0; }

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark-text { font-size: 18px; color: var(--ink); }
.wordmark-icon { font-family: 'Ubuntu', monospace; font-weight: 700; font-size: 15px; letter-spacing: -0.03em; color: var(--accent); }

.topbar-nav { display: flex; gap: 32px; }
.topbar-nav a { font-size: 14.5px; color: var(--ink-soft); transition: color .15s; }
.topbar-nav a:hover { color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
  padding: 7px 9px;
  border-radius: var(--radius-btn);
  transition: color .15s, background .15s;
}
.lang-toggle:hover { color: var(--ink); background: var(--bg-raised); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: #000; }
.btn-accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-text { color: var(--ink-soft); padding: 10px 8px; border-color: transparent; }
.btn-text:hover { color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-dim); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* ===== Mobile nav ===== */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 61px; left: 0; right: 0;
  z-index: 49;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 24px 18px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  color: var(--ink-soft);
  font-size: 15.5px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== Hero (kept as a dark photographic moment, fades into the light page) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b0b0a;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.85);
}
.hero-bg-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,10,0.72) 0%, rgba(11,11,10,0.62) 38%, rgba(11,11,10,0.97) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,11,10,0.7) 0%, rgba(11,11,10,0.28) 45%, rgba(11,11,10,0.28) 55%, rgba(11,11,10,0.7) 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 40px 96px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-heading);
  font-size: 13.5px;
  letter-spacing: .04em;
  color: rgba(244,243,239,0.75);
  margin: 0 0 22px;
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #4fcf9a; box-shadow: 0 0 0 4px rgba(79,207,154,0.22); }
.hero-h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  color: #f4f3ef;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero-body {
  font-size: 17.5px;
  color: rgba(244,243,239,0.8);
  max-width: 56ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-actions .btn-solid { background: #f4f3ef; color: #14150f; border-color: #f4f3ef; }
.hero-actions .btn-solid:hover { background: #fff; }
.hero-actions .btn-accent { background: rgba(79,207,154,0.16); border-color: #4fcf9a; color: #bdf2da; }
.hero-actions .btn-accent:hover { background: rgba(79,207,154,0.26); }
.hero-actions .btn-ghost { border-color: rgba(244,243,239,0.35); color: #f4f3ef; }
.hero-actions .btn-ghost:hover { border-color: rgba(244,243,239,0.6); }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-num { font-family: var(--ff-heading); font-size: 26px; font-weight: 600; color: #f4f3ef; }
.hero-stat-num span { font-size: 15px; font-weight: 400; color: rgba(244,243,239,0.7); }
.hero-stat-label { font-size: 12.5px; color: rgba(244,243,239,0.55); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ===== Section head ===== */
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-label {
  display: inline-flex;
  font-family: var(--ff-heading);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.18; color: var(--ink); text-wrap: balance; }
.section-sub { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; }

/* ===== Pain points ===== */
.pain-band { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pain-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 26px; }
.pain-icon { display: block; font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.pain-card h3 { font-size: 17.5px; margin-bottom: 8px; color: var(--ink); }
.pain-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ===== How we work (two paths) ===== */
.paths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.path-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px 30px 26px; }
.path-icon { display: block; font-size: 34px; color: var(--accent); margin-bottom: 14px; }
.path-tag {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--ff-heading); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--radius-btn);
}
.path-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.path-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.55; max-width: 44ch; }

/* ===== Case studies (production systems) ===== */
.catalog-band { padding: 96px 0; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.case-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
  background: color-mix(in srgb, var(--c, var(--ink-dim)) 10%, white);
  border: 1px solid color-mix(in srgb, var(--c, var(--ink-dim)) 22%, var(--line));
  border-radius: var(--radius-md);
  padding: 24px 24px 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--c, #000) 55%, transparent);
}
.case-icon {
  position: absolute;
  top: -16px; right: -12px;
  font-size: 88px;
  color: var(--c, var(--ink-soft));
  opacity: .22;
  pointer-events: none;
}
.case-tag {
  align-self: flex-start;
  font-family: var(--ff-heading); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c, var(--ink-dim)) 70%, black);
  background: color-mix(in srgb, var(--c, var(--ink-dim)) 20%, white);
  padding: 4px 10px; border-radius: var(--radius-btn);
  position: relative;
  margin-bottom: 6px;
}
.case-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0; position: relative; }
.case-role { color: var(--ink); font-size: 13.5px; font-weight: 600; margin: 0; position: relative; }
.case-body { color: var(--ink-soft); font-size: 14px; margin: 2px 0 0; line-height: 1.5; position: relative; flex: 1; }
.case-link { align-self: flex-end; color: var(--ink-dim); display: flex; }
.case-link .material-symbols-rounded { font-size: 18px; }

.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.more-label { color: var(--ink-dim); font-size: 13.5px; margin-right: 4px; }
.more-chip { font-size: 13px; color: var(--ink-soft); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 6px 12px; }

.final-cta { padding: 100px 0 120px; }
.final-cta-panel {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  background: radial-gradient(700px 300px at 50% 0%, rgba(31,138,95,0.08), transparent 70%), var(--bg-card);
}
.final-cta-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.final-cta-panel p { color: var(--ink-soft); font-size: 16px; margin: 0 0 32px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line-soft); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 40px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; max-width: 34ch; }
.footer-meta-item { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 22px 24px; font-size: 13px; color: var(--ink-dim); }
.footer-credit a { color: var(--ink-soft); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .menu-toggle, .mobile-nav { display: flex; }
  .pain-grid, .paths-grid { grid-template-columns: 1fr; }
  .hero-container { padding: 0 24px 64px; }
  .section-band { padding: 64px 0; }
  .catalog-band { padding: 64px 0; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 18px; }
  .topbar-actions .btn-text { display: none; }
  .cases-grid { grid-template-columns: 1fr; justify-items: center; }
  .case-card { width: 90%; }
  .hero-stats { gap: 28px; }
}
