:root {
  /* Paleta oficial Tratado by INFOGEN */
  --petroleo: #183E63;
  --oceano: #0D83BF;
  --white: #FFFFFF;
  --deep: #0A2036;
  --gradient-brand: linear-gradient(135deg, var(--petroleo) 0%, var(--oceano) 100%);

  --paper: #F7F9FB;
  --muted: #5B6B7E;
  --border: #E4E9EF;

  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--petroleo);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
ol { margin: 0; padding: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(13, 131, 191, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(13, 131, 191, .6); }
.btn-ghost {
  background: transparent;
  color: var(--petroleo);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--oceano); color: var(--oceano); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { flex-shrink: 0; object-fit: contain; }
.logo-full { height: 48px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--petroleo); }
.brand-sub { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--petroleo);
  opacity: .75;
  transition: opacity .2s ease;
}
.main-nav a:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--petroleo); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(10,32,54,.88) 0%, rgba(10,32,54,.80) 45%, rgba(8,24,40,.90) 100%),
    url('../assets/hero-photo.webp');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--white);
  padding: 120px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(600px 400px at 85% 15%, rgba(13,131,191,.22), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(24,62,99,.3), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oceano);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-copy { max-width: 720px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.25); }
.hero .btn-ghost:hover { border-color: var(--oceano); color: var(--oceano); }

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section-dark {
  background: var(--deep);
  color: var(--white);
}
.section-dark .kicker { color: var(--oceano); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.68); }

.section-head { max-width: 720px; margin: 0 0 56px; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oceano);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--petroleo);
}
.section-dark .section-head h2 { color: var(--white); }
.section-lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Problem cards */
.problem-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.problem-icon { display: block; width: 30px; height: 30px; margin-bottom: 18px; color: var(--oceano); }
.problem-icon svg { width: 100%; height: 100%; }
.problem-card h3 { font-size: 17px; color: var(--petroleo); margin-bottom: 10px; }
.problem-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Pillar cards (solution) */
.pillar-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 30px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.pillar-card:hover { border-color: rgba(23,182,166,.5); transform: translateY(-3px); }
.pillar-icon { width: 28px; height: 28px; margin-bottom: 20px; color: var(--oceano); }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card h3 { font-size: 17px; color: var(--white); margin-bottom: 10px; }
.pillar-card p { font-size: 14.5px; line-height: 1.55; }

/* Compare table */
.compare {
  margin-top: 72px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
}
.compare-head {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.compare-col-label {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 14px;
}
.compare-new { color: var(--oceano); }
.compare-row { border-bottom: 1px solid rgba(255,255,255,.08); }
.compare-row:last-child { border-bottom: none; }
.compare-row-label {
  padding: 20px 22px;
  font-weight: 700;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.02);
}
.compare-cell {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.78);
}
.compare-cell .x { color: #E8735C; font-weight: 800; flex-shrink: 0; }
.compare-cell .check { color: var(--oceano); font-weight: 800; flex-shrink: 0; }

/* Feature cards */
.feature-card {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.grid-3 .feature-card:nth-child(-n+3) { border-top: none; }
.feature-card h3 { font-size: 17px; color: var(--petroleo); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 90%; }

/* IA cards */
.ia-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 32px 26px;
}
.ia-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--oceano);
  font-weight: 600;
  margin-bottom: 20px;
  opacity: .8;
}
.ia-card h3 { font-size: 18px; color: var(--white); margin-bottom: 12px; }
.ia-card p { font-size: 14.5px; line-height: 1.6; }

/* Pipeline: os 7 estados numa linha só, em colunas iguais. A linha liga o centro do
   primeiro ao do último (1/14 da largura em cada ponta) e passa por trás dos ícones. */
