/* BzR Technology — site institucional
   Marca: O Bloco (canto superior-direito arredondado), verde-sinal #008037,
   Space Grotesk (texto) + JetBrains Mono (código, etiquetas). Chapado: sem degradê, sem sombra. */

:root {
  --green: #008037;
  --green-ink: #006b2e;
  --green-soft: #e3efe6;
  --ink: #0a0b0a;
  --paper: #f4f5f2;
  --white: #ffffff;
  --muted: #5b5e59;
  --line: rgba(10, 11, 10, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 12vw, 160px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green); color: var(--white); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* ---------- O Bloco ---------- */
.bloco {
  --s: 14px;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  background: var(--green);
  border-radius: 0 calc(var(--s) * 0.36) 0 0;
  flex: none;
}
.bloco--sm { --s: 10px; }
.bloco--xs { --s: 8px; }

/* cursor de bloco: o mesmo Bloco, piscando */
.cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.72em;
  margin-left: 0.08em;
  background: var(--green);
  border-radius: 0 0.19em 0 0;
  vertical-align: baseline;
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Tipografia utilitária ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: rgba(255, 255, 255, 0.6); }

/* ---------- Botões ---------- */
.btn {
  --r: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0 var(--r) 0 0; /* o canto do Bloco */
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; font-size: 14px; --r: 10px; }
.btn--lg { padding: 20px 32px; font-size: 17px; --r: 16px; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--green); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 242, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__title {
  margin: 24px 0 28px;
  font-size: clamp(38px, 6.2vw, 84px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.nw { white-space: nowrap; }
.hero__lead { max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero__lead strong { color: var(--ink); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.term {
  background: var(--ink);
  color: #d8dbd6;
  border-radius: 0 28px 0 0;
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-light);
}
.term__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.term__bar em {
  margin-left: auto;
  font: normal 12px var(--mono);
  color: rgba(255, 255, 255, 0.4);
}
.term__body {
  margin: 0;
  padding: 28px 24px 32px;
  font: 14.5px/1.85 var(--mono);
  white-space: pre;
  overflow-x: auto;
}
.term__body .p { color: var(--white); }
.term__body .x { color: rgba(255, 255, 255, 0.35); }
.term__body .ok { color: #3ccf75; }
.cursor--term { width: 0.62em; height: 1.05em; vertical-align: -0.2em; }

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 13px var(--mono);
  color: var(--muted);
}
.ticker li { display: inline-flex; align-items: center; gap: 10px; }
.ticker li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 0 2.5px 0 0;
}

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__title { margin-top: 20px; font-size: clamp(34px, 5vw, 60px); }
.section__lead { margin-top: 20px; max-width: 46ch; font-size: 19px; color: var(--muted); }

.dark { background: var(--ink); color: var(--white); }

/* ---------- Tese ---------- */
.tese { padding: var(--section) 0; }
.tese__title {
  margin-top: 24px;
  max-width: 17ch;
  font-size: clamp(36px, 5.6vw, 72px);
}
.tese__title span { display: block; color: rgba(255, 255, 255, 0.42); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line-light);
}
.stat { padding: 32px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line-light); }
.stat strong {
  display: block;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--white);
}
.stat:first-child strong { color: #3ccf75; }
.stat p { margin-top: 16px; max-width: 26ch; color: rgba(255, 255, 255, 0.6); font-size: 16px; }
.tese__q { margin-top: clamp(56px, 8vw, 96px); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; }
.tese__q em { font-style: normal; color: rgba(255, 255, 255, 0.45); }
.tese__q strong { font-weight: 500; }
.source { margin-top: 24px; font: 12px var(--mono); color: rgba(255, 255, 255, 0.35); }

/* ---------- Serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 340px;
  transition: background-color 0.25s;
}
.card::after {
  content: "";
  position: absolute;
  top: 28px; right: 28px;
  width: 14px; height: 14px;
  background: var(--line);
  border-radius: 0 5px 0 0;
  transition: background-color 0.25s;
}
.card:hover { background: var(--white); }
.card:hover::after { background: var(--green); }
.card__n { font: 13px var(--mono); color: var(--muted); }
.card h3 { margin: 56px 0 14px; font-size: 24px; letter-spacing: -0.02em; }
.card p { font-size: 15.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.tags li {
  padding: 4px 9px;
  font: 11.5px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0 6px 0 0;
}

/* ---------- WebGIS ---------- */
.gis {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.checks { margin-top: 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: baseline; }
.checks li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  background: var(--green);
  border-radius: 0 3px 0 0;
  transform: translateY(-1px);
}
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.stack li {
  padding: 6px 11px;
  font: 12px var(--mono);
  background: var(--paper);
  border-radius: 0 7px 0 0;
}

.map {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 28px 0 0;
  overflow: hidden;
}
.map__ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.map__title { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); }
.map__layers { display: flex; gap: 6px; }
.chip {
  padding: 6px 11px;
  font: 12px var(--mono);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0 7px 0 0;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
#mapa { display: block; width: 100%; aspect-ratio: 4 / 3; cursor: crosshair; touch-action: pan-y; }
.map__coords {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  font: 12px var(--mono);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* ---------- Método ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: s;
}
.step { position: relative; padding: 0 28px 0 0; }
.step::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 28px;
  background: var(--line);
}
.step:last-child::before { background: var(--green); }
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font: 500 13px var(--mono);
  color: var(--white);
  background: var(--ink);
  border-radius: 0 14px 0 0;
}
.step:last-child .step__n { background: var(--green); }
.step h3 { margin: 28px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ---------- Para quem ---------- */
.quem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.quem__body > p { font-size: 19px; color: var(--muted); }
.quote {
  margin: 40px 0 0;
  padding: 28px 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 0 24px 0 0;
}
.quote p { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- CTA ---------- */
.cta { padding: var(--section) 0; }
.cta__title { margin-top: 24px; max-width: 16ch; font-size: clamp(40px, 6.4vw, 84px); }
.cta__lead { margin-top: 28px; max-width: 46ch; font-size: 19px; color: rgba(255, 255, 255, 0.6); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 48px; }
.cta__cmd { font: 14px var(--mono); color: rgba(255, 255, 255, 0.4); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line-light); }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
}
.footer__logo { height: 26px; width: auto; }
.footer__tag { font-family: var(--mono); font-size: 13px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero__grid, .gis, .quem { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 32px; }
  .step { padding-right: 0; }
  .map__ui { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .term__body { font-size: 13px; padding: 22px 18px 26px; }
  .footer__links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
