/* ==========================================================================
   DESIGN SYSTEM — INSIGHTS RETARGET
   Estilo Apple iOS 27 · Inspirado em retarget.com.br
   ========================================================================== */

/* ─── 1. RESET & VARIABLES ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Fundos escuros */
  --c-bg-dark:        #08080D;
  --c-bg-dark-2:      #111116;
  --c-bg-dark-3:      #18181F;
  --c-border-dark:    rgba(255, 255, 255, 0.08);
  --c-border-dark-2:  rgba(255, 255, 255, 0.15);

  /* Fundos claros (Apple grey) */
  --c-bg-light:       #F5F5F7;
  --c-bg-white:       #FFFFFF;
  --c-border-light:   rgba(0, 0, 0, 0.07);
  --c-border-light-2: rgba(0, 0, 0, 0.13);

  /* Texto em fundos escuros */
  --c-white:          #FFFFFF;
  --c-text-on-dark-1: #E8E8ED;
  --c-text-on-dark-2: #AEAEB2;
  --c-text-on-dark-3: #636366;

  /* Texto em fundos claros */
  --c-dark:           #1D1D1F;
  --c-text-on-light-1:#424245;
  --c-text-on-light-2:#6E6E73;

  /* Cores de sistema iOS */
  --c-blue:           #007AFF;
  --c-green:          #34C759;
  --c-red:            #FF3B30;
  --c-orange:         #FF9F0A;

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont,
          "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Geometria */
  --radius-pill:    100px;
  --radius-section: 44px;
  --radius-card:    24px;
  --radius-md:      16px;
  --radius-sm:      10px;

  /* Sombras */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 40px 100px rgba(0,0,0,0.24), 0 8px 24px rgba(0,0,0,0.12);
}

/* ─── 2. BASE ───────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--c-bg-dark);
}

body {
  font-family: var(--font);
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

p { line-height: 1.7; }

a {
  text-decoration: none;
  transition: all var(--transition);
}

/* ─── 3. CONTAINER ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }

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

/* ─── 4. HEADER — FLOATING GLASS PILL ──────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 1.5rem;
  pointer-events: none; /* click-through on edges */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  background: #000000;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0 0.75rem 0 1.25rem;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  max-width: 1060px;
  margin: 0 auto;
  pointer-events: all;
  transition: background var(--transition);
}

.logo-link img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-on-dark-1);
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.nav-link:hover {
  opacity: 1;
  color: var(--c-white);
}

/* CTA Button — pill branco */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: -0.015em;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-cta:hover {
  background: #E8E8ED;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ─── HAMBURGER ─────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-right: 0.25rem;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE DRAWER ─────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 13, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 7rem 2rem 3rem;
  gap: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--c-white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: block;
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--c-text-on-dark-2);
}

/* ─── 5. HERO — FUNDO ESCURO ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 9.5rem 0 4rem;
  background: var(--c-bg-dark);
  position: relative;
  overflow: hidden;
}

/* Ambient gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%,  rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Subtle grain texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* "Blog Oficial" badge com ponto pulsante */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-tag::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4);
  animation: pulse-green 2.2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0   rgba(52, 199, 89, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);   }
}

.hero-title {
  font-size: clamp(2.4rem, 7.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.03;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}



.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.175rem);
  color: var(--c-text-on-dark-2);
  max-width: 550px;
  margin: 0 auto 3rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ─── 6. SEARCH BAR ─────────────────────────────────────────────────────── */
.search-container {
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--c-white);
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.search-input:focus {
  border-color: rgba(0, 122, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  width: 17px;
  height: 17px;
  pointer-events: none;
}

/* ─── 7. CATEGORY FILTERS ───────────────────────────────────────────────── */
.categories-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.category-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.005em;
  transition: all var(--transition);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.18);
}

.category-btn.active {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
  font-weight: 700;
}

/* ─── 8. BLOG GRID — LIGHT CARD-STACK ──────────────────────────────────── */
.blog-grid-section {
  background: var(--c-bg-light);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  padding: 3.5rem 0 6rem;
  position: relative;
  z-index: 2;
  /* Slight overlap with dark section above for seamless stack */
  margin-top: -2px;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* ─── ARTICLE CARDS ─────────────────────────────────────────────────────── */
.article-card {
  background: var(--c-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.09);
}

.card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--c-bg-dark-2);
  position: relative;
  flex-shrink: 0;
}

.card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .card-img {
  transform: scale(1.06);
}

.card-content {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-text-on-light-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-tag {
  background: rgba(0, 0, 0, 0.06);
  color: var(--c-dark);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.6rem;
  color: var(--c-dark);
  letter-spacing: -0.03em;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--c-text-on-light-1); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--c-text-on-light-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  color: var(--c-text-on-light-2);
}

