/*══════════════════════════════════════
      RESET & TOKENS
    ══════════════════════════════════════*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --red: #d63c2f;
  --blue-600: #2563eb;
  --red-dark: #b02a1f;
  --red-soft: #fdf0ef;
  --red-border: #f5c9c5;

  /* Neutrals */
  --ink-900: #0d0d0d;
  --ink-700: #2e2e2e;
  --ink-500: #5a5a5a;
  --ink-400: #7d7d7d;
  --ink-300: #a3a3a3;
  --ink-100: #e8e5e0;
  --ink-50: #f4f2ee;
  --ink-20: #faf9f6;

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f4f2ee;

  /* Type */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Layout */
  --nav-h: 64px;
  --progress-h: 3px;
  --content-max: 740px;
  --layout-max: 1260px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 6px 20px rgba(214, 60, 47, 0.25);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--ink-20);
  color: var(--ink-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/*══════════════════════════════════════
      PROGRESS BAR
    ══════════════════════════════════════*/
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  height: var(--progress-h);
  width: 0;
  background: linear-gradient(90deg, var(--red), #ff7b6e);
  transition: width 0.1s linear;
  pointer-events: none;
}

/*══════════════════════════════════════
      HEADER
    ══════════════════════════════════════*/
.site-header {
  position: sticky;
  top: var(--progress-h);
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ink-100);
}

.header-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.logo-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.3px;
}

.logo-name em {
  color: var(--red);
  font-style: normal;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  padding: 6px 13px;
  border-radius: var(--r-sm);
  transition:
    color 0.18s,
    background 0.18s;
}

.site-nav a:hover {
  color: var(--ink-900);
  background: var(--ink-50);
}

.site-nav a.active {
  color: var(--red);
}

.site-nav .btn-cta {
  background: var(--blue-600);
  color: #fff !important;
  border-radius: var(--r-xl);
  padding: 7px 16px !important;
}

.site-nav .btn-cta:hover {
  background: var(--blue-600) !important;
}

/* Header right group */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-20);
  padding: 7px 14px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--ink-100);
  background: var(--blue-600);
  transition: all 0.18s;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-back i {
  width: 13px;
  height: 13px;
}

/* Mobile hamburger */
.btn-mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
  padding: 6px;
}

/*══════════════════════════════════════
      MOBILE NAV OVERLAY
    ══════════════════════════════════════*/
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--ink-20);
  flex-direction: column;
  padding: 80px 28px 28px;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-100);
}

#mobile-nav a:hover {
  color: var(--red);
}

.btn-close-nav {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
}

/*══════════════════════════════════════
      ARTICLE HERO
    ══════════════════════════════════════*/
.article-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--ink-100);
  padding: 60px 28px 52px;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  padding: 5px 13px;
  border-radius: var(--r-full);
  margin-bottom: 22px;
}

.hero-cat i {
  width: 12px;
  height: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--ink-900);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-500);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #ff8a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  display: block;
  line-height: 1.3;
}

.author-role {
  font-size: 12px;
  color: var(--ink-300);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--ink-100);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-400);
}

.meta-pill i {
  width: 13px;
  height: 13px;
  color: var(--ink-300);
}

/*══════════════════════════════════════
      COVER IMAGE (below hero, before layout)
    ══════════════════════════════════════*/
.cover-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 32px 28px 0;
}

.cover-wrap figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21/9;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*══════════════════════════════════════
      ARTICLE LAYOUT (article + sidebar)
    ══════════════════════════════════════*/
.article-layout {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 48px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}

/*──────────────────────────────────────
      ARTICLE BODY
    ──────────────────────────────────────*/
.article-body {
  min-width: 0;
}

/* Sections */
.a-section {
  margin-bottom: 44px;
}

.a-section h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.a-section h2 .s-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--red-soft);
  flex-shrink: 0;
}

.a-section h2 .s-icon i {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.a-section h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 26px 0 12px;
  line-height: 1.35;
}

.a-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
  margin: 20px 0 8px;
}

.a-section p {
  font-size: 16.5px;
  color: var(--ink-500);
  line-height: 1.88;
  margin-bottom: 18px;
}

.a-section a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.a-section a:hover {
  color: var(--red-dark);
}

/* List items */
.a-section ul,
.a-section ol {
  margin: 0 0 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.a-section li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.7;
}

.li-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.li-dot i {
  width: 11px;
  height: 11px;
  color: var(--red);
}

/* Numbered step cards */
.step-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-serif);
}

.step-body {
  flex: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 5px;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.65;
  margin: 0;
}

