/* === Modern UI Additions for Performalytic === */

/* Scroll Reveal */
.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.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.hero-stat {
  display: block;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveal for grid items */
.services-grid .service-card,
.solutions-grid .solution-card,
.tech-grid .tech-item,
.trust-grid .trust-item,
.process-grid .process-step,
.industries-grid .industry-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.services-grid .service-card.revealed,
.solutions-grid .solution-card.revealed,
.tech-grid .tech-item.revealed,
.trust-grid .trust-item.revealed,
.process-grid .process-step.revealed,
.industries-grid .industry-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  z-index: 999;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer Hover Effect on Cards */
.service-card::after,
.solution-card::after,
.tech-item::after,
.vendor-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s;
  pointer-events: none;
}
.service-card:hover::after,
.solution-card:hover::after,
.tech-item:hover::after,
.vendor-card:hover::after {
  left: 100%;
}
.service-card,
.solution-card,
.tech-item,
.vendor-card {
  position: relative;
  overflow: hidden;
}

/* Page Load Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-stats {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}
.hero-visual {
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Smooth image loading */
img {
  transition: opacity 0.3s;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src]) {
  opacity: 1;
}

/* Better focus styles */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth section transitions */
section {
  transition: background 0.3s;
}

/* Glow pulse for hero badge */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* Counter animation styling */
.counter-value {
  display: inline-block;
}

/* Modern card glow on hover */
.service-card:hover,
.solution-card:hover,
.tech-item:hover {
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Subtle gradient border on hover for metric items */
.metric-item {
  position: relative;
}
.metric-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96,165,250,0.3), rgba(167,139,250,0.3), transparent, transparent);
  -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;
  pointer-events: none;
}
.metric-item:hover::before {
  opacity: 1;
}

/* Blog specific styles */
.blog-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  border-color: #2563eb;
}
.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.blog-card h3 a:hover {
  color: #2563eb;
}
.blog-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Blog post page */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 16px;
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
}
.post-content p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
}
.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.post-content li {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 8px;
}
.post-content blockquote {
  border-left: 4px solid #2563eb;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}
.post-hero {
  padding: 160px 0 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 16px;
}
.post-meta-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.15);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
}
.post-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.post-toc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  margin-top: 0;
}
.post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-toc li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
}
.post-toc li:last-child {
  border-bottom: none;
}
.post-toc a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.post-toc a:hover {
  text-decoration: underline;
}
.post-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}
.post-footer-nav a {
  flex: 1;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-footer-nav a:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.post-footer-nav .next {
  text-align: right;
}
.post-footer-nav .nav-label {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}
.post-footer-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* Newsletter section */
.newsletter-box {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-top: 48px;
}
.newsletter-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.newsletter-box p {
  color: #475569;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter-form input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 48px;
  transition: all 0.3s;
}
.featured-post:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
  border-color: #2563eb;
}
.featured-post-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.featured-post-body {
  padding: 48px 48px 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post-body .blog-card-category {
  margin-bottom: 16px;
}
.featured-post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}
.featured-post-body h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.featured-post-body h2 a:hover {
  color: #2563eb;
}
.featured-post-body p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Tag / Category filter */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.blog-filter {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.blog-filter:hover,
.blog-filter.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Responsive blog */
@media(max-width:768px){
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post-body {
    padding: 24px;
  }
  .featured-post-image {
    min-height: 200px;
    max-height: 240px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-box {
    padding: 32px 20px;
  }
  .post-footer-nav {
    flex-direction: column;
  }
  .post-footer-nav .next {
    text-align: left;
  }
  .blog-filter {
    padding: 12px 20px;
  }
}
@media(max-width:480px){
  .blog-card-image {
    height: 180px;
  }
  .blog-card-body {
    padding: 20px;
  }
  .featured-post-body {
    padding: 16px;
  }
  .newsletter-box {
    padding: 24px 16px;
  }
}

/* Subtle border gradient accent on hover for cards */
.gradient-border-card {
  position: relative;
  background-clip: padding-box;
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, transparent, transparent);
  -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;
  pointer-events: none;
}
.gradient-border-card:hover::before {
  opacity: 1;
}

/* Floating reputation badge - animated */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Smooth image zoom on hover for process cards */
.process-step {
  overflow: hidden;
}

/* Better section transitions */
section {
  opacity: 0;
  animation: sectionFadeIn 0.5s ease forwards;
}
section:first-of-type {
  opacity: 1;
  animation: none;
}
@keyframes sectionFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading skeleton for images */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Smooth scroll reveal refinements */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  will-change: opacity, transform;
}

