:root {
  /* Brand Colors */
  --bg-primary: #FFFFFF;
  --bg-alt: #F8F9FA;
  --brand-blue: #303092;
  --brand-blue-hover: #242470;
  --brand-blue-light: rgba(48, 48, 146, 0.08);
  --text-gray: #959798;
  --text-dark: #1F2937;
  --border-color: #E5E7EB;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(48, 48, 146, 0.25);
  
  --font-sans: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gray {
  color: var(--text-gray);
}

.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
}

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

.nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  position: relative;
  padding-bottom: 4px;
}

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

.nav a:not(.btn):hover {
  color: var(--brand-blue);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brand-blue);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.glass-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(at 20% 30%, rgba(48,48,146, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(149,151,152, 0.08) 0px, transparent 50%);
  z-index: -1;
}

.hero-chip {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(48, 48, 146, 0.1);
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.title-pills-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  vertical-align: middle;
  margin-top: 8px;
}

.title-pill {
  color: var(--brand-blue);
  background: var(--bg-primary);
  padding: 4px 16px;
  border-radius: 12px;
  display: inline-block;
}

.title-pills-connector {
  color: white;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 48px;
}

.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--brand-blue);
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -2;
  pointer-events: none;
}

.glow-1 { top: -100px; left: -100px; }
.glow-2 { bottom: -100px; right: -100px; background: #959798; opacity: 0.1; }

/* General Sections */
.section {
  padding: 100px 0;
}

.section-gray {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 64px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(48,48,146, 0.2);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-small {
  grid-column: span 1;
}

.bento-accent {
  background-color: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
}

.bento-accent .stat-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text-gray);
  font-size: 15px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(48,48,146, 0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 16px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-blue);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #171752 100%);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h3 {
  color: white;
  font-size: 32px;
  margin-bottom: 8px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
}

.cta-banner .btn-primary {
  background-color: white;
  color: var(--brand-blue);
  font-size: 16px;
  padding: 16px 32px;
}

.cta-banner .btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  padding: 80px 0 24px;
}

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

.footer-col h4 {
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-col .logo-text {
  color: var(--brand-blue);
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-gray);
  max-width: 300px;
}

.footer-link {
  display: block;
  color: var(--text-gray);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
}

/* Classes extras */
.text-blue { color: var(--brand-blue); }
.mb-5 { margin-bottom: 40px; }

/* Marquee / Infinite Scroll */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scrollLeft 35s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.company-logo {
  width: 160px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.8;
  filter: grayscale(100%);
  background-color: rgba(0,0,0,0.03); /* Fundo sutil caso a img seja demorada p/ carregar */
}

.company-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: var(--transition);
}

.company-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Map Link */
.map-container {
  display: flex;
  justify-content: flex-start;
  max-width: 1200px;
  width: 100%;
}

.map-link {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255,255,255,0.05);
  padding: 12px 24px;
  border-radius: 12px;
  color: #A1A1AA;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}

.map-link:hover {
  color: white;
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* Animations (Intersection Observer) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large {
    grid-column: span 2;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav.open {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .title-pills-wrapper {
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  
  .title-pill {
    padding: 2px 12px;
    border-radius: 8px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-large {
    grid-column: 1;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 32px 24px;
  }
  
  .cta-banner .btn-primary {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
