:root {
  --bg: #090e09;
  --bg2: #0d140d;
  --bg3: #111a11;
  --surface: #141f14;
  --surface2: #192619;
  --gold: #c9a227;
  --gold-light: #e4bc4f;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --green: #5a9e3a;
  --green-bright: #7dc855;
  --green-dim: rgba(90, 158, 58, 0.13);
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 162, 39, 0.22);
  --text: #e8ede8;
  --text-muted: #93a88e;
  --text-dim: #5e7059;
  --red: #c0392b;
  --blue: #3a86c8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;

}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-bright));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('canp.png') center center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #090e09 0%, rgba(9, 14, 9, 0) 15%),
    linear-gradient(to right, rgba(9, 14, 9, 0.55) 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad-x) 12rem;
}

.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.hero-back:hover {
  color: var(--gold);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.htag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 2px;
}

.htag.g {
  border-color: rgba(90, 158, 58, 0.4);
  color: var(--green-bright);
  background: var(--green-dim);
}

.htag.n {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}

.hero-desc {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.tags-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem var(--pad-x) 1.5rem;
  /* mesmo valor em cima e embaixo */
}

/* ─── PAGE WRAP ─── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad-x) 8rem;
  /* zero no topo — o espaço já está no tags-block */
  /* era 0, coloquei 1.5rem */
}

/* ─── SECTION ─── */
.sec {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sec.vis {
  opacity: 1;
  transform: none;
}

.sec-eye {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 30px;
  border: 1px solid var(--gold);
  font-size: 1rem;
  border-radius: 3px;
  flex-shrink: 0;

  /* Compensa o letter-spacing herdado */
  padding-left: 0.22em;
}

h2.stitle {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

h3.sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}

/* ─── BODY TEXT ─── */
p.bt {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.35rem;
  text-align: justify;
}

p.bt:last-child {
  margin-bottom: 0;
}

p.bt strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── LEAD ─── */
.lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  /* era 4rem */
}

.lead p {
  text-align: justify;
  margin-bottom: 1.1rem;
}

.lead p:last-child {
  margin-bottom: 0;
}

.lead strong {
  color: var(--text);
}

/* ─── OVERVIEW CARDS ─── */
.ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  /* era 5rem */
}

.ov-card {
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.ov-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.ov-card:hover {
  background: var(--surface2);
}

.ov-card:hover::after {
  transform: scaleX(1);
}

.ov-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.ov-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.ov-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1.55;
}

/* ─── DIVIDER ─── */
hr.dv {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
  /* era 4rem */
}

/* ─── TABLES ─── */
.tw {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  text-align: left;
  background: var(--surface2);
  color: var(--gold);
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.65;
}

tbody tr:hover td {
  background: var(--surface);
  color: var(--text);
}

tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}

.mc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-light);
}

.bc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #5ba3d9;
}

/* ─── CALLOUT ─── */
.cbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 2px 2px 0;
}

.cbox.g {
  border-left-color: var(--green);
}

.cbox.b {
  border-left-color: #3a86c8;
}

.cbox.r {
  border-left-color: var(--red);
}

.clbl {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.cbox.g .clbl {
  color: var(--green-bright);
}

.cbox.b .clbl {
  color: #5ba3d9;
}

.cbox.r .clbl {
  color: #e74c3c;
}

.cbox p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.78;
  text-align: justify;
}

.cbox p strong {
  color: var(--text);
}

/* ─── LISTS ─── */
ul.bl {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: justify;

}

ul.bl li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.72;
}

ul.bl li::before {
  content: '›';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.05em;
}

ul.bl li strong {
  color: var(--text);
  font-weight: 600;
  min-width: 260px;
  /* Aumente ou diminua este valor conforme achar melhor */
  flex-shrink: 0;
  /* Impede que o texto amasse caso a tela fique menor */
}

ul.bl.no-col li strong {
  min-width: auto;
  flex-shrink: 1;
}


