:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --border: #e2e8f0;
  --radius: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid var(--dark-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto 14px;
  letter-spacing: -0.025em;
}

.hero p {
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Grid de Artigos */
.section {
  padding: 52px 0 72px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.card-banner {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1rem;
  color: #fff;
}

.banner-blue {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
}

.banner-slate {
  background: linear-gradient(135deg, #1e293b, #0f766e);
}

.banner-indigo {
  background: linear-gradient(135deg, #312e81, #2563eb);
}

.banner-emerald {
  background: linear-gradient(135deg, #065f46, #0d9488);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.card-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Página do Artigo */
.article-wrapper {
  max-width: 780px;
  margin: 40px auto 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.article-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-info {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 12px;
}

.article-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark-soft);
  margin: 22px 0 8px;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 22px;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 1.01rem;
}

.callout {
  background: #f1f5f9;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 0.96rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--dark);
}

tr:last-child td {
  border-bottom: none;
}

.article-footer-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.2s;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--dark);
  background: #fff;
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: #94a3b8;
  text-align: center;
  padding: 32px 20px;
  font-size: 0.88rem;
  border-top: 1px solid var(--dark-soft);
}

.footer strong {
  color: #fff;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}
