:root {
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --bg: #f8f7fb;
  --surface: #fff;
  --text: #181326;
  --soft: #4b435e;
  --muted: #756f87;
  --line: #ebe7f4;
  --brand: #7c3aed;
  --brand2: #6d28d9;
  --brand3: #5b21b6;
  --brand-soft: #f1ebff;
  --teal: #14b8a6;
  --shadow: 0 18px 50px rgba(31, 23, 56, 0.08);
  --container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  background:
    radial-gradient(
      850px 500px at 0 -10%,
      rgba(124, 58, 237, 0.11),
      transparent 62%
    ),
    radial-gradient(
      760px 480px at 100% 0%,
      rgba(20, 184, 166, 0.08),
      transparent 58%
    ),
    linear-gradient(180deg, #fbfaff, var(--bg));
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 84px;
  color: #fff;
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(124, 58, 237, 0.58),
      transparent 31%
    ),
    radial-gradient(
      circle at 86% 82%,
      rgba(20, 184, 166, 0.22),
      transparent 32%
    ),
    linear-gradient(135deg, #020b12 0%, #071923 48%, #03111a 100%);
}
.blog-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, #fbfaff, rgba(251, 250, 255, 0));
  pointer-events: none;
}
.blog-hero .container {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 999px;
  color: #eee8ff;
  background: rgba(124, 58, 237, 0.18);
  font-size: 12px;
  font-weight: 950;
}
.blog-hero h1 {
  max-width: 900px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.38;
  letter-spacing: -1px;
}
.blog-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 2.1;
  font-weight: 650;
}

.blog-hero .post-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.blog-hero .post-card__meta span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.07)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  color: #fff;
  line-height: 1;
}

.blog-hero .post-card__meta i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
  font-size: 12px;
}
.section {
  padding: 70px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.55;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(31, 23, 56, 0.07);
  transition: 0.18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(31, 23, 56, 0.13);
  border-color: rgba(124, 58, 237, 0.22);
}
.post-card__image {
  height: 210px;
  background: #ede9fe;
  overflow: hidden;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  padding: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand3);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 950;
}
.post-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.65;
}
.post-card p {
  margin: 0;
  color: #665f76;
  font-size: 14px;
  line-height: 2;
  font-weight: 650;
}
.post-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #8b8499;
  font-size: 12px;
  font-weight: 800;
}
.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 23, 56, 0.055);
}
.category-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--teal));
}
.category-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand3);
  font-size: 20px;
  margin-bottom: 14px;
}
.category-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
  font-weight: 650;
}
.article-hero {
  padding-bottom: 58px;
}
.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 38px;
  align-items: center;
}
.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 58px);
}
.article-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}
.article-cover img {
  width: 100%;
  height: auto;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.article h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.6;
}
.article h2:first-child {
  margin-top: 0;
}
.article h3 {
  margin: 26px 0 10px;
  font-size: 21px;
}
.article p {
  margin: 0 0 16px;
  color: #3f374f;
  line-height: 2.2;
  font-weight: 620;
}
.article ul,
.article ol {
  padding-right: 22px;
  color: #3f374f;
}
.article li {
  margin: 8px 0;
  line-height: 2.1;
}
.note-box {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: #f8f4ff;
  border: 1px solid #dfd2ff;
  color: #4c2a8a;
  font-weight: 750;
}
.toc {
  position: sticky;
  top: 110px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(31, 23, 56, 0.055);
}
.toc b {
  display: block;
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 8px 0;
  color: #5f5871;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid #f3eef9;
}
.cta-box {
  margin-top: 28px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #171225, #31205a);
  color: #fff;
}
.cta-box h3 {
  margin: 0 0 10px;
  color: #fff;
}
.cta-box p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
}
.btn {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--soft);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(31, 23, 56, 0.04);
}
.btn--primary {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.22);
}
.empty {
  padding: 26px;
  border: 1px dashed #d9ccff;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}
@media (max-width: 980px) {
  .grid-3,
  .grid-2,
  .article-hero__grid,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
  .blog-hero {
    padding-top: 132px;
  }
  .section-head {
    display: block;
  }
  .article {
    padding: 24px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .blog-hero {
    padding: 126px 0 68px;
  }
  .post-card__image {
    height: 185px;
  }
  .article h2 {
    font-size: 23px;
  }
  .article {
    padding: 20px;
    border-radius: 24px;
  }
}
