:root {
  --bg: #FFFFFF;
  --bg-soft: #FBF9FF;
  --ink: #14102B;
  --ink-dim: #4A4270;
  --ink-soft: #857CAE;
  --line: #ECE6F8;
  --card: #FFFFFF;

  --pink: #FF7FB7;
  --pink-soft: #FFD6E8;
  --purple: #8B5CF6;
  --purple-soft: #E6DCFF;
  --blue: #4D8BFF;
  --blue-soft: #D6E4FF;
  --lilac: #C4B0FF;

  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 0 rgba(20,16,43,0.04), 0 2px 6px rgba(20,16,43,0.04);
  --shadow-md: 0 2px 0 rgba(20,16,43,0.03), 0 12px 32px rgba(107,75,255,0.08);
  --shadow-lg: 0 24px 60px rgba(107,75,255,0.16);

  --font-display: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --font-nav: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --gutter: 32px;
  --section-pad: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 max(var(--gutter), 24px); }
a { color: inherit; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.55); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); overflow: visible; }
.nav-spacer { height: 86px; }
.nav.menu-open { background: rgba(248,246,255,0.82); }
.nav-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 86px; padding: 0 32px 0 20px; overflow: visible; }
.nav-logo { display: flex; align-items: center; text-decoration: none; transition: transform .22s ease-out, opacity .22s ease; }
.nav-logo svg, .nav-logo img { width: 180px; height: auto; filter: drop-shadow(0 0 10px rgba(255,255,255,0.4)) drop-shadow(0 0 28px rgba(255,255,255,0.18)) drop-shadow(0 0 60px rgba(255,255,255,0.09)); }
.nav-logo:hover { transform: translateY(-2px); opacity: 0.82; }
.nav-logo:active { transform: translateY(1px); opacity: 1; transition-duration: .08s; }
.nav-links { display: flex; gap: 36px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-nav); position: relative; }
.nav-links a { color: var(--ink-dim); text-decoration: none; transition: color .2s, transform .3s cubic-bezier(.34,1.1,.64,1); position: relative; z-index: 1; cursor: pointer; display: inline-block; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); transform: scale(1.08) translateY(-1px); }
/* Sign In swap animation */
.btn-swap { position: relative; overflow: hidden; }
.btn-swap .swap-default,
.btn-swap .swap-hover { display: block; transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .24s ease; }
.btn-swap .swap-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: inherit; transform: translateY(100%); opacity: 0; }
.btn-nav-signin.btn-swap { justify-content: center; width: 106px; position: relative; transition: box-shadow .25s ease, transform .32s cubic-bezier(.34,1.1,.64,1), width .4s ease, margin-left .4s ease, color .4s ease, border-color .4s ease; }
.btn-nav-signin.btn-swap::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(135deg, #FF416C 0%, #FF0000 55%, #CC0022 100%); opacity: 0; transition: opacity .4s ease; z-index: 0; pointer-events: none; }
.btn-nav-signin.btn-swap .swap-default { position: relative; z-index: 1; }
.btn-nav-signin.btn-swap .swap-hover { z-index: 1; }
.btn-nav-signin.btn-swap.signin-active { width: 128px; margin-left: -22px; border-color: transparent; color: #fff; box-shadow: 0 8px 28px rgba(255,0,0,0.38), 0 2px 8px rgba(255,65,108,0.22); transition: box-shadow .25s ease, transform .32s cubic-bezier(.34,1.1,.64,1), width .3s cubic-bezier(.34,1.1,.64,1), margin-left .3s cubic-bezier(.34,1.1,.64,1), color .2s ease, border-color .2s ease; }
.btn-nav-signin.btn-swap.signin-active::after { opacity: 1; transition: opacity .2s ease; }

/* Resources dropdown */
.nav-resources-label { color: var(--ink-dim); cursor: default; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-nav); white-space: nowrap; }
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; z-index: 100; }
.nav-dropdown { position: absolute; top: 100%; left: max(-20px, calc(50% - 105px)); transform: translateY(-8px) scaleY(0.9); transform-origin: top center; min-width: 210px; padding: 10px 6px 6px; background: rgba(248,246,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(139,92,246,0.16); border-radius: 14px; box-shadow: 0 8px 32px rgba(20,16,43,0.12), 0 2px 8px rgba(139,92,246,0.08); opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .26s cubic-bezier(.34,1.56,.64,1); z-index: 150; }
.nav-dropdown::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; transform: translateY(12px) scaleY(1); pointer-events: auto; }
.nav-dd-item { display: flex; align-items: center; gap: 0; padding: 9px 12px 9px 26px; border-radius: 9px; text-decoration: none; color: var(--ink-dim); font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; position: relative; opacity: 0; transform: translateY(5px); font-family: var(--font-nav); transition: background .14s ease, color .14s ease, opacity .13s ease, transform .13s ease; }
.nav-dd-item::before { content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--purple); opacity: 0.5; transition: opacity .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1); }
.nav-dd-item:hover { background: linear-gradient(90deg, rgba(139,92,246,0.14) 0%, rgba(109,40,217,0.05) 100%); color: var(--purple); }
.nav-dd-item.active { color: var(--purple); }
.nav-dd-item:hover::before, .nav-dd-item.active::before { opacity: 1; }
.nav-dropdown-wrap:hover .nav-dd-item { opacity: 1; transform: translateY(0); transition: background .14s ease, color .14s ease, opacity .22s cubic-bezier(.34,1.56,.64,1), transform .28s cubic-bezier(.34,1.56,.64,1); }
.nav-dropdown-wrap:hover .nav-dd-item:nth-child(1) { transition-delay: .04s; }
.nav-dropdown-wrap:hover .nav-dd-item:nth-child(3) { transition-delay: .08s; }
.nav-dd-divider { height: 1px; background: rgba(139,92,246,0.18); margin: 2px 10px; opacity: 0; transition: opacity .12s ease; }
.nav-dropdown-wrap:hover .nav-dd-divider { opacity: 1; transition-delay: .05s; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-nav-signin { display: inline-flex; align-items: center; padding: 12px 28px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; background: #FFFFFF; color: var(--ink); border: 1px solid rgba(139,92,246,0.14); box-shadow: 0 3px 10px rgba(139,92,246,0.14), 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow .25s ease, transform .32s cubic-bezier(.34,1.1,.64,1); white-space: nowrap; }
.btn-nav-signin:hover { transform: scale(1.05) translateY(-1px); box-shadow: 0 6px 18px rgba(139,92,246,0.2), 0 2px 5px rgba(0,0,0,0.06); }
.btn-nav-signup { display: inline-flex; align-items: center; padding: 12px 28px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; background: linear-gradient(160deg, #1d1748, var(--ink)); color: #fff; border: none; box-shadow: 6px 6px 16px rgba(20,16,43,0.45), -4px -4px 14px rgba(139,92,246,0.25), inset 0 1px 1px rgba(255,255,255,0.08); transition: box-shadow .25s ease, transform .32s cubic-bezier(.34,1.1,.64,1); white-space: nowrap; }
.btn-nav-signup:hover { transform: scale(1.05) translateY(-1px); box-shadow: 8px 8px 20px rgba(20,16,43,0.5), -5px -5px 16px rgba(139,92,246,0.35), inset 0 1px 1px rgba(255,255,255,0.12); }
.btn-nav-contact { font-size: 14px; font-weight: 500; color: var(--purple); text-decoration: none; padding: 10px 20px; border-radius: 8px; background: none; border: none; transition: color .2s, transform .32s cubic-bezier(.34,1.1,.64,1), background .2s; white-space: nowrap; }
.btn-nav-contact:hover { color: var(--purple); background: rgba(139,92,246,0.07); transform: scale(1.06) translateY(-1px); }
.phone-icon { display: inline-flex; align-items: center; margin-right: 5px; transform-origin: 50% 55%; }
.btn-nav-contact:hover .phone-icon { animation: phone-ring 0.52s ease-in-out; }
.nav-cta .btn-nav-contact { position: relative; overflow: hidden; }
.nav-cta .btn-nav-contact::before { content: ''; position: absolute; inset: 0; background: linear-gradient(108deg, transparent 20%, rgba(255,255,255,0.42) 48%, rgba(210,195,255,0.25) 56%, transparent 74%); transform: translateX(-120%) skewX(-12deg); pointer-events: none; border-radius: inherit; transition: none; }
.nav-cta .btn-nav-contact:hover::before { transform: translateX(220%) skewX(-12deg); transition: transform .52s cubic-bezier(.2,.8,.4,1); }
@keyframes phone-ring {
  0%,100% { transform: rotate(0); }
  12%     { transform: rotate(-22deg); }
  28%     { transform: rotate(18deg); }
  44%     { transform: rotate(-12deg); }
  60%     { transform: rotate(8deg); }
  76%     { transform: rotate(-4deg); }
  90%     { transform: rotate(2deg); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-family: var(--font-body); font-size: 15px; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s, color .15s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 55%, var(--blue) 100%); color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139,92,246,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(20px) scale(0.97); transition: opacity .7s cubic-bezier(.34,1.1,.64,1), transform .7s cubic-bezier(.34,1.1,.64,1); transition-delay: var(--delay, 0ms); }
.fade-in.visible { opacity: 1; transform: translateY(0) scale(1); }
@media (max-width: 768px) {
  .fade-in { transform: translateY(36px) scale(0.96); transition-duration: .58s; }
}

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-socials a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-dim); border: 1px solid var(--line); text-decoration: none; transition: background .28s cubic-bezier(.4,0,.2,1), color .28s, transform .28s cubic-bezier(.34,1.15,.64,1), border-color .28s; }
.footer-socials a:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: translateY(-3px); }
.footer-socials a svg { display: block; width: 22px; height: 22px; }
.footer-copy { font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.footer-email { font-size: 12px; color: var(--ink-dim); text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.footer-email:hover { color: var(--purple); }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 100; height: 3px; background: linear-gradient(90deg, var(--pink), var(--purple)); pointer-events: none; transition: width 120ms linear; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(107,75,255,0.45); opacity: 0; transform: translateY(12px) scale(0.88); transition: opacity .28s ease, transform .32s cubic-bezier(.34,1.3,.64,1), box-shadow .2s; pointer-events: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 6px 28px rgba(107,75,255,0.6); transform: translateY(-2px) scale(1.06); }
.back-to-top:active { transform: scale(0.93); }

/* Menu overlay + mobile menu */
.menu-overlay { display: none; }
@media (max-width: 768px) {
  .menu-overlay { display: block; position: fixed; inset: 0; z-index: 48; background: rgba(14,10,35,0.52); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .menu-overlay.open { opacity: 1; pointer-events: auto; }
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; cursor: pointer; border-radius: 8px; transition: background .2s; flex-shrink: 0; padding: 0; }
.nav-hamburger:hover { background: rgba(139,92,246,0.08); }
.nav-hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 86px; left: 0; right: 0; z-index: 49; background: rgba(248,246,255,0.72); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border-bottom: 1px solid rgba(139,92,246,0.15); padding: 8px 12px 20px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .22s ease; box-shadow: 0 8px 40px rgba(20,16,43,0.12); overflow: hidden; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu-link { font-family: var(--font-nav); display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink-dim); text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: background .18s, color .18s, transform .12s ease; position: relative; }
.mobile-menu-link:active { transform: scale(0.97) !important; }
.mobile-menu-link:hover { background: rgba(139,92,246,0.08); color: var(--purple); }
.mobile-menu-link.active { background: rgba(139,92,246,0.1); color: var(--purple); }
.mobile-menu-link-icon { opacity: 0.5; flex-shrink: 0; transition: opacity .18s; display: flex; align-items: center; }
.mobile-menu-link:hover .mobile-menu-link-icon, .mobile-menu-link.active .mobile-menu-link-icon { opacity: 1; }
.mobile-menu-link-label { flex: 1; }
.mobile-menu-divider { height: 1px; background: linear-gradient(90deg, rgba(139,92,246,0.25), rgba(139,92,246,0.06), transparent); margin: 8px 4px; }
.mobile-menu-actions { display: flex; flex-direction: row; gap: 10px; padding-top: 4px; }
.mobile-menu-actions .btn-nav-signin { display: flex; justify-content: center; align-items: center; gap: 8px; flex: 1; border-radius: 14px; padding: 15px 14px; font-size: 15px; font-weight: 600; background: rgba(139,92,246,0.07); color: var(--purple); border: 1.5px solid rgba(139,92,246,0.22); }
.mobile-menu-actions .btn-nav-signup { display: flex; justify-content: center; align-items: center; gap: 8px; flex: 1; border-radius: 14px; padding: 15px 14px; font-size: 15px; font-weight: 600; background: linear-gradient(135deg, #9333ea, #7c3aed, #6d28d9); color: #fff; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 24px rgba(109,40,217,0.42), inset 0 1px 0 rgba(255,255,255,0.2); }
.mobile-menu-contact { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; padding: 13px 16px; font-size: 13px; font-weight: 600; color: var(--ink-dim); text-decoration: none; border-radius: 10px; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 1024px) {
  .nav-hamburger { display: flex; } .nav-cta { display: none; } .nav-links { display: none; } .btn-nav-contact { display: none; }
  .nav-inner { height: 64px; padding: 0 14px; position: relative; justify-content: flex-end; }
  .mobile-menu { top: 64px; } .nav-spacer { height: 64px; }
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-logo svg, .nav-logo img { width: 150px; height: auto; }
  .nav-hamburger span { background: var(--purple); }
}

/* ── Blog-specific ───────────────────────────────────── */
.blog-hero, .blog-post-hero { padding: 80px 0 36px; position: relative; overflow: hidden; background: linear-gradient(165deg, #fff 0%, var(--bg-soft) 100%); }
.blog-hero::before, .blog-post-hero::before {
  content: ''; position: absolute; top: -140px; right: -100px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--pink-soft) 0%, transparent 68%);
  pointer-events: none;
}
.blog-hero::after, .blog-post-hero::after {
  content: ''; position: absolute; bottom: -100px; left: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 68%);
  pointer-events: none;
}
.blog-hero .container, .blog-post-hero .container { position: relative; z-index: 1; }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 20px; }
.blog-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 2px; background: linear-gradient(90deg, var(--pink), var(--purple)); border-radius: 2px; }
.blog-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 16px; }
.blog-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue), var(--purple), var(--pink)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-drift 9s ease infinite; }
.blog-hero-sub { font-size: 18px; color: var(--ink-dim); max-width: 560px; line-height: 1.55; }
@keyframes grad-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.blog-list { padding: 56px 0 var(--section-pad); position: relative; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px 26px; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: transform .42s cubic-bezier(.16,1,.3,1), box-shadow .42s ease, border-color .42s;
}
.blog-card:hover { transform: translateY(-7px); border-color: transparent; box-shadow: 0 20px 56px rgba(139,92,246,0.18), 0 4px 16px rgba(139,92,246,0.08); }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue)); z-index: 2; }
.blog-card-cover { width: calc(100% + 52px); margin: -30px -26px 18px; height: 170px; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.blog-card:hover .blog-card-cover { transform: scale(1.05); }
.blog-card-cover ~ .blog-card-icon { margin-top: -4px; }
.blog-card::after {
  content: ''; position: absolute; border-radius: 50%;
  width: 280px; height: 280px; bottom: -120px; right: -80px;
  opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,0.16) 0%, transparent 68%);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.blog-card:hover::after { opacity: 1; transform: translate(-20px, -20px) scale(1.15); }
