
:root{
  --bg:#0b1020;--panel:#121a2d;--panel2:#17213a;--text:#edf2ff;--muted:#aebbd5;
  --line:#273552;--accent:#7dd3fc;--accent2:#a7f3d0;--max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(180deg,#080d19 0%,var(--bg) 45%,#0c1323 100%);color:var(--text);line-height:1.7}
a{color:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin:auto}
header{position:sticky;top:0;z-index:10;background:rgba(8,13,25,.88);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:68px}
.brand{text-decoration:none;font-weight:800;letter-spacing:-.02em}
.brand span{color:var(--accent)}
nav{display:flex;gap:18px;flex-wrap:wrap}
nav a{text-decoration:none;color:var(--muted);font-size:.94rem}
nav a:hover{color:var(--text)}
.hero{padding:92px 0 62px}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:var(--accent);font-size:.78rem;font-weight:800}
h1,h2,h3{line-height:1.15;letter-spacing:-.035em}
h1{font-size:clamp(2.35rem,5vw,4.35rem);max-width:980px;margin:.18em 0}
h2{font-size:clamp(1.7rem,3.5vw,2.7rem);margin-top:0}
.lead{font-size:clamp(1.05rem,2vw,1.25rem);color:var(--muted);max-width:760px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-block;text-decoration:none;padding:12px 18px;border-radius:12px;font-weight:750;border:1px solid var(--line)}
.btn.primary{background:var(--text);color:#0b1020;border-color:var(--text)}
.btn.secondary{color:var(--text);background:rgba(255,255,255,.03)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:linear-gradient(180deg,rgba(23,33,58,.94),rgba(18,26,45,.94));border:1px solid var(--line);border-radius:18px;padding:24px}
.card p{color:var(--muted)}
.card .tag,.tag{display:inline-block;padding:4px 9px;border-radius:999px;border:1px solid var(--line);color:var(--accent2);font-size:.78rem;font-weight:700}
.section{padding:56px 0}
.section + .section{border-top:1px solid rgba(39,53,82,.65)}
.article{width:min(820px,calc(100% - 40px));margin:0 auto;padding:64px 0}
.article h1{font-size:clamp(2.25rem,5vw,4.1rem)}
.article h2{margin-top:2.2em}
.article p,.article li{color:#cbd6ed}
.note{border-left:3px solid var(--accent);background:rgba(125,211,252,.07);padding:14px 18px;border-radius:0 12px 12px 0}
.warning{border-left-color:#fcd34d;background:rgba(252,211,77,.07)}
.steps{counter-reset:step;list-style:none;padding:0}
.steps li{counter-increment:step;margin:18px 0;padding:18px 18px 18px 60px;background:var(--panel);border:1px solid var(--line);border-radius:14px;position:relative}
.steps li:before{content:counter(step);position:absolute;left:18px;top:17px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:#0b1020;font-weight:800}
.cta{margin:36px 0;padding:24px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(125,211,252,.1),rgba(167,243,208,.07))}
.small{font-size:.9rem;color:var(--muted)}
footer{border-top:1px solid var(--line);padding:34px 0 50px;color:var(--muted)}
.footerlinks{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.footerlinks a{text-decoration:none}
.kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}
.kpi div{border:1px solid var(--line);border-radius:14px;padding:16px;background:rgba(255,255,255,.02)}
.kpi strong{display:block;font-size:1.4rem;color:var(--text)}
@media(max-width:820px){.grid{grid-template-columns:1fr}.kpi{grid-template-columns:1fr 1fr}.nav{align-items:flex-start;padding:14px 0;flex-direction:column}nav{padding-bottom:8px}.hero{padding-top:60px}}
@media(max-width:520px){.container,.article{width:min(100% - 28px,var(--max))}.kpi{grid-template-columns:1fr}h1{font-size:2.5rem}}


/* Article / hands-on testing */
.article{max-width:900px}
.article h2{margin-top:2.7rem}
.article h3{margin-top:2rem}
.article p{line-height:1.8}
.hero.compact{padding-bottom:2.5rem}
.tested-box{border:1px solid var(--line,#263650);border-radius:16px;padding:20px 22px;margin:20px 0 34px;background:rgba(80,120,180,.08)}
.tested-box p{margin-bottom:0}
.article-figure{margin:28px 0 38px}
.article-figure img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line,#263650);background:#fff}
.article-figure.narrow{max-width:720px}
.article-figure figcaption{font-size:.9rem;line-height:1.5;opacity:.78;margin-top:10px}
.workflow-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0 34px}
.workflow-strip span,.check-grid>div{border:1px solid var(--line,#263650);border-radius:14px;padding:16px;background:rgba(80,120,180,.06)}
.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:22px 0 36px}
@media (max-width:720px){
  .workflow-strip,.check-grid{grid-template-columns:1fr}
  .article-figure{margin-left:0;margin-right:0}
}

.article-meta{font-size:.9rem;color:var(--muted);margin:.7rem 0 1.2rem;letter-spacing:.01em}

.article code{padding:.12em .4em;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.05);color:var(--accent2)}


/* Global article image safety — prevent horizontal overflow */
.article,
.article figure,
.article picture,
.article img {
  max-width: 100%;
}

.article figure {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

.article figure img,
.article > img,
.article p img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.article pre,
.article table {
  max-width: 100%;
  overflow-x: auto;
}

body {
  overflow-x: hidden;
}

@media (max-width: 920px) {
  .article {
    width: min(100% - 28px, 900px);
  }
  .article figure img {
    width: 100%;
    height: auto;
  }
}
