:root {
  --bg: #0b1220;
  --bg-alt: #121a2b;
  --text: #eaf0ff;
  --muted: #b8c0d9;
  --brand: #6ea8fe;
  --brand-strong: #3f8cff;
  --accent: #ff6b6b;
  --card: #151f34;
  --border: #25304a;
  --focus: #ffcc66;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --base-font-size: 16px;
  --gradient-primary: linear-gradient(135deg, #3f8cff 0%, #6ea8fe 100%);
  --gradient-secondary: linear-gradient(135deg, #121a2b 0%, #0b1220 100%);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  font-size: var(--base-font-size);
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: #fff;
  color: #000;
  z-index: 1000;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Layout */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 1rem
}

.section {
  padding: 3.5rem 0
}

.section.alt {
  background: var(--bg-alt)
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  justify-content: center;
  display: flex;
  transition: all 0.3s ease;
}

.topbar.scrolled {
  background: rgba(11, 18, 32, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem
}

.brand-logo {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Efeito X ao abrir */
.nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  /* abaixo do menu */
}

.nav-toggle:checked~.overlay {
  display: block;
}

.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.menu li a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s ease;
}

.menu li a:hover::after,
.menu li a:focus::after {
  width: 100%;
}

.menu li a:hover,
.menu li a:focus {
  background: var(--card);
  outline: none
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 1001;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 2px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.access-tools {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-left: 1rem
}

.btn,
.btn-ghost {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: .6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease
}

.btn {
  background: var(--gradient-primary);
  color: #081022;
  border-color: var(--brand-strong);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #6ea8fe 0%, #3f8cff 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(63, 140, 255, 0.3);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost-demo {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
  padding: .6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-ghost-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-ghost-demo:hover::before {
  width: 100%;
}

.btn-ghost-demo:hover {
  color: #081022;
  transform: translateX(5px);
}

.btn-ghost:hover {
  background: var(--card)
}

.hero {
  padding: 0 1rem;
  background: var(--gradient-secondary);
  background-size: 400% 400%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(63, 140, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
  margin: .25rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border)
}

.hero .hero-media {
  position: relative;
  background: var(--gradient-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero .hero-media img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  z-index: 2;
  transition: transform 0.5s ease;
}

.hero .hero-media:hover img {
  transform: scale(1.02);
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start
}

section#sobre {
  padding: 3rem 1rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#sobre figure img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

section#sobre figure img:hover {
  transform: scale(1.02);
}

section#sobre figure {
  text-align: center;
}

section#como-funciona {
  padding: 3rem 1rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.list-check {
  padding-left: 1rem
}

.list-check li {
  margin: .4rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 170px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.card:hover::before {
  width: 8px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.card .icon {
  font-size: 1.6rem;
  margin-bottom: .25rem
}

section#impacto {
  padding: 3rem 1rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 120px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.kpi h3 {
  color: var(--brand);
  margin-top: 0;
}

section#galeria {
  padding: 3rem 1rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}

.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.01);
}

section#contato {
  padding: 3rem 1rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contato .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start
}

.contact-quick {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.contact-quick h3 {
  margin-bottom: 1rem;
  color: var(--brand);
}

.contact-quick ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.contact-quick a[aria-disabled="true"] {
  opacity: .6;
  pointer-events: none
}

.contact-quick a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.contact-quick a:hover,
.contact-quick a:focus {
  background: var(--gradient-primary);
  color: #081022;
  border-color: var(--brand-strong);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}

.contact-quick a[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Estilização do link do Instagram */
.instagram-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
  margin: 5px 0;
  border: none !important;
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
  color: white !important;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-text {
  font-size: 14px;
}

/* Chatbot de Dúvidas */

.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 520px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  border: 1px solid #e0e0e0;
  font-size: 14px;

  /* Animação de entrada */
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: var(--gradient-primary);
  color: white;
  padding: 15px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.chatbot-container.active .chatbot-header {
  transform: translateY(0);
  opacity: 1;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease 0.2s;
}

.chatbot-container.active .chatbot-messages {
  transform: translateY(0);
  opacity: 1;
}

.message {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 15px;
  line-height: 1.3;
  min-height: auto;
  word-spacing: 0.5px;
  letter-spacing: 0.2px;

  /* Animação das mensagens */
  animation: messageAppear 0.3s ease forwards;
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  background: #f1f1f1;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  color: #333;
  animation-delay: 0.1s;
}

.user-message {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  animation-delay: 0.1s;
}

.chatbot-questions {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #e0e0e0;
  background: white;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease 0.3s;
}

.chatbot-container.active .chatbot-questions {
  transform: translateY(0);
  opacity: 1;
}

.question-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #333;
  transform: translateX(-10px);
  opacity: 0;
  animation: buttonAppear 0.4s ease forwards;
}

.question-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--brand-strong);
  transform: translateX(0) scale(1.02);
}

.question-btn:nth-child(1) {
  animation-delay: 0.4s;
}

.question-btn:nth-child(2) {
  animation-delay: 0.45s;
}

.question-btn:nth-child(3) {
  animation-delay: 0.5s;
}

.question-btn:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes buttonAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-weight: 600;
  font-size: 14px;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(44, 90, 160, 0.4);
  background: var(--gradient-primary);
}

.chatbot-toggle:active {
  transform: translateY(0) scale(0.95);
}

