/* ============================================
   SNGPC PRO - Landing Page SaaS B2B
   Design Philosophy: Clean, Medical Tech, Trustworthy, Reliable
   ============================================ */

:root {
  --color-background: #ffffff;
  --color-foreground: #0f172a; /* Slate 900 */
  --color-primary: #0f172a; /* Slate Escuro/Navy da Marca */
  --color-primary-foreground: #ffffff;
  --color-secondary: #f8fafc; /* Slate 50 */
  --color-secondary-foreground: #334155;
  --color-secondary-blue: #f0fdfa; /* Teal ultra-leve para quebrar o branco */
  --color-muted-foreground: #64748b;
  --color-border: #e2e8f0;
  --color-accent: #10b981; /* Verde Esmeralda SNGPC */
  --radius: 0.65rem;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-background);
  color: var(--color-foreground);
  overflow-x: hidden;
}

/* ================= UTILITIES & ANIMATIONS ================= */
.w-full {
  width: 100%;
}
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 10px 10px -5px rgba(15, 23, 42, 0.04);
}
.shadow-accent-intense {
  box-shadow:
    0 20px 25px -5px rgba(16, 185, 129, 0.2),
    0 10px 10px -5px rgba(16, 185, 129, 0.1);
}
.rounded-lg {
  border-radius: 12px;
}
.text-center {
  text-align: center;
}
.bg-secondary-blue {
  background-color: var(--color-secondary-blue);
}
.border-y {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.accent-text {
  color: var(--color-accent) !important;
}

/* Animação Inicial no Hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Lógica de Movimento no Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Barra de Progresso Verde */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  z-index: 999;
}
.progress-bar {
  height: 0%;
  background-color: var(--color-accent);
  width: 100%;
  transition: height 0.1s;
}

/* ================= 1. HERO SECTION (Dark Premium) ================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Grid com linhas brancas translúcidas */
.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 40px 40px;
}

.grid-background.opacity-low {
  opacity: 0.15;
}

.grid-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 255, 255, 0.15) 25%,
      rgba(255, 255, 255, 0.15) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.15) 75%,
      rgba(255, 255, 255, 0.15) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(255, 255, 255, 0.15) 25%,
      rgba(255, 255, 255, 0.15) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.15) 75%,
      rgba(255, 255, 255, 0.15) 76%,
      transparent 77%,
      transparent
    );
  background-size: 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  mask-image: radial-gradient(circle 300px at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(
    circle 300px at 50% 50%,
    black,
    transparent
  );
}

.grid-mask.active {
  opacity: 1;
}

/* Bolhas de Gradiente: Azul claro e Verde esmeralda criando brilho no fundo escuro */
.gradient-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: blobAnimation 15s infinite alternate;
}
.blob-accent {
  width: 45%;
  height: 45%;
  right: -10%;
  top: -10%;
  background: rgba(16, 185, 129, 0.3);
  animation-delay: 2s;
}
.blob-dark {
  width: 45%;
  height: 45%;
  left: -10%;
  bottom: -20%;
  background: rgba(14, 165, 233, 0.2);
}

@keyframes blobAnimation {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) translateY(-30px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.9) translateY(20px);
    opacity: 0.5;
  }
}

/* Typography & Content do Hero */
.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  max-width: 54rem;
  margin: 0 auto;
  gap: 1.5rem;
}

.hero-section .badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-section .title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.05;
}
.hero-section .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 85%;
}

/* Botões do Hero */
.buttons-group {
  display: flex;
  gap: 1.2rem;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: calc(var(--radius));
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}

.hero-section .btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.hero-section .btn-primary:hover {
  background-color: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.hero-section .btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.hero-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ================= UTILITIES P/ SEÇÕES ADICIONAIS ================= */
.page-section {
  padding: 8rem 1.5rem;
}
.max-width-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  max-width: 750px;
  margin: 0 auto 5rem auto;
}
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.1;
}
.section-header p {
  font-size: 1.15rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* Botões Padrão para o resto da página */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}
.btn-primary:hover {
  background-color: #1e293b;
  box-shadow: 0 10px 15px rgba(15, 23, 42, 0.3);
}
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}
.btn-accent {
  background-color: var(--color-accent);
  color: white;
}
.btn-accent:hover {
  background-color: #059669;
}

/* ================= SHOWCASE DO MOCKUP ================= */
.mockup-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  max-width: 1000px;
  margin: 0 auto;
  transition: transform 0.5s ease;
}
.mockup-container:hover {
  transform: scale(1.02);
}
.mockup-header {
  background: #f8fafc;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
}
.mockup-header .dots {
  display: flex;
  gap: 8px;
}
.mockup-header .dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.dots .red {
  background: #ff5f56;
}
.dots .yellow {
  background: #ffbd2e;
}
.dots .green {
  background: #27c93f;
}
.mockup-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
}

/* ================= RECURSOS LAYOUT ALTERNADO ================= */
.feature-row {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-row.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
  text-align: left;
}
.feature-image {
  flex: 1.2;
  display: flex;
  justify-content: center;
}
.feature-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border: 1px solid var(--color-border);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}
.feature-text h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.feature-text p {
  color: var(--color-muted-foreground);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ================= CONFIANÇA/SEGURANÇA GRID ================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}
