:root {
  /* Colors */
  --bg-deep: #050505; /* Fundo extremamente escuro */
  --bg-dark: #0D0D0D; /* Fundo principal escuro da paleta */
  --bg-glass: rgba(13, 13, 13, 0.7); /* Menos branco no glass para manter o dark mode */
  --bg-glass-light: rgba(13, 13, 13, 0.4);
  --border-glass: rgba(242, 242, 242, 0.1); /* Bordas brancas bem sutis (#F2F2F2) */
  
  --text-main: #F2F2F2; /* Cor clara da paleta */
  --text-muted: rgba(242, 242, 242, 0.6);
  
  --brand-primary: #12A661;
  --brand-secondary: #0AA640;
  --brand-dark: #035931;
  
  --glow-primary: rgba(18, 166, 97, 0.5);
  
  --glow-primary: rgba(18, 166, 97, 0.4);

  /* Typography */
  --font-heading: 'Telegraf', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

/* --- Fonts --- */
@font-face {
  font-family: 'Telegraf';
  src: url('./fonts/Telegraf/TelegrafRegular_272984568a25d8528fe2de8b20b29011.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Telegraf';
  src: url('./fonts/Telegraf/Telegraf UltraLight 200.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Telegraf';
  src: url('./fonts/Telegraf/Telegraf UltraBold 800.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background: radial-gradient(circle at top left, #035931 0%, var(--bg-dark) 40%, var(--bg-deep) 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  z-index: 10;
}

.logo {
  max-width: 150px;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #FFFFFF;
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 0;
}

.section {
  position: relative;
  z-index: 1;
}

/* --- Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 166, 97, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-primary);
}

.btn-solid-neon {
  background: #00E676;
  color: #035931;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
}

.btn-solid-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6);
  background: #00fa80;
}

.glass-card {
  background: var(--bg-glass-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(3, 89, 49, 0.2); /* Usa a cor brand-dark da paleta no hover */
  border-color: var(--brand-primary);
}

/* --- Specific Sections --- */

/* Hero */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero p.subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.scroll-indicator {
  margin-top: 3rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  fill: var(--text-main);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* Contrast (De x Para) */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .contrast-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contrast-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contrast-item > div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contrast-item .de {
  color: #FFFFFF;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 77, 77, 0.5);
  line-height: 1.5;
}

.contrast-item .de-tag {
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.contrast-item .para {
  color: #FFFFFF;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-primary);
  line-height: 1.5;
}

.contrast-item .para-tag {
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: "Ver mais →";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand-primary);
  font-weight: 600;
  transition: bottom 0.3s ease;
  font-family: var(--font-heading);
}

.solution-card:hover::after {
  bottom: 2rem;
}
.solution-card:hover h3, .solution-card:hover p {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

/* Cases */
.cases-carousel {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.case-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Backstage */
.backstage-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .backstage-content {
    flex-direction: row;
  }
}
.backstage-image {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 95vw;
  max-width: 1200px;
  height: 95vh;
  overflow-y: auto;
  padding: 4rem 3rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(242, 242, 242, 0.2);
}

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
}
.modal-body p {
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(242, 242, 242, 0.2);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 5rem;
  background: var(--bg-deep);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  color: var(--brand-primary);
}
