/* =========================================================================
   WPA Sistemas: site institucional (segurança digital)
   Tema ESCURO premium, no clima da Starti: quase preto, glow sutil, grid
   discreto, tipografia Barlow respirada. Acento ciano/azul (marca WPA).
   ========================================================================= */

:root {
  --bg:       #07080e;   /* base quase preta */
  --bg-soft:  #0b0d16;   /* seção alternada */
  --bg-deep:  #050609;   /* mais profundo (rodapé) */
  --card:     #10121d;   /* cards */
  --card-hi:  #161927;   /* card hover / elevado */
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.05);

  --text:     #e9edf6;   /* texto principal */
  --text-soft:#9aa6bb;   /* secundário */
  --text-dim: #616d82;   /* terciário / dim */

  --cyan:     #22b5f2;
  --cyan-lt:  #5fd0ff;
  --blue:     #2f6df0;
  --green:    #2fd27e;
  --red:      #f0494b;

  --radius: 16px;
  --display: "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; color: #fff; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }

.hl { color: var(--cyan-lt); }
.hl-dark { color: var(--cyan); }
.grad { color: var(--cyan-lt); }
.grad-dark { color: var(--cyan); }

.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.eyebrow.light { color: var(--cyan); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 14px 28px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s; }
.btn-primary { background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 10px 34px rgba(34,181,242,0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(34,181,242,0.42); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.16); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.06rem; }

/* ---------- Header (transparente no topo, sólido ao rolar) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .28s ease, box-shadow .28s ease, border-color .28s ease; }
.site-header.scrolled { background: rgba(7,8,14,0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(0,0,0,0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-logo { height: 38px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { color: var(--cyan); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: 0.96rem; color: var(--text-soft); transition: color .15s; }
.nav a:hover { color: #fff; }
.nav .nav-cta { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); padding: 9px 20px; border-radius: 100px; font-weight: 600; color: #fff; }
.nav .nav-cta:hover { background: var(--cyan); border-color: var(--cyan); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 150px 0 175px; min-height: 90vh; display: flex; align-items: center; }
/* grid sutil que some nas bordas */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(125% 80% at 50% 28%, #000 28%, transparent 72%);
  mask-image: radial-gradient(125% 80% at 50% 28%, #000 28%, transparent 72%); }
/* glow vivo na base (degradê em movimento) */
.hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow::before { content: ""; position: absolute; left: 50%; bottom: -34%; width: 92%; height: 78%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34,181,242,0.30), rgba(47,109,240,0.12) 46%, transparent 76%); filter: blur(38px); animation: glowPulse 9s ease-in-out infinite; }
.hero-glow::after { content: ""; position: absolute; left: 50%; bottom: -12%; width: 58%; height: 52%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(95,208,255,0.22), transparent 70%); filter: blur(30px); animation: glowDrift 15s ease-in-out infinite alternate; }
@keyframes glowPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes glowDrift { from { transform: translateX(-60%) scale(1); } to { transform: translateX(-40%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-glow::before, .hero-glow::after { animation: none; } }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero h1 { margin-bottom: 26px; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-soft); max-width: 620px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.hero-trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 40px 16px; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--cyan-lt); }
.stat span { font-size: 0.9rem; color: var(--text-dim); margin-top: 10px; display: block; }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-deep); position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; left: 50%; top: -20%; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34,181,242,0.10), transparent 70%); pointer-events: none; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; position: relative; }
.section-lead { color: var(--text-soft); font-size: 1.06rem; margin-top: 16px; }
.section-lead.light { color: var(--text-soft); }

