/* ── Blog Article ── */

:root {
  --blog-article-ink: #091223;
  --blog-article-ink-soft: rgba(9, 18, 35, 0.7);
  --blog-article-line: rgba(9, 18, 35, 0.1);
  --blog-article-paper: rgba(255, 255, 255, 0.9);
  --blog-article-paper-strong: rgba(255, 255, 255, 0.96);
  --blog-article-blue: #1457d7;
  --blog-article-orange: #e36b21;
  --blog-article-shadow: 0 26px 60px rgba(9, 18, 35, 0.12);
  --blog-article-shadow-strong: 0 30px 80px rgba(9, 18, 35, 0.16);
}

body.blog-article-page {
  background-color: #f1efe6;
  background-image:
    radial-gradient(rgba(17, 30, 55, 0.14) 0.9px, transparent 0.9px),
    radial-gradient(1100px 620px at 12% -8%, rgba(255, 255, 255, 0.92), transparent 64%),
    radial-gradient(980px 560px at 95% 6%, rgba(196, 206, 224, 0.42), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(241, 238, 230, 0.94));
  background-size: 24px 24px, auto, auto, auto;
  color: var(--blog-article-ink);
}

.blog-article-bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--blog-article-hero-bg, none) center / cover no-repeat;
  opacity: 0.18;
}

.blog-article-page .article-shell,
.blog-article-page .article-content-main,
.blog-article-page footer {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   CINEMATIC HERO — Full-viewport (About page style)
   ═══════════════════════════════════════ */

.article-cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 5vw, 80px) clamp(60px, 8vh, 120px);
  overflow: hidden;
  z-index: 2;
}

.article-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.85);
}

.article-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 23, 48, 0.95) 0%,
    rgba(12, 23, 48, 0.55) 38%,
    rgba(12, 23, 48, 0.18) 68%,
    transparent 100%
  );
  z-index: 1;
}

.article-cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.article-cinematic-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blog-article-orange);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.3s ease forwards;
}

.article-cinematic-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 0.8s 0.5s ease forwards;
}

.article-cinematic-lead {
  max-width: 640px;
  margin-top: 24px;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.65s ease forwards;
}

.article-cinematic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.6s 0.8s ease forwards;
}

.article-cinematic-meta .meta-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.article-cinematic-line {
  width: 60px;
  height: 2px;
  background: var(--blog-article-orange);
  margin-top: 32px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroLineIn 0.6s 0.9s ease forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineIn {
  to { opacity: 1; transform: scaleX(1); }
}

/* ── Content Area (below hero) ── */

.article-content-main {
  padding: 3rem 0 4.5rem;
}

.article-shell {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

/* ── Stats Bar ── */

.article-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.article-stat {
  padding: 1.1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid var(--blog-article-line);
  background: linear-gradient(180deg, var(--blog-article-paper-strong), rgba(255, 255, 255, 0.84));
  box-shadow: var(--blog-article-shadow);
}

.article-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--blog-article-blue);
}

.article-stat span {
  display: block;
  margin-top: 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(9, 18, 35, 0.5);
}

/* ── Actions ── */

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.article-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.22rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.article-btn,
.article-btn:visited {
  text-decoration: none;
}

.article-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.article-btn:hover {
  transform: translateY(-2px);
}

.article-btn-primary {
  background: linear-gradient(135deg, var(--blog-article-blue), #0e46b0);
  color: #fff;
  box-shadow: 0 18px 32px rgba(20, 87, 215, 0.24);
}

.article-btn-primary:visited {
  color: #fff;
}

.article-btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--blog-article-ink);
  border: 1px solid var(--blog-article-line);
}

.article-btn-secondary:visited {
  color: var(--blog-article-ink);
}

/* ── Content Layout ── */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 1.25rem;
}

.article-story {
  display: grid;
  gap: 1rem;
}

/* ── Shared Card Styles ── */

.article-section,
.article-side-card,
.article-resource-card,
.article-cta {
  border-radius: 1.9rem;
  border: 1px solid var(--blog-article-line);
  background: linear-gradient(180deg, var(--blog-article-paper-strong), rgba(255, 255, 255, 0.84));
  box-shadow: var(--blog-article-shadow);
}

/* ── Sections ── */

.article-section {
  padding: 1.55rem;
}

.article-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blog-article-orange);
  font-size: 0.78rem;
  font-family: var(--font-sub);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-section-title {
  margin-top: 0.8rem;
  font-size: clamp(1.72rem, 3vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--blog-article-ink);
}

.article-text {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.article-text p,
.article-text li {
  line-height: 1.8;
  color: var(--blog-article-ink-soft);
}

.article-text a,
.article-brand-link,
.article-side-list a,
.article-resource-link,
.article-cta a:not(.article-btn) {
  color: var(--blog-article-blue);
  font-weight: 700;
  text-decoration: none;
}

.article-text a:hover,
.article-brand-link:hover,
.article-side-list a:hover,
.article-resource-link:hover,
.article-cta a:not(.article-btn):hover {
  text-decoration: underline;
}

/* ── Inner content grids ── */

.article-card-grid,
.article-product-grid,
.article-resource-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.article-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  padding: 1.1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(9, 18, 35, 0.08);
  background: rgba(245, 241, 233, 0.92);
}

.article-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--blog-article-ink);
}

.article-card p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--blog-article-ink-soft);
}

