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

:root {
  /* Cores */
  --background: hsl(220, 17%, 7%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(220, 15%, 10%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(189, 94%, 43%);
  --primary-foreground: hsl(220, 17%, 7%);
  --secondary: hsl(220, 15%, 15%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(220, 15%, 15%);
  --muted-foreground: hsl(215, 20%, 65%);
  --border: hsl(220, 15%, 18%);
  --ring: hsl(189, 94%, 43%);

  /* Outros */
  --radius: 0.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(17, 19, 24, 0.95);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  height: 1.75rem;
  width: 1.75rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, hsl(220, 17%, 7%) 0%, hsl(220, 15%, 12%) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  padding: 4rem 0;
  max-width: 48rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

  .hero h1 {
    font-size: 3.75rem;
  }
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: hsl(189, 94%, 43%, 0.5);
  box-shadow: 0 0 40px hsla(189, 94%, 43%, 0.15);
}

.card-image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-header {
  padding: 1.5rem;
  padding-bottom: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--foreground);
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card-title {
  color: var(--primary);
}

.card-content {
  padding: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 1.5rem;
  padding-top: 1rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.card-link:hover {
  text-decoration: underline;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .grid-lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, hsl(220, 15%, 10%) 0%, hsl(220, 15%, 8%) 100%);
  border: 1px solid hsl(189, 94%, 43%, 0.2);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 3rem;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

.footer-content {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

/* Content Pages */
.content-page {
  padding: 3rem 0;
}

.content-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.content-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

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

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

.content-section p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.content-section ul {
  list-style-position: inside;
  margin-left: 1rem;
  color: var(--muted-foreground);
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section strong {
  color: var(--foreground);
}

.content-divider {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

/* About Page Specific */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

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

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  height: 3rem;
  width: 3rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Utilities */
.text-center {
  text-align: center;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Icons */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 3rem;
  height: 3rem;
}
