:root{
  --bg: radial-gradient(circle at 20% 20%, #f8fbff 0, #eef2f7 35%, #e6ecf5 70%, #dfe7f2 100%);
  --surface: rgba(255,255,255,0.82);
  --text:#0f172a;
  --muted:rgba(15,23,42,.65);
  --line:rgba(15,23,42,.12);
  --accent:#2563eb;
  --accent-2:#10b981;
  --r:18px;
  --shadow: 0 12px 30px rgba(0,0,0,0.10);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "Space Grotesk","DM Sans","Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height:100vh;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top:0;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.brand a{ color:inherit; text-decoration:none; font-weight:700; letter-spacing:0.3px; }
.brand{ font-weight:800; font-size: 17px; }

.nav{
  display:flex;
  gap:8px;
}
.nav a{
  text-decoration:none;
  color:inherit;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background: rgba(255,255,255,0.5);
  transition: all .18s ease;
}
.nav a:hover{ border-color: var(--line); box-shadow: 0 6px 14px rgba(0,0,0,0.05); }
.nav a.active{ border-color: var(--line); background: rgba(37,99,235,0.08); color:#0f172a; }

.container{ max-width: 1040px; margin: 0 auto; padding: 22px; }

h1{ margin: 12px 0 10px; letter-spacing:-0.02em; }
h2{ margin: 0 0 12px; letter-spacing:-0.01em; }
h3{ margin: 0 0 8px; }
p{ line-height: 1.6; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap:18px;
  margin: 16px 0;
}

.card{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  text-decoration:none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .18s ease, border-color .16s ease;
}
.card:hover{ border-color: rgba(37,99,235,.35); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37,99,235,0.15); }

.card.subtle{ background: rgba(255,255,255,.7); border-style:dashed; }

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 12px 0; }

.tag{
  display:inline-block;
  margin-left: 8px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(15,23,42,0.04);
  letter-spacing: 0.2px;
}

a.disabled{
  pointer-events:none;
  opacity:.55;
  text-decoration:none;
}

.footer{
  padding: 22px;
  color: var(--muted);
  text-align:center;
  font-size: 14px;
}
@media (max-width: 640px){
  .topbar{ padding:12px 14px; }
  .nav{ flex-wrap: wrap; justify-content:flex-end; }
}
