:root {
  --bg:      #282c34;
  --bg2:     #21252b;
  --bg3:     #2c313a;
  --border:  #383c44;
  --text:    #abb2bf;
  --dim:     #5c6370;
  --blue:    #61afef;
  --green:   #98c379;
  --yellow:  #e5c07b;
  --purple:  #c678dd;
  --red:     #e06c75;
  --r:       10px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:16px;line-height:1.6}

/* ── Nav ─────────────────────────────────── */
nav{position:sticky;top:0;z-index:100;background:var(--bg2);border-bottom:1px solid var(--border);padding:0 2rem;display:flex;align-items:center;gap:2rem;height:56px}
.nav-logo{font-size:1.1rem;font-weight:700;color:#fff;text-decoration:none;letter-spacing:-.02em;display:flex;align-items:center;gap:.45rem}
.nav-links{display:flex;gap:.2rem;flex:1}
.nav-links a{color:var(--dim);text-decoration:none;padding:.35rem .7rem;border-radius:6px;font-size:.88rem;transition:color .15s,background .15s}
.nav-links a:hover,.nav-links a.active{color:var(--text);background:var(--bg3)}
.lang-toggle{display:flex;gap:2px;background:var(--bg3);border-radius:6px;padding:3px}
.lang-btn{background:none;border:none;cursor:pointer;padding:3px 9px;border-radius:4px;font-size:.8rem;font-weight:600;color:var(--dim);transition:all .15s}
.lang-btn.active{background:var(--border);color:#fff}
.nav-right{display:flex;align-items:center;gap:.5rem}
.nav-cta{background:var(--blue);color:#1e2127;text-decoration:none;padding:.38rem .95rem;border-radius:6px;font-size:.86rem;font-weight:600;transition:background .15s;white-space:nowrap}
.nav-cta:hover{background:#71bfff}
.nav-try{background:var(--bg3);color:var(--green);border:1px solid #98c37944;text-decoration:none;padding:.38rem .8rem;border-radius:6px;font-size:.86rem;font-weight:600;transition:background .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:.35rem}
.nav-try:hover{background:#1e3a2a}

/* ── Buttons ─────────────────────────────── */
.btn-primary{background:var(--blue);color:#1e2127;padding:.7rem 1.6rem;border-radius:var(--r);text-decoration:none;font-weight:700;font-size:.98rem;display:inline-flex;align-items:center;gap:.45rem;transition:background .15s,transform .1s}
.btn-primary:hover{background:#71bfff;transform:translateY(-1px)}
.btn-preview{background:#1e3a2a;color:var(--green);border:1.5px solid #98c37966;padding:.7rem 1.6rem;border-radius:var(--r);text-decoration:none;font-weight:700;font-size:.98rem;display:inline-flex;align-items:center;gap:.45rem;transition:background .15s,border-color .15s,transform .1s}
.btn-preview:hover{background:#243e2e;border-color:#98c379aa;transform:translateY(-1px)}

/* ── Tags ────────────────────────────────── */
.tag{display:inline-block;font-size:.72rem;font-weight:600;padding:.2rem .6rem;border-radius:4px;letter-spacing:.03em}
.tag.b{background:#1e3a52;color:var(--blue)}
.tag.g{background:#1e3a2a;color:var(--green)}
.tag.y{background:#3a321e;color:var(--yellow)}
.tag.p{background:#2e1e3a;color:var(--purple)}

/* ── Code ────────────────────────────────── */
code{background:var(--bg3);border:1px solid var(--border);padding:1px 5px;border-radius:3px;font-family:'SF Mono','Fira Code',monospace;font-size:.82em;color:var(--yellow)}
pre{background:var(--bg3);border:1px solid var(--border);padding:.8rem 1rem;border-radius:6px;margin:1.2rem 0;font-family:'SF Mono','Fira Code',monospace;font-size:.82rem;color:var(--green);line-height:1.6;overflow-x:auto}
pre code{background:none;border:none;padding:0;color:inherit;font-size:1em}

/* ── Blog overview ───────────────────────── */
.blog-head{padding:5rem 2rem 1.5rem;max-width:820px;margin:0 auto;text-align:center}
.blog-head .section-label{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:.7rem}
.blog-head h1{font-size:clamp(1.9rem,4vw,2.8rem);font-weight:800;letter-spacing:-.02em;color:#fff;margin-bottom:1rem;line-height:1.15}
.blog-head p{font-size:1.05rem;color:var(--dim);max-width:560px;margin:0 auto;line-height:1.7}
.blog-grid{max-width:780px;margin:0 auto;padding:1.5rem 2rem 4rem;display:grid;gap:1rem}
.blog-card{display:block;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:1.4rem 1.5rem;text-decoration:none;transition:border-color .15s,transform .1s}
.blog-card:hover{border-color:#61afef66;transform:translateY(-2px)}
.blog-card h2{font-size:1.2rem;font-weight:700;color:#fff;margin:.6rem 0 .4rem}
.blog-card p{font-size:.92rem;color:var(--text);line-height:1.65}
.blog-card .read-more{color:var(--blue);font-size:.86rem;font-weight:600;margin-top:.7rem;display:inline-block}

/* ── Article ─────────────────────────────── */
.article{max-width:720px;margin:0 auto;padding:2.8rem 2rem 3rem}
.article .crumb{font-size:.85rem;color:var(--dim);margin-bottom:1.4rem}
.article .crumb a{color:var(--blue);text-decoration:none}
.article .crumb a:hover{text-decoration:underline}
.article h1{font-size:clamp(1.8rem,3.6vw,2.5rem);font-weight:800;color:#fff;line-height:1.15;letter-spacing:-.02em;margin:.7rem 0 1rem}
.article .lead{font-size:1.1rem;color:var(--text);line-height:1.75;margin-bottom:2rem}
.article h2{font-size:1.4rem;font-weight:700;color:#fff;margin:2.4rem 0 .8rem;letter-spacing:-.01em}
.article h3{font-size:1.1rem;font-weight:700;color:#fff;margin:1.7rem 0 .5rem}
.article p{font-size:1rem;color:var(--text);line-height:1.8;margin-bottom:1.1rem}
.article ul,.article ol{margin:0 0 1.2rem 1.4rem;line-height:1.8}
.article li{margin-bottom:.45rem}
.article a{color:var(--blue)}
.article a.btn-primary{color:#1e2127}
.article a.btn-preview{color:var(--green)}
.article strong{color:#cdd3de}

.cta-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:1.8rem;margin:2.8rem 0 1.5rem;text-align:center}
.cta-box h3{font-size:1.15rem;color:#fff;margin-bottom:1.2rem}
.cta-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

.post-more{margin-top:2.5rem;border-top:1px solid var(--border);padding-top:1.6rem}
.post-more .section-label{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:.9rem}
.post-more ul{list-style:none;margin:0;display:grid;gap:.55rem}
.post-more li{margin:0}
.post-more a{color:var(--blue);text-decoration:none;font-weight:600}
.post-more a:hover{text-decoration:underline}

/* ── Footer ──────────────────────────────── */
footer{background:var(--bg2);border-top:1px solid var(--border);padding:2.2rem 2rem;text-align:center}
footer p{font-size:.82rem;color:var(--dim);margin-bottom:.35rem}
footer a{color:var(--blue);text-decoration:none}
footer a:hover{text-decoration:underline}

@media(max-width:640px){
  nav{padding:0 1rem;gap:.8rem}
  .nav-links{display:none}
  .nav-try{display:none}
  .nav-right{gap:.35rem}
  .blog-head{padding:3.5rem 1.5rem 1rem}
  .article{padding:2rem 1.5rem 2.5rem}
}

/* ── Cookie banner ───────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px #00000044;
  transition: transform .35s ease;
}
#cookie-banner.hidden { transform: translateY(110%); pointer-events: none; }
.cookie-text { flex: 1; min-width: 260px; font-size: .88rem; color: var(--text); line-height: 1.6; }
.cookie-text strong { color: #fff; }
.cookie-actions { display: flex; gap: .6rem; align-items: center; flex-shrink: 0; }
.cookie-mail {
  background: var(--blue); color: #1e2127; border: none; cursor: pointer;
  padding: .42rem 1rem; border-radius: 6px; font-size: .86rem; font-weight: 700;
  font-family: inherit; text-decoration: none; display: inline-block;
  transition: background .15s;
}
.cookie-mail:hover { background: #71bfff; }
.cookie-close {
  background: var(--bg3); color: var(--dim); border: 1px solid var(--border);
  cursor: pointer; padding: .42rem .8rem; border-radius: 6px; font-size: .86rem;
  font-family: inherit; transition: background .15s, color .15s;
}
.cookie-close:hover { background: var(--border); color: var(--text); }
