/* VARIÁVEIS TECH MODERNA */
:root {
  --bg-dark: #09090b;
  --surface-dark: #18181b;
  --surface-light: #ffffff;
  --bg-light: #f4f4f5;
  --text-light: #fafafa;
  --text-muted: #a1a1aa;
  --text-dark: #09090b;
  --text-dark-muted: #52525b;
  --accent-blue: #214afe;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);

  --radius-pill: 100px;
  --radius-bento: 32px;
  --font-main: "Inter", sans-serif;
}

/* BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Classes Utilitárias */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center {
  text-align: center;
}
.text-blue {
  color: var(--accent-blue);
}
.text-muted {
  color: var(--text-muted);
}
.text-small {
  font-size: 0.9rem;
}
.text-white {
  color: #fff !important;
}
.opacity-80 {
  opacity: 0.8;
}
.w-100 {
  width: 100%;
}
.mt-2 {
  margin-top: 16px;
}
.mt-4 {
  margin-top: 32px;
}
.pb-medium {
  padding-bottom: 80px;
}
.pb-large {
  padding-bottom: 120px;
}
.pt-large {
  padding-top: 120px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Utilitário para esconder itens apenas no celular (ex: <br>) */
.hide-mobile {
  display: block;
}

/* SECTIONS */
.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 120px 0;
}

/* NAVEGAÇÃO */
.navbar {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  width: 100%;
  max-width: 1152px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.nav-logo {
  height: 24px;
}

/* BOTÕES PILL */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
  border: none;
  letter-spacing: 0.5px;
}
.btn-pill {
  border-radius: var(--radius-pill);
  padding: 14px 28px;
}
.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background-color: #1a3bd6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(33, 74, 254, 0.2);
}

.btn-light {
  background-color: #fff;
  color: var(--accent-blue);
  font-weight: 600;
}
.btn-light:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--surface-dark);
  color: var(--text-light);
  border: 1px solid var(--border-dark);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 220px 0 120px;
  overflow: hidden;
}
.hero-glow-bg {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(33, 74, 254, 0.15) 0%,
    rgba(9, 9, 11, 0) 60%
  );
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 auto 48px;
  max-width: 700px;
}

/* BADGES */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.badge-outline {
  background: transparent;
}
.badge-dark {
  background: var(--surface-dark);
  color: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.badge-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
}

/* BENTO BOX GRID 1 */
.bento-section {
  padding: 40px 0 120px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 24px;
}
.bento-card {
  background-color: var(--surface-dark);
  border-radius: var(--radius-bento);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: transform 0.3s ease;
}
.bento-card:hover {
  transform: scale(0.99);
  border-color: rgba(33, 74, 254, 0.3);
}

/* SPANS */
.bento-span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-span-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}
.bento-span-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-content h2 {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.bento-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Bento Modificadores */
.bento-accent {
  background-color: var(--accent-blue);
  color: #fff;
  border: none;
}
.accent-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}
.bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  opacity: 0.1;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.flex-column-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.flex-center-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.gap-xl {
  gap: 40px;
}
.icon-medium {
  width: 32px;
  height: 32px;
}

