.blog-page { --acc: #f97316; --acc-2: #fb923c; }

.b-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 170px;
  color: #fff;
  text-align: center;
  background: #0b0a12;
}
.b-aura { position: absolute; inset: 0; z-index: -1; }
.b-aura::before,
.b-aura::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .3;
}
.b-aura::before {
  top: -32vmax;
  left: -12vmax;
  background: radial-gradient(circle, var(--acc), transparent 65%);
  animation: b-drift 16s ease-in-out infinite alternate;
}
.b-aura::after {
  top: -26vmax;
  right: -22vmax;
  background: radial-gradient(circle, #7c3aed, transparent 65%);
  animation: b-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes b-drift { to { transform: translate(10vmax, 6vmax) scale(1.12); } }
.b-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}
.b-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.b-hero p {
  max-width: 480px;
  margin: 0 auto 30px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
}

.b-list {
  position: relative;
  z-index: 1;
  margin-top: -100px;
  padding-bottom: 110px;
}

.b-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin-bottom: 28px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 40px 80px -50px rgba(11, 11, 20, .5);
  animation: b-in .7s var(--ease) both;
}
.b-featured .post-media { position: relative; aspect-ratio: auto; min-height: 400px; }
.b-featured .post-media img { position: absolute; inset: 0; }
.b-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 46px;
}
.b-featured h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.b-featured p {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.b-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
}
.b-read svg {
  width: 34px; height: 34px;
  padding: 8px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  background: var(--ink);
  border-radius: 11px;
  transition: background .3s, transform .4s var(--ease);
}
.b-featured:hover .b-read svg { background: var(--acc); transform: rotate(45deg); }
.b-featured:hover .post-media img { transform: scale(1.05); }

.b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.b-grid .post-card { animation: b-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.post-excerpt {
  display: -webkit-box;
  margin: -4px 0 14px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.post-meta time,
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.post-meta svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
@keyframes b-in { from { opacity: 0; transform: translateY(16px); } }

.bd-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}
.bd-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a8df0, #e84230, #f8b800);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.bd-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(56vh, 500px);
  padding: 130px 0 84px;
  overflow: hidden;
  color: #fff;
  background: #0b0a12;
}
.bd-hero-bg { position: absolute; inset: 0; z-index: -1; }
.bd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bd-zoom 1.6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes bd-zoom { from { transform: scale(1.08); opacity: .4; } }
.bd-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 18, .55) 0%, rgba(11, 10, 18, 0) 28%, rgba(11, 10, 18, .2) 50%, rgba(11, 10, 18, .92) 100%),
    linear-gradient(90deg, rgba(11, 10, 18, .55), transparent 70%),
    rgba(11, 10, 18, .4);
}
.bd-hero .container { width: 100%; max-width: 1100px; }
.bd-hero .container > * { animation: b-in .8s var(--ease) both; }
.bd-hero .container > :nth-child(2) { animation-delay: .08s; }
.bd-hero .container > :nth-child(3) { animation-delay: .14s; }
.bd-hero .container > :nth-child(4) { animation-delay: .2s; }
.bd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 13px 7px 9px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s, color .25s;
}
.bd-back:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.bd-back svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.bd-back:hover svg { transform: translateX(-3px); }
.bd-tags { display: flex; }
.bd-tags li {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bd-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.bd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
}
.bd-meta > span { display: inline-flex; align-items: center; gap: 10px; }
.bd-meta > span + span::before {
  content: "";
  width: 4px; height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}
.bd-author { color: #fff; font-weight: 600; }
.bd-author .chat-mark { --d: 6px; }

.bd-sheet {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding-top: 64px;
  background: #fff;
  border-radius: 36px 36px 0 0;
}
.bd-sheet::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 5px;
  margin-left: -22px;
  border-radius: 5px;
  background: #e4e4ea;
}

.bd-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  justify-content: center;
  gap: 72px;
}

.bd-article {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.bd-article > p:first-child {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
}
.bd-article p { margin: 0 0 22px; }
.bd-article h2 {
  margin: 48px 0 16px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
  scroll-margin-top: 110px;
}
.bd-article ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.bd-article li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 28px;
}
.bd-article li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .15);
}
.bd-article strong { font-weight: 600; color: var(--ink); }
.bd-article blockquote {
  position: relative;
  margin: 36px 0;
  padding: 30px 34px 30px 38px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--ink);
  background: #fff7f0;
  border-radius: 22px;
}
.bd-article blockquote::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--acc), #f8b800);
}

