/* CSS Variables and Design System */
:root {
  --primary-orange: #f2521b;
  --secondary-orange: #f57c1d;
  --brand-gradient: linear-gradient(135deg, #f2521b 0%, #f57c1d 100%);
  --brand-dark: #1e2324;
  --brand-dark-rgb: 30, 35, 36;
  --white: #ffffff;
  --light-bg: #fdfdfd;
  --gray-text: #5c6264;
  --border-color: rgba(30, 35, 36, 0.08);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 30px;
  --box-shadow-sm: 0 2px 8px rgba(30, 35, 36, 0.04);
  --box-shadow-md: 0 10px 30px rgba(30, 35, 36, 0.08);
  --box-shadow-lg: 0 20px 40px rgba(30, 35, 36, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Alert Banner */
.top-banner {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(242, 82, 27, 0.2);
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-link {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  margin-left: 4px;
  position: relative;
  display: inline-block;
  transition: var(--transition-smooth);
}

.banner-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition-smooth);
  height: 90px;
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  height: 75px;
  box-shadow: var(--box-shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

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

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
  height: 34px;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-dark);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-orange);
  background-color: rgba(242, 82, 27, 0.04);
}

.nav-link-orange {
  color: var(--primary-orange);
}

.nav-link-orange:hover {
  background-color: rgba(242, 82, 27, 0.08);
}

.dropdown-arrow {
  transition: var(--transition-smooth);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary-orange);
}

/* Dropdown Menu styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-lg);
  padding: 16px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background-color: rgba(242, 82, 27, 0.04);
}

.item-icon {
  font-size: 1.25rem;
  background-color: rgba(242, 82, 27, 0.08);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.dropdown-item:hover .item-icon {
  background-color: var(--primary-orange);
  transform: scale(1.05);
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-dark);
  transition: var(--transition-fast);
}

.dropdown-item:hover .item-title {
  color: var(--primary-orange);
}

.item-desc {
  font-size: 0.78rem;
  color: var(--gray-text);
  line-height: 1.3;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(242, 82, 27, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 82, 27, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--brand-dark);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

/* Active Hamburger State */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 998;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 120px 24px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.nav-mobile {
  width: 100%;
}

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand-dark);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  display: block;
}

.mobile-link:hover {
  background-color: rgba(242, 82, 27, 0.04);
  color: var(--primary-orange);
}

/* Mobile dropdown styles */
.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand-dark);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-dropdown-header:hover {
  background-color: rgba(242, 82, 27, 0.04);
  color: var(--primary-orange);
}

.mobile-dropdown-header.active {
  color: var(--primary-orange);
}

.mobile-dropdown-header.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 20px;
  background-color: rgba(30, 35, 36, 0.01);
  border-radius: var(--border-radius-sm);
}

.mobile-dropdown-list.active {
  max-height: 250px;
}

.mobile-dropdown-list a {
  display: block;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-text);
  border-radius: var(--border-radius-sm);
}

.mobile-dropdown-list a:hover {
  color: var(--primary-orange);
  background-color: rgba(242, 82, 27, 0.04);
}

.mobile-cta-li {
  margin-top: 24px;
  padding: 0 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-header {
    height: 80px;
  }

  .header-actions .btn-primary {
    display: none;
    /* Hide button on tablet/mobile header, it's inside drawer */
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 32px;
  }

  .top-banner {
    font-size: 0.82rem;
    padding: 10px 16px;
  }
}

/* Seção Hero */
.hero-section {
  position: relative;
  height: 65vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%), url('../assets/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-container {
  width: 100%;
  max-width: 1520px;
  /* 1370.8px de conteúdo + 150px de padding (75px cada lado) */
  padding: 0 75px;
  /* Medida exata de referência lateral */
  margin: 0 auto;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-title .highlight-orange {
  color: var(--primary-orange);
  background: linear-gradient(135deg, #f2521b 0%, #f57c1d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.hero-description strong {
  color: var(--white);
  font-weight: 600;
}

.btn-hero {
  font-size: 1rem;
  padding: 14px 40px;
  margin-top: 12px;
}

/* Animação de Entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade do Hero */
@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    min-height: calc(85vh - 80px);
    padding-top: 120px;
    padding-bottom: 80px;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.4) 100%), url('../assets/background.webp');
  }

  .hero-container {
    padding: 0 40px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%), url('../assets/background.webp');
  }

  .hero-container {
    padding: 0 24px;
  }

  .hero-content {
    max-width: 100%;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

/* Seção Carrossel de Clientes */
.logo-carousel-section {
  background-color: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 80px;
  /* Espaço entre os logos */
  width: max-content;
  animation: scrollMarquee 10s linear infinite;
}

/* Pausar animação no hover para interação do usuário */
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slide img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  /* Mantém a proporção exata sem distorcer os logotipos */
  transition: var(--transition-smooth);
}

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

