:root{
  --bg:#070A10;
  --card:#0E1422;
  --card2:#0B1020;
  --fg:#F3F6FF;
  --muted:#A7B0C8;
  --muted2:#7F8AA8;
  --line:rgba(255,255,255,.10);
  --accent:#6EE7F8;
  --accent2:#A78BFA;
  --good:#34D399;
  --warn:#FBBF24;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--fg);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(110,231,248,.22), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(167,139,250,.18), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(52,211,153,.10), transparent 55%),
    var(--bg);
  line-height:1.6;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,16,.72);
  border-bottom:1px solid var(--line);
}
.navrow{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px; min-width:180px}
.brand svg{width:34px; height:34px}
.brand .name{font-weight:900; letter-spacing:.2px}
.brand .tag{display:block; font-size:12px; color:var(--muted)}
.navlinks{display:flex; align-items:center; gap:14px}
.navlinks a{color:var(--fg); opacity:.86; font-weight:700; font-size:14px; padding:10px 10px; border-radius:12px}
.navlinks a:hover{background:rgba(255,255,255,.06); opacity:1; text-decoration:none}
.drop{position:relative}
.dropbtn{display:flex; align-items:center; gap:8px}
.menu{
  position:absolute; top:44px; right:0;
  min-width:220px;
  background:rgba(14,20,34,.96);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
}
.menu a{display:block; padding:10px 12px; border-radius:12px}
.menu a:hover{background:rgba(255,255,255,.06)}
.drop.open .menu{display:block}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--fg);
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn.primary{
  border-color:rgba(110,231,248,.30);
  background:linear-gradient(135deg, rgba(110,231,248,.18), rgba(167,139,250,.14));
}
.hero{padding:52px 0 10px}
.heroGrid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
.card{
  background:linear-gradient(180deg, rgba(14,20,34,.92), rgba(11,16,32,.92));
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.pad{padding:22px}
.kicker{color:var(--muted); font-weight:900; letter-spacing:.16em; text-transform:uppercase; font-size:12px}
.h1{font-size:44px; line-height:1.1; margin:10px 0 10px; font-weight:950}
.sub{color:var(--muted); font-size:16px; margin:0 0 18px}
.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.pill{font-size:12px; font-weight:800; color:var(--fg); opacity:.92; border:1px solid var(--line); padding:8px 10px; border-radius:999px; background:rgba(255,255,255,.03)}
.grid{display:grid; gap:14px}
.grid.cols{grid-template-columns: repeat(3, 1fr)}
@media (max-width: 980px){ .grid.cols{grid-template-columns: repeat(2, 1fr)} .heroGrid{grid-template-columns:1fr} .h1{font-size:38px}}
@media (max-width: 640px){ .grid.cols{grid-template-columns: 1fr} .h1{font-size:34px}}
.postCard{padding:16px; border-radius:18px; background:rgba(255,255,255,.03); border:1px solid var(--line)}
.postCard h3{margin:8px 0 8px; font-size:18px; line-height:1.25}
.postCard .meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:12px; font-weight:700}
.postCard .meta .tag{border:1px solid var(--line); padding:4px 8px; border-radius:999px; color:var(--fg); opacity:.78}
.postCard p{margin:10px 0 0; color:var(--muted)}
.section{padding:18px 0 44px}
.section h2{font-size:22px; margin:0 0 10px}
.chartWrap{padding:18px 18px 12px}
.chartTitle{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; margin-bottom:10px}
.chartTitle .small{color:var(--muted); font-weight:700; font-size:12px}
svg.chart{width:100%; height:auto; display:block}
.footer{padding:30px 0 40px; color:var(--muted); border-top:1px solid var(--line); margin-top:26px}
.footer a{color:var(--muted); font-weight:700}
.footerGrid{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px}
@media (max-width: 820px){ .footerGrid{grid-template-columns:1fr} }
.small{font-size:12px; color:var(--muted2)}
hr.sep{border:0; border-top:1px solid var(--line); margin:16px 0}

.articleWrap{max-width:800px; margin:0 auto; padding:20px 18px 44px}
.articleHead{padding:24px 0 10px}
.articleHead .title{font-size:40px; line-height:1.12; margin:8px 0 10px; font-weight:950}
.articleHead .meta{display:flex; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:13px; font-weight:800}
.breadcrumb{color:var(--muted); font-size:12px; font-weight:800}
.breadcrumb a{color:var(--muted)}
.content{font-size:17px; line-height:1.75}
.content p{margin:14px 0; color:rgba(243,246,255,.92); max-width:75ch}
.content h2{margin:26px 0 10px; font-size:22px; line-height:1.25}
.content ul{margin:12px 0 16px 18px}
.content li{margin:8px 0; color:rgba(243,246,255,.90)}
.callout{
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(110,231,248,.22);
  background:linear-gradient(135deg, rgba(110,231,248,.10), rgba(167,139,250,.06));
  color:rgba(243,246,255,.92);
  margin:18px 0;
}
.searchRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.searchRow input{
  flex:1; min-width:240px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--fg);
  outline:none;
}
.searchRow input:focus{border-color:rgba(110,231,248,.35)}
.badge{font-family:var(--mono); font-size:12px; color:rgba(243,246,255,.85); background:rgba(255,255,255,.05); border:1px solid var(--line); padding:6px 10px; border-radius:999px}

.overlay{
  position:fixed; inset:0; z-index:60;
  background:rgba(0,0,0,.55);
  display:none;
}
.overlay.active{display:block}
.sheet{
  position:absolute; left:50%; top:14px; transform:translateX(-50%);
  width:min(520px, calc(100% - 28px));
  background:rgba(14,20,34,.98);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:10px;
}
.sheet a{display:block; padding:12px 14px; border-radius:16px; color:var(--fg); font-weight:900; opacity:.9}
.sheet a:hover{background:rgba(255,255,255,.06); opacity:1; text-decoration:none}
.mobileOnly{display:none}
@media (max-width: 860px){
  .navlinks{display:none}
  .mobileOnly{display:inline-flex}
}
.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:18px; z-index:80;
  width:min(920px, calc(100% - 28px));
  background:rgba(14,20,34,.97);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  display:none;
}
.toast.show{display:block}
.toastRow{display:flex; gap:12px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.toast p{margin:0; color:var(--muted)}
