:root {
  --blog-max: 1180px;
  --blog-content: 760px;
}

.blog-shell {
  width: min(var(--blog-max), calc(100% - (var(--sw-container-pad) * 2)));
  margin: 0 auto;
}

.blog-content {
  width: min(var(--blog-content), calc(100% - (var(--sw-container-pad) * 2)));
  margin: 0 auto;
}

.blog-main {
  padding: 0;
}

/* ================= HERO ================= */

.blog-hero {
  position: relative;
  overflow: hidden;
  background: var(--sw-hero-bg);
  border-bottom: 1px solid var(--sw-border);
}

.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

.blog-hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -180px;
  background: radial-gradient(circle, var(--sw-glow-indigo), transparent 70%);
}

.blog-hero::after {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -160px;
  background: radial-gradient(circle, var(--sw-glow-cyan), transparent 70%);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 110px) 0 clamp(40px, 6vw, 64px);
}

.blog-eyebrow {
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
}

.blog-hero h1 {
  margin: 0 0 18px 0;
  font-size: var(--sw-h1);
  line-height: 1.05;
  font-weight: 600;
}

.blog-hero-lead {
  margin: 0 0 28px 0;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--sw-muted-strong);
  max-width: 60ch;
}

.blog-hero .blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-hero .sw-btn {
  padding: 14px 30px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
}

/* ================= INDEX GRID ================= */

.blog-section {
  padding: clamp(48px, 7vw, 80px) 0;
}

.blog-section--tint {
  background: linear-gradient(180deg, rgba(6, 14, 34, 0.72), rgba(6, 16, 38, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-section-head {
  max-width: 74ch;
  margin: 0 0 28px 0;
}

.blog-section-head h2 {
  margin: 0 0 12px 0;
  font-size: var(--sw-h2);
  line-height: 1.15;
  font-weight: 500;
}

.blog-section-head p {
  margin: 0;
  color: var(--sw-muted);
  line-height: 1.7;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.blog-index-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  background: rgba(15, 25, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.35);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.blog-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(10, 18, 41, 0.82);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  flex-shrink: 0;
  background: #04091c;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}

.blog-index-card:hover .blog-card-img img {
  transform: scale(1.03);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 26px 26px;
}

.blog-card-cluster {
  display: inline-block;
  margin: 0 0 12px 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-index-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-index-card p {
  margin: 0;
  color: var(--sw-muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--sw-subtle);
}

.blog-card-read {
  margin-left: auto;
  color: rgba(226, 232, 240, 0.92);
  font-weight: 600;
}

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

.blog-article-hero {
  position: relative;
  overflow: hidden;
  background: var(--sw-hero-bg);
  border-bottom: 1px solid var(--sw-border);
}

.blog-article-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sw-glow-indigo), transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.blog-article-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sw-glow-cyan), transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.blog-article-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 110px) 0 clamp(32px, 5vw, 48px);
}

.blog-article-hero h1 {
  margin: 0 0 18px 0;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  max-width: 22ch;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--sw-subtle);
}

.blog-article-meta .blog-card-cluster {
  margin: 0;
}

/* ================= PROSE BODY ================= */

.blog-prose {
  padding: clamp(36px, 5vw, 56px) 0;
}

.blog-prose h2 {
  margin: 48px 0 16px 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.blog-prose h2:first-child {
  margin-top: 0;
}

.blog-prose h3 {
  margin: 36px 0 12px 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.blog-prose p {
  margin: 0 0 20px 0;
  line-height: 1.8;
  color: var(--sw-muted-strong);
  font-size: 17px;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
  line-height: 1.8;
  color: var(--sw-muted-strong);
  font-size: 17px;
}

.blog-prose li {
  margin: 6px 0;
}

.blog-prose strong {
  color: var(--sw-text);
  font-weight: 600;
}

.blog-prose a {
  color: var(--sw-accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-prose a:hover {
  text-decoration: underline;
}

.blog-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--sw-accent);
  border-radius: 0 16px 16px 0;
  background: rgba(34, 211, 238, 0.06);
  color: var(--sw-muted-strong);
  font-style: italic;
  line-height: 1.7;
}

.blog-prose blockquote p {
  margin: 0;
}

.blog-callout {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.blog-callout p {
  margin: 0;
  color: var(--sw-muted-strong);
}

.blog-callout strong {
  color: var(--sw-accent);
}

/* ================= CTA ================= */

.blog-cta {
  border-radius: var(--sw-radius-lg, 28px);
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(29, 78, 216, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.35);
  text-align: center;
}

.blog-cta h2 {
  margin: 0 0 10px !important;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}

.blog-cta p {
  margin: 0 0 20px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}

.blog-cta .blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-cta .sw-btn--primary {
  color: #0f172a;
}

.blog-cta .sw-btn--secondary {
  color: inherit;
}

/* ================= BACK LINK & DISCLAIMER ================= */

.blog-back {
  margin-top: 28px;
}

.blog-back a {
  color: var(--sw-accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-back a:hover {
  text-decoration: underline;
}

.blog-disclaimer {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.75;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 960px) {
  .blog-hero h1 {
    text-align: center;
  }

  .blog-hero-lead {
    text-align: center;
    max-width: none;
  }

  .blog-hero .blog-actions {
    justify-content: center;
  }

  .blog-article-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .blog-index-grid {
    grid-template-columns: 1fr;
  }
}
