:root{
  --bg:#0b0f1a;
  --bg2:#070b14;
  --text:#ffffff;
  --muted:#a9b1c6;
  --accent:#3aa0ff;
  --border:rgba(255,255,255,.08);
  --shadow: 0 12px 34px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
.container{width:min(1120px, calc(100% - 32px)); margin:0 auto}
a{color:inherit}

.header{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  background:rgba(7,11,20,.92);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand{display:flex; flex-direction:column; gap:2px; text-decoration:none}
.brand__name{font-weight:800; letter-spacing:.2px; font-size:20px}
.brand__accent{color:var(--accent)}
.brand__tag{font-size:12px; color:var(--muted)}

.nav{display:flex; gap:10px; flex-wrap:wrap}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.header__right{display:flex; align-items:center}
.search{
  width:min(260px, 42vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
.search::placeholder{color:rgba(169,177,198,.8)}

.hero{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:18px;
  background: linear-gradient(135deg, #0b0f1a, #0f1b35);
  box-shadow: var(--shadow);
}
.hero__content{padding:48px 22px; text-align:center}
.hero h1{margin:0 0 10px; font-size: clamp(26px, 3.5vw, 42px)}
.hero p{margin:0 auto 18px; color:var(--muted); max-width: 64ch}
.hero__cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

.section{padding:34px 0}
.section--alt{
  background:rgba(255,255,255,.02);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section__head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-bottom:14px;
}
.section__head h1,.section__head h2{margin:0}
.link{color:var(--accent); text-decoration:none}
.link:hover{text-decoration:underline}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.grid--4{grid-template-columns: repeat(4, minmax(0, 1fr))}
@media (max-width: 980px){
  .grid,.grid--4{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .nav{display:none}
}
@media (max-width: 560px){
  .grid,.grid--4{grid-template-columns: 1fr}
}

.card{
  display:flex; flex-direction:column; gap:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  text-decoration:none;
  min-height: 152px;
}
.card:hover{transform: translateY(-1px); background:rgba(255,255,255,.05)}
.card__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background:rgba(255,255,255,.03);
}
.card__title{margin:0; font-size:16px; line-height:1.3}
.card__meta{display:flex; gap:10px; color:var(--muted); font-size:12px; margin-top:auto}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  background:var(--accent);
  color:#07101f;
  font-weight:800;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.15);
}
.btn--ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}
.btn--ghost:hover{background:rgba(255,255,255,.06)}

.muted{color:var(--muted)}
.lead{font-size:18px; color:var(--muted); max-width: 70ch}

.footer{
  border-top:1px solid var(--border);
  background:rgba(7,11,20,.85);
  margin-top: 32px;
}
.footer__inner{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
  padding:22px 0;
}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{color:var(--muted); text-decoration:none}
.footer__links a:hover{color:var(--text)}
.footer__copy{margin-left:auto}

.article{padding: 28px 0}
.article__meta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.article h1{margin:10px 0 8px; font-size: clamp(26px, 3.2vw, 44px)}
.article__cover{
  margin: 18px 0;
  height: 220px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(58,160,255,.45), rgba(255,255,255,.03));
}
.content{max-width: 75ch}
.content p{margin: 0 0 12px; color: rgba(255,255,255,.92)}
.hr{border:0; border-top:1px solid var(--border); margin: 24px 0}
