/* Gratislândia — Landing Page
   Cores: verde #22c55e, azul #2563eb, amarelo #facc15
   Tipografia: Poppins
   Mobile first
*/

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: block;
  line-height: 0;
}

.header-favicon {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 100px;
  max-height: 100px;
  height: auto;
  display: block;
}

.hero-headline {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 20ch;
}

.hero-subheadline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--yellow);
  color: var(--gray-900);
}

.btn-primary:hover {
  background: var(--yellow-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
}

/* Hero: fundo do botão "Jogar grátis" para o emoji ter contraste */
.hero .btn-secondary,
.hero-btn-jogar {
  background: #d1d5db !important;
  border-color: #d1d5db !important;
  color: var(--blue);
}

.hero .btn-secondary:hover,
.hero-btn-jogar:hover {
  background: transparent !important;
  color: var(--white);
  border-color: var(--white);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
}

.section-subtitle {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--gray-800);
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.section-cta .btn-primary {
  background: var(--yellow);
  color: var(--gray-900);
}

.section-cta .btn-primary:hover {
  background: var(--yellow-dark);
}

/* Game grid */
.section-games {
  background: var(--white);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.game-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.game-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.game-card-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.game-card-link:hover {
  background: var(--green-dark);
}

/* Category grid */
.section-categories {
  background: var(--gray-50);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--blue);
}

.category-icon {
  font-size: 2rem;
}

.category-name {
  font-size: 0.95rem;
}

/* How it works */
.section-how {
  background: var(--white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-800);
}

/* CTA final */
.section-cta-final {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
}

.section-cta-final .section-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.section-cta-final .btn-primary {
  background: var(--yellow);
  color: var(--gray-900);
}

.section-cta-final .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.section-cta-final .btn-secondary:hover {
  background: var(--white);
  color: var(--blue);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-100);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-copy .footer-synapto {
  color: var(--gray-100);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy .footer-synapto:hover {
  color: var(--green);
}

/* Tablet+ */
@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .steps {
    flex-direction: row;
    max-width: none;
    gap: 1.5rem;
  }

  .step {
    flex: 1;
  }
}

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

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

  .header-favicon {
    height: 70px;
  }

  .hero-logo {
    width: 250px;
    max-height: 250px;
  }
}
