:root {
  color-scheme: dark;
  --bg: #050817;
  --panel: #0c1730;
  --panel-2: #101d3d;
  --text: #f3f7ff;
  --muted: #9baccc;
  --line: rgba(142, 167, 255, .16);
  --green: #28e0a8;
  --red: #ff5470;
  --blue: #6ea8ff;
  --purple: #9b7cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(110,168,255,.22), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(155,124,255,.2), transparent 36rem),
    radial-gradient(circle at 55% 48%, rgba(40,224,168,.08), transparent 28rem),
    linear-gradient(135deg, rgba(6,14,31,.94), rgba(23,18,48,.88)),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(90deg, rgba(142,167,255,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(142,167,255,.09) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 80%);
}

a { color: inherit; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(142,167,255,.13);
  border-radius: 24px;
  background: rgba(8, 15, 34, .78);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.025em; }
.brand-logo-wide { width: min(260px, 42vw); height: 58px; object-fit: contain; object-position: left center; border-radius: 13px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; color: #b7c5df; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 900; }
.nav-link.primary { border: 0; color: #06121c; background: linear-gradient(135deg,#28e0a8,#6ea8ff,#9b7cff); }

.blog-hero { position: relative; max-width: 920px; padding: 110px 0 72px; }
.blog-hero::after { content: ""; position: absolute; right: -220px; top: 100px; width: 420px; height: 220px; border: 1px solid rgba(110,168,255,.14); border-radius: 40px; background: linear-gradient(135deg, rgba(110,168,255,.09), rgba(155,124,255,.08)); transform: rotate(-8deg); filter: blur(.2px); }
.eyebrow { color: #9fb8ff; font-size: 10px; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 20px 0 0; font-size: clamp(48px, 8vw, 82px); line-height: .98; letter-spacing: -.064em; }
.lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.free-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 24px; padding: 10px 13px; border: 1px solid rgba(110,168,255,.22); border-radius: 999px; color: #c5d4f2; background: rgba(110,168,255,.07); font-size: 11px; font-weight: 900; }
.free-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px rgba(24,217,149,.65); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 110px; }
.post-card { min-height: 360px; display: flex; flex-direction: column; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(155deg,rgba(18,31,62,.96),rgba(7,12,28,.98)); box-shadow: 0 18px 60px rgba(0,0,0,.22); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(110,168,255,.34); box-shadow: 0 24px 80px rgba(72,101,255,.16); }
.post-chart { height: 112px; display: flex; align-items: end; gap: 6px; margin: -24px -24px 23px; padding: 20px 24px; background: linear-gradient(145deg,rgba(110,168,255,.1),rgba(155,124,255,.08)); }
.post-chart i { flex: 1; min-height: 8px; border-radius: 3px 3px 0 0; background: var(--green); opacity: .75; }
.post-chart i:nth-child(3n) { background: var(--red); }
.post-chart i:nth-child(1) { height: 22%; } .post-chart i:nth-child(2) { height: 56%; } .post-chart i:nth-child(3) { height: 38%; } .post-chart i:nth-child(4) { height: 82%; } .post-chart i:nth-child(5) { height: 61%; } .post-chart i:nth-child(6) { height: 95%; } .post-chart i:nth-child(7) { height: 72%; }
.meta { color: #9fb8ff; font-size: 9px; font-weight: 1000; letter-spacing: .09em; text-transform: uppercase; }
.post-card h2 { margin: 13px 0 10px; font-size: 23px; line-height: 1.17; letter-spacing: -.035em; }
.post-card p { margin: 0; color: #819790; font-size: 13px; line-height: 1.65; }
.read { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; color: #bdcec8; font-size: 11px; font-weight: 850; }

.article-head { max-width: 880px; padding: 88px 0 55px; }
.article-head h1 { font-size: clamp(44px,7vw,76px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: #718880; font-size: 11px; }
.article-meta span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; }
.article-layout { display: grid; grid-template-columns: minmax(0,740px) minmax(220px,1fr); gap: 70px; align-items: start; padding-bottom: 110px; }
.article { color: #b5c7c1; font-size: 17px; line-height: 1.82; }
.article > p:first-child { color: #d8e7e2; font-size: 20px; }
.article h2 { margin: 48px 0 14px; color: #eef8f4; font-size: 30px; line-height: 1.15; letter-spacing: -.04em; }
.article h3 { margin: 32px 0 10px; color: #e4f0ec; font-size: 20px; }
.article p { margin: 0 0 20px; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article strong { color: #eef8f4; }
.article blockquote { margin: 34px 0; padding: 20px 22px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; color: #d8e8e3; background: rgba(24,217,149,.05); font-size: 19px; line-height: 1.55; }
.callout { margin: 32px 0; padding: 20px; border: 1px solid rgba(255,83,109,.16); border-radius: 14px; background: rgba(255,83,109,.04); }
.callout strong { display: block; margin-bottom: 6px; color: #ff7186; }
.side-card { position: sticky; top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, rgba(17,30,61,.96), rgba(7,12,28,.98)); }
.side-card span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.side-card h3 { margin: 12px 0 9px; font-size: 20px; letter-spacing: -.03em; }
.side-card p { margin: 0; color: #80968f; font-size: 12px; line-height: 1.6; }
.side-card a { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: center; margin-top: 18px; border-radius: 10px; color: #061410; background: var(--green); font-size: 11px; font-weight: 900; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: #8fa1c0; font-size: 11px; }
footer .brand-logo-wide { width: 210px; height: 48px; }

@media (max-width: 850px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .side-card { position: static; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px,1120px); }
  .nav-link:first-child { display: none; }
  .brand-logo-wide { width: 180px; height: 44px; }
  .blog-hero { padding-top: 70px; }
  h1 { font-size: 49px; }
  .article { font-size: 16px; }
  footer { flex-direction: column; text-align: center; }
}
