@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Variáveis de Cores (Paleta Principal) */
  --blue-royal: #341269;
  /* Roxo Escuro (Logo) */
  --white: #FFFFFF;
  --blue-soft: #F8F5FB;
  /* Fundo suave levemente arroxeado */
  --green-emerald: #F6C844;
  /* Amarelo/Dourado (Logo) */

  --grey-dark: #333333;
  --grey-medium: #666666;
  --grey-light: #E0E0E0;

  /* Variáveis Tecnológicas e Estilo Premium (Glassmorphism) */
  --gradient-tech: linear-gradient(135deg, var(--blue-royal) 0%, #6830B5 50%, var(--green-emerald) 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);

  /* Tipografia do Site */
  --font-main: 'Inter', sans-serif;

  /* Espaçamentos e Estruturas de Layout (Grid) */
  --spacing-section-y: 100px;
  --spacing-gutter: 32px;
  --max-width: 1200px;

  /* Raios de Borda e Sombreamentos (Shadows) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 60px rgba(0, 51, 230, 0.1);
}

/* RESET GLOBAL (Limpeza de Margens Nativas) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--grey-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
.text-gradient {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--grey-dark);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: var(--grey-medium);
  margin-bottom: 16px;
}

/* CLASSE PRINCIPAL DE CONTÊINER (Respeita o max-width central) */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  /* Base padding for smaller screens */
}

@media (min-width: 1024px) {
  .container {
    padding: 0 120px;
    /* Ensures ample spacing on sides inside max-width container 
       Actually, if max-width is 1200, padding 120px reduces content area to 960px.
       Let's keep padding 24px and rely on the auto margin for lateral breathing. */
    padding: 0 24px;
  }
}

/* COMPONENTES DOS BOTÕES */
.btn-white {
  background: var(--white);
  color: var(--blue-royal);
  border: 1px solid var(--grey-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: var(--blue-royal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-tech);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 51, 230, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 51, 230, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-royal);
  border-color: rgba(0, 51, 230, 0.2);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background-color: rgba(0, 51, 230, 0.05);
  border-color: var(--blue-royal);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--green-emerald);
  color: var(--white);
}

.btn-success:hover {
  background-color: #00a578;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 192, 139, 0.2);
}

/* Section Padding */
section {
  padding: var(--spacing-section-y) 0;
}

.bg-soft {
  background-color: var(--blue-soft);
}

.bg-blue {
  background-color: #0A0A0A;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.bg-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.bg-blue .container {
  position: relative;
  z-index: 1;
}

.bg-blue p,
.bg-blue h1,
.bg-blue h3 {
  color: var(--white);
}

.bg-blue h2 {
  background: linear-gradient(90deg, #FFFFFF, #A0A0A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ANTIGRAVITY BACKGROUND BLUR & PARTICLES */
.ag-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--blue-soft);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.ag-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  animation: agFloat 20s infinite ease-in-out alternate;
  will-change: transform;
}

.ag-blob-purple {
  width: 800px;
  height: 800px;
  background: var(--blue-royal);
  top: -200px;
  left: -200px;
}

.ag-blob-yellow {
  width: 600px;
  height: 600px;
  background: var(--green-emerald);
  bottom: -100px;
  right: -100px;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

@keyframes agFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 150px) scale(1.1);
  }

  100% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

.cursor {
  font-weight: 200;
  color: var(--blue-royal);
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* CABEÇALHO SUPERIOR (Nav) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-light);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-royal);
  letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--grey-dark);
}

.nav-links a:hover {
  color: var(--blue-royal);
}

/* SEÇÃO HERO (Primeira Dobra do Site) */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #FAFAFC;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(0, 51, 230, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  animation: blobBounce 10s infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 192, 139, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  animation: blobBounce 15s infinite alternate-reverse;
}

@keyframes blobBounce {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-gutter);
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 51, 230, 0.15);
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Mockup Dashboard HTML */
.mockup-dashboard {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-light);
  font-weight: 600;
  color: var(--blue-royal);
}

