:root {
  --bg: #06060f;
  --bg-soft: #0b1020;
  --card: rgba(17, 22, 40, 0.75);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #9aa4bf;
  --brand: #5cb8ff;
  --brand-2: #6d6dff;
  --success: #4ade80;
}

* { box-sizing: border-box; }

body.blog-page {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(1200px 600px at -10% 0%, rgba(91, 70, 255, 0.22), transparent),
    radial-gradient(1200px 600px at 110% 100%, rgba(0, 194, 255, 0.14), transparent),
    var(--bg);
  color: var(--text);
}

.blog-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 15, 0.7);
}

.blog-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.blog-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.blog-logo img { border-radius: 8px; }

.blog-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.blog-nav a:hover,
.blog-nav a.active { color: var(--text); }

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 14px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(66, 135, 245, 0.3);
}

.hero-blog {
  padding: 64px 0 34px;
}

.hero-blog .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(14, 18, 33, 0.74);
}

.hero-blog h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-blog h1 span {
  background: linear-gradient(135deg, #6dc7ff, #8980ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-blog p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  margin: 0;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.category-pill {
  text-decoration: none;
  color: #cbd6f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(14, 18, 33, 0.74);
  transition: all .2s ease;
}

.category-pill:hover {
  border-color: rgba(108, 165, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.section-head {
  margin: 4px 0 16px;
}

.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head h2 span {
  background: linear-gradient(135deg, #6dc7ff, #8980ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding-bottom: 60px;
}

.post-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(19, 25, 43, 0.78), rgba(11, 14, 25, 0.88));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  animation: cardRise .45s ease both;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -40%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(92, 184, 255, 0.2), transparent 72%);
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(108, 165, 255, 0.45);
  box-shadow: 0 16px 40px rgba(12, 18, 35, 0.8);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-meta span:first-child::before {
  content: "✨ ";
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.3;
}

.post-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #b6c1db;
}

.article-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 46px 24px 64px;
  position: relative;
}

.article-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(91, 70, 255, 0.2), transparent 70%),
    radial-gradient(600px 240px at 80% 0%, rgba(58, 176, 255, 0.16), transparent 70%);
  z-index: -1;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #b7d4ff;
  text-decoration: none;
}

.article-title {
  margin: 16px 0 8px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #f2f6ff 20%, #94cbff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.72;
  max-width: 42rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 18, 33, 0.6);
}

.article-body {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  padding: clamp(24px, 3.5vw, 40px);
}

.article-body h2 {
  margin: 2.35rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 28px;
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  max-width: 42rem;
}

.article-body > p:first-of-type {
  font-size: 1.08rem;
  color: #e2e8f6;
  line-height: 1.9;
}

.article-body p,
.article-body li {
  color: #d3dcf3;
  line-height: 1.9;
}

.article-body p {
  font-size: 1.0625rem;
  max-width: 42rem;
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 20px;
  max-width: 42rem;
}

.article-body strong { color: #fff; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: rgba(13, 18, 33, 0.85);
  color: #e8eeff;
  font-weight: 600;
}

.article-body tbody tr:nth-child(even) td {
  background: rgba(10, 14, 26, 0.35);
}

.key-takeaways {
  margin-top: 28px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(108, 165, 255, 0.35);
  background: rgba(12, 40, 72, 0.35);
}

.key-takeaways h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #e8eeff;
  border-bottom: none;
  padding-bottom: 0;
  max-width: none;
}

.key-takeaways .summary-heading {
  margin: 22px 0 10px;
  font-size: 20px;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.key-takeaways li {
  margin: 8px 0;
  line-height: 1.7;
}

.article-summary {
  margin: 0;
  line-height: 1.85;
  color: #c8d4ec;
  font-size: 16px;
}

.article-depth {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-depth h2 {
  margin-top: 0;
}

.article-note {
  margin: 22px 0;
  border: 1px solid rgba(88, 176, 255, 0.3);
  background: rgba(11, 57, 98, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 42rem;
}

.related-posts {
  margin-top: 30px;
}

.related-posts h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  background: rgba(16, 21, 38, 0.8);
}

.related-item:hover {
  border-color: rgba(108, 165, 255, 0.45);
}

.related-item b {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.cta-blog {
  margin-top: 36px;
  --cta-t: #f1f5f9;
  --cta-t2: #94a3b8;
  --cta-t3: #64748b;
}

.cta-blog .dl-card-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(48px, 8vw, 72px) clamp(20px, 4vw, 40px);
  background: linear-gradient(135deg, #0f0f2e 0%, #130d2e 40%, #0a1628 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 28px;
}

.cta-blog .dl-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-blog .dl-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(72px);
  animation: cta-dl-breathe 6s ease-in-out infinite;
}

.cta-blog .dl-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 65%);
  bottom: -72px;
  right: -72px;
  filter: blur(52px);
}

