/* ═══════════════════════════════════════════════════════════════
   Thor4Tech Blog — Dark Space CSS System
   Aesthetic: #02040f bg | blue #3b82f6 | neon-green #22d3a0 | orange #ff6b35 | purple #a855f7
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #02040f;
  --bg-panel: rgba(255,255,255,0.03);
  --bg-section: #06091a;
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --accent-green: #22d3a0;
  --accent-orange: #ff6b35;
  --accent-purple: #a855f7;
  --text: #f1f5f9;
  --text-mid: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-blue: 0 0 40px rgba(59,130,246,0.35);
  --shadow-green: 0 0 40px rgba(34,211,160,0.3);
  --shadow-orange: 0 0 40px rgba(255,107,53,0.35);
  --shadow-purple: 0 0 40px rgba(168,85,247,0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #3b82f6 #040714; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: 'Syne', 'Inter', sans-serif; font-weight: 800; text-wrap: balance; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #040714; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b82f6, #22d3a0); border-radius: 6px; }

/* ── BG Grid ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Gradient utilities ── */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3a0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient-orange {
  background: linear-gradient(135deg, #ff6b35 0%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-shine {
  background: linear-gradient(90deg, #60a5fa 0%, #22d3a0 25%, #fff 50%, #22d3a0 75%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

/* ── Glass panel ── */
.glass-panel {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Card Glow ── */
.card-glow {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s ease;
}
.card-glow::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(34,211,160,0.4), rgba(168,85,247,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(59,130,246,0.15); }

/* ── Tag pill ── */
.tag-pill {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,211,160,0.1));
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ── Section label ── */
.section-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(96,165,250,0.7);
}

/* ── Section divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), rgba(34,211,160,0.3), transparent);
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 9999;
  background: linear-gradient(90deg, #22d3a0, #3b82f6, #a855f7);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(34,211,160,0.6);
}

/* ── NAVBAR ── */
.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--transition);
}
.blog-nav.scrolled {
  background: rgba(2,4,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.blog-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.blog-nav-logo img { height: 32px; width: auto; filter: drop-shadow(0 0 10px rgba(59,130,246,0.3)); }
.blog-nav-links {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.6rem 2rem; border-radius: 9999px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.blog-nav-link {
  color: #94a3b8;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  position: relative; transition: color 0.2s ease;
}
.blog-nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #22d3a0);
  transition: width 0.3s ease;
}
.blog-nav-link:hover { color: #fff; }
.blog-nav-link:hover::after { width: 100%; }
.blog-nav-cta {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: 9999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #22d3a0; border: 1px solid rgba(34,211,160,0.3);
  background: linear-gradient(135deg, rgba(34,211,160,0.08), rgba(59,130,246,0.08));
  box-shadow: 0 0 20px rgba(34,211,160,0.1);
  transition: var(--transition);
}
.blog-nav-cta:hover {
  color: #fff; border-color: rgba(34,211,160,0.6);
  box-shadow: 0 0 35px rgba(34,211,160,0.25);
}

/* ── HERO (blog listing page) ── */
.blog-hero {
  position: relative; min-height: 380px;
  display: flex; align-items: center;
  background: var(--bg); overflow: hidden;
  padding: 120px 0 80px;
}
.blog-hero-content {
  position: relative; z-index: 2;
  max-width: 800px; margin: 0 auto; text-align: center;
  padding: 0 1.5rem;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 1rem;
}
.blog-hero-subtitle { color: #94a3b8; font-size: 1.1rem; max-width: 520px; margin: 0 auto 1.5rem; }

/* ── ARTICLE CARD GRID ── */
.blog-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); border-color: rgba(59,130,246,0.2); }
.article-card-img { position: relative; height: 200px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,4,15,0.9) 0%, rgba(2,4,15,0.2) 60%, transparent 100%);
}
.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.85rem; border-radius: 9999px; border: 1px solid; margin-bottom: 1rem;
}
.article-card-title {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  line-height: 1.4; margin-bottom: 0.75rem; flex: 1;
  transition: color 0.2s ease;
}
.article-card:hover .article-card-title { color: #60a5fa; }
.article-card-excerpt { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.article-card-time { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #64748b; }
.article-card-read {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #3b82f6; transition: gap 0.2s ease;
}
.article-card:hover .article-card-read { gap: 0.5rem; }

/* ── FEATURED card (first article) ── */
.article-card.featured { grid-column: 1 / -1; flex-direction: row; }
.article-card.featured .article-card-img { height: auto; width: 45%; flex-shrink: 0; }
.article-card.featured .article-card-body { padding: 2.5rem; }
.article-card.featured .article-card-title { font-size: 1.5rem; }
@media (max-width: 768px) {
  .article-card.featured { flex-direction: column; }
  .article-card.featured .article-card-img { height: 220px; width: 100%; }
  .article-card.featured .article-card-body { padding: 1.5rem; }
}

/* ── ARTICLE PAGE ── */
.article-header {
  position: relative; padding: 140px 0 80px;
  background: var(--bg); overflow: hidden;
}
.article-header-inner {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; padding: 0 1.5rem;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: #64748b; margin-bottom: 2rem;
  font-weight: 600; letter-spacing: 0.04em;
}
.article-breadcrumb a { color: #3b82f6; transition: color 0.2s; }
.article-breadcrumb a:hover { color: #60a5fa; }
.article-breadcrumb span { color: #334155; }
.article-cat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 9999px;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa; margin-bottom: 1.5rem;
}
.article-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-subtitle { font-size: 1.1rem; color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  font-size: 0.78rem; color: #64748b; font-weight: 600;
}
.article-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.article-cover { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.article-cover img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
@media (max-width: 640px) { .article-cover img { height: 220px; } }

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start;
}
@media (max-width: 1024px) { .article-body { grid-template-columns: 1fr; } }

/* Main content */
.article-content h2 {
  font-size: 1.65rem; font-weight: 900; color: #fff;
  margin: 2.5rem 0 1rem;
  background: linear-gradient(135deg, #60a5fa, #22d3a0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.article-content h3 {
  font-size: 1.2rem; font-weight: 700; color: #e2e8f0;
  margin: 2rem 0 0.75rem;
}
.article-content h4 { font-size: 1rem; font-weight: 700; color: #cbd5e1; margin: 1.5rem 0 0.5rem; }
.article-content p { color: #94a3b8; line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.05rem; }
.article-content strong { color: #e2e8f0; font-weight: 700; }
.article-content ul, .article-content ol { margin: 1.25rem 0 1.25rem 1.5rem; }
.article-content li { color: #94a3b8; line-height: 1.8; margin-bottom: 0.5rem; font-size: 1.05rem; }
.article-content a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-content a:hover { color: #22d3a0; }

/* ── Callout boxes ── */
.callout { padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin: 2rem 0; }
.callout-blue { background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.25); border-left: 3px solid #3b82f6; }
.callout-green { background: rgba(34,211,160,0.07); border: 1px solid rgba(34,211,160,0.25); border-left: 3px solid #22d3a0; }
.callout-orange { background: rgba(255,107,53,0.07); border: 1px solid rgba(255,107,53,0.25); border-left: 3px solid #ff6b35; }
.callout-label { font-size: 0.6rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; opacity: 0.7; }
.callout p { margin-bottom: 0; }

/* ── Metric cards ── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 2rem 0; }
.metric-card { padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); text-align: center; }
.metric-val { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 900; line-height: 1; display: block; margin-bottom: 0.25rem; }
.metric-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; }

/* ── Comparison table ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border-radius: 8px; overflow: hidden; }
.compare-table th { padding: 0.75rem 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; color: #94a3b8; }
.compare-table td { padding: 0.75rem 1rem; font-size: 0.9rem; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.04); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .good { color: #22d3a0; font-weight: 700; }
.compare-table .neutral { color: #f59e0b; font-weight: 700; }
.compare-table .bad { color: #f87171; font-weight: 700; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget { background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.sidebar-widget h4 { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: #60a5fa; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-widget h4::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #22d3a0; display: block; box-shadow: 0 0 6px #22d3a0; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.4rem; }
.sidebar-nav a { font-size: 0.82rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: color 0.2s; }
.sidebar-nav a::before { content: '›'; color: #3b82f6; font-size: 0.9rem; }
.sidebar-nav a:hover { color: #e2e8f0; }
.sidebar-related-card { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: var(--transition); }
.sidebar-related-card:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related-card:hover { transform: translateX(3px); }
.sidebar-related-img { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sidebar-related-title { font-size: 0.78rem; font-weight: 700; color: #94a3b8; line-height: 1.35; transition: color 0.2s; }
.sidebar-related-card:hover .sidebar-related-title { color: #60a5fa; }
.sidebar-related-time { font-size: 0.65rem; color: #475569; font-weight: 600; margin-top: 0.25rem; }
.sidebar-cta { display: block; width: 100%; padding: 1rem; border-radius: 12px; text-align: center; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #02040f; background: linear-gradient(135deg, #22d3a0, #3b82f6); box-shadow: var(--shadow-green); transition: var(--transition); }
.sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(34,211,160,0.5); }

/* ── Article tags ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.article-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1); color: #64748b; transition: var(--transition); }
.article-tag:hover { border-color: rgba(59,130,246,0.4); color: #60a5fa; }

/* ── CTA Banner ── */
.article-cta-banner { padding: 2rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(34,211,160,0.08)); border: 1px solid rgba(59,130,246,0.2); margin: 3rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 640px) { .article-cta-banner { flex-direction: row; align-items: center; } }
.article-cta-banner h3 { font-size: 1.1rem; font-weight: 900; color: #fff; background: none; -webkit-text-fill-color: #fff; margin: 0; }
.article-cta-banner p { color: #94a3b8; font-size: 0.9rem; margin: 0; }
.article-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; padding: 0.75rem 1.5rem; border-radius: 50px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #02040f; background: linear-gradient(135deg, #22d3a0, #3b82f6); box-shadow: var(--shadow-green); transition: var(--transition); }
.article-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(34,211,160,0.5); }

/* ── Related Articles ── */
.related-articles { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.related-articles h2 { font-size: 1.35rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; background: none; -webkit-text-fill-color: #fff; display: flex; align-items: center; gap: 0.75rem; }
.related-articles h2::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, #3b82f6, #22d3a0); display: block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
.blog-footer { padding: 3rem 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,0.05); background: var(--bg); }
.blog-footer-inner { max-width: 1280px; margin: 0 auto; }
.blog-footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.blog-footer-logo img { height: 28px; width: auto; filter: drop-shadow(0 0 8px rgba(59,130,246,0.3)); }
.blog-footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.blog-footer-link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; transition: color 0.2s; }
.blog-footer-link:hover { color: #94a3b8; }
.blog-footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.blog-footer-copy { font-size: 0.72rem; color: #334155; font-weight: 600; }
.blog-footer-highlight { color: #22d3a0; font-weight: 700; }

/* ── WA Float ── */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); border: none; cursor: pointer; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.wa-float::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37,211,102,0.35); animation: waPulse 2s ease infinite; }

/* ── Animations ── */
@keyframes waPulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 0; transform: scale(1.35); } }
@keyframes shine { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }
.fade-in-up { opacity: 0; animation: fadeInUp 0.7s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── IntersectionObserver reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE COMPLETA — Mobile-first, 5 breakpoints
   320 | 375 | 480 | 640 | 768 | 1024 | 1280+
   ═══════════════════════════════════════════════════════════════ */

/* ── Base anti-overflow (global) ── */
html, body { overflow-x: hidden; max-width: 100vw; }
*, *::before, *::after { max-width: 100%; word-break: break-word; overflow-wrap: break-word; }
img, video, iframe, canvas { max-width: 100%; display: block; }
table { max-width: 100%; table-layout: auto; }

/* ── 1024px — Tablets grandes / small laptops ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: relative; top: auto; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.featured { flex-direction: column; }
  .article-card.featured .article-card-img { height: 280px; width: 100%; }
  .article-card.featured .article-card-body { padding: 2rem; }
  .article-cover img { height: 340px; }
}

/* ── 768px — Tablets / celulares grandes ── */
@media (max-width: 768px) {
  /* Navbar */
  .blog-nav-links { display: none; }
  .blog-nav-inner { padding: 0 1.25rem; height: 60px; }
  .blog-nav-cta { padding: 0.5rem 1rem; font-size: 0.62rem; gap: 0.3rem; }

  /* Hero */
  .blog-hero { padding: 100px 0 60px; min-height: auto; }
  .blog-hero-content { padding: 0 1.25rem; }
  .blog-hero-title { font-size: clamp(1.9rem, 6.5vw, 2.5rem); line-height: 1.2; }
  .blog-hero-subtitle { font-size: 0.95rem; padding: 0 0.5rem; }

  /* Cards */
  .blog-grid { padding: 0 1.25rem; gap: 1.25rem; }
  .article-card.featured { grid-column: auto; flex-direction: column; }
  .article-card.featured .article-card-img { height: 230px; width: 100%; }
  .article-card.featured .article-card-body { padding: 1.5rem; }
  .article-card.featured .article-card-title { font-size: 1.25rem; }

  /* Article page */
  .article-header { padding: 100px 0 50px; }
  .article-header-inner { padding: 0 1.25rem; }
  .article-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .article-subtitle { font-size: 1rem; }
  .article-body { padding: 2rem 1.25rem 3rem; gap: 2rem; }
  .article-sidebar { display: block; }
  .article-sidebar .sidebar-widget:first-child { display: none; } /* esconde TOC no mobile */
  .article-cover { padding: 0 1.25rem; }
  .article-cover img { height: 220px; border-radius: 12px; }
  .article-meta { gap: 0.75rem; flex-wrap: wrap; font-size: 0.72rem; }
  .article-content h2 { font-size: 1.45rem; }
  .article-content h3 { font-size: 1.1rem; }
  .article-content p, .article-content li { font-size: 1rem; }

  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .metric-val { font-size: 1.75rem; }

  /* Table scroll */
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* Related */
  .related-grid { grid-template-columns: 1fr; }
  .related-articles { padding: 0 1.25rem 3rem; }

  /* Footer */
  .blog-footer-top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .blog-footer-bottom { flex-direction: column; gap: 0.5rem; }
  .blog-footer-links { gap: 1rem; }
}

/* ── 640px — Celulares médios ── */
@media (max-width: 640px) {
  /* Nav CTA — esconder texto, manter ícone */
  .blog-nav-cta { padding: 0.5rem 0.75rem; letter-spacing: 0; }

  /* Hero */
  .blog-hero { padding: 88px 0 50px; }
  .blog-hero-title { font-size: clamp(1.75rem, 7.5vw, 2rem); }
  .blog-hero-subtitle { font-size: 0.9rem; }

  /* Tags */
  .tag-pill { font-size: 0.58rem; padding: 0.22rem 0.65rem; letter-spacing: 0.08em; }

  /* Featured card */
  .article-card.featured .article-card-img { height: 200px; }
  .article-card.featured .article-card-body { padding: 1.25rem; }
  .article-card.featured .article-card-title { font-size: 1.15rem; }

  /* Cards grid → 1 coluna */
  .blog-grid { grid-template-columns: 1fr; padding: 0 1rem; }

  /* Article */
  .article-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .article-body { padding: 1.5rem 1rem 2.5rem; }
  .article-cover img { height: 190px; }
  .article-content h2 { font-size: 1.3rem; }
  .article-breadcrumb { font-size: 0.7rem; flex-wrap: wrap; }

  /* CTA banner */
  .article-cta-banner { padding: 1.5rem; flex-direction: column; gap: 1rem; }
  .article-cta-btn { align-self: flex-start; padding: 0.7rem 1.25rem; }

  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-val { font-size: 1.6rem; }
  .metric-card { padding: 1rem 1rem; }
}

/* ── 480px — Celulares menores ── */
@media (max-width: 480px) {
  .blog-nav-inner { padding: 0 1rem; height: 56px; }
  .blog-nav-logo img { height: 26px; }

  .blog-hero { padding: 80px 0 44px; }
  .blog-hero-content { padding: 0 1rem; }
  .blog-hero-title { font-size: clamp(1.5rem, 8vw, 1.9rem); }
  .blog-hero-subtitle { font-size: 0.85rem; }

  .blog-grid { padding: 0 0.875rem; gap: 1rem; }
  .article-card-body { padding: 1.25rem; }
  .article-card-title { font-size: 0.95rem; }
  .article-card-excerpt { font-size: 0.82rem; }

  .article-header { padding: 80px 0 40px; }
  .article-header-inner { padding: 0 1rem; }
  .article-title { font-size: clamp(1.3rem, 7vw, 1.75rem); }
  .article-subtitle { font-size: 0.9rem; }
  .article-body { padding: 1.25rem 0.875rem 2rem; gap: 1.5rem; }
  .article-cover { padding: 0 1rem; }
  .article-cover img { height: 160px; }
  .article-content h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
  .article-content h3 { font-size: 1rem; }
  .article-content p, .article-content li { font-size: 0.95rem; }

  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .metric-val { font-size: 1.4rem; }
  .metric-label { font-size: 0.65rem; }

  .callout { padding: 1rem 1.25rem; }
  .sidebar-widget { padding: 1.25rem; }
  .sidebar-cta { font-size: 0.65rem; padding: 0.75rem; }

  .related-articles { padding: 0 1rem 2rem; }
  .blog-footer { padding: 2rem 1rem 1.5rem; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 48px; height: 48px; }
}

/* ── 375px — iPhone padrão ── */
@media (max-width: 375px) {
  .blog-hero-title { font-size: 1.5rem; }
  .blog-hero-subtitle { font-size: 0.82rem; }
  .article-title { font-size: 1.3rem; }
  .article-content h2 { font-size: 1.15rem; }
  .article-body { padding: 1rem 0.75rem 2rem; }
  .blog-grid { padding: 0 0.75rem; }
  .article-card-body { padding: 1rem; }
  .article-card-title { font-size: 0.9rem; }
  .metrics-grid { grid-template-columns: 1fr; } /* 1 coluna em muito pequeno */
}

/* ── 320px — Telas muito pequenas ── */
@media (max-width: 320px) {
  .blog-hero-title { font-size: 1.35rem; }
  .article-title { font-size: 1.2rem; }
  .blog-nav-cta { display: none; } /* sem espaço — esconde CTA do nav */
}

/* ── Landscape mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .blog-hero { padding: 70px 0 30px; min-height: auto; }
  .article-header { padding: 70px 0 30px; }
}

/* ── Acessibilidade ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress { transition: none; }
}

/* Blog command center, search and pagination */
.blog-hero-index {
  min-height: 520px;
  padding-bottom: 110px;
}
.blog-hero-content-wide {
  max-width: 1080px;
}
.blog-hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59,130,246,0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(168,85,247,0.12), transparent 26%),
    radial-gradient(circle at 68% 78%, rgba(34,211,160,0.12), transparent 24%),
    linear-gradient(180deg, rgba(2,4,15,0.15), rgba(2,4,15,0.82));
  pointer-events: none;
}
.blog-hero-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.blog-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3a0;
  box-shadow: 0 0 12px rgba(34,211,160,0.9);
}
.blog-search-shell {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(3,7,18,0.72);
  border: 1px solid rgba(148,163,184,0.12);
  box-shadow: 0 20px 60px rgba(2,4,15,0.45);
  backdrop-filter: blur(20px);
}
.blog-search-label {
  display: block;
  margin-bottom: 0.65rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}
.blog-search-input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  padding: 0 1.1rem;
  font-size: 1rem;
}
.blog-search-input:focus {
  outline: none;
  border-color: rgba(96,165,250,0.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
.blog-search-submit,
.blog-reset-btn {
  height: 58px;
  border: none;
  border-radius: 18px;
  padding: 0 1.35rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.blog-search-submit {
  color: #02040f;
  background: linear-gradient(135deg, #22d3a0, #60a5fa);
  box-shadow: 0 18px 38px rgba(34,211,160,0.28);
}
.blog-search-submit:hover,
.blog-reset-btn:hover {
  transform: translateY(-2px);
}
.blog-search-hint {
  margin-top: 0.7rem;
  color: #94a3b8;
  font-size: 0.82rem;
}
.blog-stat-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.blog-stat-card {
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(148,163,184,0.12);
  text-align: left;
}
.blog-stat-value {
  display: block;
  color: #f8fafc;
  font-family: 'Syne', 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}
.blog-stat-label {
  display: block;
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-command-center,
.blog-listing-shell,
.blog-discovery-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-command-center {
  margin-top: -56px;
  position: relative;
  z-index: 4;
  padding-bottom: 2rem;
}
.blog-command-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.blog-section-title {
  margin-top: 0.45rem;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  color: #f8fafc;
}
.blog-section-copy {
  margin-top: 0.85rem;
  max-width: 780px;
  color: #94a3b8;
  font-size: 1rem;
}
.blog-reset-btn {
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.12);
}
.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.03);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}
.blog-filter-chip strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  font-size: 0.72rem;
}
.blog-filter-chip:hover,
.blog-filter-chip.active {
  border-color: rgba(96,165,250,0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(59,130,246,0.18);
}
.blog-filter-chip.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,211,160,0.15));
}
.blog-results-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.blog-results-summary {
  color: #f8fafc;
  font-size: 0.94rem;
  font-weight: 700;
}
.blog-results-meta {
  color: #94a3b8;
  font-size: 0.82rem;
}
.blog-listing-shell {
  padding-bottom: 1rem;
}
.blog-featured-block {
  margin-bottom: 1.8rem;
}
.blog-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(2,4,15,0.72);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.blog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.82rem;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-empty {
  margin: 1.5rem 0 0;
  padding: 2rem;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.blog-empty h3 {
  color: #fff;
  font-size: 1.2rem;
}
.blog-empty p {
  margin-top: 0.65rem;
  color: #94a3b8;
}
.blog-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.blog-page-chip {
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.03);
  color: #e2e8f0;
  font-weight: 800;
  transition: var(--transition);
}
.blog-page-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.36);
}
.blog-page-chip.active {
  color: #02040f;
  border-color: transparent;
  background: linear-gradient(135deg, #60a5fa, #22d3a0);
}
.blog-page-nav {
  min-width: 110px;
}
.blog-page-chip.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.blog-discovery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 5rem;
}
.blog-discovery-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.03);
}
.blog-discovery-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #60a5fa;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.blog-discovery-card h3 {
  color: #fff;
  font-size: 1.2rem;
}
.blog-discovery-card p {
  margin-top: 0.75rem;
  color: #94a3b8;
  line-height: 1.7;
}
.article-card-blue .article-card-cat,
.article-card-blue .blog-featured-meta span:first-child { color: #93c5fd; }
.article-card-green .article-card-cat,
.article-card-green .blog-featured-meta span:first-child { color: #6ee7b7; }
.article-card-orange .article-card-cat,
.article-card-orange .blog-featured-meta span:first-child { color: #fdba74; }
.article-card-purple .article-card-cat,
.article-card-purple .blog-featured-meta span:first-child { color: #c4b5fd; }
.article-card-blue .article-card-cat { border-color: rgba(96,165,250,0.28); background: rgba(59,130,246,0.12); }
.article-card-green .article-card-cat { border-color: rgba(34,211,160,0.28); background: rgba(34,211,160,0.12); }
.article-card-orange .article-card-cat { border-color: rgba(255,107,53,0.28); background: rgba(255,107,53,0.12); }
.article-card-purple .article-card-cat { border-color: rgba(168,85,247,0.28); background: rgba(168,85,247,0.12); }
.article-card-blue .article-card-img-overlay { background: linear-gradient(to top, rgba(2,4,15,0.96), rgba(29,78,216,0.12), transparent); }
.article-card-green .article-card-img-overlay { background: linear-gradient(to top, rgba(2,4,15,0.96), rgba(4,120,87,0.15), transparent); }
.article-card-orange .article-card-img-overlay { background: linear-gradient(to top, rgba(2,4,15,0.96), rgba(194,65,12,0.15), transparent); }
.article-card-purple .article-card-img-overlay { background: linear-gradient(to top, rgba(2,4,15,0.96), rgba(109,40,217,0.16), transparent); }

@media (max-width: 1024px) {
  .blog-discovery-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-hero-index { min-height: auto; padding-bottom: 84px; }
  .blog-search-row { grid-template-columns: 1fr; }
  .blog-stat-grid { grid-template-columns: 1fr; }
  .blog-command-center { margin-top: -28px; }
  .blog-command-inner { flex-direction: column; align-items: flex-start; }
  .blog-results-row { flex-direction: column; }
  .blog-page-nav { min-width: 90px; }
}
