:root{
  --bg:#0b0c10;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --muted2:rgba(255,255,255,.5);
  --border:rgba(255,255,255,.12);
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:20px;

  --accent1:#6d5efc;
  --accent2:#22d3ee;
  --accent3:#a855f7;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 25% -10%, rgba(109,94,252,.18), transparent 60%),
    radial-gradient(1000px 500px at 75% 10%, rgba(34,211,238,.14), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(168,85,247,.12), transparent 55%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
.container{width:min(1100px,92vw);margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(10,10,14,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  width:min(1100px,92vw); margin:0 auto;
  height:64px; display:flex; align-items:center; justify-content:space-between;
}

.brand{display:flex;align-items:center;gap:10px;font-weight:800}

.brand-dot{
  width:12px;height:12px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow:0 0 0 6px rgba(109,94,252,.15);
}

.nav-right{display:flex;gap:14px;align-items:center}

.nav-link{
  color:var(--muted);
  font-weight:650;
  padding:8px 10px;
  border-radius:12px;
}

.nav-link:hover{color:var(--text);background:rgba(255,255,255,.06)}

.hero{padding:56px 0 18px; text-align:center;}
.hero-inner{width:min(920px,92vw); margin:0 auto;}

.hero-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-weight:700;
  margin-bottom:14px;
}

.hero-title{margin:0; font-size:clamp(34px,4.2vw,56px); letter-spacing:-.6px;}
.hero-subtitle{margin:12px auto 18px; color:var(--muted); max-width:760px;}

.controls{
  width:min(860px,92vw);
  margin:0 auto;
  display:flex;
  gap:12px;
  align-items:end;
  justify-content:center;
  flex-wrap:wrap;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
}

.control{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:220px}
.control.grow{flex:1 1 340px}
.control-label{font-size:12px;color:var(--muted2);font-weight:800}

.select,.input{
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:var(--text);
  padding:0 12px;
  outline:none;
}

.select:focus,.input:focus{
  border-color: rgba(109,94,252,.55);
  box-shadow: 0 0 0 5px rgba(109,94,252,.18);
}

.btn{
  height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:850;
  cursor:pointer;
}

.btn:hover{background:rgba(255,255,255,.10)}
.hint{margin:14px 0 0; color:var(--muted2); font-size:13px}

.section{padding:26px 0 60px;}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

@media (max-width: 920px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 620px){ .grid{grid-template-columns:1fr} }

.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow:hidden;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}

.card-link{display:block}

.thumb{
  aspect-ratio: 16/9;
  background: #0f1117;
  overflow: hidden;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: brightness(1.15) contrast(1.15) saturate(1.2);
  transition: transform .4s ease, filter .4s ease;
}

.card:hover .thumb img{
  transform: scale(1.05);
  filter: brightness(1.25) contrast(1.2) saturate(1.3);
}

.card-body{padding:16px 16px 14px; position:relative;}

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}

.card-title{margin:10px 0 6px; font-size:18px;}
.card-desc{margin:0; color:rgba(255,255,255,.72); font-size:13px; line-height:1.35; max-width:52ch;}

.meta{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap;}

.tag{
  font-size:12px;
  color: rgba(255,255,255,.75);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:750;
}

.arrow{
  position:absolute; right:14px; bottom:12px;
  opacity:.65; transition: transform .18s ease, opacity .18s ease;
  font-weight:900;
}

.card:hover .arrow{transform: translateX(3px); opacity:.95;}

.is-hidden{display:none !important}

.empty{
  margin: 30px auto 0;
  width: min(700px, 92vw);
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  text-align:center;
  color: var(--muted);
}

.empty h3{margin:0 0 6px; color: var(--text);}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(10,10,14,.35);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
  color:var(--muted);
  font-size:13px;
}

.footer-link{color:rgba(255,255,255,.72); font-weight:850;}
.footer-link:hover{color:var(--text);}

.reveal{opacity:1; transform:none; filter:none;}

.reveal.animate{
  opacity:0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}

.reveal.animate.reveal-in{
  opacity:1;
  transform:none;
  filter:none;
}

@media (prefers-reduced-motion: reduce){
  .reveal.animate{transition:none; opacity:1; transform:none; filter:none;}
  .card, .card:hover{transition:none; transform:none;}
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;
}

.lightbox.active{
  opacity: 1;
  pointer-events: auto;
}

.lightbox img{
  max-width: 92%;
  max-height: 92%;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: zoomIn .35s ease;
}

@keyframes zoomIn{
  from{
    transform: scale(.9);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}