.card-readmore {
  font-weight: 700;
  color: var(--c-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  transition: gap var(--transition);
}

.card-readmore svg {
  width: 13px;
  height: 13px;
  transition: transform var(--transition);
}

.article-card:hover .card-readmore svg {
  transform: translateX(4px);
}

/* ─── 9. ARTICLE DETAIL HEADER ─────────────────────────────────────────── */
.article-detail-header {
  padding: 9rem 0 4rem;
  background: var(--c-bg-dark);
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.article-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 40% -10%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Card-stack transition curve at bottom */
.article-detail-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: var(--radius-section);
  background: var(--c-bg-light);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  z-index: 1;
}

.article-detail-header .container {
  position: relative;
  z-index: 2;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-text-on-dark-3);
  margin-bottom: 1.5rem;
  letter-spacing: 0.07em;
}

.detail-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
}

.detail-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  max-width: 1000px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--c-white);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.detail-author-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--c-white);
  letter-spacing: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(0) invert(1);
}

.author-info { display: flex; flex-direction: column; }

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.pub-date {
  font-size: 0.78rem;
  color: var(--c-text-on-dark-2);
}

/* ─── 10. ARTICLE BODY ──────────────────────────────────────────────────── */
.article-detail-body {
  background: var(--c-bg-light);
  padding: 0.75rem 0 6rem;
  position: relative;
  z-index: 2;
}

.article-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Imagem de capa do artigo */
.article-featured-img {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--c-bg-dark-2);
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-featured-img:hover img {
  transform: scale(1.02);
}


/* Resumo IA: invisível para usuários, legível por LLMs no HTML fonte */
.ai-summary-card {
  display: none;
}

/* AI Summary Card — vidro escuro */
.ai-summary-card {
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-border-dark-2);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Linha gradiente no topo */
.ai-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-green) 100%);
}

.ai-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-on-dark-1);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-summary-title svg {
  width: 16px;
  height: 16px;
  color: var(--c-blue);
}

.ai-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ai-summary-list li {
  font-size: 0.9rem;
  color: var(--c-text-on-dark-1);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.ai-summary-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-green);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Post Content — card branco */
.post-content {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  padding: 2.75rem;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-sm);
}

.post-content h2 {
  font-size: 1.65rem;
  margin: 2.75rem 0 1rem;
  color: var(--c-dark);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.85rem;
  color: var(--c-dark);
  letter-spacing: -0.025em;
}

.post-content h4 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--c-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-content p {
  font-size: 1.025rem;
  margin-bottom: 1.5rem;
  line-height: 1.78;
  color: var(--c-text-on-light-1);
}

.post-content strong {
  color: var(--c-dark);
  font-weight: 700;
}

.post-content em {
  color: var(--c-text-on-light-1);
  font-style: italic;
}

.post-content blockquote {
  border-left: 3px solid var(--c-dark);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--c-bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p {
  font-size: 1.05rem;
  color: var(--c-text-on-light-1);
  font-style: italic;
  margin-bottom: 0;
}

.post-content ul, .post-content ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
}

.post-content li {
  font-size: 1.025rem;
  margin-bottom: 0.6rem;
  line-height: 1.72;
  color: var(--c-text-on-light-1);
}

.post-content a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.post-content a:hover { color: var(--c-text-on-light-1); }

/* Back to Blog link at the end of articles */
.back-to-blog {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border-light-2);
}

.back-to-blog a {
  display: inline-flex;
  align-items: center;
  color: var(--c-dark);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.back-to-blog a:hover {
  color: var(--c-text-on-light-1);
  transform: translateX(-4px);
}

/* Callout Box */
.article-callout {
  background: var(--c-bg-light);
  border: 1px solid var(--c-border-light-2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.article-callout-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--c-dark);
  letter-spacing: -0.02em;
}

.article-callout p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--c-text-on-light-1);
}

/* ─── 11. CTA BANNER — DARK CARD ────────────────────────────────────────── */
.diagnostic-cta-banner {
  background: var(--c-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 4rem 3rem;
  margin: 4rem 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Ambient glow interior */
.diagnostic-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Brilho de borda no topo */
.diagnostic-cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.cta-banner-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-banner-title {
  color: var(--c-white);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.04em;
  line-height: 1.12;
  position: relative;
}

.cta-banner-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  position: relative;
}

.btn-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: all var(--transition);
  position: relative;
}

