/* =========================================================================
   Chat WPA: landing do produto de atendimento omnichannel.
   Herdando o design system do site institucional WPA Sistemas: tema ESCURO
   premium, glow ciano sutil, grid discreto, tipografia Barlow respirada e
   fechada. Acento ciano/azul (marca WPA); verde só como sinal do WhatsApp.
   ========================================================================= */

: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:    #25d366;   /* verde WhatsApp (acento pontual) */
  --green-dp: #06210f;

  /* superfícies claras (seções alternadas) */
  --paper:    #f4f7fc;
  --paper-2:  #ffffff;
  --ink:      #0c1626;
  --ink-soft: #4b5a70;

  --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; }
body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

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

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

.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: 14px; }

/* ---------- Botões ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; min-height: 48px; padding: 0 28px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button svg { width: 19px; height: 19px; fill: currentColor; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 10px 34px rgba(34,181,242,0.30); }
.button-primary:hover { box-shadow: 0 16px 44px rgba(34,181,242,0.42); }
.button-secondary { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.16); color: var(--text); }
.button-secondary:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); }
.button-large { min-height: 56px; padding-inline: 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; gap: 22px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { height: 38px; width: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: 0.96rem; color: var(--text-soft); transition: color .15s, background .15s, border-color .15s; }
.nav a:hover { color: #fff; }
.nav .nav-login { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); padding: 9px 18px; border-radius: 100px; font-weight: 600; color: #fff; }
.nav .nav-login:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.nav .nav-cta { background: rgba(37,211,102,0.14); border: 1px solid rgba(37,211,102,0.45); padding: 9px 20px; border-radius: 100px; font-weight: 600; color: #fff; }
.nav .nav-cta:hover { background: var(--green); border-color: var(--green); color: var(--green-dp); }
.menu-button { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-button span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 64px 0 100px; }
/* grid sutil que some nas bordas */
.hero-pattern { 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% 78% at 50% 22%, #000 30%, transparent 74%);
  mask-image: radial-gradient(125% 78% at 50% 22%, #000 30%, transparent 74%); }
/* glow vivo na base */
.hero::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: 88%; height: 74%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34,181,242,0.26), rgba(47,109,240,0.10) 46%, transparent 76%); filter: blur(40px); pointer-events: none; animation: glowPulse 9s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); align-items: center; gap: 56px; }
.hero-copy { max-width: 620px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--text-soft); font-family: var(--display); font-weight: 600; font-size: 0.9rem; }
.brand-lockup img { height: 32px; width: auto; object-fit: contain; }
.hero h1 { margin-bottom: 22px; }
.hero-subtitle { max-width: 560px; margin: 0 0 34px; color: var(--text-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-proof span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); color: var(--text-soft); font-family: var(--display); font-size: 0.88rem; font-weight: 500; }

