:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --muted:#97a3b6;
  --text:#eaf0ff;
  --accent:#66e3c4;
  --accent2:#7aa7ff;
  --border:rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
  --max:1080px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 15% 10%, rgba(102,227,196,.14), transparent 60%),
              radial-gradient(900px 600px at 85% 0%, rgba(122,167,255,.16), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.65;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 22px 18px;
}

.header{
  border-bottom:1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.3px;
}

.logo{
  width:38px; height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 25px rgba(102,227,196,.18);
}

.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.pill.active{
  border-color: rgba(102,227,196,.55);
  box-shadow: 0 0 0 4px rgba(102,227,196,.10);
}
.pill small{ color: var(--muted); }

.hero{
  margin-top: 18px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background:
    radial-gradient(900px 320px at 20% 10%, rgba(102,227,196,.14), transparent 60%),
    radial-gradient(700px 340px at 80% 20%, rgba(122,167,255,.16), transparent 55%),
    rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}

.hero h1{
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem);
  margin: 0 0 10px 0;
  line-height:1.2;
}
.hero p{
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}
.hero .tagrow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.tag{
  font-size: .92rem;
  padding: 8px 10px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:999px;
  color: rgba(234,240,255,.92);
  background: rgba(255,255,255,.03);
}

.grid{
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.cardpad{ padding: 18px; }

.article-card{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:14px;
  padding: 14px;
  border-bottom:1px solid var(--border);
}
.article-card:last-child{ border-bottom:none; }
@media (max-width: 650px){
  .article-card{ grid-template-columns: 1fr; }
}

.thumb{
  width:100%;
  height:120px;
  border-radius: 14px;
  object-fit: cover;
  border:1px solid rgba(255,255,255,.10);
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size:.92rem;
  margin-bottom: 6px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid rgba(102,227,196,.35);
  color: rgba(102,227,196,.95);
  background: rgba(102,227,196,.08);
  font-weight:650;
  letter-spacing:.2px;
}

.article-card h3{
  margin: 0 0 8px 0;
  line-height:1.25;
}
.article-card p{
  margin: 0;
  color: var(--muted);
}

.sidebar h3{ margin:0 0 8px 0; }
.sidebar p{ margin:0; color: var(--muted); }

.form{
  margin-top: 12px;
  display:flex;
  gap:10px;
}
.form input{
  flex: 1;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.form input:focus{
  border-color: rgba(122,167,255,.6);
  box-shadow: 0 0 0 4px rgba(122,167,255,.12);
}
.btn{
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(102,227,196,.95), rgba(122,167,255,.92));
  color: rgba(11,18,32,.95);
  font-weight:800;
  cursor:pointer;
}
.btn:active{ transform: translateY(1px); }
.note{
  margin-top: 10px;
  font-size:.92rem;
  color: var(--muted);
}
.success{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(102,227,196,.10);
  border:1px solid rgba(102,227,196,.35);
  color: rgba(234,240,255,.95);
}

.main-content img.hero-img{
  width:100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  margin: 16px 0 10px 0;
}

.prose{
  padding: 18px;
}
.prose h1{ margin-top: 6px; line-height:1.2; }
.prose h2{ margin-top: 26px; }
.prose h3{ margin-top: 18px; }
.prose p{ color: rgba(234,240,255,.92); }
.prose .muted{ color: var(--muted); }
.prose blockquote{
  margin: 18px 0;
  padding: 14px 14px;
  border-left: 4px solid rgba(102,227,196,.7);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  color: rgba(234,240,255,.92);
}
.prose ul{ margin: 10px 0 10px 20px; }
.prose li{ margin: 6px 0; }
hr.sep{
  border:none;
  border-top:1px solid var(--border);
  margin: 18px 0;
}

.footer{
  margin-top: 28px;
  border-top:1px solid var(--border);
  color: var(--muted);
}
.footer .footrow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding: 18px 0;
}
.footer .links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.footer a{ color: rgba(234,240,255,.85); }
.footer a:hover{ color: var(--text); }

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display:none;
}
.cookie-inner{
  width: min(100%, var(--max));
  margin: 0 auto;
  border:1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(15,26,51,.92);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.cookie-inner p{
  margin: 0;
  color: rgba(234,240,255,.92);
}
.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn.secondary{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.small{
  font-size:.92rem;
  color: var(--muted);
}
