/* ===== Aferir — site institucional (Manual de Marca v1.0 · 2026) ===== */

:root {
  --aferir-blue: #003399;   /* cor principal — ações, links, ênfase */
  --ink-navy: #0E1626;      /* texto, fundos escuros, contraste */
  --azure: #5B8DEF;         /* secundária — dados, gráficos, hover */
  --sky: #E4ECFF;
  --paper: #F5F6F8;
  --slate: #5A6473;
  --white: #FFFFFF;

  --ink-inverse: #E8EDF6;
  --ink-inverse-soft: #96A3B8;
  --line: #E2E6ED;
  --radius: 14px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink-navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }

/* ===== Marca ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.brand-symbol {
  width: 30px;
  height: 30px;
  color: var(--azure);
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: inherit;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 22, 38, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-inverse-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--aferir-blue);
  color: var(--white) !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--azure); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(0, 51, 153, 0.45), transparent 62%),
    var(--ink-navy);
  color: var(--ink-inverse);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 55vw);
  color: var(--aferir-blue);
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--azure);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--azure);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-inverse-soft);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-ticker {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--aferir-blue); color: var(--white); }
.btn-primary:hover { background: var(--azure); color: var(--ink-navy); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink-inverse);
}
.btn-ghost:hover { border-color: var(--azure); color: var(--white); }

.btn-light { background: var(--white); color: var(--aferir-blue); }
.btn-light:hover { background: var(--sky); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ===== Secções ===== */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.section-alt { background: var(--paper); }

.section-kicker {
  color: var(--aferir-blue);
  margin-bottom: 0.8rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--slate);
  max-width: 62ch;
  font-size: 1.05rem;
}

/* ===== Produto em destaque (AferiFlow) ===== */
.featured {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 16px 48px rgba(14, 22, 38, 0.07);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.badge-live {
  background: var(--sky);
  color: var(--aferir-blue);
}

.featured h3 {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.featured-desc {
  color: var(--slate);
  margin-bottom: 1.4rem;
}

.featured-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
  margin-bottom: 1.8rem;
}

.featured-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
}

.featured-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azure);
}

/* mini-dashboard (aplicações do manual) */
.mock-dash {
  background: var(--ink-navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  color: var(--ink-inverse);
  box-shadow: 0 20px 50px rgba(14, 22, 38, 0.28);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  margin-bottom: 1.3rem;
}

.mock-symbol {
  width: 22px;
  height: 22px;
  color: var(--azure);
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.mock-kpi {
  background: rgba(91, 141, 239, 0.12);
  border-radius: 10px;
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mock-kpi span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--azure);
}

.mock-kpi strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
}

.mock-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ===== Produtos em construção ===== */
.soon-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 3.2rem;
}

.cards-soon { margin-top: 1.2rem; }

.card-soon {
  border-style: dashed;
  background: transparent;
  padding: 1.4rem 1.5rem;
}

.card-soon:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.card-soon h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.card-soon p {
  font-size: 0.88rem;
  color: var(--slate);
}

/* ===== Cards de produto ===== */
.cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--azure);
  box-shadow: 0 12px 32px rgba(14, 22, 38, 0.08);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--aferir-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.card ul { list-style: none; }

.card li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 0.45rem;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azure);
}

/* ===== Serviços ===== */
.services {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.service {
  background: var(--white);
  border-left: 3px solid var(--aferir-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem;
  box-shadow: 0 4px 16px rgba(14, 22, 38, 0.05);
}

.service h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }

.service p { color: var(--slate); font-size: 0.95rem; }

/* ===== Abordagem ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.checks { list-style: none; display: grid; gap: 1.1rem; }

.checks li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--slate);
  font-size: 0.98rem;
}

.checks li strong { color: var(--ink-navy); }

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--sky);
  color: var(--aferir-blue);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

/* ===== CTA (cartão azul, como no manual) ===== */
.cta {
  position: relative;
  background: var(--aferir-blue);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-watermark {
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: min(420px, 50vw);
  color: var(--white);
  opacity: 0.10;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--white);
  margin-bottom: 0.9rem;
}

.cta p {
  color: var(--sky);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.cta-note {
  margin-top: 1.6rem !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-navy);
  color: var(--ink-inverse-soft);
}

.footer-brand .brand-symbol { width: 24px; height: 24px; }
.footer-brand .brand-word { font-size: 1.2rem; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 2.5rem 1.5rem;
}

.footer-inner p { font-size: 0.9rem; max-width: 36ch; margin-top: 0.5rem; }

.footer-links { list-style: none; display: flex; gap: 1.6rem; }

.footer-links a {
  color: var(--ink-inverse-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--white); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

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

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .hero-watermark { opacity: 0.15; }
  .featured { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .featured-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.8rem 1rem;
  }

  .nav-cta {
    margin: 0.6rem auto 0;
    display: inline-block;
    width: fit-content;
  }
}