/* Status Data */
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* PROGRESS CIRCLE */
.progress-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-blue) 0% 99%,
    rgba(255, 255, 255, 0.05) 99% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.progress-circle::after {
  content: "";
  position: absolute;
  inset: 8px;
  background-color: var(--surface-dark);
  border-radius: 50%;
}
.progress-text {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* SESSÃO CLARA - PROCESSO */
.light-title {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.light-subtitle {
  font-size: 1.25rem;
  color: var(--text-dark-muted);
  max-width: 600px;
  margin-top: 20px;
}

.bento-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.bento-card-light {
  background: var(--surface-light);
  padding: 40px;
  border-radius: var(--radius-bento);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.step-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(33, 74, 254, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 24px;
}
.bento-card-light h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.bento-card-light p {
  color: var(--text-dark-muted);
}

/* MARQUEE */
.border-top-bottom {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 32px 0;
}
.marquee-clean {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  width: max-content;
}
.marquee-group span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0 32px;
}
.marquee-group i {
  margin-right: 32px;
}

/* PORTFÓLIO */
.portfolio-section {
  position: relative;
}
.portfolio-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}
.portfolio-ticker:before,
.portfolio-ticker:after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.portfolio-ticker:before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(9, 9, 11, 0) 100%);
}
.portfolio-ticker:after {
  right: 0;
  background: linear-gradient(
    -90deg,
    var(--bg-dark) 0%,
    rgba(9, 9, 11, 0) 100%
  );
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  width: max-content;
}
.ticker-item {
  padding: 0 12px;
}
.ticker-item a {
  display: block;
  outline: none;
}
.ticker-item img {
  height: 480px;
  width: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  transition: transform 0.4s ease;
  border: 1px solid var(--border-dark);
}
.ticker-item img:hover {
  transform: scale(1.02);
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* PRICING (PLANOS) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.pricing-card {
  background-color: var(--surface-dark);
  border-radius: var(--radius-bento);
  padding: 40px 32px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-featured {
  background-color: var(--accent-blue);
  border: none;
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(33, 74, 254, 0.2);
  position: relative;
  z-index: 2;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.pricing-header {
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.pricing-featured .pricing-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.price {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1;
  letter-spacing: -1px;
}
.currency {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: top;
  margin-right: 4px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pricing-featured .pricing-features li {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-features i {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.highlight-feature {
  color: var(--text-light) !important;
  font-weight: 600;
}
.pricing-featured .highlight-feature {
  color: #fff !important;
}

/* MODAL / POPUP */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  overflow: auto;
}
.modal-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 20px;
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2001;
}
.close-modal:hover {
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.2);
}

/* FOOTER */
.footer-modern {
  padding: 40px 0 40px;
}
.cta-box {
  background: var(--surface-dark);
  border-radius: var(--radius-bento);
  padding: 80px 40px;
  border: 1px solid var(--border-dark);
  margin-bottom: 80px;
  background-image: radial-gradient(
    circle at top right,
    rgba(33, 74, 254, 0.1),
    transparent 40%
  );
}
.cta-box h2 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 1.2rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-logo {
  height: 24px;
  opacity: 0.5;
}

/* ==========================================
   DESIGN RESPONSIVO (MOBILE UI/UX)
   ========================================== */
@media (max-width: 991px) {
  /* Hero Section Fixes */
  .hero {
    padding: 140px 0 60px;
  } /* Menos espaço em cima */
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
  } /* Texto menor e coeso */
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 32px;
    padding: 0 16px;
  }
  .hide-mobile {
    display: none;
  } /* Esconde o <br> forçado */
  .w-100-mobile {
    width: 100%;
    max-width: 320px;
  } /* Botão adaptado no celular */

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-span-2x2,
  .bento-span-2x1,
  .bento-span-1x1 {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento-card {
    padding: 32px;
    min-height: 250px;
  }
  .flex-center-left {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  /* Outras seções */
  .bento-grid-light {
    grid-template-columns: 1fr;
  }
  .light-title {
    font-size: 2.2rem;
  }
  .ticker-item img {
    height: 380px;
    width: 260px;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pricing-featured {
    transform: scale(1);
  } /* Previne quebra de tela horizontal */

  /* Footer & Modal Fixes */
  .cta-box {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  .cta-box h2 {
    font-size: 2.2rem;
  }
  .cta-box p {
    font-size: 1.05rem;
  }

  /* Rodapé Empilhado (Corrigido o Acúmulo) */
  .footer-bottom {
    flex-direction: column; /* Coloca um embaixo do outro */
    gap: 16px; /* Espaço entre a logo e o texto */
    text-align: center;
  }

  .close-modal {
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
