/* =========================================
   1. Imports
========================================= */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
@import url("../fonts/MingCute.css");

/* =========================================
   2. Variables
========================================= */
:root {
  --primary-color: #6c72ff;
  --secondary-color: #57c3ff;
  --tertiary-color: #151518;
}

/* =========================================
   3. Resets & Globals
========================================= */
* {
  margin: 0;
  padding: 0;
  line-height: 1;
  list-style: none;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  padding: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
}

/* =========================================
   4. Utilities & Shared Components
========================================= */
.middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Section Headers --- */
.section-header-wrapper {
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.section-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 500;
  max-width: 800px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
}

section[id] {
  scroll-margin-top: 100px;
}

.plans-nav-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-btn:hover {
  background: #fff;
  color: var(--tertiary-color);
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

.btn-primary {
  position: relative;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 100px;
  padding: 16px 24px;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;

  &::before {
    content: "";
    position: absolute;
    height: 100%;
    aspect-ratio: 1;
    top: 0;
    left: 100%;
    border-radius: 100px;
    background: var(--primary-color);
    transition: all 0.3s ease;
  }

  &::after {
    content: "\e99b";
    font-family: "MingCute";
    font-size: 1.5rem;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    aspect-ratio: 1;
    top: 0;
    left: 100%;
    color: #fff;
  }

  &:hover {
    color: var(--primary-color);
  }
  &:hover::before {
    background: var(--tertiary-color);
  }

  &:hover::after {
    animation: btnIconConveyor 0.4s ease-out forwards;
    color: var(--primary-color);
  }
}

.btn-primary:hover {
  background-color: var(--tertiary-color);
}

/* =========================================
   5. Layout: Header & Navigation
========================================= */
header {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  border-radius: 25px;
  padding: 100px 30px 60px 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 100px;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

  &::before {
    content: "";
    position: absolute;
    height: 200px;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: linear-gradient(to bottom, #000000e1, #00000000);
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  &.sticky {
    position: fixed;
    background: rgba(13, 13, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    &::before {
      opacity: 0;
    }
  }

  &.sticky-hidden {
    transform: translateY(-100%);
    pointer-events: none; /* Garante que o menu escondido não bloqueie nada */
  }

  .logo {
    width: 150px;
    transition: width 0.3s ease;
  }

  .menu-trigger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
  }

  ul {
    display: flex;
    gap: 30px;
  }
}

/* =========================================
   5b. Mobile Menu (Top Sheet)
========================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.5s;
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu .menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-menu.open .menu-overlay {
  opacity: 1;
}

.mobile-menu .menu-sheet {
  position: relative;
  width: 100%;
  background: #f7f7f5;
  border-radius: 0 0 40px 40px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 30px 40px 60px 40px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

.menu-header .logo img {
  width: 180px;
}

.menu-close-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1a2a22;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 1.6rem;
  overflow: hidden;
}

.menu-close-btn:hover {
  background: var(--tertiary-color);
  color: #fff;
  transform: scale(1.05);
}

.menu-close-btn:hover i {
  animation: btnIconConveyor 0.4s ease-out forwards;
}

.mobile-menu.open .menu-sheet {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu ul li a {
  font-size: 1.8rem;
  font-weight: 500;
  color: #1a2a22;
}

.mobile-menu .btn-primary {
  margin-top: 40px;
  align-self: start;
}

/* =========================================
   6. Component: Hero
========================================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  height: calc(100% - 120px);
  padding: 0 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  top: 100px;
  h1 {
    font-size: 5rem;
    font-weight: 500;
    margin-bottom: 20px;
  }
  h4 {
    display: none;
  }
}

@keyframes btnIconConveyor {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  49% {
    transform: translateY(-15px);
    opacity: 0;
  }
  50% {
    transform: translateY(15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================
   7. Component: Slider / Background Slider
========================================= */
/* =========================================
   6b. Component: Signup CTA (Highlight)
   ========================================= */
.signup-cta-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 0 0;
  position: relative;
  z-index: 20;
}

.signup-cta-content {
  background: #10b981;
  width: 100%;
  border-radius: 30px;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(104, 255, 172, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

.signup-cta-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(28, 255, 179, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.signup-cta-content .cta-text {
  flex: 1;
}

.signup-cta-content h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1;
}

.signup-cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1;
}

.signup-cta-content .btn-primary {
  flex-shrink: 0;
  padding: 20px 40px;
  font-weight: 600;
  font-size: 1.1rem;
}

.signup-cta-content .btn-primary.btn-green {
  background-color: #0d9266;
  margin-right: 40px; /* Espaço para o ícone que "vaza" */
}

.signup-cta-content .btn-primary.btn-green::before {
  background-color: #0d9266;
}

.signup-cta-content .btn-primary.btn-green:hover {
  background-color: #0b1f16;
  color: #10b981;
}

.signup-cta-content .btn-primary.btn-green:hover::before {
  background-color: #0b1f16;
}

.signup-cta-content .btn-primary.btn-green:hover::after {
  color: #10b981;
}

@media (max-width: 1024px) {
  .signup-cta-content {
    padding: 50px 30px;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .signup-cta-content .btn-primary.btn-green {
    margin-right: 0; /* Centraliza sem a folga do ícone */
  }
}

@media (max-width: 768px) {
  .signup-cta-section {
    padding: 20px 15px;
    margin-top: 0;
  }

  .signup-cta-content {
    padding: 40px 20px;
  }

  .signup-cta-content h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .signup-cta-content p {
    font-size: 0.95rem;
  }

  .signup-cta-content .btn-primary.btn-green {
    width: fit-content;
    padding: 18px 54px 18px 30px; /* Padding extra na direita para o ícone */
    font-size: 1rem;
    margin: 0 auto;
    display: block;
    position: relative; /* Garante contexto para o pseudo-elemento */
  }

  /* Reposicionado o ícone para dentro do padding do botão no mobile para evitar vazamento da viewport */
  .signup-cta-content .btn-primary.btn-green::before,
  .signup-cta-content .btn-primary.btn-green::after {
    display: flex;
    left: auto;
    right: 0;
  }
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1.2s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1);
}

@keyframes kenBurns {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active img {
  animation: kenBurns 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide .hero h1,
.slide .hero .btn-primary {
  opacity: 1;
  transform: translateY(0);
}

.slide.active .hero h1 {
  animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.3s;
}

.slide.active .hero .btn-primary {
  animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.5s;
}

/* =========================================
   8. Component: Slider Navigation
========================================= */
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1280px;
  gap: 20px;
  z-index: 10;
}

.slider-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
  transition: color 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.slider-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.slider-btn.active {
  color: #fff;
}

.slider-btn .progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.slider-btn .progress-bar .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color);
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.slider-btn.active .progress-bar .fill {
  animation: progressFill 15s linear forwards;
}

.slider-btn .btn-content {
  display: flex;
  gap: 6px;
}

.slider-btn .num {
  font-weight: 700;
  font-size: 1.1rem;
}

.slider-btn .title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* =========================================
   9. Component: Features Grid
======================================== */
.features-container {
  max-width: 1280px;
  width: 100%;
  margin: 100px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.feature-card {
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

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

.feature-card:hover .card-icon-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .card-icon-btn::after {
  animation: btnIconConveyor 0.4s ease-out forwards;
}

.feature-card:hover .card-image-wrapper {
  width: 100%;
}

.feature-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

.card-light {
  background: #f7f7f5;
  color: #1a2a22;
}

.card-light:hover {
  background: var(--primary-color);
  color: #fff;
  transition: 0.3s all ease;
  .card-pill {
    border-color: #ffffff30;
    background: #ffffff30;
  }
  .card-icon-btn {
    background: var(--tertiary-color);
    color: #fff;
  }
}

.card-accent {
  background: var(--primary-color);
  color: #fff;
}

.card-accent:hover {
  background: var(--secondary-color);
  transition: 0.3s all ease;
  .card-icon-btn {
    background: var(--tertiary-color);
    color: #fff;
  }
  .card-pill {
    border-color: #ffffff30;
    background: #ffffff30;
  }
}

.card-top-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-pill {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-accent .card-pill {
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.card-icon-btn::after {
  content: "\e99b";
  font-family: "MingCute";
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card-light .card-image-wrapper {
  height: 350px;
  width: 100%;
  border-radius: 30px 30px 0 0;
  margin: -20px auto 0;
}

.card-light .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-accent {
  flex-direction: column;
}

.card-accent .card-image-wrapper {
  height: 350px;
  width: 100%;
  border-radius: 0 0 30px 30px;
  margin: 0 auto -20px;
}

.card-accent .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (max-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

/* =========================================
   10. Component: Solutions
========================================= */
.solutions-container {
  background-color: var(--tertiary-color);
  color: #fff;
  border-radius: 25px;
  width: 100%;
  margin: 100px auto;
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.solutions-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(108, 114, 255, 0.15) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

.solutions-header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
  max-width: 700px;
}

.solution-pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #fff;
}

.solutions-header h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}

.solution-card {
  background: #eeeeee;
  border-radius: 25px;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-10px);
  background: var(--primary-color);
}

.solution-image-wrapper {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.solution-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 25px;
}

.solution-text-wrapper {
  padding: 40px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--tertiary-color);
  border: 4px solid var(--tertiary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solution-icon i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}

.solution-icon i.icon-hover {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
}

.solution-card:hover .solution-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.solution-card:hover .solution-icon i.icon-default {
  opacity: 0;
  transform: translateY(-20px);
}

.solution-card:hover .solution-icon i.icon-hover {
  opacity: 1;
  transform: translateY(0);
}

.solution-content {
  flex: 1;
}

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  color: var(--tertiary-color);
  line-height: 1.2;
  transition: 0.3s all ease;
}

.solution-card:hover .solution-content h3 {
  color: #fff;
}

@media (max-width: 1024px) {
  .solutions-container .middle {
    flex-wrap: wrap;
  }
  .solution-card {
    min-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .solutions-container {
    padding: 40px 10px;
    border-radius: 30px;
  }
  .solutions-header h2 {
    font-size: 2.2rem;
  }
  .solution-card {
    min-width: 100%;
  }
}

/* =========================================
   11. Component: Differentials
========================================= */
.differentials-container {
  background: linear-gradient(to bottom, #eeeeee 0%, transparent 100%);
  border-radius: 25px;
  width: 100%;
  margin: 100px 0 0;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.differentials-header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
  max-width: 700px;
}

.differential-pill {
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #1a2a22;
}

.differentials-header h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  color: #1a2a22;
}

.differential-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.differential-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.differential-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.differential-content {
  flex: 1;
}

.differential-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #1a2a22;
  line-height: 1.2;
}

.differential-content p {
  font-size: 1.1rem;
  color: #4a5c53;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .differential-card {
    min-width: calc(50% - 15px);
  }
}

/* =========================================
   12. CTA Banner
========================================= */

.cta-banner-container {
  padding: 0 0 100px 0;
}

.cta-banner {
  background: var(--primary-color);
  border-radius: 40px;
  min-height: 600px;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-banner:hover .cta-bg {
  transform: scale(1.05);
}

.cta-content {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 100px;
}

.cta-content-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-content h2 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.cta-content p {
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.cta-content .btn-primary {
  position: relative;
  z-index: 1;
  font-weight: 600;
  padding: 18px 40px;
  font-size: 1.1rem;
  &::after {
    content: "\e99b";
    font-family: "MingCute";
    font-size: 1.5rem;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    aspect-ratio: 1;
    top: 0;
    left: 100%;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    min-height: 500px;
    padding: 40px 30px;
    border-radius: 30px;
  }
  .cta-content {
    position: relative;
    padding: 0 30px;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .cta-content-header {
    align-items: center;
    text-align: center;
  }
  .cta-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .middle,
  .hero {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .differentials-container {
    padding: 40px 10px;
  }
  .differentials-header h2 {
    font-size: 2.2rem;
  }
  .differential-card {
    min-width: 100%;
  }
}

/* =========================================
   12. Global Modal (Bottom Sheet Style)
========================================= */
.global-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.5s;
}

.global-modal.open {
  pointer-events: auto;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.global-modal.open .modal-overlay {
  opacity: 1;
}

.modal-sheet {
  position: relative;
  width: 100%;
  height: calc(
    100dvh - 60px
  ); /* Covers screen from bottom up leaving 60px gap */
  background: #f7f7f5;
  border-radius: 40px 40px 0 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.global-modal.open .modal-sheet {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #1a2a22;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 1.6rem;
  overflow: hidden;
  z-index: 10;
}

.modal-close-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--tertiary-color);
  color: #fff;
  transform: scale(1.05);
}

.modal-close-btn:hover i {
  animation: btnIconConveyor 0.4s ease-out forwards;
}

.modal-body {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
  align-items: stretch;
}

.modal-content-right {
  flex: 1;
  padding: 80px 80px 140px 80px;
  overflow-y: auto;
  height: 100%;
}

.modal-body.text-only .modal-content-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 80px;
}

.modal-body.text-only .modal-content-right p {
  max-width: 1280px;
}

.modal-image-left {
  width: 50%;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  position: relative;
}

.modal-image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body .card-pill {
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.modal-body h2 {
  font-size: 3.5rem;
  font-weight: 500;
  color: #1a2a22;
  margin-bottom: 30px;
  line-height: 1.1;
}

.modal-body p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4a5c53;
  margin-bottom: 20px;
}

/* =========================================
   11. Custom Global Scrollbar
========================================= */

:root {
  --sb-track-color: transparent;
  --sb-thumb-color: var(--primary-color);
  --sb-size: 5px;
}

::-webkit-scrollbar {
  width: var(--sb-size);
}

::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 0;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

/* =========================================
   14. Plans Section
========================================= */
.plans-container {
  padding: 120px 0 100px;
  margin-bottom: 100px;
  background: var(--tertiary-color);
  color: #fff;
  overflow: clip; /* Melhora o comportamento de transformações sem cortar sombras externas */
  border-radius: 25px;
}

.plans-header .section-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.plans-header h2 {
  color: #fff;
}

.plans-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 60px 0 0; /* Mais padding no topo para o hover de -15px */
  margin-top: -20px; /* Compensa o padding extra para manter a posição visual */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: stretch;
}

.plans-grid::-webkit-scrollbar {
  display: none;
}

.plans-carousel-wrapper {
  position: relative;
  width: 100%;
}

.plans-carousel-wrapper::before,
.plans-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0px;
  width: 10%; /* Ajustado para um fade mais sutil */
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.plans-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--tertiary-color), transparent);
}

.plans-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--tertiary-color), transparent);
}

