:root {
  --primary: #1E4A91;
  --primary-hover: #143468;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --bg-light: #f4f7fb;
  --text-main: #111827;
  --text-gray: #4b5563;
  --border-color: #e2e8f0;
  --border-blue: #dbeafe;
  --card-bg: #f1f5f9;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER DESKTOP E NAVEGAÇÃO
   ========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border-blue);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: clamp(35px, 4vw, 45px);
  width: auto;
  object-fit: contain;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  transition: 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-contact {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn-contact:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(30, 74, 145, 0.2);
}

.menu-btn {
  display: none;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn-back:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

/* =========================================
   MENU MOBILE OVERLAY (TIPO PICPAY)
   ========================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--bg-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-blue);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-links a i {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.mobile-menu-footer {
  padding: 20px;
  margin-top: auto;
  background: var(--bg-light);
  border-top: 1px solid var(--border-blue);
}

.btn-contact-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================
   PÁGINA INICIAL (INDEX)
   ========================================= */
.hero-sticky {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 80px 5% 0;
  background: linear-gradient(rgba(10, 15, 30, 0.70), rgba(10, 15, 30, 0.85)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
}

.hero-content {
  max-width: 650px;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #e5e7eb;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-primary {
  background: white;
  color: var(--text-main);
  padding: 18px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.content-slider {
  position: relative;
  z-index: 10;
  background-color: var(--bg-white);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.systems-grid-section {
  background-color: var(--bg-light);
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.systems-grid-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(30, 74, 145, 0.08) 0%, transparent 70%);
  z-index: -1;
}

.systems-grid-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(30, 74, 145, 0.06) 0%, transparent 70%);
  z-index: -1;
}

.container {
  max-width: 1300px;
  margin: auto;
}

.section-main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.cards-grid-picpay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.sys-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
  position: relative;
  overflow: hidden;
}

.sys-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.27);
  z-index: 1;
}

.sys-card:hover::before {
  left: 150%;
}

.sys-card>* {
  position: relative;
  z-index: 2;
}

.sys-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.sys-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  transition: 0.3s;
  letter-spacing: -0.5px;
}

.sys-card p {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 30px;
}

.sys-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--text-gray);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.sys-card-icon {
  font-size: 2.2rem;
  color: var(--text-main);
  background: var(--bg-light);
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 30px;
  transition: 0.3s;
}

.sys-card:hover .sys-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sys-card:hover .sys-arrow {
  transform: translateX(6px);
}

/* Identidade Visual Reino Cloud */
.card-reino:hover {
  border-color: #2563eb;
}

.card-reino .sys-card-icon {
  color: #2563eb;
  background: #eff6ff;
}

.card-reino:hover .sys-card-icon {
  background: #2563eb;
  color: white;
}

.card-reino:hover h3 {
  color: #2563eb;
}

.card-reino:hover .sys-arrow {
  color: #2563eb;
}

/* Identidade Visual MeuKumbu */
.card-kumbu:hover {
  border-color: #7e22ce;
}

.card-kumbu .sys-card-icon {
  color: #7e22ce;
  background: #faf5ff;
}

.card-kumbu:hover .sys-card-icon {
  background: #7e22ce;
  color: white;
}

.card-kumbu:hover h3 {
  color: #7e22ce;
}

.card-kumbu:hover .sys-arrow {
  color: #7e22ce;
}

/* Identidade Visual Pedjá */
.card-pedja:hover {
  border-color: #ea580c;
}

.card-pedja .sys-card-icon {
  color: #ea580c;
  background: #fff7ed;
}

.card-pedja:hover .sys-card-icon {
  background: #ea580c;
  color: white;
}

.card-pedja:hover h3 {
  color: #ea580c;
}

.card-pedja:hover .sys-arrow {
  color: #ea580c;
}

.picpay-authority-section {
  background-color: var(--primary);
  padding: 100px 5%;
}

.picpay-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 5%;
}

.picpay-text-area {
  width: 45%;
}

.picpay-text-area h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--bg-white);
}

.picpay-text-area p {
  font-size: 1.15rem;
  color: #e0e7ff;
  line-height: 1.6;
  margin-bottom: 40px;
}

