/* ==========================================================================
   OptiAgente — Design System
   Preto puro / Branco puro, tipografia sans-serif de alto contraste,
   linhas finas de 1px, espaçamento generoso. Sem cor de destaque:
   a hierarquia vem inteiramente de peso, escala e espaço negativo.
   ========================================================================== */

:root {
  --black: #000000;
  --dark: #111111;
  --white: #ffffff;
  --line: #e4e4e4;
  --line-dark: #2a2a2a;
  --gray: #6b6b6b;
  --gray-soft: #9a9a9a;
  --surface: #fafafa;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(24px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Node motif — a small repeating signature drawn from the OptiAgente mark:
   a solid dot connected by a hairline. Used as list markers and section
   eyebrows so the icon's own vocabulary threads through the typography.
   -------------------------------------------------------------------------- */

.node-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  flex: 0 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--black);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.brand span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--black);
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 600;
  margin: 0;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-solid {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-solid:hover {
  background: var(--dark);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 9px 18px;
}

.btn-ghost:hover {
  border-color: var(--black);
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 880px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--black);
}

.hero h2 {
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--gray);
  max-width: 620px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--gray-soft);
}

/* --------------------------------------------------------------------------
   Purpose section
   -------------------------------------------------------------------------- */

.purpose {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.purpose h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  max-width: 360px;
}

.purpose-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  margin: 0 0 28px;
}

.purpose-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.purpose-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.purpose-list li .node-dot {
  margin-top: 8px;
}

.purpose-list strong {
  font-weight: 600;
}

.purpose-foot {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 104px);
}

.features h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  max-width: 460px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-index {
  font-size: 13px;
  color: var(--gray-soft);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.feature h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  color: var(--black);
}

.feature p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer — compliance block
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-top {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand-text .name {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}

.footer-brand-text .tagline {
  font-size: 13.5px;
  color: #a3a3a3;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: #d4d4d4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.footer-contact {
  font-size: 14px;
  color: #d4d4d4;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid #555;
}

.footer-bottom {
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #7a7a7a;
}

/* --------------------------------------------------------------------------
   Legal pages (Privacidade / Termos)
   -------------------------------------------------------------------------- */

.legal-hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .eyebrow {
  margin-bottom: 22px;
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 760px;
}

.legal-updated {
  font-size: 14px;
  color: var(--gray);
}

.legal-body {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(64px, 9vw, 104px);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.legal-toc a {
  font-size: 13.5px;
  color: var(--gray);
  text-decoration: none;
  padding: 9px 0;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
}

.legal-toc a:hover {
  color: var(--black);
}

.legal-content section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--black);
}

.legal-content h2 .num {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-soft);
  font-variant-numeric: tabular-nums;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #333333;
  margin: 0 0 16px;
}

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

.legal-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-content ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.75;
  color: #333333;
}

.legal-content ul li .node-dot {
  margin-top: 9px;
}

.legal-content strong {
  font-weight: 600;
  color: var(--black);
}

.legal-content .callout {
  border: 1px solid var(--black);
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dark);
}

.legal-content .callout strong {
  display: block;
  margin-bottom: 6px;
}

.legal-cta {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  text-align: center;
}

.legal-cta a {
  font-size: 14px;
  text-decoration: none;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.legal-cta a:hover {
  color: var(--black);
  border-color: var(--black);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }

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

  .legal-body {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-bottom: 20px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header .btn-outline span.long {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
