/* LogicGate — estilos do site institucional. */
:root {
  --bg: #0A1628;
  --surface: #13233D;
  --line: #22385A;
  --text: #F4F6F9;
  --muted: #A9B8CC;
  --accent: #F7941D;
  --accent-hover: #FFB257;
  --blue: #3DA5FF;
  --input-line: #6A82A6;
  --light-bg: #F4F6F9;
  --light-card: #FFFFFF;
  --light-line: #DCE3EC;
  --light-muted: #4D5D73;
  --light-accent: #B45309;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 20px;
  --header-h: 81px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-border { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-muted { color: var(--muted); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-size: 22px; line-height: 28px; }
.lead { font-size: 18px; line-height: 30px; color: var(--muted); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; font-size: 16px; text-decoration: none;
  padding: 14px 24px; border-radius: 12px; min-height: 48px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); border: 0; }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--input-line); background: var(--surface); }
.btn-sm { padding: 10px 20px; min-height: 44px; font-size: 15px; }
.btn svg { transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; }
.main-nav a { color: var(--text); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--accent-hover); }

/* ---------- hero ---------- */
.hero-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 120px);
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-weight: 650; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-lead { font-size: 19px; line-height: 30px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; }

/* ---------- faixa de pilares ---------- */
.pillars-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.pillars {
  list-style: none; margin: 0 auto; padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.pillars .sep { color: var(--accent); }

/* ---------- sobre ---------- */
.about-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.about-head > * { flex: 1 1 420px; min-width: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.card p { color: var(--muted); }
.card-dark { background: var(--bg); transition: border-color .2s ease, transform .2s ease; }
.card-dark:hover { border-color: var(--input-line); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.card-cta {
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 24px; background: var(--accent); color: var(--bg);
  text-decoration: none; transition: background-color .2s ease, transform .2s ease;
}
.card-cta:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-2px); }
.card-cta-title { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 32px; }
.card-cta-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }

/* ---------- como trabalhamos (faixa clara) ---------- */
.band-light { background: var(--light-bg); color: var(--bg); }
.band-light .eyebrow { color: var(--light-accent); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  background: var(--light-card); border: 1px solid var(--light-line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--light-accent);
}
.step p { color: var(--light-muted); }

/* ---------- diferenciais ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; margin-top: 2px; }
.checklist strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 26px; }

/* ---------- contato ---------- */
.contact-wrap { padding-bottom: var(--section-y); }
.contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px;
}
.contact-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-item svg { flex: none; }
.contact-link { color: var(--text); text-decoration: none; padding: 4px 0; }
.contact-link:hover { color: var(--accent-hover); text-decoration: underline; }

.contact-form {
  flex: 1 1 420px; min-width: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field-full, .form-note, .form-status, .contact-form .btn { grid-column: 1 / -1; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--input-line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--accent-hover); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; padding: 14px 28px; }
.form-note { font-size: 13px; line-height: 20px; color: var(--muted); }
.form-status { font-size: 15px; color: var(--muted); min-height: 24px; }
.form-status.is-error { color: var(--accent-hover); }
.form-status.is-ok { color: #7DD3A8; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 22px; color: var(--muted); }
.footer-brand img { width: 36px; height: 36px; display: block; flex: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-link { color: var(--muted); text-decoration: none; padding: 10px 0; }
.footer-link:hover { color: var(--text); }

/* ---------- WhatsApp flutuante ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #FFFFFF; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}
.wa-fab:hover { color: #FFFFFF; transform: scale(1.06); }

/* ---------- responsivo ---------- */
@media (max-width: 760px) {
  :root { --header-h: 118px; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 0; }
  .brand img { height: 38px; }
  .main-nav {
    order: 3; flex: 1 1 100%; gap: 24px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .pillars { flex-direction: column; gap: 10px; }
  .pillars .sep { display: none; }
}
@media (max-width: 400px) {
  .header-cta { padding: 10px 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
