:root{
  --bg0:#0B0D12;
  --bg1:#0E1118;
  --card:#141826;
  --stroke:#ffffff10;
  --text:#E6EAF5;
  --muted:#A3ACC2;
  --shadow: 0 8px 22px rgba(0,0,0,.45);
  --radius: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1100px 650px at 10% 0%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 600px at 95% 20%, rgba(255,255,255,.04), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:56px 18px 72px;
}

header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:26px;
}

.title{
  display:flex;
  flex-direction:column;
  gap:10px;
}

h1{
  margin:0;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing:-0.03em;
  line-height:1.05;
}

p{
  margin:0;
  color:var(--muted);
  max-width:62ch;
  line-height:1.45;
  font-size: 15px;
}

.search{
  position:relative;
  width:min(320px, 100%);
  flex:0 0 auto;
}

.search input{
  width:100%;
  padding:12px 14px 12px 42px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  color:var(--text);
  border-radius: 999px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search input:focus{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.search svg{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  opacity:.7;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  margin-top:16px;
}

.card{
  grid-column: span 4;
  position:relative;
  padding:16px;
  border-radius: var(--radius);
  background: var(--card);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  min-height:120px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-size:12px;
  color:rgba(230,234,245,.92);
}

.icon{
  width:32px;
  height:32px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-size:14px;
}

.name{
  font-weight:650;
  letter-spacing:-0.01em;
  font-size:16px;
}

.desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  max-width:42ch;
}

.meta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:rgba(230,234,245,.75);
  font-size:12px;
}

.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:11px;
  padding:2px 7px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color:rgba(230,234,245,.85);
}

footer{
  margin-top:26px;
}

@media (max-width: 980px){
  .card{ grid-column: span 6; }
}

@media (max-width: 640px){
  header{ flex-direction:column; align-items:stretch; }
  .search{ width:100%; }
  .card{ grid-column: span 12; }
  .wrap{ padding-top:44px; }
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .card{transition:none}
}