/* Highlight box */
.highlight-box {
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18.5px !important;
  color: var(--ink-900) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Feature cards (key features grid) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.fc-icon i {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.fc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 5px;
}

.fc-desc {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.6;
}

/* Comparison / software cards */
.sw-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.sw-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.sw-rank {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-rec {
  border-color: var(--red-border);
  background: var(--red-soft);
}

.sw-rec .sw-rank {
  background: var(--red);
  color: #fff;
}

.sw-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-rec {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.sw-desc {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Inline image */
.inline-fig {
  margin: 28px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.inline-fig img {
  width: 100%;
}

.inline-fig figcaption {
  font-size: 12.5px;
  color: var(--ink-300);
  font-style: italic;
  padding: 10px 16px;
  background: var(--surface-alt);
  text-align: center;
}

/* CTA block */
.cta-block {
  margin: 32px 0;
  background: linear-gradient(120deg, var(--ink-900) 0%, #1e1e1e 100%);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-text-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}

.cta-text-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--r-md);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.18s,
    transform 0.18s;
  box-shadow: var(--shadow-red);
}

.btn-cta-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-cta-primary i {
  width: 15px;
  height: 15px;
}

/* Article footer: tags + share */
.article-footer {
  border-top: 1px solid var(--ink-100);
  margin-top: 48px;
  padding-top: 32px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--surface);
  border: 1.5px solid var(--ink-100);
  padding: 5px 13px;
  border-radius: var(--r-full);
  transition: all 0.18s;
}

.tag-chip:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-border);
}

.tag-chip i {
  width: 11px;
  height: 11px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-label i {
  width: 14px;
  height: 14px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--surface);
  border: 1.5px solid var(--ink-100);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.18s;
}

.btn-share:hover {
  background: var(--ink-50);
  border-color: var(--ink-400);
  color: var(--ink-900);
}

.btn-share i {
  width: 13px;
  height: 13px;
}

/* Author card */
.author-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.author-card-av {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #ff8a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.author-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 3px;
}

.author-card-role {
  font-size: 12.5px;
  color: var(--ink-300);
  margin-bottom: 10px;
}

.author-card-bio {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
}

/*──────────────────────────────────────
      SIDEBAR
    ──────────────────────────────────────*/
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.sidebar-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-400);
}

.sidebar-hd i {
  width: 13px;
  height: 13px;
}

/* Progress ring */
.prog-ring-wrap {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ring-svg {
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.ring-bg {
  fill: none;
  stroke: var(--ink-100);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.15s linear;
}

.ring-pct-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.ring-pct-wrap svg {
  position: absolute;
  inset: 0;
}

.ring-pct-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-900);
}

.ring-label strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.ring-label span {
  font-size: 12px;
  color: var(--ink-400);
}

/* TOC */
.toc-ul {
  list-style: none;
  padding: 6px 0;
}

.toc-li a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--ink-500);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.45;
}

.toc-li a:hover {
  color: var(--ink-900);
  background: var(--ink-50);
}

.toc-li a.active {
  color: var(--red);
  background: var(--red-soft);
  border-left-color: var(--red);
}

.toc-n {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-300);
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.toc-li a.active .toc-n {
  color: var(--red);
}

/* Related */
.related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-50);
  transition: background 0.15s;
}

.related-item:last-child {
  border-bottom: none;
}

.related-item:hover {
  background: var(--ink-50);
}

.rel-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.rel-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-date {
  font-size: 11px;
  color: var(--ink-300);
  margin-top: 3px;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--i) * 80ms);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    display: none;
  }

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

@media (max-width: 768px) {
  #header {
    padding: 0 20px;
  }

  nav ul {
    display: none;
  }

  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 16px;
    border-bottom: 1px solid #dde6f5;
    box-shadow: 0 8px 24px rgba(10, 50, 120, 0.08);
  }

  .mobile-toggle {
    display: flex;
  }

  #hero {
    padding: 100px 20px 60px;
  }

  .container {
    padding: 0 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/*══════════════════════════════════════
      ANIMATIONS
    ══════════════════════════════════════*/
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.anim {
  animation: fadeUp 0.45s ease both;
}

.d1 {
  animation-delay: 0.04s;
}

.d2 {
  animation-delay: 0.1s;
}

.d3 {
  animation-delay: 0.17s;
}

.d4 {
  animation-delay: 0.24s;
}

/*══════════════════════════════════════
      RESPONSIVE
    ══════════════════════════════════════*/
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    order: -1;
  }

  .prog-ring-wrap {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .btn-mobile-menu {
    display: flex;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero-meta .meta-divider {
    display: none;
  }

  .author-card {
    flex-direction: column;
  }

  .article-hero {
    padding: 36px 20px 32px;
  }

  .cover-wrap {
    padding: 24px 20px 0;
  }

  .article-layout {
    padding: 32px 20px 64px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: 24px 20px;
  }
}
