@tailwind base;
@tailwind components;
@tailwind utilities;

/* Importar fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Configurações base */
@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
}

/* Componentes principais */
@layer components {
  /* Container responsivo */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  @media (min-width: 768px) {
    .container {
      padding: 0 2rem;
    }
  }

  /* Seções */
  .section {
    padding: 3rem 0;
  }

  @media (min-width: 768px) {
    .section {
      padding: 4rem 0;
    }
  }

  .section-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
  }

  .section-dark {
    background: #0a0a0a;
  }

  .section-gray {
    background: #111111;
  }

  /* Cards */
  .card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #333333;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
  }

  .card:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
  }

  .card-compact {
    padding: 1.5rem;
  }

  /* Botões */
  .btn {
    display: inline-block;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
  }

  .btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #15803d, #14532d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
  }

  .btn-secondary {
    background: transparent;
    color: #fbbf24;
    border: 2px solid #fbbf24;
    padding: 0.75rem 1.5rem;
  }

  .btn-secondary:hover {
    background: #fbbf24;
    color: #000000;
  }

  .btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
  }

  .btn-xl {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    border-radius: 1rem;
  }

  /* Typography */
  .text-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-glow {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }

  /* Formulários */
  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-input {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
  }

  .form-input::placeholder {
    color: #888888;
  }

  /* Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fbbf24;
  }

  /* Grid responsivo */
  .grid {
    display: grid;
    gap: 2rem;
  }

  .grid-1 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  @media (max-width: 768px) {
    .grid-2, .grid-3 {
      grid-template-columns: 1fr;
    }
  }

  /* Animações de scroll */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stats */
  .stat {
    text-align: center;
  }

  .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.875rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Testimonials */
  .testimonial {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #fbbf24;
  }

  .testimonial-quote {
    font-style: italic;
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .testimonial-author {
    font-weight: 600;
    color: #fbbf24;
  }

  /* FAQ */
  .faq-item {
    border: 1px solid #333333;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .faq-question {
    width: 100%;
    padding: 1.5rem;
    background: #1a1a1a;
    border: none;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-question:hover {
    background: #222222;
  }

  .faq-answer {
    padding: 0 1.5rem;
    color: #cccccc;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
  }

  .faq-icon {
    font-size: 1.2rem;
    color: #fbbf24;
    transition: transform 0.3s ease;
  }

  .faq-icon.rotated {
    transform: rotate(45deg);
  }

  /* Countdown */
  .countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
  }

  .countdown-item {
    background: #dc2626;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: 70px;
  }

  .countdown-number {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
  }

  .countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
  }

  /* Utilidades */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }

  .mb-4 { margin-bottom: 1rem; }
  .mb-8 { margin-bottom: 2rem; }
  .mb-12 { margin-bottom: 3rem; }

  .mt-4 { margin-top: 1rem; }
  .mt-8 { margin-top: 2rem; }

  .hidden { display: none; }
  .block { display: block; }
  .flex { display: flex; }
  .inline-flex { display: inline-flex; }

  .items-center { align-items: center; }
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }

  .w-full { width: 100%; }
  .max-w-4xl { max-width: 56rem; margin: 0 auto; }
  .max-w-2xl { max-width: 42rem; margin: 0 auto; }

  /* Responsividade para texto */
  .text-sm { font-size: 0.875rem; }
  .text-lg { font-size: 1.125rem; }
  .text-xl { font-size: 1.25rem; }
  .text-2xl { font-size: 1.5rem; }
  .text-3xl { font-size: 1.875rem; }
  .text-4xl { font-size: 2.25rem; }

  @media (min-width: 768px) {
    .md\\:text-2xl { font-size: 1.5rem; }
    .md\\:text-3xl { font-size: 1.875rem; }
    .md\\:text-4xl { font-size: 2.25rem; }
    .md\\:text-5xl { font-size: 3rem; }
  }

  /* Cores de texto */
  .text-white { color: #ffffff; }
  .text-gray-300 { color: #d1d5db; }
  .text-gray-400 { color: #9ca3af; }
  .text-yellow-400 { color: #fbbf24; }
  .text-red-400 { color: #f87171; }
  .text-green-400 { color: #4ade80; }

  /* Cores de fundo */
  .bg-red-600 { background-color: #dc2626; }
  .bg-green-600 { background-color: #16a34a; }

  /* Mobile first - botões ocupam largura total */
  @media (max-width: 767px) {
    .btn {
      width: 100%;
      text-align: center;
    }
  }
}

/* Animações personalizadas */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6); }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-glow {
  animation: glow 2s infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}