.chat-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover .chat-icon {
  transform: scale(1.1);
}

.chat-text {
  font-size: 15px;
}

/* Scrollbar personalizada */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Efeito de pulso no botão quando o chat está fechado */
.chatbot-toggle:not(:hover) {
  animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
  }

  50% {
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.5);
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
  text-align: center;
}

.footer-inner {
  display: grid;
  gap: .25rem
}

.small {
  font-size: .9rem;
  color: var(--muted)
}

/* Foco visível sempre */
:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px
}

/* Responsividade */
@media (max-width: 768px) {
  .chatbot-container {
    width: 300px;
    height: 400px;
    right: 10px;
    bottom: 70px;
  }

  .chatbot-toggle {
    padding: 10px 16px;
    font-size: 13px;
  }

  .chatbot-header h3 {
    font-size: 15px;
  }

  .message {
    font-size: 12px;
    padding: 9px 13px;
  }

  .question-btn {
    font-size: 12px;
    padding: 9px 13px;
  }
}

/* Responsivo */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .steps {
    grid-template-columns: 1fr 1fr
  }

  .gallery {
    grid-template-columns: 1fr
  }
}

/* Esconder menu padrão no mobile */
@media (max-width: 680px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .5rem;
    min-width: 220px;
    z-index: 1000;
    box-shadow: var(--shadow);
  }

  /* Mostra menu quando checkbox marcado */
  #nav-toggle:checked~nav .menu {
    display: flex;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    z-index: 1001;
  }

  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Mostra overlay quando menu aberto */
  #nav-toggle:checked~.overlay {
    display: block;
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .steps {
    grid-template-columns: 1fr
  }

  .brand-text {
    font-size: 1.1rem;
  }
}

/* Animação do X */
.nav-toggle-label span:nth-child(1) {
  transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(2) {
  transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(3) {
  transition: all 0.3s ease;
}

#nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Tablet - 900px a 680px */
@media (max-width: 900px) and (min-width: 681px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-media {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    max-width: 500px;
  }

  .hero-ctas {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .grid-2 {
    gap: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
    min-height: 160px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  section#sobre figure img,
  section#como-funciona figure img {
    max-width: 350px;
  }
}

/* Mobile Large - 680px a 500px */
@media (max-width: 680px) and (min-width: 501px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 0 1rem;
    height: auto;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .hero-inner {
    gap: 1.25rem;
    padding: 2rem 0;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-media {
    max-width: 400px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    text-align: center;
    margin: 0 auto 0.5rem;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 400px;
    text-align: center;
    margin: 0 auto 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .hero-ctas .btn,
  .hero-ctas .btn-ghost-demo {
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-media {
    max-width: 400px;
    margin: 0 auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card {
    padding: 1rem;
    min-height: 140px;
  }

  .gallery {
    gap: 0.5rem;
  }

  section#sobre,
  section#como-funciona,
  section#impacto,
  section#galeria,
  section#contato {
    padding: 2rem 1rem;
  }

  section#sobre figure img,
  section#como-funciona figure img {
    max-width: 300px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .topbar-inner {
    min-height: 60px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Small - abaixo de 500px */
@media (max-width: 500px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    padding: 0 0.75rem;
    height: auto;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-inner {
    gap: 1rem;
    padding: 1.5rem 0;
    text-align: center;
  }


  .hero-media {
    max-width: 320px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.2;
    text-align: center;
    margin: 0 auto 0.5rem;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 300px;
    text-align: center;
    margin: 0 auto 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .hero-ctas .btn,
  .hero-ctas .btn-ghost-demo {
    width: 100%;
    max-width: 220px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin: 0 auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .card {
    padding: 0.875rem;
    min-height: 120px;
  }

  .card .icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .gallery {
    gap: 0.5rem;
  }

  section#sobre,
  section#como-funciona,
  section#impacto,
  section#galeria,
  section#contato {
    padding: 1.5rem 0.75rem;
  }

  section#sobre figure img,
  section#como-funciona figure img {
    max-width: 280px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .topbar-inner {
    min-height: 56px;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .btn,
  .btn-ghost,
  .btn-ghost-demo {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .chatbot-container {
    width: 280px;
    height: 380px;
    right: 10px;
    bottom: 60px;
  }

  .chatbot-toggle {
    padding: 8px 14px;
    font-size: 12px;
    bottom: 15px;
    right: 15px;
  }
}


@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-media {
    max-width: 280px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  section#sobre figure img,
  section#como-funciona figure img {
    max-width: 250px;
  }

  .card {
    padding: 0.75rem;
    min-height: 110px;
  }
}


@media (hover: none) and (pointer: coarse) {

  .menu li a:hover,
  .btn:hover,
  .btn-ghost:hover,
  .btn-ghost-demo:hover,
  .card:hover,
  .kpi:hover,
  .gallery img:hover,
  .gallery video:hover {
    transform: none;
  }

  .menu li a:active,
  .btn:active,
  .btn-ghost:active,
  .btn-ghost-demo:active {
    transform: scale(0.98);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100dvh;
    padding: 2rem 0;
  }

  .hero-inner {
    padding: 1rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  section#sobre,
  section#como-funciona,
  section#impacto,
  section#galeria,
  section#contato {
    padding: 2rem 1rem;
    min-height: auto;
  }
}