/* Selection color */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #0f172a;
}

/* Reduce motion */
@media(prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .back-to-top {
    transition: none;
  }
  .services-grid .service-card,
  .solutions-grid .solution-card,
  .tech-grid .tech-item,
  .trust-grid .trust-item,
  .process-grid .process-step,
  .industries-grid .industry-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-visual {
    opacity: 1;
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Benefits table */
.cta-benefits-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  margin-top: 36px;
}
.cta-benefits-table {
  border-collapse: collapse;
  width: auto;
}
.cta-benefits-table td {
  padding: 4px 24px 4px 0;
}
.cta-benefits-table td + td {
  padding: 4px 0;
}
.cta-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-benefit-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cta-benefit-item span {
  color: #cbd5e1;
  font-size: 0.9rem;
}



/* Blog CTA section (dark gradient) */
.blog-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-cta .container {
  position: relative;
  z-index: 1;
}
.blog-cta .section-label {
  background: rgba(37,99,235,0.15);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.2);
}
.blog-cta .section-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.blog-cta .section-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
  margin: 0 auto 36px;
}
.blog-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-cta-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #e2e8f0;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.blog-cta-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ========================================
   BLOG POST - PREMIUM READING EXPERIENCE
======================================== */

/* Reading Progress Bar */
.reading-progress{position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,#2563eb,#7c3aed);z-index:1001;width:0;transition:width 50ms linear}

/* Post Hero */
.blog-post-hero{padding:140px 0 60px;background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f172a 100%);color:#fff;position:relative;overflow:hidden}
.blog-post-hero::before{content:'';position:absolute;top:-50%;right:-10%;width:700px;height:700px;background:radial-gradient(circle,rgba(37,99,235,0.12) 0%,transparent 70%);pointer-events:none}
.blog-post-hero .container{position:relative;z-index:1}
.post-meta{display:flex;align-items:center;gap:var(--space-md);font-size:.9rem;color:#94a3b8;margin-bottom:var(--space-md);flex-wrap:wrap}
.post-meta-category{display:inline-flex;align-items:center;gap:6px;background:rgba(37,99,235,0.15);padding:4px 14px;border-radius:100px;font-size:.78rem;font-weight:600;color:#93c5fd;text-transform:uppercase;letter-spacing:.3px}
.blog-post-hero h1{font-size:clamp(1.8rem,3.5vw,3rem);font-weight:800;line-height:1.2;letter-spacing:-.5px;margin-bottom:var(--space-md);max-width:800px}
.hero-description{font-size:1.08rem;color:#cbd5e1;max-width:640px;line-height:1.7}

/* Featured Image */
.post-featured-image{padding:0 0 var(--space-xl)}
.post-featured-image .featured-image{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 16px 48px rgba(15,23,42,0.2)}
.post-featured-image .featured-image-caption{text-align:center;color:#64748b;font-size:.85rem;margin-top:12px;font-style:italic}

/* Post Content - Premium Readability */
.post-content-wrap{padding:0 0 var(--section-pad)}
.post-content{max-width:740px;margin:0 auto}
.post-content h2{font-size:1.5rem;font-weight:700;color:#0f172a;margin:48px 0 16px;line-height:1.3;letter-spacing:-.3px}
.post-content h3{font-size:1.2rem;font-weight:700;color:#0f172a;margin:32px 0 12px;line-height:1.3}
.post-content h4{font-size:1.05rem;font-weight:700;color:#0f172a;margin:24px 0 8px}
.post-content p{font-size:1.05rem;color:#475569;line-height:1.8;margin-bottom:20px}
.post-content ul,.post-content ol{margin-bottom:20px;padding-left:var(--space-lg)}
.post-content li{font-size:1.05rem;color:#475569;line-height:1.8;margin-bottom:8px}
.post-content li strong{color:#0f172a}
.post-content strong{color:#0f172a;font-weight:600}
.post-content a{color:#2563eb;text-decoration:underline;text-decoration-color:rgba(37,99,235,.3);text-underline-offset:3px;transition:text-decoration-color .2s}
.post-content a:hover{text-decoration-color:#2563eb}
.post-content blockquote{border-left:4px solid #2563eb;padding:20px 24px;margin:var(--space-xl) 0;background:#f8fafc;border-radius:0 12px 12px 0;font-style:italic;color:#475569;position:relative}
.post-content blockquote::before{content:'"';position:absolute;top:12px;left:16px;font-size:2rem;color:#2563eb;opacity:.2;font-style:normal;line-height:1}
.post-content blockquote p:last-child{margin-bottom:0}
.post-content .highlight-box{background:linear-gradient(135deg,#eff6ff,#f0f9ff);border:1px solid #bfdbfe;border-radius:12px;padding:var(--space-lg) var(--space-xl);margin:var(--space-xl) 0}
.post-content .highlight-box h4{font-size:1rem;font-weight:700;color:#1e40af;margin-bottom:8px;margin-top:0}
.post-content .highlight-box p{margin-bottom:0;font-size:.95rem}

/* TOC */
.post-toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:var(--space-lg) var(--space-xl);margin:var(--space-xl) 0;position:relative}
.post-toc h3{font-size:1rem;font-weight:700;color:#0f172a;margin-bottom:var(--space-md);margin-top:0;display:flex;align-items:center;gap:8px}
.post-toc h3::before{content:'\2630';font-size:.85rem;color:#2563eb}
.post-toc ul{list-style:none;padding:0;margin:0}
.post-toc li{padding:8px 0;border-bottom:1px solid #f1f5f9;margin:0}
.post-toc li:last-child{border-bottom:none}
.post-toc a{color:#2563eb;text-decoration:none;font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:8px;transition:gap .2s}
.post-toc a::before{content:'';width:4px;height:4px;border-radius:50%;background:#2563eb;flex-shrink:0;opacity:.4}
.post-toc a:hover{gap:12px;text-decoration:underline}

/* Image alignment */
.post-content img{display:block;width:100%;height:auto;border-radius:12px;margin:var(--space-xl) 0;box-shadow:0 4px 20px rgba(0,0,0,.06)}
.post-content img+em{display:block;text-align:center;color:#64748b;font-size:.85rem;margin-top:-24px;margin-bottom:var(--space-xl);font-style:italic}

/* Code */
.post-content code{font-family:'JetBrains Mono','Fira Code',monospace;font-size:.88rem;background:#f1f5f9;padding:2px 8px;border-radius:4px;color:#0f172a}
.post-content pre{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:var(--space-lg);margin:var(--space-xl) 0;overflow-x:auto;font-size:.88rem;line-height:1.6}
.post-content pre code{background:none;color:inherit;padding:0;font-size:inherit}

/* Tables */
.post-content table{width:100%;border-collapse:collapse;margin:var(--space-xl) 0;font-size:.95rem}
.post-content th,.post-content td{padding:12px 16px;border:1px solid #e2e8f0;text-align:left}
.post-content th{background:#f8fafc;font-weight:600;color:#0f172a}
.post-content tr:nth-child(even){background:#fafbfc}

/* Comparison / Verdict boxes */
.comparison-box{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-lg);margin:var(--space-xl) 0}
.comparison-col{padding:var(--space-lg);border-radius:12px;border:1px solid #e2e8f0}
.comparison-col.pro{background:#f0fdf4;border-color:#bbf7d0}
.comparison-col.con{background:#fef2f2;border-color:#fecaca}
.comparison-col h4{margin-top:0;margin-bottom:var(--space-sm);font-size:1rem}
.verdict-box{background:linear-gradient(135deg,#f8fafc,#eff6ff);border:1px solid #e2e8f0;border-radius:16px;padding:var(--space-lg) var(--space-xl);margin:var(--space-xl) 0}
.verdict-box h4{color:#2563eb;margin-top:0;margin-bottom:var(--space-sm);font-size:1rem}
.verdict-box p{margin-bottom:0;font-size:.95rem}

/* Post Footer */
.post-footer{border-top:1px solid #e2e8f0;padding-top:var(--space-xl);margin-top:var(--space-2xl);display:flex;justify-content:space-between;gap:var(--space-lg)}
.post-footer a{flex:1;padding:var(--space-lg);background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;text-decoration:none;transition:all .3s;display:flex;flex-direction:column;gap:4px}
.post-footer a:hover{border-color:#2563eb;box-shadow:0 4px 16px rgba(0,0,0,.04);transform:translateY(-2px)}
.post-footer .next{text-align:right}
.post-footer .nav-label{font-size:.8rem;color:#64748b;display:flex;align-items:center;gap:4px}
.post-footer .nav-title{font-size:.95rem;font-weight:700;color:#0f172a}
.post-footer .next .nav-label{justify-content:flex-end}

/* Responsive Blog Post */
@media(max-width:768px){
.blog-post-hero,.post-hero{padding:100px 0 40px}
.blog-post-hero h1,.post-hero h1{font-size:1.6rem}
.post-content h2{font-size:1.3rem;margin:32px 0 12px}
.post-content h3{font-size:1.1rem;margin:24px 0 10px}
.post-content p,.post-content li{font-size:.98rem}
.post-content{max-width:100%}
.post-footer{flex-direction:column}
.post-footer .next{text-align:left}
.comparison-box{grid-template-columns:1fr}
.post-toc{padding:var(--space-md) var(--space-lg)}
}
@media(max-width:480px){
.blog-post-hero,.post-hero{padding:80px 0 32px}
.post-toc{padding:var(--space-md)}
.post-toc h3{font-size:.9rem}
}

/* Post Hero alias */
.post-hero{padding:140px 0 60px;background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f172a 100%);color:#fff;position:relative;overflow:hidden}
.post-hero::before{content:'';position:absolute;top:-50%;right:-10%;width:700px;height:700px;background:radial-gradient(circle,rgba(37,99,235,0.12) 0%,transparent 70%);pointer-events:none}
.post-hero h1{font-size:clamp(1.8rem,3.5vw,3rem);font-weight:800;line-height:1.2;letter-spacing:-.5px;margin-bottom:var(--space-md);max-width:800px}
.post-hero .hero-description{color:#cbd5e1;font-size:1.08rem;max-width:640px;line-height:1.7}

/* Comparison Table (page-specific components) */
.comparison-table{width:100%;border-collapse:collapse;margin:24px 0;font-size:.9rem}
.comparison-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px -24px;padding:0 24px}
.comparison-table thead{background:#0f172a;color:#fff}
.comparison-table th{padding:14px 16px;text-align:left;font-weight:700;border-right:1px solid rgba(255,255,255,.1)}
.comparison-table th:last-child{border-right:none}
.comparison-table td{padding:14px 16px;border-bottom:1px solid #e2e8f0;color:#334155}
.comparison-table tr:hover td{background:#f8fafc}
.comparison-table .feature-col{font-weight:700;color:#0f172a;width:30%}
.comparison-table .winner{background:#ecfdf5;font-weight:600}

/* TLDR Box */
.tldr-box{background:#0f172a;color:#fff;border-radius:16px;padding:32px;margin:32px 0}
.tldr-box h3{font-size:1.1rem;font-weight:800;margin-bottom:16px;color:#fff}
.tldr-box ul{list-style:none;padding:0;margin:0}
.tldr-box li{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:.95rem;color:#cbd5e1;display:flex;gap:12px}
.tldr-box li:last-child{border-bottom:none}
.tldr-box .tldr-icon{flex-shrink:0;width:20px;height:20px;background:rgba(37,99,235,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#60a5fa}

/* Diagram containers */
.architecture-diagram,.use-case-diagram,.diagram-section{padding:40px 0}
.architecture-diagram .diagram-container,.use-case-diagram .diagram-container{background:#0f172a;border-radius:12px;padding:24px;margin:24px 0;border:1px solid rgba(255,255,255,.08);overflow-x:auto}
.architecture-diagram .diagram-container svg,.use-case-diagram .diagram-container svg{width:100%;min-width:700px;height:auto}
.architecture-diagram .diagram-caption,.use-case-diagram .diagram-caption{text-align:center;color:#94a3b8;font-size:.85rem;margin-top:16px;font-style:italic}

/* Pricing Cards */
.pricing-comparison{padding:40px 0}
.pricing-comparison .pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}
.pricing-comparison .pricing-card{background:#1e293b;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:28px}
.pricing-comparison .pricing-card h3{font-size:1.1rem;margin-bottom:16px}
.pricing-comparison .pricing-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:.9rem}
.pricing-comparison .pricing-item:last-child{border-bottom:none}
.pricing-comparison .pricing-label{color:#94a3b8}
.pricing-comparison .pricing-value{color:#e2e8f0;font-weight:600}

/* FAQ Section */
.faq-section{margin:32px 0}
.faq-item{border:1px solid #e2e8f0;border-radius:12px;margin-bottom:12px;overflow:hidden}
.faq-question{padding:16px 20px;background:#f8fafc;font-weight:600;color:#0f172a;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.faq-answer{padding:16px 20px;color:#475569;font-size:.95rem;line-height:1.7}

/* Author Bio */
.author-bio{display:flex;gap:20px;align-items:flex-start;padding:24px;background:#f8fafc;border-radius:16px;margin:40px 0}
.author-bio-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);flex-shrink:0}
.author-bio-info h4{font-weight:700;font-size:1rem;color:#0f172a;margin-bottom:4px}
.author-bio-info p{font-size:.9rem;color:#64748b;line-height:1.6;margin:0}

/* Verdict Grid (page-specific) */
.verdict-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.verdict-item{padding:20px;border-radius:12px;background:#fff;border:1px solid #e2e8f0}
.verdict-item h4{font-size:.95rem;font-weight:700;margin-bottom:8px;display:flex;align-items:center;gap:8px;color:#0f172a}
.verdict-item p{font-size:.88rem;color:#475569;line-height:1.7;margin:0}

/* Blog CTA base */
.blog-cta{padding:80px 0}
.blog-cta .section-title{color:#fff}
.blog-cta .section-subtitle{color:#cbd5e1}

/* Agent/RAG pipeline diagrams */
.agent-loop-diagram,.rag-pipeline-diagram{padding:40px 0}

@media(max-width:768px){
.comparison-table{min-width:600px}
.comparison-table th,.comparison-table td{padding:10px 8px;font-size:.78rem}
.architecture-diagram .diagram-container,.use-case-diagram .diagram-container{padding:16px}
.pricing-comparison .pricing-grid{grid-template-columns:1fr}
.verdict-grid{grid-template-columns:1fr}
.tldr-box{padding:24px 16px}
.blog-cta{padding:48px 0}
.faq-section .comparison-table-wrap{overflow-x:auto}
}