@keyframes cta-dl-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.cta-blog .dl-icon-wrap {
  position: relative;
  margin: 0 auto 20px;
  width: fit-content;
  z-index: 1;
}

.cta-blog .dl-icon-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(139, 92, 246, 0.28) 40%, transparent 70%);
  filter: blur(18px);
  animation: cta-dl-breathe 4s ease-in-out infinite;
}

.cta-blog .dl-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cta-blog .dl-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--cta-t);
  position: relative;
  z-index: 1;
}

.cta-blog .dl-sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cta-t2);
  margin: 0 auto 28px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.cta-blog .dl-note {
  font-size: 12.5px;
  color: var(--cta-t3);
  margin: 18px 0 0;
  position: relative;
  z-index: 1;
}

.cta-blog .store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  position: relative;
  z-index: 1;
}

.cta-blog .store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  max-width: 100%;
  flex-shrink: 0;
}

.cta-blog .store-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-blog .store-pill:hover::after {
  opacity: 1;
}

.cta-blog .store-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(99, 102, 241, 0.15);
}

.cta-blog .store-pill svg {
  display: block;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  overflow: visible;
}

.cta-blog .store-pill span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
  min-width: 0;
  flex: 0 1 auto;
}

.cta-blog .store-pill small {
  font-size: 9.5px;
  color: var(--cta-t3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-blog .store-pill b {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cta-t);
}

.cta-blog .store-pill-lg {
  padding: 14px 20px;
}

.cta-blog .store-pill-lg svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
}

.cta-blog .store-pill-lg b {
  font-size: 16px;
}

.cta-blog .store-pill-web {
  border-color: rgba(129, 140, 248, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.06));
}

.cta-blog .store-pill-web svg {
  color: #a5b4fc;
}

.cta-blog .store-pill-web:hover {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(99, 102, 241, 0.2);
}

@media (max-width: 720px) {
  .cta-blog .store-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-blog .store-pill {
    width: 100%;
    justify-content: center;
  }
}

.article-footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.post-hero {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 43, 0.84), rgba(11, 14, 26, 0.94));
  border-radius: 20px;
  padding: 20px;
  margin: 0 0 24px;
  position: relative;
  overflow: hidden;
}

.post-hero h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.post-hero p {
  margin: 0;
  color: #cfd8ef;
}

.post-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(92, 184, 255, 0.24), transparent 68%);
  pointer-events: none;
}

.motion-float { animation: floatY 6.6s ease-in-out infinite; }
.motion-pulse { animation: pulseGlow 2.8s ease-in-out infinite; }
.motion-slide { animation: slideIn 0.7s ease both; }

.layout-zigzag h2:nth-of-type(even) {
  color: #c7d7ff;
}

.layout-cards ul {
  list-style: none;
  padding-left: 0;
}

.layout-cards li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin: 8px 0;
  background: rgba(15, 19, 35, 0.72);
}

.layout-stripe h2 {
  border-left: 3px solid rgba(108, 165, 255, 0.7);
  padding-left: 10px;
}

.theme-cyan { --brand: #4dc8ff; --brand-2: #5d79ff; }
.theme-violet { --brand: #8b5cf6; --brand-2: #5cb8ff; }
.theme-emerald { --brand: #38bdf8; --brand-2: #10b981; }
.theme-amber { --brand: #f59e0b; --brand-2: #38bdf8; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(92, 184, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(92, 184, 255, 0.3); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-grid .post-card:nth-child(2n) { animation-delay: .04s; }
.blog-grid .post-card:nth-child(3n) { animation-delay: .08s; }

@media (max-width: 980px) {
  .post-card { grid-column: span 6; }
  .blog-nav { display: none; }
}

@media (max-width: 700px) {
  .blog-shell,
  .article-wrap { padding-left: 16px; padding-right: 16px; }
  .post-card { grid-column: span 12; }
  .article-body { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
