/* =========================================================
   Nexadata — estilos
   Estilo: gradientes azul → violeta → rosa, títulos finos,
   botões em pílula. Sem fontes externas (privacidade).
   ========================================================= */

:root {
  --indigo: #1f2328;      /* cinzento-escuro principal */
  --indigo-2: #2b3036;
  --violet: #3a4048;
  --pink: #a3e635;        /* verde-lima (destaques) */
  --pink-dark: #4d7c0f;   /* lima escuro para texto sobre branco */
  --lime-hover: #bef264;
  --navy: #16191d;
  --ink: #1f2328;
  --muted: #5c6370;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f4;
  --off: #d3254a;
  --radius: 18px;
  --grad: linear-gradient(90deg, var(--pink), #84cc16);
    --shadow: 0 18px 40px rgba(31, 35, 40, .10);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pink-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 400; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Títulos das secções */
.section-head h2, .legal h1, .message-page h1, .contact h2, .section > .container.narrow.center h2 { color: var(--ink); }

/* Linha de destaque que sai da margem esquerda */
.section-head h2::after, .legal h1::after {
  content: ""; display: block; height: 2px; background: var(--pink);
  width: calc((100vw - min(1180px, 100vw)) / 2 + 24px + 140px);
  margin: 28px 0 0 calc(-1 * ((100vw - min(1180px, 100vw)) / 2 + 24px));
}
.section-head.center h2::after { width: 140px; margin: 28px auto 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.7em; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: 0 8px 24px rgba(163, 230, 53, .35); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink-dark); color: var(--pink-dark); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: rgba(255, 255, 255, .88); }
.btn-sm { padding: .6em 1.3em; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--indigo); transition: box-shadow .2s, background .2s; }
.site-header.scrolled { background: rgba(31, 35, 40, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pink); text-decoration: none; font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; }
.logo span { color: #fff; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 6px; }
.nav-toggle span { width: 28px; height: 3px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 90px 0 120px; background: var(--indigo); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; font-weight: 600; color: var(--pink); }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero .eyebrow { color: var(--pink); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--pink-dark); margin-bottom: 1em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { background: #fff; color: var(--indigo); border-color: #fff; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--pink); font-weight: 700; margin-right: 8px; }

/* Cartão em vidro */
.card-mock {
  position: relative; border-radius: 22px; overflow: hidden; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.mock-head { display: flex; align-items: center; gap: 6px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.dot:first-child { background: var(--pink); }
.mock-title { margin-left: 10px; font-weight: 600; letter-spacing: .02em; }

.flow { list-style: none; margin: 0; padding: 12px 0; }
.flow li { display: flex; align-items: center; gap: 16px; padding: 14px 22px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 43px; top: 56px; height: 24px; border-left: 2px dashed rgba(255, 255, 255, .3); }
.flow-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex-shrink: 0; }
.flow-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-ok { background: var(--pink); color: var(--ink); box-shadow: 0 0 0 6px rgba(163, 230, 53, .25); }
.flow-ok svg { stroke: var(--ink); stroke-width: 2.6; }
.flow strong { display: block; font-weight: 600; font-size: .98rem; }
.flow small { color: rgba(255, 255, 255, .72); font-size: .86rem; }

/* ---------- Faixa de números ---------- */
.stats { background: var(--indigo-2); color: rgba(255, 255, 255, .75); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.stats strong {
  display: block; font-size: 2.6rem; font-weight: 300; line-height: 1.1; margin-bottom: 8px; color: var(--pink);
}
.stats span { font-size: .92rem; }

/* ---------- Secções ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(163, 230, 53, .14), rgba(31, 35, 40, .06));
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--pink-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 72px; right: -14px; height: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(163, 230, 53, .2));
}
.step-n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--pink); color: var(--pink-dark); font-weight: 400; font-size: 1.4rem; margin-bottom: 22px; background: #fff;
}
.steps p { color: var(--muted); }

/* Secção em gradiente */
.section-dark { position: relative; overflow: hidden; background: var(--indigo); color: rgba(255, 255, 255, .88); }
.section-dark::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -160px; top: -200px; border: 2px solid rgba(255, 255, 255, .15); pointer-events: none;
}
.section-dark h2 { color: #fff; }
.section-dark h2::after { content: ""; display: block; width: 140px; height: 2px; background: var(--pink); margin-top: 28px; }
.section-dark .eyebrow { color: var(--pink); }
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px; padding: 16px 20px 16px 54px; position: relative;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 18px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pink); color: var(--ink); display: grid; place-items: center; font-size: .82rem; font-weight: 800;
}
.checklist strong { color: #fff; font-weight: 600; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(163, 230, 53, .4); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--pink-dark); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Pedido / Formulário ---------- */
.contact { align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-info li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--pink); }
.contact-info span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); position: relative; }
.form::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; background: var(--grad); border-radius: 3px; }
.field { margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background-color: #fff; transition: border-color .2s, box-shadow .2s;
}
.field select {
  padding-right: 42px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d7c0f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(163, 230, 53, .12); }
.field textarea { resize: vertical; }
.field .invalid { border-color: var(--off); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); flex-shrink: 0; }
.check input.invalid + span { color: var(--off); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-msg.error { color: var(--off); }
.form-msg.success { color: var(--pink-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); padding: 72px 0 0; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 16px; }
.footer-grid a:not(.logo) { display: block; color: rgba(255, 255, 255, .65); text-decoration: none; margin-bottom: 10px; }
.footer-grid a:not(.logo):hover { color: var(--pink); }
.footer-grid p { margin-top: 16px; max-width: 340px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 24px; font-size: .85rem; }

/* ---------- Banner de cookies ---------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; display: flex; justify-content: center; }
.cookie[hidden] { display: none; }
.cookie-box { background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); padding: 24px 26px; max-width: 580px; border-top: 4px solid var(--pink); }
.cookie-box h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: .4em; }
.cookie-box p { font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { min-width: 120px; }

/* ---------- Páginas legais e mensagens ---------- */
.legal { padding: 70px 0 100px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.4rem; font-weight: 600; margin-top: 2.2em; }
.legal p, .legal li { color: #3b3f5c; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.updated { color: var(--muted); font-size: .9rem; }

.message-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.message-page .big-icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--pink); color: var(--ink);
  display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 28px; box-shadow: 0 14px 34px rgba(163, 230, 53, .35);
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .section-head h2::after, .legal h1::after { width: 136px; margin-left: -16px; }
  .nav-toggle { display: flex; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--indigo); padding: 8px 16px 22px; display: none; box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .menu .btn { margin-top: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 80px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .form { padding: 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .btn { flex: 1; min-width: 0; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