.pipeline-flow {
  position: relative;
  margin: 56px 0 40px;
}
.pipeline-row {
  position: relative;
  display: grid;
}
.pipeline-row-main {
  grid-template-columns: repeat(7, 1fr);
  padding-top: 4px;
}
.pipeline-row-main::before {
  content: "";
  position: absolute;
  top: 34.5px; /* centro do ícone: 4px + 32px - 1.5px */
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 3px;
  border-radius: 3px;
  /* cor de cada estado na posição do seu ícone (a cada 1/6 da linha) */
  background: linear-gradient(90deg, #B9C3CF 0%, #E3B341 16.67%, #E3B341 33.33%, #1FAE6B 50%, #1FAE6B 66.67%, #E8A23C 83.33%, #E8735C 100%);
  box-shadow: 0 0 14px rgba(255,255,255,.12);
  z-index: 0;
}
.pnode {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  flex: 1;
}
.pnode-label { line-height: 1.3; }
.pnode-icon {
  --status-color: #B9C3CF;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--status-color);
  /* fundo opaco (cor da seção + leve brilho) para a linha não aparecer através do ícone */
  background: linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)), var(--deep);
  box-shadow: 0 0 22px -2px var(--status-color);
  color: var(--status-color);
}
.pnode-icon svg { width: 26px; height: 26px; }
.pnode[data-status="wait"] .pnode-icon { --status-color: #E3B341; }
.pnode[data-status="active"] .pnode-icon { --status-color: #1FAE6B; }
.pnode[data-status="warn"] .pnode-icon { --status-color: #E8A23C; }
.pnode[data-status="danger"] .pnode-icon { --status-color: #E8735C; }
.pipeline-note {
  max-width: 760px;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.65;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 22px 26px;
}

/* Alert cards */
.alert-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 30px 24px;
  border-left: 3px solid var(--oceano);
}
.alert-card h3 { font-size: 17px; color: var(--white); margin-bottom: 10px; }
.alert-card p { font-size: 14.5px; line-height: 1.55; }

/* Signature flows */
.signature-flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.flow-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
}
.flow-card h3 { font-size: 17px; color: var(--petroleo); margin-bottom: 20px; }
.flow-steps { list-style: none; counter-reset: step; }
.flow-steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--petroleo);
  border-top: 1px dashed var(--border);
}
.flow-steps li:first-child { border-top: none; }
.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--oceano);
  background: rgba(13,131,191,.08);
  border: 1px solid rgba(13,131,191,.2);
  padding: 9px 16px;
  border-radius: 999px;
}

/* Governance cards */
.gov-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 30px 24px;
}
.gov-card h3 { font-size: 17px; color: var(--white); margin-bottom: 10px; }
.gov-card p { font-size: 14.5px; line-height: 1.55; }

/* CTA final */
.cta-final {
  background: linear-gradient(150deg, var(--petroleo) 0%, var(--oceano) 130%);
  color: var(--white);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--white); max-width: 680px; margin-bottom: 56px; }
.cta-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  width: 100%;
  margin-bottom: 52px;
  text-align: left;
}
.cta-step { display: flex; gap: 16px; align-items: flex-start; }
.cta-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.cta-step h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-step p { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.5; }
.cta-final .btn-primary { background: var(--white); color: var(--petroleo); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.cta-final .btn-primary:hover { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-sub { color: rgba(255,255,255,.5); }
.footer-tagline { font-family: var(--font-display); font-size: 16px; color: rgba(255,255,255,.75); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 13.5px; font-weight: 600; }
.footer-nav a { opacity: .7; }
.footer-nav a:hover { opacity: 1; }
.footer-email { font-size: 14px; font-weight: 700; color: var(--oceano); }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,.35); margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Logo + menu completo + botão ocupam ~1110px: abaixo do container cheio, menu hambúrguer */
@media (max-width: 1160px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-row-label { border-bottom: 1px solid rgba(255,255,255,.08); }
  .signature-flows { grid-template-columns: 1fr; }
  .cta-steps { grid-template-columns: 1fr; }
  .pipeline-row-main { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 32px; }
  .pipeline-row-main::before { display: none; }
  .pipeline-row-main .pnode { flex: 0 0 25%; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 72px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .logo-full { height: 38px; }
  .pipeline-row-main .pnode { flex: 0 0 33.333%; }
  .header-actions .btn-sm { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .footer-nav { gap: 14px 20px; }
}

/* Mobile nav open state */
body.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.2);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 640px) {
  body.nav-open .main-nav { top: 64px; }
}
