/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #0b0e14;
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #22c55e;
  color: #0b0e14;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #121826;
  border-bottom: 1px solid #374151;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #22c55e;
  outline: 2px solid #22c55e;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0b0e14 0%, #121826 100%);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #d1d5db;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
}

.section-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: #121826;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #374151;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.card-description {
  color: #d1d5db;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #22c55e;
}

.step-description {
  color: #d1d5db;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: #22c55e;
  color: #0b0e14;
}

.btn-primary:hover:not(:disabled) {
  background-color: #16a34a;
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.btn-primary:disabled {
  background-color: #6b7280;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background-color: transparent;
  color: #22c55e;
  border: 2px solid #22c55e;
}

.btn-secondary:hover {
  background-color: #22c55e;
  color: #0b0e14;
}

.btn-secondary:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Links */
.link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover,
.link:focus {
  color: #16a34a;
  text-decoration: underline;
}

.links-group {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background-color: #121826;
  border-top: 1px solid #374151;
  padding: 2rem 0;
  margin-top: 4rem;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #22c55e;
}

.disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* Page content */
.page-content {
  padding: 4rem 0;
  min-height: 60vh;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #ffffff;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content-section a {
  color: #22c55e;
  text-decoration: none;
}

.content-section a:hover,
.content-section a:focus {
  text-decoration: underline;
}

/* Error page */
.error-content {
  text-align: center;
  padding: 4rem 0;
}

.error-title {
  font-size: 6rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 1rem;
}

.error-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.error-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #d1d5db;
}

/* Utility classes */
.muted {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Media queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .links-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .error-title {
    font-size: 4rem;
  }

  .error-subtitle {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem;
  }
}

/* Focus styles para acessibilidade */
*:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Melhor contraste para links */
a:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}