.blog-card-icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: #fff; position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  transition: transform .38s cubic-bezier(.34,1.5,.64,1);
}
.blog-card:hover .blog-card-icon { transform: scale(1.12) rotate(-6deg); }
.blog-card-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; position: relative; z-index: 1; }
.blog-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; position: relative; z-index: 1; }
.blog-card:hover .blog-card-title { color: var(--purple); }
.blog-card-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; flex: 1; position: relative; z-index: 1; }
.blog-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--purple); margin-top: 16px; position: relative; z-index: 1; transition: gap .2s; }
.blog-card:hover .blog-card-link { gap: 10px; }
.blog-empty { color: var(--ink-soft); font-size: 15px; }

.blog-post { padding: 0 0 var(--section-pad); }
.blog-post-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; margin-bottom: 24px; transition: color .2s; }
.blog-post-back:hover { color: var(--purple); }
.blog-post-date { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.blog-post h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.08; letter-spacing: -0.01em; max-width: 760px; }

.blog-post-cover { width: 100%; max-width: 860px; height: auto; max-height: 420px; object-fit: cover; display: block; margin: 8px auto 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.blog-post-content { max-width: 720px; margin: 40px auto 0; font-size: 17px; line-height: 1.75; color: var(--ink-dim); }
.blog-post-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 40px 0 16px; }
.blog-post-content h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); margin: 32px 0 14px; }
.blog-post-content p { margin: 0 0 20px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 20px; padding-left: 24px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content a { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(139,92,246,0.35); }
.blog-post-content a:hover { text-decoration-color: var(--purple); }
.blog-post-content strong { color: var(--ink); font-weight: 600; }
.blog-post-content blockquote { border-left: 3px solid var(--purple); padding-left: 18px; margin: 0 0 20px; color: var(--ink-soft); font-style: italic; }
.blog-post-content code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }
.blog-post-content pre { background: var(--ink); color: #fff; padding: 18px 20px; border-radius: var(--radius-md); overflow-x: auto; margin: 0 0 20px; }
.blog-post-content pre code { background: none; padding: 0; color: inherit; }
.blog-post-content img { max-width: 100%; border-radius: var(--radius-md); margin: 8px 0 24px; }
.math-display { overflow-x: auto; padding: 16px 0; margin: 8px 0 20px; text-align: center; }
.math-inline { vertical-align: middle; }
.math-error { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.9em; }

@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  .blog-hero, .blog-post-hero { padding: 44px 0 28px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-socials a { width: 44px; height: 44px; }
}
