/* ==========================================================================
   ADS Intelligence — Site Comercial (estático)
   Design system: tema escuro azul-marinho / azul elétrico, responsivo e acessível.
   Zero dependências externas. Tipografia do sistema.
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #0a0f1e;
  --bg-2: #0b1428;
  --bg-3: #0a1a33;
  --surface: rgba(148, 178, 224, 0.05);
  --surface-solid: #0e1830;
  --surface-2: rgba(148, 178, 224, 0.08);
  --line: rgba(148, 178, 224, 0.14);
  --line-strong: rgba(148, 178, 224, 0.28);

  --ink: #e6edf7;
  --ink-soft: #c3d0e2;
  --muted: #8ea3c2;
  --muted-2: #6f83a3;

  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-3: #60a5fa;
  --accent-ink: #06121f;

  --success: #34d399;
  --warning: #fbbf24;

  --gradient: linear-gradient(120deg, #60a5fa 0%, #3b82f6 45%, #22d3ee 100%);
  --gradient-soft: linear-gradient(120deg, rgba(96,165,250,0.16), rgba(34,211,238,0.12));

  /* Tipografia */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 780px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow: 0 20px 50px rgba(2, 8, 23, 0.45);
  --shadow-sm: 0 8px 24px rgba(2, 8, 23, 0.35);

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* Acessibilidade --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* Container -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}
.container-narrow { max-width: var(--container-narrow); }

/* Tipografia base -------------------------------------------------------- */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.28rem); }
p { color: var(--ink-soft); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--ink);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: var(--surface-2); }
.primary-nav .nav-cta {
  background: var(--gradient);
  color: var(--accent-ink);
  font-weight: 700;
}
.primary-nav .nav-cta:hover { filter: brightness(1.06); color: var(--accent-ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(37, 99, 235, 0.38), transparent 60%),
    radial-gradient(50% 50% at 15% 0%, rgba(34, 211, 238, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin-bottom: 22px; }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-primary {
  background: var(--gradient);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* Seções ----------------------------------------------------------------- */
.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(148, 178, 224, 0.04), rgba(148, 178, 224, 0.015));
  border-block: 1px solid var(--line);
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Split (duas colunas) --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.split p + p { margin-top: 16px; }
.split .lead { margin-bottom: 16px; }

/* Listas ----------------------------------------------------------------- */
.tick-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--gradient);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card.highlight {
  background: var(--gradient-soft);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 12px;
}
.card-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--ink); }
.card-text { color: var(--ink-soft); margin-bottom: 16px; }

/* Grid de serviços ------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 22px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.service h3 { color: var(--ink); }
.service p { color: var(--ink-soft); font-size: 0.98rem; }
.service-wide { grid-column: span 1; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--gradient-soft);
  border: 1px solid var(--line-strong);
  color: var(--accent-3);
}

/* Badges ----------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  margin-top: auto;
}
.badge-ready { background: rgba(52, 211, 153, 0.14); color: var(--success); border-color: rgba(52, 211, 153, 0.3); }
.badge-progress { background: rgba(251, 191, 36, 0.12); color: var(--warning); border-color: rgba(251, 191, 36, 0.3); }

.text-link {
  color: var(--accent-3);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  margin-top: auto;
}
.text-link:hover { border-bottom-color: var(--accent-3); }

/* Feature list (sobre) --------------------------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.feature-list strong { color: var(--ink); }
.feature-list-icon {
  color: var(--accent-2);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* Contato ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 22px);
}
.contact-card { display: flex; flex-direction: column; gap: 12px; }
.contact-status { color: var(--ink-soft); }
.contact-card .btn { align-self: flex-start; margin-top: 4px; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-3);
  transition: transform 0.22s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }
.faq a { color: var(--accent-3); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
}
.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }
.footer-base {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-base p { color: var(--muted-2); font-size: 0.86rem; }

/* Páginas legais --------------------------------------------------------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal h1 { margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal .prose { max-width: 760px; }
.legal .prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal .prose h3 { font-size: 1.08rem; margin: 24px 0 10px; }
.legal .prose p,
.legal .prose li { color: var(--ink-soft); }
.legal .prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal .prose a { color: var(--accent-3); }
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 600;
}
.legal .back-link:hover { text-decoration: underline; }
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--ink-soft);
}

/* 404 -------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 18px;
}
.error-code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page p { color: var(--muted); max-width: 46ch; }
.error-logo { height: 32px; width: auto; }
.hero-actions.is-centered { justify-content: center; }

/* Animações de entrada --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(18px, 4vw, 32px) 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav a {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }

  .grid-3 { grid-template-columns: 1fr; }
  .service-wide { grid-column: auto; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Acessibilidade: movimento reduzido ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Impressão -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero-glow, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  p, .card-text, .service p, .faq details p, .legal .prose p { color: #222; }
  .reveal { opacity: 1; transform: none; }
}