* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Static Grid Background --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.6);
  border-radius: 20px;
  padding: 12px 30px;
  display: flex;
  gap: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25), 0 0 12px rgba(181,110,255,0.25);
  z-index: 5;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 12px;
  transition: 0.25s;
}
nav a:hover {
  color: #b56eff;
  background: rgba(181,110,255,0.1);
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 180px auto 80px; /* increased top margin */
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(181,110,255,0.3);
  padding: 30px;
}

.top-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  background: rgba(181,110,255,0.2);
  border: 1px solid rgba(181,110,255,0.4);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  background: rgba(181,110,255,0.35);
  box-shadow: 0 0 15px rgba(181,110,255,0.4);
}
.btn.back {
  background: rgba(60, 60, 60, 0.35);
  border-color: rgba(255,255,255,0.15);
}
.btn.back:hover {
  background: rgba(100,100,100,0.45);
}
.btn.download {
  background: rgba(181,110,255,0.25);
}
.btn.download:hover {
  background: rgba(181,110,255,0.45);
}
.btn.download span {
  font-size: 1.2rem;
}

.container h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.container p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 15px;
}

footer {
  text-align: center;
  padding: 30px 10px;
  color: #ccc;
  margin-top: auto;
}
footer span { color: #b56eff; }

/* --- Mobile --- */
@media (max-width: 768px) {
  nav { padding: 8px 16px; gap: 15px; }
  nav a { padding: 5px 10px; font-size: 0.95rem; }
  .container { margin: 140px 15px 50px; padding: 20px; }
  .container h1 { font-size: 1.5rem; }
}