:root {
  --bg: #ffffff; --surface: #f7f9fd; --surface-2: #eef2fb; --sunken: #e3e9f5;
  --text: #141a30; --text-2: #54607c; --muted: #8b95ae;
  --primary: #445edf; --primary-600: #3647c2; --primary-soft: #edf0fe; --mint: #0e9f6e;
  --border: #e7eaf3; --border-2: #d6deec;
  --grad: linear-gradient(135deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%);
  --shadow-sm: 0 1px 2px rgba(20, 26, 48, .06);
  --shadow: 0 10px 30px rgba(20, 26, 48, .08);
  --shadow-lg: 0 24px 60px rgba(20, 26, 48, .14);
  --radius: 18px; --maxw: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 22px; letter-spacing: -.3px; color: var(--text); }
.brand .ico { width: 32px; height: 32px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right a.lk { font-weight: 600; font-size: 15px; color: var(--text-2); }
.nav-right a.lk:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; border: none; border-radius: 12px; padding: 12px 20px; transition: all .18s ease; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(68, 94, 223, .28); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Blog hero */
.blog-hero { padding: 60px 0 34px; background: radial-gradient(60% 60% at 80% 0%, #eef2fe 0%, rgba(238, 242, 254, 0) 60%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); border: 1px solid #dde3fb; padding: 6px 13px; border-radius: 999px; }
.blog-hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -1.4px; font-weight: 900; margin: 16px 0 12px; }
.blog-hero p { font-size: 19px; color: var(--text-2); max-width: 620px; font-weight: 500; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 50px; }
.featured .ft-cover { aspect-ratio: 16/11; background: var(--grad); position: relative; overflow: hidden; }
.featured .ft-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured .ft-body { padding: 14px 40px 14px 6px; }
.featured h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.6px; font-weight: 900; margin: 12px 0 12px; }
.featured p { color: var(--text-2); font-size: 16px; margin-bottom: 18px; }

/* Cards grid */
.section-label { font-size: 14px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 70px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-4px); }
.card .cover { aspect-ratio: 16/10; background: var(--grad); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; margin: 10px 0 8px; }
.card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cat { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.empty { text-align: center; padding: 80px 0; color: var(--text-2); }
.empty .ico { font-size: 40px; margin-bottom: 12px; }
.skeleton { background: linear-gradient(90deg, #eef1f7 25%, #f6f8fc 50%, #eef1f7 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Article */
.article-hero { padding: 44px 0 8px; }
.back { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--text-2); margin-bottom: 22px; }
.back:hover { color: var(--primary); }
.back svg { width: 16px; height: 16px; }
.article-hero h1 { font-size: 42px; line-height: 1.12; letter-spacing: -1.2px; font-weight: 900; margin: 14px 0 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); font-weight: 600; flex-wrap: wrap; }
.cover-wide { width: 100%; aspect-ratio: 16/8; border-radius: 20px; overflow: hidden; margin: 28px 0 8px; background: var(--grad); box-shadow: var(--shadow); }
.cover-wide img { width: 100%; height: 100%; object-fit: cover; }

.prose { padding: 26px 0 56px; font-size: 18px; line-height: 1.8; color: #232a42; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -.4px; margin: 40px 0 14px; color: var(--text); }
.prose h3 { font-size: 21px; font-weight: 800; margin: 30px 0 10px; color: var(--text); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 26px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 14px; margin: 24px 0; border: 1px solid var(--border); }
.prose blockquote { border-left: 4px solid var(--primary); background: var(--surface); padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 0 0 22px; font-size: 19px; color: var(--text); font-weight: 500; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose pre { background: #0f1424; color: #e6e9f5; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 22px; }
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }

.cta-end { background: linear-gradient(150deg, #445edf, #3647c2); color: #fff; border-radius: 22px; padding: 40px 36px; text-align: center; margin: 10px 0 70px; box-shadow: var(--shadow-lg); }
.cta-end h3 { font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; }
.cta-end p { color: rgba(255, 255, 255, .85); margin-bottom: 22px; }
.cta-end .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-end .btn-primary:hover { background: #f0f3ff; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--text-2); font-weight: 600; }
.foot a:hover { color: var(--primary); }

@media (max-width: 920px) {
  .featured { grid-template-columns: 1fr; }
  .featured .ft-body { padding: 0 26px 30px; }
  .featured .ft-cover { aspect-ratio: 16/9; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .blog-hero h1 { font-size: 33px; }
  .article-hero h1 { font-size: 30px; }
  .featured h2 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .nav-right a.lk { display: none; }
  .prose { font-size: 17px; }
}
