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

body {
  min-height: 100vh;
  min-height: 100dvh; /* Suporte para viewport dinâmica em móveis */
  background: #ffffff;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
  padding: clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); /* Suporte para notch */
}

.logo {
  margin-bottom: clamp(20px, 5vw, 40px);
  animation: fadeInDown 0.8s ease-out;
}

.logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 16px);
  margin-bottom: clamp(30px, 6vw, 40px);
}

.botao {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: clamp(14px, 3.5vw, 18px) clamp(20px, 5vw, 30px);
  background-color: #5dbb2f;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
  touch-action: manipulation; /* Melhor toque em móveis */
  -webkit-tap-highlight-color: transparent; /* Remove highlight no toque */
  user-select: none; /* Previne seleção em móveis */
}

.botao:nth-child(1) { animation-delay: 0.1s; }
.botao:nth-child(2) { animation-delay: 0.2s; }
.botao:nth-child(3) { animation-delay: 0.3s; }

.botao::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

/* Efeito hover para desktop */
@media (hover: hover) {
  .botao:hover::before {
    left: 100%;
  }

  .botao:hover {
    background-color: #75cf47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(97, 236, 42, 0.3);
  }
}

/* Efeito active/touch para mobile */
.botao:active {
  transform: scale(0.97);
  background-color: #75cf47;
}

.botao:focus-visible {
  outline: 2px solid #5dbb2f;
  outline-offset: 2px;
}

.botao-icon {
  width: clamp(22px, 5vw, 26px);
  height: clamp(22px, 5vw, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.botao-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.botao-text {
  flex: 1;
  text-align: left;
  line-height: 1.2;
  word-break: break-word; /* Quebra palavras longas */
}

.botao .subtexto {
  font-size: clamp(11px, 2.5vw, 13px);
  opacity: 0.85;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

footer {
  margin-top: auto;
  padding-top: clamp(40px, 8vw, 60px);
  font-size: clamp(12px, 3vw, 14px);
  color: #000000;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 150px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.7;
  flex-wrap: wrap; /* Permite quebra em telas muito pequenas */
}

.footer-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Animações */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================ */
/* MEDIA QUERIES RESPONSIVAS */
/* ============================================ */

/* Tablets e telas médias */
@media (min-width: 768px) {
  .container {
    max-width: 500px;
  }
  
  .logo img {
    max-width: 300px;
  }
  
  .botao {
    border-radius: 16px;
    padding: 20px 35px;
  }
  
  .botao-icon {
    width: 28px;
    height: 28px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 520px;
  }
  
  .logo img {
    max-width: 200px;
  }
  
  .botao {
    border-radius: 20px;
  }
}

/* Telas muito pequenas (até 360px) */
@media (max-width: 360px) {
  body {
    padding: 12px 16px;
  }
  
  .logo img {
    max-width: 150px;
  }
  
  .links-list {
    gap: 10px;
  }
  
  .botao {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    gap: 10px;
  }
  
  .botao-icon {
    width: 20px;
    height: 20px;
  }
}

/* Telas médias (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  body {
    padding: 20px;
  }
  
  .logo img {
    max-width: 180px;
  }
}

/* Modo paisagem em telas pequenas (ex: celular deitado) */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 16px 24px;
  }
  
  .logo {
    margin-bottom: 12px;
  }
  
  .logo img {
    max-width: 150px;
  }
  
  .links-list {
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .botao {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .botao-icon {
    width: 20px;
    height: 20px;
  }
  
  footer {
    padding-top: 16px;
  }
}

/* Modo paisagem em tablets */
@media (min-height: 601px) and (max-height: 900px) and (orientation: landscape) {
  .logo img {
    max-width: 200px;
  }
  
  .links-list {
    gap: 12px;
  }
}

/* Telas com notch (iPhone 14 Pro, etc) - safe area */
@supports (padding: max(0px)) {
  body {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Prefere reduzir movimento (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .botao::before {
    display: none;
  }
}

/* Tela com alto contraste (acessibilidade) */
@media (prefers-contrast: high) {
  .botao {
    border: 2px solid #ffffff;
  }
}

/* Dark mode (opcional - mantém o estilo original) */
@media (prefers-color-scheme: dark) {
  body {
    background: #ffffff;
  }
  
  .botao {
    background-color: #5dbb2f;
  }
}
