:root {
  --bg: #0a0a12; --card: #14141f; --card-2: #1a1a28; --border: #ffffff12;
  --text: #ecedf6; --muted: #9293ad; --accent: #8b5cf6; --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, #8b5cf6, #22d3ee);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.bg { position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 50% at 50% -8%, #6d28d933, transparent 70%); }

/* Hero */
.hero { text-align: center; padding: 56px 20px 30px; max-width: 720px; margin: 0 auto; }
.hero__avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 8px 30px #8b5cf650; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-top: 16px; letter-spacing: -.02em; }
.hero__role { color: var(--accent-2); font-family: 'JetBrains Mono', monospace; font-size: .92rem; margin-top: 6px; }
.hero__tag { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.hero__links { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero__links a { padding: 9px 20px; border: 1px solid var(--border); border-radius: 30px; font-weight: 600; font-size: .9rem; transition: .2s; }
.hero__links a:hover { border-color: var(--accent); background: #8b5cf615; }
.stats { display: flex; gap: 28px; justify-content: center; margin-top: 28px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .8rem; }

/* Filtros */
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 20px 30px; position: sticky; top: 0; z-index: 5; }
.filters button { background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 8px 16px;
  border-radius: 30px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: .2s; font-family: inherit; }
.filters button:hover { color: var(--text); }
.filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Grid */
.grid { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s; opacity: 0; transform: translateY(16px); }
.card.show { opacity: 1; transform: none; }
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 40px #00000055; }
.card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #8b5cf618; font-size: 1.5rem; flex-shrink: 0; }
.card__name { font-size: 1.12rem; font-weight: 700; }
.card__cat { font-size: .72rem; color: var(--accent-2); font-family: 'JetBrains Mono', monospace; }
.card__desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.card__tags span { font-size: .72rem; color: var(--muted); background: #ffffff0a; padding: 3px 9px; border-radius: 14px; font-family: 'JetBrains Mono', monospace; }
.card__links { display: flex; gap: 10px; margin-top: auto; }
.card__links a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; font-size: .85rem; transition: .2s; }
.card__links .live { background: var(--grad); color: #fff; }
.card__links .live:hover { filter: brightness(1.1); }
.card__links .repo { border: 1px solid var(--border); color: var(--text); }
.card__links .repo:hover { border-color: var(--accent); }

.foot { text-align: center; color: var(--muted); font-size: .88rem; padding: 30px; border-top: 1px solid var(--border); }

@media (max-width: 540px) { .hero h1 { font-size: 1.8rem; } .stats { gap: 18px; } }