/* ---------- Seções CLARAS (alternância pra não ficar tudo escuro) ---------- */
.section-light { background: #f4f7fc; color: #0c1626; }
.section-light h2 { color: #0c1626; }
.section-light .eyebrow { color: var(--blue); }
.section-light .section-lead { color: #4b5a70; }
.section-light .col-text p { color: #4b5a70; }
.section-light .col-text strong { color: #0c1626; }
.section-light .link-arrow { color: var(--blue); }
.section-light .link-arrow:hover { color: var(--cyan); }
.section-light .why-card { background: #fff; border-color: #e4ebf4; box-shadow: 0 18px 50px rgba(12,22,38,0.07); }
.section-light .why-item:hover { background: #f4f7fc; }
.section-light .why-item strong { color: #0c1626; }
.section-light .why-item p { color: #4b5a70; }
.section-light .ic-svg { background: rgba(30,136,229,0.10); color: var(--blue); }
.section-light .partner-text p { color: #4b5a70; }
.section-light .partner-text strong { color: #0c1626; }
.section-light .check-list li { color: #0c1626; }
.section-light .partner-note { color: #0c1626 !important; border-left-color: var(--blue); }
.section-light .trust-title { color: #8a98ad; }
.section-light .clients span { color: #aab6c6; }
.section-light .clients span:hover { color: #667488; }
.section-light .brand-quote { color: #0c1626; }

/* Duas colunas (nova fase) */
.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.col-text p { color: var(--text-soft); margin-top: 18px; font-size: 1.05rem; }
.col-text strong { color: var(--text); }
.link-arrow { display: inline-block; margin-top: 26px; font-family: var(--display); font-weight: 600; color: var(--cyan); }
.link-arrow:hover { color: var(--cyan-lt); }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.why-item { display: flex; gap: 16px; padding: 20px; border-radius: 12px; transition: background .15s; }
.why-item:hover { background: var(--card-hi); }
.ic-svg { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(34,181,242,0.12); color: var(--cyan); flex-shrink: 0; }
.ic-svg svg { width: 24px; height: 24px; }
.why-item strong { font-family: var(--display); display: block; margin-bottom: 3px; color: #fff; }
.why-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Cards de soluções ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s, background .2s; }
.card:hover { transform: translateY(-6px); border-color: rgba(34,181,242,0.45); box-shadow: 0 18px 50px rgba(0,0,0,0.45); background: var(--card-hi); }
.card-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; background: rgba(34,181,242,0.10); border: 1px solid rgba(34,181,242,0.18); color: var(--cyan); margin-bottom: 22px; }
.card-ic svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 10px; color: #fff; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Parceria Starti ---------- */
.partner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.partner-text p { color: var(--text-soft); margin-top: 18px; font-size: 1.05rem; }
.partner-text strong { color: var(--text); }
.check-list { list-style: none; margin: 26px 0 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(47,210,126,0.14); color: var(--green); font-weight: 800; font-size: 0.78rem; }
.partner-note { font-style: italic; color: var(--text) !important; font-weight: 500; border-left: 2px solid var(--cyan); padding-left: 16px; }
.partner-badge { display: grid; place-items: center; }
.shield { width: 250px; height: 250px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; background: radial-gradient(120% 120% at 50% 0%, #14304f, #0a1322); border: 1px solid rgba(34,181,242,0.22); box-shadow: 0 0 70px rgba(34,181,242,0.18), inset 0 0 60px rgba(34,181,242,0.06); }
.shield span { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: 1; color: var(--cyan-lt); }
.shield small { display: block; font-size: 0.82rem; line-height: 1.35; color: var(--text-soft); max-width: 175px; }

/* ---------- História / timeline ---------- */
.section-dark h2, .section-dark .section-head { color: #fff; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.tl-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.tl-year { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--cyan); font-size: 0.92rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.tl-item h3 { color: #fff; margin-bottom: 8px; }
.tl-item p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Confiança / prova social ---------- */
.trust-title { text-align: center; color: var(--text-dim); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 30px; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin-bottom: 54px; }
.clients span { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--text-dim); transition: color .2s; }
.clients span:hover { color: var(--text-soft); }
.brand-quote { text-align: center; max-width: 780px; margin: 0 auto; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--bg-soft); padding: 110px 0; text-align: center; border-top: 1px solid var(--line-2); }
.cta-glow { position: absolute; left: 50%; top: 0; width: 80%; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34,181,242,0.16), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; max-width: 720px; }
.cta-final p { color: var(--text-soft); font-size: 1.1rem; margin: 18px auto 34px; max-width: 540px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phone { margin-top: 28px; font-weight: 500; color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--text-soft); padding: 70px 0 30px; border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 42px; border-bottom: 1px solid var(--line-2); }
.footer-logo { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; max-width: 280px; color: var(--text-dim); }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.94rem; margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 0.86rem; color: var(--text-dim); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: rgba(7,8,14,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; transform: translateY(-130%); transition: transform .28s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .two-col, .partner { grid-template-columns: 1fr; gap: 40px; }
  .partner-badge { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 104px 0 116px; min-height: auto; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .stat strong { font-size: 2.1rem; }
}
