:root {
  --blue-50: #EEF4FF;
  --blue-100: #D9E6FF;
  --blue-200: #B3CDFF;
  --blue-300: #80ABFF;
  --blue-400: #4F8CFF;
  --blue-500: #2B6FE6;
  --blue-600: #1A56C4;
  --blue-700: #13429E;
  --gray-50: #F8F9FB;
  --gray-100: #F1F3F7;
  --gray-200: #E2E6ED;
  --gray-300: #C8CED9;
  --gray-400: #9AA2B1;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --accent-green: #10B981;
  --accent-violet: #8B5CF6;
  --surface-primary: #FAFAFB;
  --surface-card: #FFFFFF;
  --surface-dark: #0B1120;
  --surface-dark-card: #131C2E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-blue: 0 4px 20px rgba(79,140,255,0.25);
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container-width: 1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); color: var(--gray-800); background: var(--surface-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: var(--blue-400); font-weight: 600; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-main); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--blue-400);
  padding: 10px 22px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,140,255,0.3); }

/* ============ ARTICLE HEADER ============ */
.blog-article {
  padding: 140px 0 80px;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back-to-blog:hover { color: var(--blue-500); }

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
  text-align: center;
}

.article-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 20px;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-400);
  justify-content: center;
}

.article-author {
  font-weight: 600;
  color: var(--gray-600);
}

.meta-dot { color: var(--gray-300); }

/* ============ ARTICLE BANNER ============ */

/* — NO IMAGE: Styled banner — */
.article-banner-styled {
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 240px;
}

.article-banner-styled::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(79,140,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.article-banner-styled::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--blue-300);
  border: 1px solid rgba(255,255,255,0.08);
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.banner-headline {
  position: relative;
  z-index: 1;
}

.banner-line-1 {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.banner-line-2 {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

/* — WITH IMAGE: Image banner — */
.article-banner-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.article-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============ TWO-COLUMN LAYOUT ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ============ ARTICLE CONTENT ============ */
.article-content {}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-top: 44px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content h2:first-of-type {
  margin-top: 20px;
}

/* .article-content a {
  color: var(--blue-500);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--blue-200);
  transition: text-decoration-color 0.2s;
} */

.article-content a:hover {
  text-decoration-color: var(--blue-500);
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.85;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 3px solid var(--blue-400);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--blue-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}

.article-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

/* ============ BOTTOM CTA ============ */
.article-bottom-cta {
  margin-top: 56px;
  padding: 40px 36px;
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-bottom-cta::before {
  content: '';
  position: absolute;
  top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(ellipse at 30% 50%, rgba(79,140,255,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.article-bottom-cta > * { position: relative; z-index: 1; }

.article-bottom-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.article-bottom-cta p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 24px;
}

.article-bottom-cta .btn-primary {
  padding: 13px 28px;
  font-size: 15px;
}

.bottom-cta-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ============ SIDEBAR ============ */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-ad {
  background: var(--surface-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

.sidebar-ad-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-500);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.sidebar-ad h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.sidebar-ad > p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 18px;
}

.sidebar-ad-features {
  list-style: none;
  margin-bottom: 22px;
}

.sidebar-ad-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0;
}

.sidebar-ad-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.sidebar-ad-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-400);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: var(--shadow-blue);
}

.sidebar-ad-btn:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79,140,255,0.3);
}

.sidebar-ad-note {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-400);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 989px) {
  .sidebar-ad { display: none; }
  .blog-article { padding: 120px 0 60px; }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    max-width: 400px;
  }

  .article-header h1 { font-size: 28px; }
  .article-subtitle { font-size: 16px; }

  .article-banner-styled { padding: 36px 28px; min-height: 200px; }
  .banner-line-1, .banner-line-2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .article-banner-styled { padding: 28px 22px; min-height: 180px; }
  .banner-line-1, .banner-line-2 { font-size: 24px; }
  .article-content p { font-size: 16px; }
  .article-content h2 { font-size: 21px; }
  .article-bottom-cta { padding: 32px 24px; }
}