/* ═══════════════════════════════════════════════
   Blog Otávio Arliani — identidade da landing page
   ═══════════════════════════════════════════════ */

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

:root {
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1D4ED8;
  --accent: #0EA5E9;
  --dark: #060612;
  --dark2: #0D0D1F;
  --dark3: #141428;
  --card: #181830;
  --border: rgba(255,255,255,0.08);
  --light: #F1F5F9;
  --gray: #94A3B8;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #2563EB, #0EA5E9);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(6,6,18,0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 18px; font-weight: 800; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta {
  background: var(--gradient); color: var(--white);
  border: none; padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }
/* ─── MENU MOBILE ─── */
.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--white);
  align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.nav-toggle:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media(max-width:768px) {
  nav { padding: 14px 20px; flex-wrap: wrap; }
  .nav-logo { order: 1; margin-right: auto; }
  .nav-cta { order: 2; padding: 9px 16px; font-size: 13px; }
  .nav-toggle { order: 3; display: inline-flex; margin-left: 10px; }
  .nav-links {
    order: 4; width: 100%; display: none;
    flex-direction: column; gap: 0;
    margin-top: 12px; padding-top: 6px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 2px; font-size: 15px; }
}

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ─── GLOW ─── */
.glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 100%;
  background: radial-gradient(circle, rgba(37,99,235,0.07), transparent 70%);
  top: -200px; right: -200px;
}

/* ─── BLOG HEADER ─── */
.blog-hero { padding: 150px 0 60px; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.3);
  color: var(--blue-light); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px;
}
.blog-hero h1 .highlight { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.blog-hero p { font-size: 17px; color: var(--gray); max-width: 620px; line-height: 1.8; }

/* ─── LISTA DE ARTIGOS ─── */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px; padding-bottom: 96px;
}
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px;
  text-decoration: none; display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.post-card:hover { border-color: rgba(37,99,235,0.45); transform: translateY(-4px); }
.post-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light);
  background: rgba(37,99,235,0.1); padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.post-card h2 { font-size: 19px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; color: var(--gray); line-height: 1.7; flex-grow: 1; }
.post-meta {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray);
}
.post-arrow { color: var(--blue-light); font-weight: 700; }

/* ─── ARTIGO ─── */
.breadcrumb { padding: 130px 0 0; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.article-head { padding: 24px 0 40px; }
.article-head h1 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 900;
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray);
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.article-meta img { width: 36px; height: 36px; border-radius: 100%; object-fit: cover; background: var(--gradient); }
.article-meta .author { font-weight: 700; color: var(--light); }
.article-meta .dot { opacity: .4; }

.article-body { padding: 40px 0 20px; }
.article-body p { font-size: 16.5px; color: #CBD5E1; line-height: 1.9; margin-bottom: 22px; }
.article-body h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  margin: 44px 0 16px; line-height: 1.3;
}
.article-body h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--light); }
.article-body strong { color: var(--white); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 22px; }
.article-body li { font-size: 16.5px; color: #CBD5E1; line-height: 1.85; margin-bottom: 10px; }
.article-body li::marker { color: var(--blue-light); }
.article-body a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }

.callout {
  background: var(--card); border-left: 3px solid var(--blue-light);
  border-radius: 0 12px 12px 0; padding: 22px 26px; margin: 32px 0;
}
.callout p { margin: 0; font-size: 15.5px; color: var(--light); }

.article-body table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 14.5px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.article-body th {
  background: var(--dark3); padding: 14px 16px; text-align: left;
  font-weight: 700; font-size: 13px; color: var(--blue-light);
  text-transform: uppercase; letter-spacing: .05em;
}
.article-body td { padding: 14px 16px; border-top: 1px solid var(--border); color: #CBD5E1; }
.table-wrap { overflow-x: auto; }

/* ─── CTA NO ARTIGO ─── */
.article-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(14,165,233,0.06));
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 20px; padding: 40px; margin: 56px 0; text-align: center;
}
.article-cta h3 { font-size: 23px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.article-cta p { font-size: 15px; color: var(--gray); max-width: 460px; margin: 0 auto 26px; line-height: 1.7; }
.btn-primary {
  background: var(--gradient); color: var(--white);
  padding: 15px 32px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 8px 32px rgba(37,99,235,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,0.45); }
.cta-microcopy { font-size: 12px; color: var(--gray); margin-top: 14px; }

/* ─── RELACIONADOS ─── */
.related { padding: 20px 0 80px; }
.related h3 { font-size: 20px; font-weight: 800; margin-bottom: 22px; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:640px) { .related-list { grid-template-columns: 1fr; } }
.related-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; text-decoration: none;
  transition: border-color .2s;
}
.related-item:hover { border-color: rgba(37,99,235,0.4); }
.related-item span { font-size: 11px; color: var(--blue-light); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.related-item h4 { font-size: 15px; font-weight: 700; margin-top: 8px; line-height: 1.45; }

/* ─── FOOTER ─── */
footer { padding: 48px 24px 28px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.footer-brand { font-size: 18px; font-weight: 800; text-decoration: none; }
.footer-brand em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--gray); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--gray); }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 100%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
