:root{
  --bg:#070709;
  --panel:#0b0b0d;
  --accent:#ae38ff;
  --muted:#9a9aa1;
  --glass: rgba(255,255,255,0.03);
  --card:#0f0f12;
  --accent-glow: 0 6px 20px rgba(174,56,255,0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --radius:12px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(174,56,255,0.035), transparent 6%),
    radial-gradient(700px 300px at 90% 90%, rgba(174,56,255,0.02), transparent 6%),
    linear-gradient(180deg, rgba(12,12,14,1) 0%, rgba(7,7,9,1) 100%);
  color:#e8e8eb;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  background-attachment:fixed;
  animation: bgMove 24s linear infinite alternate;
  transition: background-position 1s linear;
}

/* Topbar */
.topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 18px;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.logo{height:36px}
/* Nav sits on the right via justify-content:space-between */
.nav{display:flex;gap:8px;align-items:center}
.btn{padding:8px 12px;border-radius:8px;font-weight:600;font-size:13px;cursor:pointer;text-decoration:none;color:inherit}
.btn.primary{background:linear-gradient(90deg,var(--accent),#7a00ff);box-shadow:var(--accent-glow);border:none}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.04)}

/* Hero */
.hero{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  padding:32px 20px;
  padding-top:36px;
  text-align:center;
  flex-direction:column;
  min-height: calc(100vh - 64px);
}
.hero-inner{
  flex:1;
  max-width:820px;
  align-self:center;
  transition:transform .22s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}
.hero-inner:focus-within{transform: translateY(-4px)}
.hero h1{font-size:36px;margin:0 0 10px;letter-spacing:0.6px}
.tagline{color:var(--muted); margin:0 auto 18px; max-width:720px;line-height:1.45}
.cta-row{display:flex;gap:12px;margin-bottom:18px;justify-content:center;flex-wrap:wrap}
.cta{background:linear-gradient(90deg,var(--accent),#7a00ff);border:none;padding:12px 18px;border-radius:14px;color:white;font-weight:700;cursor:pointer;box-shadow:var(--accent-glow);min-width:140px;transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease}
.cta:active{transform:translateY(1px) scale(.998)}
.cta.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--accent)}
.hero-meta{margin-top:10px;text-align:left}
.features-list{list-style:none;padding:0;margin:0;color:var(--muted);display:grid;gap:8px}

/* Cards */
.cards{display:flex;gap:14px;padding:18px;border-top:1px solid rgba(255,255,255,0.02)}
.card{flex:1;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);padding:16px;border-radius:var(--radius);box-shadow:0 6px 18px rgba(2,2,2,0.6);border:1px solid rgba(255,255,255,0.02)}
.card h3{margin:0 0 8px}

/* Footer */
.footer{margin-top:auto;padding:18px;border-top:1px solid rgba(255,255,255,0.03)}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.logo-small{height:28px}
.muted{color:var(--muted);font-size:13px}

/* Download box */
.download-box{
  margin:8px auto 0;
  max-width:640px;
  width:92%;
  background:linear-gradient(180deg, rgba(174,56,255,0.04), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
  padding:20px 24px;
  border-radius:var(--radius);
  box-shadow:var(--accent-glow);
  transition:transform .14s ease, box-shadow .14s ease;
}
.download-box:hover{transform:translateY(-4px); box-shadow: 0 14px 36px rgba(174,56,255,0.10)}

/* Stack content vertically, centered */
.download-box .box-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  text-align:center;
}
.box-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
}
.box-title{font-weight:800;color:white}
.box-sub{font-size:13px;color:var(--muted);max-width:420px}

.download-box .download-cta-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:100%;
}
.download-action{
  min-width:220px;
  padding:14px 20px;
  border-radius:14px;
  font-size:16px;
  letter-spacing:0.25px;
  font-weight:800;
  box-shadow: 0 18px 46px rgba(174,56,255,0.14);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  display:inline-block;
  text-align:center;
  border:none;
}

/* Disabled state for download button */
.download-action[disabled],
.download-action[aria-disabled="true"]{
  opacity:0.65;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

/* Reputation strip inside download box */
.reputation{
  margin-top:4px;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.cred-row{display:flex;gap:8px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.cred-item{background:rgba(255,255,255,0.02);padding:8px 10px;border-radius:10px;color:var(--muted);font-size:13px;border:1px solid rgba(255,255,255,0.02)}
.discord-icon{color:var(--accent);display:inline-block;vertical-align:middle}
.discord-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:8px;
  position:relative;
}
.badge{
  background:rgba(255,255,255,0.03);
  padding:6px 8px;
  border-radius:10px;
  color:var(--muted);
  font-weight:700;
  border:1px solid rgba(255,255,255,0.02);
}
.sep{opacity:0.5}
.small-link{color:var(--accent);font-weight:700;text-decoration:none;margin-left:6px}

/* Modal */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,2,2,0.6);backdrop-filter: blur(6px);z-index:60}
.modal.hidden{display:none;opacity:0}
.modal-card{background:linear-gradient(180deg,#0e0e11,#0b0b0d);padding:22px;border-radius:14px;max-width:520px;width:94%;border:1px solid rgba(255,255,255,0.03);text-align:left;box-shadow:0 18px 50px rgba(0,0,0,0.6)}
.install-steps{margin:8px 0 12px;padding-left:18px;color:var(--muted)}
.download-grid{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.download-btn{flex:1;padding:10px;border-radius:10px;background:linear-gradient(90deg,var(--accent),#7a00ff);color:white;text-align:center;cursor:pointer;font-weight:700;min-width:140px}

/* subtle animated background */
@keyframes bgMove {
  0% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 5% 2%, 95% 98%, 52% 48%; }
}

/* Accessibility focus + small tweaks */
:focus{outline:2px solid rgba(174,56,255,0.18);outline-offset:2px;}

/* Responsive */
@media (max-width:720px){
  .hero{flex-direction:column;padding:16px}
  .cards{flex-direction:column}
  .topbar{padding:10px}
  .logo{height:32px}
  .download-box{max-width:92%;padding:14px}
  .download-action{width:100%}
  .cta{min-width:0;padding:12px 14px}
}