.btn-banner-cta:hover {
  background: #E8E8ED;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* ─── GENERIC BTN (usado no CTA final) ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.btn:hover {
  background: #E8E8ED;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.btn-xl {
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.cta-banner-meta {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
}

/* ─── 12. FOOTER & CTA WRAPPER ───────────────────────────────────────────── */
.final-cta-footer-wrapper {
  background: var(--c-bg-dark);
  position: relative;
  overflow: hidden;
}

.final-cta-gray-wrapper {
  background: linear-gradient(180deg, #0A0B0D 0%, #15181C 50%, #1D2125 100%);
}

.final-cta-no-cta {
  padding-top: 100px;
}

.final-cta-no-cta-light {
  background: var(--c-bg-light) !important;
  padding-top: 100px;
}

@media (max-width: 768px) {
  .final-cta-no-cta {
    padding-top: 60px;
  }
  .final-cta-no-cta-light {
    padding-top: 60px;
  }
}

.final-cta {
  padding: 6rem 0 11rem;
  background: transparent;
  position: relative;
}

#final-cta-btn-gray {
  background: linear-gradient(135deg, #E9ECEF 0%, #CED4DA 100%) !important;
  color: #212529 !important;
  box-shadow: 0 8px 32px rgba(33, 37, 41, 0.3) !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
}

#final-cta-btn-gray:hover {
  background: linear-gradient(135deg, #ffffff 0%, #DEE2E6 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 42px rgba(33, 37, 41, 0.45) !important;
}

.footer {
  background: transparent;
  position: relative;
  margin-top: -100px;
  z-index: 10;
  padding: 0;
  border-top: none;
}

.footer-inner {
  background: var(--c-bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 3.5rem 4rem 1.5rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: none;

  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  column-gap: 4rem;
  row-gap: 0;
  color: var(--c-dark);
  position: relative;
  z-index: 2;
}

.footer-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -120px;
  width: 120px;
  bottom: 0;
  background: var(--c-bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 120px 0 0 0;
  z-index: -1;
}

.footer-inner::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: -100vw;
  bottom: 0;
  background: var(--c-bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.footer-tagline-wrap {
  display: block;
  align-self: start;
}

.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 0;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--c-text-on-light-1);
  margin: 0;
  white-space: nowrap;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
}

.footer-contact p {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--c-text-on-light-1);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
}

.footer-contact svg {
  color: var(--c-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.8;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0 0;
  margin-top: 1.5rem;
  background: transparent;
  position: relative;
  z-index: 2;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--c-text-on-light-2);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-bottom-link {
  font-size: 0.78rem;
  color: var(--c-text-on-light-2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-link:hover {
  color: var(--c-dark);   /* Neutral hover */
}

/* responsive footer */
@media (max-width: 768px) {
  .final-cta {
    padding: 4.5rem 0 7rem;
  }
  .footer {
    margin-top: -60px !important;
  }
  .footer-inner {
    border-radius: 0 !important;
    padding: 4rem 2rem 1.5rem 1rem !important;
    max-width: calc(100% - 2rem) !important;
    margin-right: 0 !important;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .footer-inner::before {
    top: -1px !important;
    left: -60px !important;
    width: 60px !important;
    border-radius: 60px 0 0 0 !important;
  }
  .footer-inner::after {
    left: 0 !important;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-bottom-link {
    margin-left: 0;
    margin-right: 1.25rem;
  }
  .footer-contact p,
  .footer-tagline {
    white-space: normal;
  }
}

/* ─── 13. NO RESULTS STATE ──────────────────────────────────────────────── */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.no-results-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  display: block;
  filter: grayscale(0.3);
}

.no-results-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.no-results-desc {
  font-size: 0.88rem;
  color: var(--c-text-on-light-2);
}

/* ─── Ver Todos os Artigos ──────────────────────────────────────────────── */
.ver-todos-wrap {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.ver-todos-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text-on-light-2);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.ver-todos-link:hover {
  color: var(--c-dark);
  border-bottom-color: var(--c-dark);
}

/* ─── 14. PÁGINAS LEGAIS ────────────────────────────────────────────────── */
/* Card-stack: hero escuro → conteúdo legal claro */
.legal-page-section {
  background: var(--c-bg-light);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  padding: 3rem 0 5rem;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

/* Hero compacto para páginas internas */
.hero--compact {
  padding: 8.5rem 0 5rem !important;
}

.legal-section-card {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.legal-section-card:hover {
  box-shadow: var(--shadow-md);
}

.legal-section-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--c-dark);
  letter-spacing: -0.02em;
}

.legal-section-card p {
  font-size: 0.94rem;
  color: var(--c-text-on-light-1);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-section-card p:last-child { margin-bottom: 0; }

.legal-section-card ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.legal-section-card li {
  font-size: 0.94rem;
  color: var(--c-text-on-light-1);
  margin-bottom: 0.5rem;
}

/* ─── 15. RESPONSIVIDADE ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 680px) {
  .header { padding: 0.75rem 1rem; }

  .hero {
    padding: 8rem 0 3rem;
  }

  .hero-title { letter-spacing: -0.035em; }

  .blog-grid-section {
    border-radius: 28px 28px 0 0;
    padding: 2.5rem 0 4rem;
  }

  .article-detail-header::after {
    border-radius: 28px 28px 0 0;
    height: 28px;
  }

  .article-detail-body { padding: 3rem 0 4rem; }

  .grid-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-card {
    border-radius: var(--radius-md);
  }

  .card-content { padding: 1.25rem; }

  .diagnostic-cta-banner {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .legal-section-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .post-content {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .post-content h2 { font-size: 1.4rem; }
}
