/* ==========================================================================
   MPS SISTEMAS — Folha de Estilos Institucional & Holding
   Design System: Clean Luxury & Glow (Harmonizado com MPS MAKE)
   ========================================================================== */

:root {
  /* Tema Oficial MPS MAKE: Clean Luxury SaaS (Luminoso, Sofisticado, Alta Conversão) */
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #d97706;
  --ink: #1e293b;
  --ink-heading: #0f172a;
  --muted: #64748b;
  --accent: #b45309;
  --accent-gold: #d97706;
  --gold-grad: linear-gradient(135deg, #f5e6cf 0%, #d4af37 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --navy-brand: #08162b;
  --navy-card: #0b1f3a;
  --rose: #e11d48;
  --emerald: #059669;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --hero-grad-1: rgba(217, 119, 6, 0.09);
  --hero-grad-2: rgba(241, 245, 249, 0.85);
  --nav-bg: rgba(255, 255, 255, 0.94);
  --footer-bg: #0f172a;
}

/* Reset e Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

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

/* Barra de Progresso Dourada no Topo (como em MPS MAKE) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f5e6cf, #d4af37, #e29578);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Container */
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Tipografia e Utilitários */
.kicker {
  color: var(--accent-gold);
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent-gold);
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 44rem;
  margin: 0 0 28px;
  line-height: 1.65;
}

/* Barra Superior Informativa */
.top-notice {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  padding: 8px 0;
  color: var(--muted);
  text-align: center;
}

.top-notice strong {
  color: var(--ink-heading);
}

/* Navbar Fixa com Blur Translúcido */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav.top .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-heading);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:not(.btn) {
  color: var(--muted);
}

.nav-links a:not(.btn):hover {
  color: var(--ink-heading);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botões Oficiais no Padrão MPS MAKE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-grad);
  color: #070e18;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  filter: brightness(1.05);
  color: #070e18;
}

.btn.ghost {
  background: #ffffff;
  color: var(--ink-heading);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn.ghost-ink {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost-ink:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: var(--accent);
  color: var(--accent-gold);
}

.btn.whatsapp-green {
  background: #25d366;
  color: #ffffff;
  border-color: #20ba5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn.whatsapp-green:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

/* Hero Section com Gradiente Luminoso */
.hero {
  padding: 70px 0 80px;
  background: radial-gradient(1000px 500px at 80% -10%, var(--hero-grad-1), transparent 60%),
              radial-gradient(800px 400px at 10% 20%, var(--hero-grad-2), transparent 50%),
              var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-copy h1 .highlight {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* Card Nobre da Logomarca no Hero (Sem sobreposição!) */
.hero-emblem-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-emblem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
}

/* Moldura Proporcional do Brasão */
.emblem-display-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  background: var(--navy-brand);
  border-radius: 18px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(11, 28, 51, 0.25), 0 0 20px var(--gold-glow);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-display-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.emblem-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-heading);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.emblem-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 18px;
}

.emblem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}

.emblem-stat {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.emblem-stat span {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.emblem-stat strong {
  color: var(--ink-heading);
  font-size: 0.8125rem;
}

/* Faixa de Indicadores de Impacto */
.impact-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.impact-item .metric {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.impact-item .metric.gold {
  color: var(--accent-gold);
}

.impact-item .label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

/* Seções Gerais */
section {
  padding: 80px 0;
}

section.alt-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--ink-heading);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Vitrine dos Softwares Verticais */
.grid-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card.make-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
}

.product-card.erp-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.product-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 9999px;
}

.tag-make {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.tag-erp {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.product-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink-heading);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Mini Mockup Ilustrativo Dentro do Card */
.product-mockup-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  font-family: monospace;
  font-size: 0.8125rem;
  color: #f8fafc;
}

.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 0.75rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.mockup-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 8px;
}

.mockup-metric-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.mockup-metric-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature-check {
  font-weight: 800;
}

.make-card .feature-check { color: #e11d48; }
.erp-card .feature-check { color: #b45309; }

.product-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-actions .btn {
  flex: 1;
}

/* O Modelo da Holding */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: inline-block;
}

.feature-box h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink-heading);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Banner de Governança e Confiança */
.trust-banner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.trust-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.fact-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 10px;
}

.fact-item dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 4px;
}

.fact-item dd {
  font-size: 0.875rem;
  color: var(--ink-heading);
  font-weight: 600;
}

.trust-side-box {
  background: var(--navy-brand);
  color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(11, 28, 51, 0.2);
}

.trust-side-box .emblem-small {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.trust-side-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.trust-side-box p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Área de Acesso Rápido para Clientes */
.client-portal-bar {
  padding: 36px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portal-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Seção de Contato e Conversão */
.contact-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.form-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.err {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Rodapé Escuro Corporativo (padrão MPS MAKE) */
footer.site {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 32px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* Responsividade Mobile e Tablets */
@media (max-width: 960px) {
  .hero-grid,
  .grid-products,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid-features {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .nav-links {
    display: none;
  }

  .hero-emblem-card {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .form-row,
  .feature-list,
  .trust-facts,
  .emblem-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-actions,
  .form-footer,
  .portal-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-flex .btn,
  .form-footer .btn {
    width: 100%;
  }
}