.article-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-product-card {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(9, 18, 35, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(9, 18, 35, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 87, 215, 0.16);
  box-shadow: 0 18px 34px rgba(9, 18, 35, 0.12);
}

.article-product-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-product-link:focus-visible {
  outline: 3px solid rgba(20, 87, 215, 0.28);
  outline-offset: 4px;
  border-radius: 1.15rem;
}

.article-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f7f5f0;
}

.article-product-card figcaption {
  padding: 0.95rem 1rem 1rem;
}

.article-product-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--blog-article-ink);
}

.article-product-link:hover strong,
.article-product-link:focus-visible strong {
  color: var(--blog-article-blue);
}

.article-product-card span {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--blog-article-ink-soft);
}

/* ── Callout ── */

.article-callout {
  margin-top: 1.1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(20, 87, 215, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 87, 215, 0.12);
}

.article-callout strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-article-blue);
}

.article-callout p {
  margin-top: 0.45rem;
  line-height: 1.75;
  color: var(--blog-article-ink-soft);
}

.article-card-index,
.article-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 87, 215, 0.14), rgba(227, 107, 33, 0.16));
  border: 1px solid rgba(20, 87, 215, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-article-blue);
}

.article-card-index {
  margin-bottom: 0.75rem;
}

.article-dual-grid,
.article-step-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.article-dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-dual-card,
.article-step-card {
  padding: 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(9, 18, 35, 0.08);
  background: rgba(245, 241, 233, 0.92);
}

.article-dual-card h3,
.article-step-card h3 {
  margin-top: 0.8rem;
  font-size: 1.04rem;
  line-height: 1.15;
  color: var(--blog-article-ink);
}

.article-dual-card p,
.article-step-card p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--blog-article-ink-soft);
}

.article-dual-card-success {
  background:
    radial-gradient(circle at top right, rgba(61, 158, 86, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(238, 249, 241, 0.96), rgba(230, 244, 234, 0.92));
  border-color: rgba(61, 158, 86, 0.2);
  box-shadow: 0 18px 34px rgba(61, 158, 86, 0.12);
}

.article-dual-card-success h3 {
  color: #17582b;
}

.article-dual-card-success p,
.article-dual-card-success li {
  color: rgba(23, 88, 43, 0.82);
}

.article-dual-card-success .article-checklist li::before {
  background: linear-gradient(135deg, #2d9a53, #7fd07a);
  box-shadow: 0 0 0 4px rgba(61, 158, 86, 0.14);
}

.article-step-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(20, 87, 215, 0.1), transparent 38%),
    rgba(245, 241, 233, 0.94);
}

.article-step-card::after {
  content: "";
  position: absolute;
  inset: auto 1.15rem 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 87, 215, 0.84), rgba(227, 107, 33, 0.7));
}

.article-checklist {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.article-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  line-height: 1.75;
  color: var(--blog-article-ink-soft);
}

.article-checklist li::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blog-article-blue), var(--blog-article-orange));
  box-shadow: 0 0 0 4px rgba(20, 87, 215, 0.08);
}

.article-pull-panel {
  margin-top: 1.15rem;
  padding: 1.3rem 1.35rem;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(12, 23, 48, 0.96), rgba(25, 42, 81, 0.92));
  box-shadow: 0 20px 36px rgba(9, 18, 35, 0.18);
}

.article-pull-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.article-pull-panel p {
  margin-top: 0.65rem;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.94);
}

/* ── Sidebar ── */

.article-side {
  display: grid;
  gap: 1rem;
  align-self: start;
  position: sticky;
  top: 7rem;
}

.article-side-card {
  padding: 1.35rem;
}

.article-side-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--blog-article-ink);
}

.article-side-card p {
  margin-top: 0.7rem;
  line-height: 1.7;
  color: var(--blog-article-ink-soft);
}

/* ── Sidebar Quick Links ── */

.article-side-list {
  display: grid;
  gap: 0;
  margin-top: 0.95rem;
}

.article-side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(9, 18, 35, 0.06);
  font-size: 0.92rem;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.article-side-list a:first-child {
  border-top: 1px solid rgba(9, 18, 35, 0.06);
}

.article-side-list a:hover {
  text-decoration: none;
  padding-left: 0.3rem;
}

.article-side-list a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.article-side-list a:hover svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ── Article CTA ── */

.article-cta {
  margin-top: 1.35rem;
  padding: 1.7rem 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(20, 87, 215, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(227, 107, 33, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.article-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.article-cta p {
  max-width: 44rem;
  margin-top: 0.8rem;
  line-height: 1.8;
  color: var(--blog-article-ink-soft);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

/* ── Resource Grid ── */

.article-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.article-resource-card {
  overflow: hidden;
  display: grid;
}

.article-resource-thumb {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #d6cebf;
}

.article-resource-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-resource-body {
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.article-resource-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(9, 18, 35, 0.48);
}

.article-resource-body h3 {
  font-size: 1.22rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--blog-article-ink);
}

.article-resource-body p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--blog-article-ink-soft);
}

.article-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin-top: 0.2rem;
}

.article-resource-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Back Link (inside content area) ── */

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(9, 18, 35, 0.64);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

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

.article-back svg {
  width: 1rem;
  height: 1rem;
}

/* ── Responsive ── */

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .article-card-grid,
  .article-dual-grid,
  .article-product-grid,
  .article-resource-grid,
  .article-step-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    width: min(100%, calc(100% - 1.5rem));
  }

  .article-section,
  .article-side-card,
  .article-cta {
    padding: 1.2rem;
  }

  .article-cinematic-hero {
    min-height: 85vh;
  }

  .article-cinematic-title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .article-stats-bar {
    grid-template-columns: 1fr;
  }
}