.mockup-header i {
  margin-right: 8px;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mockup-metrics .metric-card {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-light);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.mockup-metrics .metric-card.highlight {
  background: linear-gradient(135deg, var(--blue-royal), #6830B5);
  color: var(--white);
  border: none;
}

.mockup-metrics .metric-card.highlight .metric-title {
  color: rgba(255, 255, 255, 0.8);
}

.metric-title {
  font-size: 12px;
  color: var(--grey-medium);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.mockup-chart {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-light);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  gap: 16px;
  padding-top: 20px;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  gap: 8px;
}

.chart-bar {
  width: 100%;
  max-width: 40px;
  background: var(--blue-soft);
  border-radius: 4px 4px 0 0;
  height: 0;
  animation: barGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
  transition: background 0.3s;
}

.chart-bar.active {
  background: var(--gradient-tech);
  box-shadow: 0 -4px 15px rgba(246, 200, 68, 0.4);
}

.bar-label {
  font-size: 12px;
  color: var(--grey-medium);
  font-weight: 500;
}

@keyframes barGrow {
  from {
    height: 0;
  }

  to {
    height: var(--target-height);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Cabeçalhos de Seção Comuns */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  text-align: center;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-gutter);
}

/* ANIMAÇÕES GLOBAIS DE REVELAÇÃO (Scroll) */
.reveal-up {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ESTRUTURAS DOS CARTÕES (Cards Glassmorphism) */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.05s linear;
  border: 1px solid var(--glass-border);
  transform-style: preserve-3d;
}

.card:hover {
  box-shadow: 0 16px 48px rgba(0, 51, 230, 0.12), inset 0 0 0 1px var(--blue-royal);
  border-color: var(--blue-soft);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-soft);
  color: var(--blue-royal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

/* Steps - Como Funciona */
.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue-soft);
  margin-bottom: 16px;
  line-height: 1;
}

/* Pricing / Comercial */
.pricing-card {
  border: 2px solid var(--blue-royal);
  position: relative;
  overflow: hidden;
}

.pricing-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-light);
  margin-bottom: 24px;
}

.tax-rate {
  font-size: 56px;
  font-weight: 700;
  color: var(--blue-royal);
  margin: 16px 0;
  line-height: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--green-emerald);
  font-weight: bold;
}

/* Cashless vs Tickets */
.vs-container {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.vs-card {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.vs-card:hover {
  box-shadow: 0 16px 48px rgba(0, 51, 230, 0.12), inset 0 0 0 1px var(--blue-royal);
}

.vs-card.highlight {
  border-color: var(--blue-royal);
  box-shadow: 0 16px 48px rgba(0, 51, 230, 0.12);
}

.vs-card ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer */
footer {
  background: var(--grey-dark);
  color: var(--white);
  padding: 80px 0 40px;
}

footer p,
footer a,
footer li {
  color: var(--grey-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  text-align: center;
}

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  background-color: var(--green-emerald);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 20px rgba(0, 192, 139, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--blue-royal);
  cursor: pointer;
}

/* Button groups */
.hero-buttons {
  display: flex;
  gap: 16px;
}


/* Media Queries */
@media (max-width: 992px) {

  .hero .container,
  .vs-container,
  .grid-2,
  .grid-3,
  .grid-4,
  div.mockup-metrics {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  h2 {
    font-size: clamp(24px, 6vw, 28px);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    clip-path: circle(0% at top right);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    /* Garante que o flex seja aplicado apenas quando visível ou controlado pelo script */
    visibility: hidden;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
    opacity: 1;
    pointer-events: all;
    visibility: visible;
  }

  header.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .mockup-dashboard {
    padding: 20px;
    gap: 16px;
  }

  .mockup-metrics {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .chart-bars {
    height: 120px;
    gap: 8px;
  }

  .chart-bar {
    max-width: 30px;
  }

  .fab-whatsapp {
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    font-size: 24px;
  }

  .card {
    padding: 24px;
  }

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

/* FIX DEFINITIVO RESPONSIVIDADE DASHBOARD */
@media (max-width: 992px) {
  .mockup-metrics {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .mockup-metrics .metric-card {
    width: 100% !important;
    min-width: unset !important;
  }

  .chart-bars {
    height: 140px !important;
    gap: 10px !important;
  }
}