/* AgenticForce — light monochrome */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: rgba(14, 13, 12, 0.6);
  --muted: #f5f5f5;
  --card: #f2f3f7;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-fg: #fafafa;
  --bg-dark: #0a0a0a;
  --card-dark: #0f0f0f;
  --border-dark: #262626;
  --fg-dark: #fafafa;
  --fg-dark-muted: rgba(250, 250, 250, 0.6);
  --accent: #f59e0b;
  --radius: 8px;
  --container: 1200px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
}

a {
  color: var(--fg);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--primary-fg);
  font-weight: 600;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow-dark {
  color: var(--fg-dark-muted);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 15em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p {
  margin: 0;
}

.mono-num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--fg-muted);
  max-width: 40em;
  margin-bottom: 3rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--fg);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--fg);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--fg-muted);
}

.nav-cta {
  align-self: flex-start;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: #000;
}

.btn-outline {
  color: var(--fg);
  border-color: var(--border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--fg);
}

/* --- Hero --- */

.hero {
  padding: calc(var(--header-h) + 7rem) 0 8rem;
  border-bottom: 1px solid var(--border);
}

.hero-sub {
  margin: 1.75rem 0 2.5rem;
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-media {
  margin: 4rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media picture,
.card picture {
  display: block;
}

.hero-media img {
  width: 100%;
  height: auto;
}

/* --- Sections --- */

.section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

/* --- Manifesto --- */

.manifesto-text {
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  max-width: 24em;
  font-weight: 500;
}

/* --- Cards (casos de uso) --- */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --- Método --- */

.method-cols {
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}

.method-col {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.method-col p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.diagram {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

/* --- Setores --- */

.sectors-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.sector {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sector h3 {
  font-size: 0.98rem;
}

.sector-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* --- Pilares (seção escura) --- */

.section-dark {
  background: var(--bg-dark);
  color: var(--fg-dark);
  border-bottom-color: var(--border-dark);
}

.section-dark h2 {
  color: var(--fg-dark);
}

.pillars {
  grid-template-columns: 1fr;
  margin: 3.5rem 0 5rem;
}

.pillar {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.25rem;
}

.pillar p:not(.eyebrow) {
  color: var(--fg-dark-muted);
  font-size: 0.95rem;
}

.big-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

.big-numbers strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.big-numbers span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dark-muted);
}

/* --- Sobre --- */

.about-steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-steps li {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.95rem;
}

/* --- CTA final --- */

.section-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 17em;
}

.section-cta .section-sub {
  margin: 1.25rem 0 2.5rem;
}

/* --- Formulário de contato --- */

.contact-form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--fg);
}

.field input:focus-visible {
  outline: none;
  border-color: var(--fg);
}

.field-error {
  min-height: 1.1em;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #b91c1c;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .cf-turnstile {
  margin: 0.25rem 0 1.5rem;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.2em;
  font-size: 0.95rem;
}

.form-status.erro {
  color: #b91c1c;
}

.form-success {
  font-size: 1.15rem;
  font-weight: 500;
}

.form-lgpd {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--fg-muted);
}

/* --- Página de contato --- */

.page-contato .header-inner {
  justify-content: space-between;
}

.back-link {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--fg);
  text-decoration: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 6rem;
}

.contact-value h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 16em;
}

.contact-sub {
  margin: 1.5rem 0 3rem;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 34em;
}

.next-steps {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.next-steps li {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.next-steps h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.next-steps p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.trust-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.trust-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--fg);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.form-card-sub {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.form-card .field input {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #fff;
}

.btn-block {
  width: 100%;
  min-height: 3rem;
}

.form-card .form-status {
  margin-top: 0.75rem;
}

.form-card .form-lgpd {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1.1fr 1fr;
  }

  .form-card {
    padding: 2rem;
    position: sticky;
    align-self: start;
    top: calc(var(--header-h) + 2rem);
  }
}

/* --- Definição (AEO) --- */

.def-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--fg-muted);
}

.def-list li {
  margin-bottom: 0.5rem;
}

.def-list strong {
  color: var(--fg);
  font-weight: 500;
}

/* --- FAQ --- */

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary h3 {
  display: inline;
  font-size: 1.05rem;
  margin: 0;
}

.faq-answer {
  padding-bottom: 1.25rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 44em;
}

.footer-updated {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* --- Footer --- */

.site-footer {
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
  max-width: 22em;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--fg);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--fg-muted);
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* --- 404 --- */

.notfound {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.notfound .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

/* --- Fade-in on scroll --- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- Desktop --- */

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav-list a {
    padding: 0.25rem 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .method-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .sectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .big-numbers {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