/* Animação do carrossel da direita para a esquerda */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Desloca exatamente a metade do track total (pois a segunda metade é duplicada) */
    transform: translateX(calc(-50% - 40px));
    /* -50% da largura total do container flexível mais metade do gap para alinhar perfeitamente */
  }
}

/* Responsividade do Carrossel */
@media (max-width: 768px) {
  .logo-carousel-section {
    padding: 30px 0;
  }

  .logo-track {
    gap: 50px;
    animation: scrollMarquee 25s linear infinite;
    /* Rola um pouco mais rápido em telas pequenas */
  }

  .logo-slide img {
    width: 80px;
    height: 80px;
  }

  @keyframes scrollMarquee {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-50% - 25px));
    }
  }
}

/* Seção de Estatísticas */
.stats-section {
  position: relative;
  background-color: #fafbfc;
  /* Fundo off-white elegante */
  padding: 80px 0 100px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Criar o triângulo apontando para baixo no final da seção */
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 15px;
  background-color: #fafbfc;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 10;
}

.stats-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.stats-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-dark);
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
}

.stats-title .highlight-orange-text {
  color: var(--primary-orange);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stats-card:hover {
  transform: translateY(-8px);
}

.stats-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon-wrapper {
  transform: scale(1.1);
}

.stats-icon {
  height: 48px;
  /* Mantém a legibilidade e proporção dos SVGs */
  width: auto;
}

.stats-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-orange);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.stats-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #5e6e73;
  /* Cor cinza-ardósia sutil e legível */
  max-width: 220px;
}

/* Responsividade da Seção de Estatísticas */
@media (max-width: 1024px) {
  .stats-section {
    padding: 60px 0 80px;
  }

  .stats-title {
    font-size: 1.85rem;
    margin-bottom: 45px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .stats-value {
    font-size: 2.2rem;
  }
}

@media (max-width: 568px) {
  .stats-section {
    padding: 50px 0 70px;
  }

  .stats-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-card {
    padding: 16px 8px;
  }

  .stats-value {
    font-size: 2rem;
  }
}

/* Seção de APIs */
.api-section {
  background-color: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.api-container {
  max-width: 1400px;
  /* Expandido para caber 3.5 cards na largura ideal de 369.8px */
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.api-header {
  margin-bottom: 48px;
}

.api-main-title {
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 16px;
  line-height: 1.25;
}

.api-subtitle {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  height: auto;
  line-height: 30px;
  margin-bottom: 8px;
}

.api-subtitle a {
  color: var(--brand-dark);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.api-subtitle a:hover {
  color: var(--primary-orange);
}

.api-sub-subtitle {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  height: 60px;
  line-height: 30px;
  color: #000000;
  max-width: 750px;
  margin: 0 auto;
}

.api-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  margin-bottom: 48px;
  padding: 10px 4px 28px;
  /* Espaço para sombra e barra de rolagem */
  text-align: left;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab;
  /* Indica que o painel é arrastável */
  user-select: none;
  /* Previne seleção acidental durante o scroll/arrasto */
}

/* Custom premium horizontal scrollbar */
.api-grid::-webkit-scrollbar {
  height: 6px;
}

.api-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  border-right: calc(100% - 200px) solid var(--white);
  /* Espreme a barra mantendo-a alinhada na esquerda em exatamente 200px */
  background-clip: padding-box;
}

.api-grid::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 10px;
  border-right: calc(100% - 200px) solid var(--white);
  /* Espreme o marcador mantendo-o alinhado na esquerda em exatamente 200px */
  background-clip: padding-box;
  transition: background 0.3s ease;
}

.api-grid::-webkit-scrollbar-thumb:hover {
  background: #ea5b0c;
}

.api-card {
  flex: 0 0 calc((100% - (3 * 16px)) / 3.5);
  /* Garante que caibam exatamente 3,5 cards na exibição normal */
  height: 438px;
  /* Box Model: 421.6px de conteúdo + 16px de padding vertical = 437.6px */
  padding: 8px;
  /* Padding exato de 8px em todas as direções */
  margin-left: 4px;
  /* Margem de 4px na esquerda */
  margin-right: 10px;
  /* Margem de 10px na direita */
  background: var(--white);
  border-radius: 20px;
  /* Bordas arredondadas que contornam o padding de 8px elegantemente */
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.api-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.api-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  /* Altura exata de 200px da imagem/overlay */
  overflow: hidden;
  border-radius: 17px;
  /* Bordas arredondadas exatas de 17px */
}

.api-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 17px;
}

