:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#eaf0ff;
  --muted:#9aa4c2;
  --line:rgba(255,255,255,.08);
  --glass:rgba(18,26,51,.60);
  --accent:#6ee7ff;
  --accent2:#a78bfa;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 650px at 15% 0%, rgba(110,231,255,.14), transparent 60%),
    radial-gradient(1200px 650px at 85% 10%, rgba(167,139,250,.12), transparent 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
code{background: rgba(255,255,255,.06); padding:2px 6px; border-radius:8px}

.topbar{
  position: sticky; top: 0; z-index: 30;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.55);
}

.left{display:flex; align-items:center; gap:12px}
.logo{width:38px; height:38px; border-radius:14px; display:grid; place-items:center;
  border:1px solid var(--line); background: rgba(18,26,51,.6)}
.brand .name{font-weight:900; letter-spacing:.2px}
.brand .tagline{font-size:12px; color:var(--muted)}

.nav{display:flex; gap:14px; color:var(--muted)}
.nav a:hover{color:var(--text)}

.cta{
  border:1px solid rgba(110,231,255,.35);
  background: rgba(110,231,255,.10);
  padding:10px 12px; border-radius:12px;
  font-weight:800;
}

.hero{padding:34px 18px}
.heroInner{
  max-width:1100px; margin:0 auto;
  border:1px solid var(--line);
  border-radius:20px;
  background: var(--glass);
  padding:22px;
}

.badge{
  display:inline-block;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(11,16,32,.25);
  padding:8px 10px; border-radius:999px;
  color:var(--muted);
  font-size:12px;
}

h1{margin:12px 0 8px 0; font-size:34px}
.hero p{margin:0 0 14px 0; color:var(--muted); max-width:70ch}

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

.btn{
  border:1px solid var(--line);
  background: rgba(11,16,32,.25);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
}
.btn.primary{
  border-color: rgba(110,231,255,.35);
  background: rgba(110,231,255,.12);
  box-shadow: 0 0 0 2px rgba(110,231,255,.10) inset;
}

.stats{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.stat{
  min-width:160px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(11,16,32,.22);
  padding:12px;
}
.statNum{font-size:24px; font-weight:900}
.statLbl{color:var(--muted); font-size:12px}

.section{padding:10px 18px 34px 18px}
.sectionHead{max-width:1100px; margin:0 auto 12px auto}
.sectionHead h2{margin:0}
.sectionHead p{margin:6px 0 0 0; color:var(--muted)}

.filters{
  max-width:1100px;
  margin: 0 auto 14px auto;
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap:10px;
}
@media (max-width: 900px){
  .filters{grid-template-columns: 1fr 1fr}
  h1{font-size:28px}
}
@media (max-width: 520px){
  .filters{grid-template-columns: 1fr}
}

.input, .select{
  border:1px solid var(--line);
  background: rgba(18,26,51,.65);
  color:var(--text);
  padding:11px 12px;
  border-radius:12px;
  outline:none;
}

.grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:14px;
}

.card{
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(18,26,51,.62);
  overflow:hidden;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(110,231,255,.28)}
.thumb{
  height:130px;
  background: linear-gradient(135deg, rgba(110,231,255,.22), rgba(167,139,250,.16));
  display:flex; align-items:flex-end; justify-content:space-between;
  padding:12px;
}
.pill{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,16,32,.28);
  color: var(--muted);
}
.rank{font-weight:900}
.body{padding:12px}
.title{margin:0 0 6px 0; font-weight:900}
.desc{margin:0; color:var(--muted); font-size:14px; line-height:1.35}
.metaRow{margin-top:10px; display:flex; gap:8px; flex-wrap:wrap}
.badge2{
  font-size:12px;
  padding:6px 8px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(11,16,32,.18);
  color: var(--muted);
}

.cardActions{padding:12px; padding-top:0}
.more{
  width:100%;
  text-align:center;
  border:1px solid var(--line);
  background: rgba(11,16,32,.20);
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}

.chips{
  max-width:1100px; margin:0 auto;
  display:flex; gap:10px; flex-wrap:wrap;
}
.chip{
  border:1px solid var(--line);
  background: rgba(18,26,51,.55);
  padding:10px 12px;
  border-radius:999px;
  color: var(--muted);
}

.faq{
  max-width:1100px; margin:0 auto;
  display:grid; gap:10px;
}
details{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(18,26,51,.55);
  padding:12px 14px;
}
summary{cursor:pointer; font-weight:900}
.faqBody{color:var(--muted); margin-top:8px; line-height:1.5}

.footer{
  border-top:1px solid var(--line);
  padding:18px;
  text-align:center;
  color:var(--muted);
}

/* Modal */
.modal.hidden{display:none}
.modal{position:fixed; inset:0; z-index:50}
.modalBackdrop{position:absolute; inset:0; background: rgba(0,0,0,.55)}
.modalCard{
  position: relative;
  max-width: 720px;
  margin: 8vh auto 0 auto;
  border:1px solid var(--line);
  border-radius:20px;
  background: rgba(18,26,51,.85);
  backdrop-filter: blur(10px);
  padding:16px;
}
.modalTop{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.modalTag{color: var(--muted); font-size:12px; letter-spacing:.4px}
.modalTitle{margin:6px 0 2px 0; font-weight:950}
.modalMeta{color: var(--muted); font-size:13px}
.modalDesc{color: var(--text); opacity:.92; line-height:1.55}
.modalBadges{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.iconBtn{
  border:1px solid var(--line);
  background: rgba(11,16,32,.25);
  color: var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modalActions{display:flex; gap:10px; justify-content:flex-end; margin-top:14px}
.muted{color:var(--muted)}
