/* ============================================================
   SergyTech — Automação Comercial · Tema Azul & Cinza
   ============================================================ */
:root {
  --azul-900: #0f2a4a;
  --azul-800: #143a66;
  --azul-700: #1d4ed8;
  --azul-600: #2563eb;
  --azul-500: #3b82f6;
  --azul-100: #dbeafe;
  --azul-50:  #eff6ff;
  --cinza-900: #1e293b;
  --cinza-700: #334155;
  --cinza-500: #64748b;
  --cinza-400: #94a3b8;
  --cinza-200: #e2e8f0;
  --cinza-100: #f1f5f9;
  --cinza-50:  #f8fafc;
  --branco: #ffffff;
  --verde-whats: #25d366;
  --verde-whats-escuro: #1ebe5d;
  --sombra: 0 4px 20px rgba(15, 42, 74, .08);
  --sombra-forte: 0 10px 34px rgba(15, 42, 74, .16);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--cinza-700);
  background: var(--branco);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { color: var(--cinza-900); line-height: 1.25; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--azul-600); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--azul-700); }
.btn-whatsapp { background: var(--verde-whats); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: var(--verde-whats-escuro); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--azul-600); border-color: var(--azul-600); }
.btn-outline:hover { background: var(--azul-50); }
.btn-lg { padding: 17px 36px; font-size: 1.15rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--azul-900); color: var(--cinza-200); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cinza-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--cinza-700); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--azul-600); }
.btn-nav { padding: 10px 20px; font-size: .9rem; color: #fff !important; }
.btn-acesso { padding: 9px 18px; font-size: .9rem; background: transparent; color: var(--azul-700) !important; border-color: var(--azul-600); }
.btn-acesso:hover { background: var(--azul-50); color: var(--azul-700); }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--azul-800); border-radius: 3px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--azul-900) 0%, var(--azul-800) 55%, var(--azul-700) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(59,130,246,.35), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center;
  padding-top: 72px; padding-bottom: 84px;
}
.badge {
  display: inline-block; background: rgba(59,130,246,.22); border: 1px solid rgba(147,197,253,.5);
  color: #bfdbfe; padding: 6px 14px; border-radius: 999px; font-size: .83rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 18px; }
.hero .destaque { color: #60a5fa; }
.hero-sub { color: var(--cinza-200); font-size: 1.13rem; margin-bottom: 28px; max-width: 560px; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-checks { list-style: none; color: var(--cinza-200); font-size: .95rem; display: grid; gap: 6px; }

/* Mockup PDV (captura real do sistema) */
.mock-window { background: var(--cinza-50); border-radius: var(--radius); box-shadow: var(--sombra-forte); overflow: hidden; transform: rotate(1.5deg); }
.mock-bar { background: var(--cinza-900); display: flex; align-items: center; gap: 7px; padding: 10px 14px; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--cinza-500); }
.mock-bar span:first-child { background: #ef4444; } .mock-bar span:nth-child(2) { background: #f59e0b; } .mock-bar span:nth-child(3) { background: #22c55e; }
.mock-bar em { color: var(--cinza-400); font-style: normal; font-size: .8rem; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-img { width: 100%; display: block; }

/* ---------- Seções ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--cinza-100); }
.section-tag {
  display: block; text-align: center; color: var(--azul-600); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 10px;
}
.section-title { text-align: center; font-size: 2.1rem; margin-bottom: 44px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--branco); border: 1px solid var(--cinza-200); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--sombra); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-forte); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--cinza-500); }
.icon { font-size: 1.9rem; margin-bottom: 12px; }
.icon-blue {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--azul-50); border-radius: 12px;
}

/* Problemas */
.card-problema { text-align: center; border-top: 4px solid var(--azul-500); }
.card-problema .icon { margin-left: auto; margin-right: auto; }
.problemas-cta { text-align: center; margin-top: 34px; font-size: 1.15rem; color: var(--cinza-700); }
.problemas-cta strong { color: var(--azul-700); }

/* Segmentos */
.segmentos-grid { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.seg {
  background: var(--cinza-100); border: 1px solid var(--cinza-200); color: var(--cinza-700);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: .15s;
}
.seg:hover { background: var(--azul-50); border-color: var(--azul-500); color: var(--azul-700); }

/* Planos */
.planos-grid { align-items: stretch; }
.plano { display: flex; flex-direction: column; text-align: center; position: relative; }
.plano h3 { font-size: 1.25rem; }
.plano-desc { margin-bottom: 14px; }
.plano-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--azul-600); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plano-destaque { border: 2px solid var(--azul-600); box-shadow: var(--sombra-forte); }
.preco { margin-bottom: 18px; }
.preco em { display: block; color: var(--cinza-400); font-size: .85rem; text-decoration: line-through; font-style: normal; }
.preco span { font-size: 2.5rem; font-weight: 800; color: var(--azul-700); }
.preco small { color: var(--cinza-500); font-size: 1rem; }
.plano ul { list-style: none; text-align: left; margin-bottom: 24px; display: grid; gap: 9px; font-size: .93rem; color: var(--cinza-700); flex: 1; }
.planos-nota { text-align: center; margin-top: 26px; color: var(--cinza-400); font-size: .85rem; }

/* Implantação */
.passo { text-align: center; padding: 0 10px; }
.passo-num {
  width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--azul-500), var(--azul-700)); color: #fff;
  font-size: 1.4rem; font-weight: 800; border-radius: 50%; box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.passo h3 { margin-bottom: 6px; font-size: 1.05rem; }
.passo p { font-size: .92rem; color: var(--cinza-500); }

/* Depoimentos */
.depoimento p { font-style: italic; color: var(--cinza-700); margin-bottom: 16px; }
.dep-autor { border-top: 1px solid var(--cinza-200); padding-top: 12px; }
.dep-autor strong { display: block; color: var(--azul-800); }
.dep-autor span { font-size: .85rem; color: var(--cinza-400); }

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--azul-800), var(--azul-600));
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-final h2 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.cta-final p { color: var(--azul-100); font-size: 1.1rem; margin-bottom: 28px; }
.cta-horario { margin-top: 18px; font-size: .9rem !important; color: var(--cinza-200) !important; }

/* Rodapé */
.footer { background: var(--cinza-900); color: var(--cinza-400); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.logo-footer { height: 48px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; color: var(--cinza-400); text-decoration: none; font-size: .9rem; margin-bottom: 9px; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid var(--cinza-700); padding: 18px 0; text-align: center; font-size: .82rem; }

/* WhatsApp flutuante */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--verde-whats); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  animation: pulso 2.2s infinite;
  transition: transform .15s;
}
.whats-float:hover { transform: scale(1.08); }
@keyframes pulso {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visivel { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 56px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-mock { max-width: 480px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--cinza-200);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 18px;
    display: none; box-shadow: var(--sombra-forte);
  }
  .nav.aberto { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--cinza-100); }
  .btn-nav { margin-top: 12px; text-align: center; justify-content: center; border-bottom: none !important; }
  .btn-acesso { margin-top: 14px; justify-content: center; border-bottom: none !important; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-title { font-size: 1.65rem; }
  .cta-final h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .plano-destaque { order: -1; }
}