.bd-article pre {
  margin: 0 0 28px;
  padding: 22px 24px;
  overflow-x: auto;
  font: 13.5px/1.7 ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color: #e7e5f0;
  background: #14121c;
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
  tab-size: 4;
}
.bd-article pre code { font: inherit; white-space: pre; }
.bd-code {
  margin: 30px 0 32px;
  overflow: hidden;
  background: #14121c;
  border-radius: 20px;
  box-shadow: 0 30px 60px -40px rgba(11, 11, 20, .6), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.bd-code pre { margin: 0; padding-top: 6px; border-radius: 0; }
.bd-code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.bd-code-head::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .18);
}
.bd-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-left: auto;
  padding: 0 12px;
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-radius: 9px;
  transition: background .25s;
}
.bd-code-copy:hover { background: rgba(249, 115, 22, .9); }
.bd-code-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-code-copy.is-done { background: #16a34a; }
.bd-code .t-c { color: #8a86a0; font-style: italic; }
.bd-code .t-s { color: #fdba74; }
.bd-code .t-v { color: #c4b5fd; }
.bd-code .t-k { color: #f472b6; }
.bd-code .t-f { color: #7dd3fc; }
.bd-code .t-n { color: #fbbf24; }

.bd-side {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 30px;
}
.bd-side-label {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a1a1b2;
}
.bd-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.bd-toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.bd-toc a:hover { color: var(--ink); }
.bd-toc a.is-active { color: var(--ink); font-weight: 600; border-color: var(--acc); }

.bd-share-row { display: flex; gap: 8px; }
.bd-share-row a,
.bd-share-row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: #f4f4f6;
  border-radius: 12px;
  transition: background .25s, color .25s, transform .2s;
}
.bd-share-row a:hover,
.bd-share-row button:hover { color: #fff; background: var(--ink); }
.bd-share-row :active { transform: scale(.94); }
.bd-share-row .f-ico { width: 17px; height: 17px; background: currentColor; }
.bd-share-row svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bd-copied {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #16a34a;
}

.bd-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 80px 0 90px;
  padding: 64px 32px;
  color: #fff;
  text-align: center;
  background: #0b0a12;
  border-radius: 32px;
}
.bd-cta-aura { position: absolute; inset: 0; z-index: -1; }
.bd-cta-aura::before,
.bd-cta-aura::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
}
.bd-cta-aura::before { top: -300px; left: -120px; background: var(--acc); }
.bd-cta-aura::after { bottom: -320px; right: -100px; background: #7c3aed; }
.bd-cta .chat-mark { --d: 12px; margin-bottom: 22px; }
.bd-cta .chat-mark i { animation: mark-hop 2.4s cubic-bezier(.5, 0, .5, 1) infinite; }
.bd-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.bd-cta p {
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
}
.bd-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.bd-related { padding-bottom: 110px; }

@media (max-width: 1100px) {
  .b-grid { grid-template-columns: repeat(2, 1fr); }
  .bd-layout { grid-template-columns: minmax(0, 720px); }
  .bd-layout { row-gap: 32px; }
  .bd-side { position: static; }
  .bd-toc { display: none; }
}
@media (max-width: 900px) {
  .b-featured { grid-template-columns: 1fr; }
  .b-featured .post-media { min-height: 0; aspect-ratio: 16 / 9; }
  .b-featured .post-media img { position: static; }
  .b-featured-body { padding: 30px 28px 32px; }
}
@media (max-width: 640px) {
  .b-hero { padding: 116px 0 130px; }
  .b-hero p { font-size: 14.5px; margin-bottom: 24px; }
  .b-list { margin-top: -80px; padding-bottom: 70px; }
  .b-featured { margin-bottom: 18px; border-radius: 24px; }
  .b-featured-body { padding: 24px 20px 26px; }
  .b-featured p { font-size: 14.5px; }
  .b-grid { grid-template-columns: 1fr; gap: 16px; }

  .bd-hero { min-height: 0; padding: 104px 0 56px; }
  .bd-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(11, 10, 18, .6) 0%, rgba(11, 10, 18, .1) 30%, rgba(11, 10, 18, .95) 100%),
      rgba(11, 10, 18, .4);
  }
  .bd-back { margin-bottom: 16px; font-size: 12.5px; }
  .bd-hero h1 { margin-bottom: 14px; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
  .bd-meta { gap: 6px 12px; font-size: 12.5px; }
  .bd-meta > span + span::before { margin-right: 4px; }
  .bd-sheet { margin-top: -28px; padding-top: 40px; border-radius: 28px 28px 0 0; }
  .bd-article { font-size: 15px; line-height: 1.72; }
  .bd-article p { margin-bottom: 18px; }
  .bd-article > p:first-child { font-size: 16px; line-height: 1.65; }
  .bd-article h2 { margin: 34px 0 12px; font-size: 19px; }
  .bd-article li { margin-bottom: 10px; padding-left: 24px; }
  .bd-article blockquote { margin: 28px 0; padding: 20px 20px 20px 24px; font-size: 16px; border-radius: 18px; }
  .bd-cta { margin: 56px 0 64px; padding: 48px 22px; border-radius: 26px; }
  .bd-related { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-aura::before, .b-aura::after { animation: none; }
  .b-featured, .b-grid .post-card { animation: none; }
}
