/* ============================================
   NEXA Soluções Inteligentes — Institutional Site
   Modern, clean, blue-centric design
   ============================================ */

:root {
  --primary: #027EDE;
  --primary-dark: #0157A0;
  --primary-light: #3BA3F0;
  --primary-soft: #E8F4FD;
  --navy: #0A1628;
  --navy-soft: #1A2B45;
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --success: #10B981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(2, 126, 222, 0.08);
  --shadow-lg: 0 20px 60px rgba(2, 126, 222, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

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

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(145deg, #0A1628 0%, #0D2B4E 40%, #027EDE 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(2, 126, 222, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 163, 240, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #A5D8FF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.02em;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: #5EC4FF;
  background: linear-gradient(90deg, #5EC4FF, #A5D8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  width: 100%;
  margin-top: 12px;
}

.btn-whatsapp:hover {
  background: #1DA851;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
}

.phone-img {
  width: 280px;
  border-radius: 28px;
  border: 8px solid #1a1a2e;
  box-shadow: inset 0 0 0 2px #333;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}

.floating-card .icon-circle {
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.floating-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: -1s;
}

.card-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: -2.5s;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ========== STATS ========== */
.stats {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

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

.stat-item {
  text-align: center;
  padding: 16px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== SECTIONS COMMON ========== */
.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header h2 .highlight {
  color: var(--primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ========== SOBRE ========== */
.sobre {
  padding: 100px 0;
  background: var(--bg);
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
}

.sobre-text strong {
  color: var(--text);
}

.check-list {
  list-style: none;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-list.light li {
  color: rgba(255,255,255,0.9);
}

.check-list.light li::before {
  background: white;
  color: var(--primary);
}

.sobre-visual {
  position: relative;
}

.sobre-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-height: 420px;
  object-position: center;
}

/* ========== DIFERENCIAIS ========== */
.diferenciais {
  padding: 100px 0;
  background: var(--white);
}

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

.diff-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.diff-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.diff-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== SOLUÇÕES ========== */
.solucoes {
  padding: 100px 0;
  background: var(--bg);
}

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

.module-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.module-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
}

.module-card.featured .module-img {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #E8F4FD, #D0E9FB);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.module-card.featured .module-img img {
  width: 220px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.module-card.featured .module-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-body {
  padding: 28px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--primary-soft);
}

.module-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.module-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.module-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 50px;
}

.cta-card {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
}

.cta-card h3,
.cta-card p {
  color: white;
}

.cta-card .module-icon {
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 1.8rem;
  font-weight: 300;
}

.cta-card .btn-primary {
  background: white;
  color: var(--primary-dark);
  margin-top: 8px;
  align-self: flex-start;
}

/* ========== INTEGRAÇÕES ========== */
.integracoes {
  padding: 100px 0;
  background: var(--white);
}

.integrations-hub {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.hub-center {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hub-logo {
  height: 36px;
  margin-bottom: 6px;
}

.hub-center span {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.hub-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.hub-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.hub-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.hub-item small {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Reorder for nice layout around center */
.hub-item:nth-child(2) { grid-column: 1; grid-row: 1; }
.hub-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.hub-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.hub-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.hub-item:nth-child(6) { grid-column: 1; grid-row: 3; }
.hub-item:nth-child(7) { grid-column: 3; grid-row: 3; }

/* ========== BENEFÍCIOS ========== */
.beneficios {
  padding: 80px 0;
  background: var(--bg);
}

.beneficios-card {
  background: linear-gradient(135deg, #0A1628 0%, #0D3A6E 50%, #027EDE 100%);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.beneficios-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.beneficios-text {
  position: relative;
  z-index: 1;
}

.beneficios-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 16px;
}

.beneficios-text > p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.beneficios-text .btn {
  margin-top: 28px;
}

.beneficios-numbers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.big-number {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 28px;
}

.big-number span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.big-number small {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ========== CONTATO ========== */
.contato {
  padding: 100px 0;
  background: var(--white);
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.contato-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.contato-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.contato-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contato-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contato-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.contato-phone:hover {
  color: var(--primary-dark);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 42px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.65);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-bottom .slogan {
  color: var(--primary-light);
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .card-1 { left: -20px; }
  .card-2 { right: -20px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-content {
    grid-template-columns: 1fr;
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-card.featured {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: column;
  }

  .module-card.featured .module-img {
    flex: none;
    padding: 32px;
  }

  .beneficios-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .integrations-hub {
    grid-template-columns: 1fr 1fr;
  }

  .hub-center {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 16px;
  }

  .hub-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .phone-img {
    width: 240px;
  }

  .floating-card {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .diff-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .module-card.featured {
    grid-column: span 1;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .beneficios-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Animations on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
