* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg: #0b0f1a;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --stroke: rgba(255,255,255,0.10);
  --accent: #7c5cff;
  --accent2: #3dd6d0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg{
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(124,92,255,0.28), transparent 60%),
    radial-gradient(700px 500px at 85% 30%, rgba(61,214,208,0.20), transparent 60%),
    radial-gradient(700px 600px at 50% 90%, rgba(255,255,255,0.06), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}

.wrap{
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 18px;
}

.top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

h1{
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.subtitle{
  margin-top: 10px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  line-height: 1.6;
}

.subtitle span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subtitle i{
  color: var(--accent2);
}

.links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip{
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}

.about{
  margin-top: 16px;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.section h2{
  margin: 26px 0 14px;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border-radius: 16px;
  padding: 16px;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.20);
  background: linear-gradient(180deg, var(--panel2), rgba(255,255,255,0.04));
}

.card.featured{
  border-color: rgba(124,92,255,0.35);
  background: linear-gradient(180deg, rgba(124,92,255,0.12), rgba(255,255,255,0.03));
  grid-column: 1 / -1;
}
.card.featured:hover{
  border-color: rgba(124,92,255,0.50);
}

.tag-group{
  display: flex;
  gap: 6px;
}

.tag.accent{
  background: rgba(124,92,255,0.18);
  border-color: rgba(124,92,255,0.40);
  color: #b8a5ff;
}

.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card h3{
  font-size: 16px;
  letter-spacing: -0.01em;
}

.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}

.desc{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  min-height: 44px;
}

.actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.btn{
  text-decoration: none;
  color: #0b0f1a;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
}
.btn.ghost{
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}

.footer{
  margin-top: 22px;
  padding: 18px 0 28px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

@media (max-width: 760px){
  .top{ flex-direction: column; }
  .links{ justify-content: flex-start; }
  .grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 900ms ease forwards;
  }

  .card:nth-child(1) { animation-delay: 60ms; }
  .card:nth-child(2) { animation-delay: 120ms; }
  .card:nth-child(3) { animation-delay: 180ms; }
  .card:nth-child(4) { animation-delay: 240ms; }
  .card:nth-child(5) { animation-delay: 300ms; }
  .card:nth-child(6) { animation-delay: 360ms; }

  @keyframes cardIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}