.btn-outline {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  border: 2px solid var(--bg-white);
  color: var(--bg-white);
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.picpay-image-area {
  width: 50%;
  aspect-ratio: 4/3;
  background: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =========================================
   PÁGINA SOBRE
   ========================================= */
.master-block {
  background: linear-gradient(135deg, #0b1120 0%, #111827 100%);
  padding: 150px 5% 120px;
  color: white;
  width: 100%;
}

.master-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1300px;
  margin: 0 auto 60px;
}

.master-title {
  max-width: 800px;
}

.master-title h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: white;
  letter-spacing: -1px;
}

.master-title p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
}

/* Estilização especial para a última frase de impacto */
.master-title p:last-child {
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
  margin-top: 35px;
  border-left: 4px solid var(--primary);
  padding-left: 18px;
}

.btn-white {
  background: white;
  color: var(--text-main);
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
  white-space: nowrap;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
  max-width: 1300px;
  margin: 60px auto 0;
}

.team-card {
  text-align: center;
}

.team-photo-box {
  background-color: var(--primary);
  border-radius: 30px;
  aspect-ratio: 4 / 5;
  margin-bottom: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.4s;
}

.team-card:hover .team-photo-box img {
  transform: scale(1.05);
}

.team-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.team-info p {
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.1rem;
}

.team-social a:hover {
  background: var(--primary);
  color: white;
}

/* =========================================
   PÁGINAS DE PRODUTOS
   ========================================= */
.product-hero {
  text-align: center;
  padding: 150px 20px 60px;
  background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg-white) 100%);
  position: relative;
}

.product-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(30, 74, 145, 0.1);
}

.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
}

.product-hero p.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

.product-hero .btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(30, 74, 145, 0.2);
}

.product-hero .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(30, 74, 145, 0.3);
}

.system-preview {
  max-width: 1000px;
  margin: -20px auto 80px;
  padding: 0 20px;
}

.preview-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 4rem;
  overflow: hidden;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-section {
  padding: 40px 5% 100px;
  background: var(--bg-white);
}

.features-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--bg-gray);
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid transparent;
  text-align: left;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: white;
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 1rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-blue);
  padding: 50px 20px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo-img {
  height: clamp(40px, 6vw, 60px);
  width: auto;
  object-fit: contain;
}

/* =========================================
   AJUSTES MOBILE (A MÁGICA ACONTECE AQUI)
   ========================================= */
@media (max-width: 900px) {
  header {
    padding: 10px 15px;
  }

  .desktop-nav,
  .desktop-btn {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .logo-img {
    height: 32px;
  }

  /* Ajustes Index */
  .hero-sticky {
    padding: 100px 20px 0;
  }

  .hero-content {
    text-align: left;
    margin: 0;
    /* Alinhamento à esquerda mantido */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 18px 20px;
  }

  .systems-grid-section {
    padding: 60px 5%;
  }

  .section-main-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: left;
  }

  /* Título à esquerda */

  .picpay-authority-section {
    padding: 80px 5%;
  }

  .picpay-container {
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  /* Textos à esquerda */
  .picpay-text-area {
    width: 100%;
  }

  .picpay-text-area h2 {
    font-size: 2.2rem;
  }

  .picpay-image-area {
    width: 100%;
    border-radius: 24px;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Ajustes SOBRE */
  .master-block {
    padding: 120px 20px 80px;
  }

  /* Ajuste de padding */
  .master-header {
    flex-direction: column;
    text-align: left;
    /* ALINHAMENTO À ESQUERDA AQUI! */
  }

  .master-title h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .master-title p {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }

  .btn-white {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
  }

  .team-photo-box {
    aspect-ratio: 1 / 1;
  }

  /* Ajustes Produtos */
  .product-hero {
    padding: 120px 15px 40px;
  }

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

  .system-preview {
    margin: 0px 10px 40px;
    padding: 0;
  }

  .preview-box {
    border-radius: 16px;
  }

  .features-section {
    padding: 30px 15px 60px;
  }

  .features-grid {
    gap: 20px;
  }

  .feature-card {
    padding: 30px 24px;
    border-radius: 20px;
  }
}

/* =========================================
   BOTÃO FLUTUANTE DE SUPORTE (WHATSAPP)
   ========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27);
  animation: pulse-wpp 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #20ba56;
}

@keyframes pulse-wpp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 900px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}