.plan-card {
  flex: 0 0 380px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  pointer-events: none;
}

.plan-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-15px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
  background: #ffffff;
  color: var(--primary-color);
  border: none;
  /* transform: scale(1.05); */
  z-index: 5;
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-15px);
}

.plan-tag {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 6px 18px;
  background: var(--tertiary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.plan-info h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
}

.plan-price {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 8px;
  margin-right: 4px;
}

.plan-price .amount {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.plan-price .period {
  font-size: 1rem;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 8px;
  margin-left: 5px;
  opacity: 0.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 45px;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.plan-features li i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.plan-card.featured .plan-features li i {
  color: var(--primary-color);
}

.plan-card .btn-primary {
  width: calc(80% - 47px);
  padding: 18px;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto;
  transform: translateX(-25px);
}

.plan-card.featured .btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.plan-card.featured .btn-primary:hover {
  background: var(--tertiary-color);
}

/* =========================================
   15. FAQ Section
========================================= */
.faq-container {
  padding: 100px 0;
  background: #f7f7f5;
  border-radius: 25px;
}

.faq-header .section-pill {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-list {
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 25px;
  margin-bottom: 20px;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 30px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 20px;
  transition: background 0.3s ease;
}

.faq-question h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--tertiary-color);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

.faq-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tertiary-color);
  background: #fff;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-icon-btn i {
  font-size: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    padding 0.4s ease;
  padding: 0 35px;
  color: #4a5c53;
  line-height: 1.7;
}

.faq-answer p {
  padding-bottom: 30px;
  margin: 0;
  font-size: 1.1rem;
}

/* --- Active State --- */
.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(108, 114, 255, 0.08);
}

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