.trust-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.9;
}
.trust-card h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.trust-card p {
  color: var(--color-muted-foreground);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 280px;
}

/* ================= PREÇOS GRID & CARDS ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  padding: 4rem 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.pricing-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-5px);
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
  font-weight: 600;
}
.pricing-card .price {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.price .currency {
  font-size: 1.8rem;
  margin-top: 0.5rem;
  margin-right: 0.25rem;
}
.price .period {
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
  align-self: flex-end;
  margin-bottom: 0.6rem;
  margin-left: 0.25rem;
}
.billing-info {
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2.5rem;
}

.pricing-features {
  list-style: none;
  width: 100%;
  margin-bottom: 3rem;
  flex: 1;
}
.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--color-secondary-foreground);
  font-size: 0.98rem;
  text-align: left;
  display: flex;
  align-items: center;
}
.pricing-features li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 12px;
}
.pricing-features li:last-child {
  border-bottom: none;
}

/* Destaque Anual Verde Esmeralda */
.pricing-card.highlight {
  border: 2.5px solid var(--color-accent);
  transform: scale(1.03);
}
.highlight-badge {
  position: absolute;
  top: -18px;
  background: var(--color-accent);
  color: white;
  padding: 0.6rem 1.3rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}
.shadow-glow {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.shadow-glow:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  background: #f8fafc;
}
.flex {
  display: flex;
}
.gap-4 {
  gap: 1rem;
}
.justify-center {
  justify-content: center;
}
.mt-2 {
  margin-top: 0.5rem;
}
.text-xs {
  font-size: 0.75rem;
}
.opacity-60 {
  opacity: 0.6;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 960px) {
  .feature-row {
    flex-direction: column !important;
    gap: 3rem;
    text-align: center;
  }
  .feature-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .feature-row:last-child {
    margin-bottom: 0rem;
  }
}

@media (max-width: 768px) {
  .pricing-card.highlight {
    transform: scale(1);
    margin-top: 1.5rem;
  }
  .page-section {
    padding: 5rem 1.2rem;
  }
  .section-header {
    margin-bottom: 3rem;
  }
  .hero-section .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .grid-background {
    background-size: 30px 30px;
  }
}

/* ================= HEADER & LOGO ================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    backdrop-filter 0.3s ease;
}

.main-header.scrolled {
  background-color: rgba(15, 23, 42, 0.95); /* Slate escuro */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.btn-login {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

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

/* ================= SEÇÃO EXCLUSIVA DO APP MOBILE (ATUALIZADA) ================= */
.app-section {
  background-color: var(--color-primary); /* Slate escuro tecnológico */
  color: white;
  overflow: hidden;
}

.app-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.app-content {
  flex: 1.2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.app-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1.5rem 0 1rem;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
}

.app-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  color: #f8fafc;
  line-height: 1.5;
}

.app-icon {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  color: var(--color-accent);
}

.feature-item-text {
  flex: 1;
}

.app-features-list strong {
  color: #ffffff; /* Mantendo branco para contraste no fundo escuro */
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* ================= NOVOS ESTILOS DAS LOJAS (APP/PLAY) ================= */
.app-stores-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  pointer-events: auto; /* Garante que os links funcionem */
}

.store-button {
  display: block;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.store-button:hover {
  transform: translateY(-5px);
}

.store-button img {
  height: 45px; /* Altura padrão para emblemas de lojas */
  width: auto;
  display: block;
}

/* ================= MOLDURA DO TELEFONE REALISTA (CSS) ================= */
.app-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  pointer-events: none; /* A imagem não atrapalha o scroll */
}

.app-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: var(--color-accent); /* Brilho verde */
  filter: blur(120px);
  opacity: 0.15;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* A Moldura Externa do Telefone */
.realistic-phone-frame {
  position: relative;
  z-index: 1;
  max-width: 300px;
  width: 100%;
  background: #000000; /* Borda preta profunda */
  border-radius: 40px; /* Cantos arredondados do aparelho */
  padding: 12px; /* Espessura da moldura preta */
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7); /* Sombra pesada */
  border: 2px solid rgba(255, 255, 255, 0.05); /* Brilho sutil na borda externa */
  transition: transform 0.4s ease;
  overflow: hidden; /* Garante que a imagem fique dentro */
}

.realistic-phone-frame:hover {
  transform: translateY(-10px) rotateX(2deg);
}

/* O "Notch" (área da câmera/orador) */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #000000;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
  box-shadow: inset 0 -2px 5px rgba(255, 255, 255, 0.05);
}

/* Adicionando pequenos detalhes como o orador */
.phone-notch::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
}

/* A Imagem do Print (Screenshot) */
.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px; /* Arredondando os cantos do print */
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* ================= RESPONSIVO SEÇÃO APP ================= */
@media (max-width: 960px) {
  .app-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .app-content {
    align-items: center;
  }

  .app-features-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    margin-bottom: 0.5rem;
  }

  .app-stores-container {
    justify-content: center;
    margin-top: 2.5rem;
  }

  .realistic-phone-frame {
    max-width: 270px;
  }
}