.api-card:hover .api-card-image {
  transform: scale(1.05);
}

.api-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background-image: linear-gradient(90.93deg, rgba(255, 141, 78, 0.82) 4.35%, rgba(115, 115, 115, 0) 90.3%);
  background-attachment: scroll;
  background-clip: border-box;
  background-color: rgba(0, 0, 0, 0);
  background-origin: padding-box;
  border-radius: 17px;
  pointer-events: none;
}

.api-card-body {
  padding: 16px 12px 8px;
  /* Padding interno condensado para caber no box model */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.api-card-title {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  height: auto;
  line-height: 24px;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.api-card-text {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  height: 96px;
  /* Alinhamento fixo de 96px */
  line-height: 24px;
  color: #5e6e73;
  margin-bottom: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.api-card-link {
  font-optical-sizing: auto;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  margin-top: auto;
}

.api-card-link:hover {
  color: #ea5b0c;
}

.api-card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.api-card-link:hover::after {
  transform: translateX(4px);
}

.api-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-api-doc {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  padding: 16px 36px;
}

/* Responsividade da Seção de APIs */
@media (max-width: 768px) {
  .api-grid {
    mask-image: none;
    /* Desativa o fade lateral no mobile para rolagem fluída de borda a borda */
    -webkit-mask-image: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .api-grid::-webkit-scrollbar-track,
  .api-grid::-webkit-scrollbar-thumb {
    border-left: 0;
    border-right: calc(100% - 150px) solid var(--white);
    /* No mobile espreme para 150px alinhado à esquerda */
  }

  .api-card {
    flex: 0 0 320px;
    /* Reduz ligeiramente a largura no mobile */
    height: 460px;
    /* Expande um pouco para o texto fluir no box flexível */
  }

  .api-card-text {
    height: auto;
    /* Permite auto-estiramento na tela pequena */
  }

  .api-main-title {
    font-size: 28px;
  }

  .api-sub-subtitle {
    height: auto;
    margin-bottom: 20px;
  }
}

/* Seção de Desenvolvedores */
.dev-section {
  background-color: #f8f9fa;
  /* Fundo off-white cinza claro */
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.dev-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.dev-content {
  flex: 0 0 45%;
  text-align: left;
}

.dev-label {
  display: inline-block;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-orange);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.dev-title {
  font-size: 38px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.dev-doc-link {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: underline;
  display: inline-block;
  transition: color 0.3s ease;
}

.dev-doc-link:hover {
  color: var(--primary-orange);
}

.dev-contact-btn {
  display: inline-block;
  background-color: var(--primary-orange);
  color: var(--white) !important;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(242, 82, 27, 0.2);
  border: none;
  cursor: pointer;
}

.dev-contact-btn:hover {
  background-color: #ea5b0c;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(242, 82, 27, 0.3);
}

.dev-code-showcase {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
}

.dev-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 2px solid #e9ecef;
  /* Linha de divisão cinza claro */
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.dev-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: #5e6e73;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -2px;
  /* Encosta e sobrepõe a borda cinza */
}

.dev-tab:hover {
  color: var(--brand-dark);
}

.dev-tab.active {
  background: var(--white);
  /* Abas brancas (não escuras) */
  color: var(--brand-dark);
  border: 2px solid #e9ecef;
  border-bottom: 2px solid var(--white);
  /* Abre o fundo da aba fundindo-se com o topo */
}

/* Indicador laranja grosso na parte inferior da aba ativa como na foto */
.dev-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-orange);
  z-index: 3;
}

.dev-code-box {
  background: #1e222b;
  /* Editor de código escuro/grafite */
  border-radius: 0 0 12px 12px;
  /* Funde com a aba ativa */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  border: 1px solid #e9ecef;
  border-top: none;
}

/* Linha laranja vertical de accent na borda direita como na imagem de referência */
.dev-code-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-orange);
  pointer-events: none;
}

.dev-code-pre {
  margin: 0;
  padding: 30px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  /* COR DO TEXTO 100% BRANCA */
  overflow: auto;
  max-height: 400px;
  text-align: left;
}

/* Garante que qualquer elemento ou tag de código seja puramente branca, sem colorização de sintaxe */
.dev-code-pre code,
.dev-code-pre span {
  color: var(--white) !important;
  font-weight: normal !important;
  font-style: normal !important;
}

/* Estilização premium de Scrollbar do Editor */
.dev-code-pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dev-code-pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.dev-code-pre::-webkit-scrollbar-thumb {
  background: rgba(242, 82, 27, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.dev-code-pre::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

/* Responsividade da Seção de Desenvolvedores */
@media (max-width: 991px) {
  .dev-container {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .dev-content,
  .dev-code-showcase {
    flex: 0 0 100%;
    width: 100%;
  }

  .dev-content {
    text-align: center;
  }

  .dev-title {
    font-size: 32px;
    line-height: 40px;
  }

  .dev-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Seção FAQ (Perguntas Frequentes) */
.faq-section {
  background-color: var(--white);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.faq-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
}

.faq-content {
  flex: 0 0 40%;
  position: sticky;
  top: 120px;
  /* Gruda na tela ao rolar */
  text-align: left;
}

.faq-badge {
  display: inline-block;
  background-color: rgba(242, 82, 27, 0.12);
  color: var(--primary-orange);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.faq-title {
  font-size: 38px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.faq-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.faq-description strong {
  color: var(--brand-dark);
  font-weight: 700;
}

.faq-btn {
  display: inline-block;
  background-color: var(--primary-orange);
  color: var(--white) !important;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(242, 82, 27, 0.2);
  border: none;
  cursor: pointer;
}

.faq-btn:hover {
  background-color: #ea5b0c;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(242, 82, 27, 0.3);
}

.faq-accordion {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(242, 82, 27, 0.35);
  /* Borda laranja fina */
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  outline: none;
  padding: 24px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-orange);
}

.faq-arrow {
  color: var(--brand-dark);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-question:hover .faq-arrow {
  color: var(--primary-orange);
}

.faq-item.active .faq-question {
  color: var(--primary-orange);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary-orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-answer-content {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
}

/* Responsividade da Seção FAQ */
@media (max-width: 991px) {
  .faq-container {
    flex-direction: column;
    gap: 48px;
  }

  .faq-content {
    flex: 0 0 100%;
    position: static;
    text-align: center;
  }

  .faq-accordion {
    flex: 0 0 100%;
    width: 100%;
  }

  .faq-title {
    font-size: 32px;
    line-height: 40px;
  }

  .faq-question {
    padding: 20px 0;
    font-size: 15px;
  }
}

/* Rodapé Principal (Footer) */
.main-footer {
  background-color: #f8f9fa;
  /* Fundo off-white cinza claro da foto */
  padding: 80px 0 30px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-brand-column {
  flex: 1.5 1 250px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  color: #718096;
  /* Cinza médio da imagem */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--primary-orange);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2d3748;
  /* Tom escuro da imagem */
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #718096;
  /* Cinza médio */
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-orange);
  padding-left: 4px;
}

/* Link Laranja de Destaque */
.footer-link-highlight {
  color: var(--primary-orange) !important;
  font-weight: 600 !important;
  gap: 4px;
}

.footer-link-highlight svg {
  transition: transform 0.2s ease;
}

.footer-link-highlight:hover svg {
  transform: translate(2px, -2px);
}


/* Barra inferior */
.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.copyright-text {
  font-size: 13px;
  color: #a0aec0;
  font-weight: 500;
}

/* Responsividade do Rodapé */
@media (max-width: 768px) {
  .main-footer {
    padding: 60px 0 30px;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}