:root{
    --bg:#0b1220;
    --bg2:#101a2e;
    --card:#111b2f;
    --line:#2a3957;
    --text:#e6edf8;
    --muted:#9fb1d1;
    --accent:#34d399;
    --warn:#f59e0b;
    --bad:#ef4444;
}
*{box-sizing:border-box}
body{
    margin:0;
    font-family:Segoe UI, Tahoma, sans-serif;
    color:var(--text);
    background:
        radial-gradient(900px 400px at 8% -10%, #1f3b74 0%, transparent 60%),
        radial-gradient(900px 500px at 92% -5%, #14474e 0%, transparent 60%),
        linear-gradient(160deg,var(--bg),var(--bg2));
    min-height:100vh;
}
a{color:#93c5fd}
.topbar{
    max-width:1100px;
    margin:0 auto;
    padding:18px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.brand{font-weight:800;letter-spacing:.5px}
.lang-switch{display:flex;gap:8px}
.lang-pill{
    border:1px solid var(--line);
    border-radius:999px;
    padding:6px 10px;
    text-decoration:none;
    color:var(--text);
    font-size:12px;
}
.lang-pill.active{background:var(--accent);color:#03291c;border-color:var(--accent);font-weight:700}
.layout{
    max-width:1100px;
    margin:0 auto;
    padding:0 16px 24px;
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}
.layout--blog{
    max-width:860px;
}
.card{
    background:rgba(17,27,47,.88);
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.eyebrow{font-size:12px;color:#a7f3d0;letter-spacing:.5px}
h1{margin:6px 0 8px;font-size:30px;line-height:1.15}
h2{margin:0 0 8px}
.subline{margin:0 0 14px;color:var(--muted)}
.notice{
    background:#241a07;
    border:1px solid #664b0f;
    color:#fde68a;
    border-radius:10px;
    padding:10px;
    margin-bottom:12px;
}
.output{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    border:1px solid #185842;
    background:#04110d;
    border-radius:12px;
    padding:12px;
}
.passphrase{
    font-family:Consolas, "Courier New", monospace;
    color:#8ff7cb;
    font-size:20px;
    word-break:break-word;
}
.btn{
    border:1px solid var(--line);
    border-radius:10px;
    padding:10px 14px;
    cursor:pointer;
}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-icon{background:transparent;color:var(--text)}
.btn-main{
    margin-top:14px;
    width:100%;
    background:var(--accent);
    color:#052e16;
    border:0;
    font-weight:700;
}
.meter-wrap{margin-top:10px}
.meter{
    height:8px;
    background:#0b1220;
    border-radius:999px;
    overflow:hidden;
    border:1px solid #243555;
}
.meter span{display:block;height:100%;width:0;background:var(--bad);transition:width .3s}
.meta-row{
    margin-top:6px;
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font-size:12px;
}
.controls{
    margin-top:14px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
}
.tile{
    background:#0c1526;
    border:1px solid #223354;
    border-radius:12px;
    padding:12px;
}
.tile h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;color:var(--muted)}
.tile label{display:flex;gap:8px;align-items:center;margin:6px 0;font-size:14px}
.locked-option{opacity:.95}
.locked-note{
    margin-left:auto;
    font-size:12px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.4px;
}
.tile select{
    margin-left:auto;
    background:#0a1220;
    border:1px solid #334766;
    color:var(--text);
    border-radius:8px;
    padding:4px 8px;
}
.assurance-grid{
    margin-top:12px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:10px;
}
.assurance-card{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:12px;
    border:1px solid #294363;
    border-radius:12px;
    background:#0b1830;
    text-decoration:none;
    color:var(--text);
}
.assurance-card:hover{border-color:#60a5fa}
.assurance-card strong{font-size:15px}
.assurance-kicker{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.6px;
    color:#a5c6f7;
}
.assurance-copy{
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}
.article-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:10px;
}
.article{
    display:block;
    padding:12px;
    border:1px solid #2b3f63;
    border-radius:12px;
    text-decoration:none;
    color:var(--text);
    background:#0d1729;
}
.article:hover{border-color:#60a5fa}
.article-meta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:14px;
    color:var(--muted);
    font-size:13px;
}
.article-body h1{
    margin-top:0;
    margin-bottom:16px;
    font-size:clamp(1.62rem, calc(1.31rem + 1.08vw), 2.16rem);
    line-height:1.2;
}
.article-body h2{
    margin-top:1.7em;
    margin-bottom:.65em;
    font-size:clamp(1.17rem, calc(0.95rem + 0.81vw), 1.62rem);
    line-height:1.3;
}
.article-body h3{
    margin-top:1.45em;
    margin-bottom:.6em;
    font-size:clamp(1.04rem, calc(0.89rem + 0.54vw), 1.22rem);
    line-height:1.35;
}
.article-body p{
    margin:0 0 1.05em;
    line-height:1.72;
    font-size:clamp(1rem, calc(0.96rem + 0.22vw), 1.11rem);
}
.article-nav{
    margin-top:18px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.nav-link{
    display:inline-block;
    padding:8px 12px;
    border:1px solid #2b3f63;
    border-radius:10px;
    background:#0d1729;
    color:#cfe0ff;
    text-decoration:none;
    font-size:14px;
}
.nav-link:hover{border-color:#60a5fa}
.nav-link-primary{
    border-color:#2f6a52;
    background:#0d251d;
    color:#b7f7df;
}
.site-footer{
    max-width:1100px;
    margin:6px auto 20px;
    padding:0 16px;
    display:flex;
    gap:14px;
    font-size:14px;
}
@media (max-width:700px){
    h1{font-size:24px}
    .passphrase{font-size:17px}
}
@media (max-width:980px){
    .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
    .article-grid{grid-template-columns:1fr}
}