ol.nl {
  list-style: none;
  counter-reset: nl;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

ol.nl li {
  counter-increment: nl;
  position: relative;
  padding-left: 2.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.72;
}

ol.nl li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
}

ol.nl li strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── EVIDENCE ─── */
.evs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ev {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.ev-b {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5ba3d9;
  border: 1px solid rgba(91, 163, 217, 0.3);
  background: rgba(91, 163, 217, 0.07);
  padding: 0.35rem 0.45rem;
  line-height: 1.5;
  text-align: center;
}

.ev-t {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.78;
  text-align: justify;
}

.ev-t strong {
  color: var(--text);
}

/* ─── INSIGHTS ─── */
.ig {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.ic {
  background: var(--surface);
  padding: 1.5rem;
  transition: background 0.2s;
}

.ic:hover {
  background: var(--surface2);
}

.in {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201, 162, 39, 0.14);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.it {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.it strong {
  color: var(--green-bright);
}

/* ─── CHECKLIST ─── */
.ph-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 2rem 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ph-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ci {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.cb {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.22em;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
}

/* ─── KPI CARDS ─── */
.kg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.kc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.kc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.kc.prod::before {
  background: var(--green-bright);
}

.kc.log::before {
  background: #5ba3d9;
}

.kc.rep::before {
  background: var(--gold);
}

.kbadge {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.kbadge.prod {
  color: var(--green-bright);
  border: 1px solid rgba(125, 200, 85, 0.3);
  background: rgba(125, 200, 85, 0.08);
}

.kbadge.log {
  color: #5ba3d9;
  border: 1px solid rgba(91, 163, 217, 0.3);
  background: rgba(91, 163, 217, 0.08);
}

.kbadge.rep {
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  background: var(--gold-dim);
}

.kname {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.kfml {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  line-height: 1.5;
  font-style: italic;
}

.klevs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.klv {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.g {
  background: var(--green-bright);
}

.dot.y {
  background: #f0c040;
}

.dot.r {
  background: #e74c3c;
}

/* ─── OWNERS ─── */
.og {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.oc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.ods {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.oname {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.orole {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}

.oresp {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── DIOM ─── */
.dg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.dc {
  background: var(--surface);
  padding: 1.5rem;
}

.daud {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.dname {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.dbody {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── FINAL ─── */
.final {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 65% at 85% 85%, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
}

/* ─── ANIMATIONS ─── */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-back {
  animation: up 0.45s 0.05s both;
}

.hero-eyebrow {
  animation: up 0.5s 0.15s both;
}

.hero-title {
  animation: up 0.55s 0.25s both;
}

.hero-subtitle {
  animation: up 0.55s 0.35s both;
}

.hero-tags {
  animation: up 0.55s 0.45s both;
}

.hero-desc {
  animation: up 0.55s 0.55s both;
}

/* ─── FLOATING BACK BUTTON ─── */
.floating-back {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  background: rgba(20, 31, 20, 0.85);
  /* Fundo surface com leve transparência */
  backdrop-filter: blur(8px);
  /* Efeito de vidro (glassmorphism) */
  color: var(--text-muted);
  border: 1px solid var(--border-gold);
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.floating-back:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--surface2);
  transform: translateY(-3px);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem var(--pad-x);
  margin-top: 2rem;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}


@media (max-width: 600px) {

  .hero {
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }

  .hero-bg {
    background-position: center center;
    background-size: 110% 110%;
    /* ← força mostrar a imagem inteira */
  }

  .tags-block {
    padding: 0.75rem var(--pad-x) 0.75rem;
  }

  .wrap {
    padding: 1rem var(--pad-x) 8rem;
  }

  .hero-inner {
    padding-bottom: 3.5rem;
  }

  .ov-grid {
    grid-template-columns: 1fr;
  }

  .ev {
    grid-template-columns: 1fr;
  }

  .final {
    padding: 2rem 1.5rem;
  }

  .floating-back {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
  }
}