/* ---------- Mockup do app ---------- */
.product-stage { min-width: 0; }
.app-window { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.window-bar { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #0d1018; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 0.82rem; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; }
.window-bar span:nth-child(1) { background: #ff6a5f; }
.window-bar span:nth-child(2) { background: #f5bd4f; }
.window-bar span:nth-child(3) { background: #58d77a; }
.window-bar strong { margin-left: 10px; font-weight: 600; }
.app-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 426px; }
.inbox { background: #0a0c14; border-right: 1px solid var(--line); padding: 18px 12px; }
.inbox-title { margin: 0 0 12px 6px; color: #fff; font-family: var(--display); font-weight: 700; }
.inbox-row { padding: 12px; border-radius: 12px; color: var(--text-soft); }
.inbox-row + .inbox-row { margin-top: 7px; }
.inbox-row.active { background: rgba(34,181,242,0.12); border: 1px solid rgba(34,181,242,0.24); }
.inbox-row b, .inbox-row span { display: block; }
.inbox-row b { margin-bottom: 3px; color: #fff; font-size: 0.95rem; }
.inbox-row span { overflow: hidden; color: var(--text-dim); font-size: 0.8rem; white-space: nowrap; text-overflow: ellipsis; }
.chat-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--card); }
.chat-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-top strong, .chat-top span { display: block; }
.chat-top span { color: var(--text-soft); font-size: 0.86rem; }
.chat-top em { align-self: start; padding: 4px 9px; border-radius: 999px; background: rgba(47,210,126,0.16); color: #7cf6ad; font-size: 0.76rem; font-style: normal; font-weight: 700; }
.message { max-width: 77%; padding: 11px 13px; border-radius: 12px; color: #dbe4f2; font-size: 0.94rem; }
.message.received { align-self: flex-start; background: #171b28; }
.message.sent { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.composer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 7px 7px 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text-dim); font-size: 0.9rem; }
.composer button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #fff; font-family: var(--display); font-weight: 700; cursor: pointer; }

/* ---------- Faixa de canais (clara) ---------- */
.channel-strip { position: relative; z-index: 2; background: var(--paper); border-top: 1px solid #e4ebf4; border-bottom: 1px solid #e4ebf4; }
.channel-grid { min-height: 92px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 14px; }
.channel-grid span { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e4ebf4; border-radius: 12px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 700; box-shadow: 0 8px 22px rgba(12,22,38,0.05); }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.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; }

/* Seções claras (alternância) */
.section-light { background: var(--paper); color: var(--ink); }
.section-company { background: var(--paper-2); color: var(--ink); }
.section-light h2, .section-company h2 { color: var(--ink); }
.section-light .eyebrow, .section-company .eyebrow { color: var(--blue); }

/* Split (por que usar) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.lead-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.text-link { display: inline-block; margin-top: 22px; font-family: var(--display); font-weight: 600; color: var(--blue); }
.text-link:hover { color: var(--cyan); }

/* Cards de benefício (na seção clara) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-grid { margin-top: 56px; }
.card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s, background .2s; }
.card h3 { margin-top: 20px; color: #fff; }
.card p { margin: 10px 0 0; color: var(--text-soft); font-size: 0.97rem; }
.section-light .card { background: var(--paper-2); border-color: #e4ebf4; box-shadow: 0 18px 50px rgba(12,22,38,0.07); }
.section-light .card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(12,22,38,0.12); }
.section-light .card h3 { color: var(--ink); }
.section-light .card p { color: var(--ink-soft); }
.icon-chip { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; background: rgba(34,181,242,0.10); border: 1px solid rgba(34,181,242,0.18); color: var(--cyan); }
.section-light .icon-chip { background: rgba(47,109,240,0.10); border-color: rgba(47,109,240,0.18); color: var(--blue); }
.icon-chip svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Recursos (seção escura, linhas numeradas) */
.section-heading { max-width: 760px; margin: 0 auto; text-align: center; }
.section-heading p { margin-top: 16px; color: var(--text-soft); font-size: 1.06rem; }
.feature-list { display: grid; gap: 16px; margin-top: 56px; }
.feature-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 24px; align-items: start; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s, background .2s, transform .2s; }
.feature-row:hover { transform: translateY(-4px); border-color: rgba(34,181,242,0.4); background: var(--card-hi); }
.feature-number { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--cyan-lt); }
.feature-row h3 { color: #fff; }
.feature-row p { max-width: 840px; margin: 8px 0 0; color: var(--text-soft); }

/* Sobre a WPA (clara) */
.company-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: center; }
.company-mark { display: grid; place-items: center; min-height: 300px; border-radius: var(--radius); border: 1px solid #e4ebf4; background: linear-gradient(135deg, rgba(34,181,242,0.08), rgba(47,109,240,0.07)), #f9fbfe; }
.company-mark img { width: min(220px, 78%); height: auto; }
.company-grid p { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; }
.company-facts { display: grid; gap: 12px; margin: 28px 0 0; }
.company-facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid #e4ecf5; }
.company-facts dt { color: #6b7c90; font-family: var(--display); font-weight: 700; }
.company-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.company-facts a { color: var(--blue); }

/* ---------- CTA final ---------- */
.cta-section { position: relative; overflow: hidden; padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--line-2); }
.cta-section::before { content: ""; position: absolute; left: 50%; top: 0; width: 80%; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34,181,242,0.14), transparent 70%); pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 46px; align-items: center; }
.cta-section p { max-width: 620px; margin-top: 16px; color: var(--text-soft); font-size: 1.08rem; }
.cta-actions { justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 30px; background: var(--bg-deep); color: var(--text-soft); border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 0.8fr 1.1fr; gap: 42px; padding-bottom: 40px; border-bottom: 1px solid var(--line-2); }
.site-footer img { height: 40px; width: auto; object-fit: contain; margin-bottom: 16px; }
.site-footer p { max-width: 340px; margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.site-footer h3 { margin-bottom: 16px; color: #fff; font-size: 0.98rem; font-weight: 700; }
.site-footer a { display: block; margin-top: 10px; color: var(--text-dim); font-size: 0.94rem; transition: color .15s; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; color: var(--text-dim); font-size: 0.86rem; }

/* ---------- WhatsApp flutuante (verde: convenção) ---------- */
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--green-dp); box-shadow: 0 16px 34px rgba(37,211,102,0.35); transition: transform .18s ease; }
.floating-whatsapp:hover { transform: translateY(-3px); }
.floating-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .hero { padding: 96px 0 84px; }
  .hero-grid, .split, .company-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .product-stage { max-width: 760px; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .menu-button { display: flex; }
  .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-login, .nav .nav-cta { margin-top: 12px; text-align: center; }
  .hero-grid { gap: 34px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0; }
  .channel-grid span:last-child { grid-column: 1 / -1; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 30px, 1180px); }
  .header-inner { height: 66px; }
  .brand { font-size: 1.08rem; }
  .brand img { height: 34px; }
  .nav { inset: 66px 0 auto 0; }
  .hero { padding: 66px 0 60px; }
  .section { padding: 70px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { display: grid; }
  .button { width: 100%; }
  .app-shell { grid-template-columns: 1fr; min-height: auto; }
  .inbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .inbox-title { grid-column: 1 / -1; margin: 0; }
  .inbox-row { padding: 9px; }
  .inbox-row b { font-size: 0.82rem; }
  .inbox-row span { display: none; }
  .chat-panel { padding: 14px; }
  .message { max-width: 90%; font-size: 0.88rem; }
  .composer span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .company-mark { min-height: 220px; }
  .company-facts div { grid-template-columns: 1fr; gap: 2px; }
  .floating-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .channel-grid { grid-template-columns: 1fr; }
  .channel-grid span:last-child { grid-column: auto; }
  .inbox { grid-template-columns: 1fr; }
  .inbox-row span { display: block; }
}