.faq-item.active .faq-icon-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 30px;
}

/* =========================================
   16. Contact Section
========================================= */
.contact-container {
  padding: 100px 0;
  background: #fff;
}

.contact-footer-group {
  position: relative;
  background: #fff;
  padding-bottom: 20px;
}

.contact-container {
  padding: 100px 0 0;
  position: relative;
  z-index: 10;
}

.contact-split-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fdfdfc;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  margin-bottom: -150px;
}

.contact-left {
  padding: 80px;
}

.contact-header h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin: 15px 0;
}

.contact-header p {
  color: #4a5c53;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Aumentado para dar mais respiro */
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  padding-left: 5px;
  display: block;
}

.form-group input,
.form-group textarea {
  padding: 18px 25px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary-color);
  outline: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a39b;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 8px 25px rgba(26, 42, 34, 0.08);
  transform: translateY(-2px);
}

.contact-left .btn-primary {
  align-self: center; /* Centraliza o botão */
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.contact-right {
  position: relative;
}

.contact-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-floating-pill {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pill-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.pill-text span {
  font-size: 0.85rem;
  color: #666;
  display: block;
}

.pill-text p {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
}

/* =========================================
   17. Footer
========================================= */
.footer {
  padding: 250px 0 60px;
  background: var(--tertiary-color);
  color: #fff;
  border-radius: 25px;
}
.footer .middle {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

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

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 25px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.safe-site {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Unified Media Queries --- */

@media (max-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-container .middle {
    flex-wrap: wrap;
  }
  .solution-card {
    min-width: calc(50% - 15px);
  }
  .differential-card {
    min-width: calc(50% - 15px);
  }
}

@media (max-width: 992px) {
  .btn-primary {
    margin-right: 48px;
  }
  nav .middle ul,
  nav .middle .btn-primary {
    display: none;
  }
  nav .menu-trigger {
    display: flex;
  }
  header {
    padding: 100px 10px 40px 10px;
    min-height: calc(100vh - 20px);
  }
  .slider-nav {
    padding: 0 20px;
    bottom: 20px;
    gap: 10px;
  }
  .slider-btn .title {
    display: none;
  }
  .slide img {
    object-position: 80%;
  }
  .hero {
    top: auto;
    bottom: 140px;
    height: auto;
  }
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .modal-image-left {
    width: 100%;
    height: 60vh;
  }
  .modal-content-right {
    height: auto;
    padding: 30px 30px 100px 30px;
  }
}

@media (max-width: 992px) {
  .section-header-flex {
    flex-direction: row; /* Mantém horizontal para não empurrar muito o grid */
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
  }
  .plans-nav-btns {
    display: flex; /* Restaurado! */
    margin-bottom: 20px;
  }
  .plans-grid {
    padding: 30px 20px 60px;
    margin-top: 0;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 5px;
  }
  .middle,
  .hero,
  .cta-content {
    padding: 0 20px;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  header .middle {
    padding: 25px;
  }
  .features-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  .solutions-container,
  .differentials-container,
  .plans-container,
  .faq-container,
  .contact-container {
    padding: 60px 10px;
    border-radius: 35px;
  }
  .contact-container {
    padding: 60px 0 0;
  }
  .contact-split-card {
    grid-template-columns: 1fr;
    margin-bottom: -100px;
  }
  .contact-left {
    padding: 40px 25px;
  }
  .contact-header h2 {
    font-size: 2.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-right {
    height: 300px;
    order: -1; /* Imagem no topo no mobile */
  }
  .footer {
    padding: 160px 0 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .solutions-header h2,
  .differentials-header h2,
  .plans-header h2,
  .faq-header h2,
  .contact-header h2 {
    font-size: 2rem;
  }
  .solution-card,
  .differential-card {
    min-width: 100%;
  }
  .cta-banner {
    min-height: 500px;
    padding: 40px 30px;
    border-radius: 30px;
  }
  .cta-content {
    position: relative;
    padding: 0 30px;
    gap: 30px;
  }
  .cta-content-header {
    align-items: center;
    text-align: center;
  }
  .modal-sheet {
    height: calc(100dvh - 30px);
    border-radius: 30px 30px 0 0;
  }
  .modal-close-btn {
    top: 20px;
    right: 20px;
  }
  .modal-image-left {
    height: 60vh;
  }
  .modal-content-right {
    padding: 30px 30px 120px 30px;
  }
  .modal-body p {
    font-size: 1.1rem;
  }
  .plans-grid {
    padding: 30px 20px 80px;
    gap: 20px;
  }
  .plan-price .amount {
    font-size: 3rem;
  }
  .plan-card.featured {
    transform: none;
    scale: 1;
  }
}
