:root {
  --bg: #0f0f14;
  --fg: #f5f5f7;
  --muted: #8a8a9b;
  --accent: #4f7cff;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  padding: 1rem 2rem;
  background: rgba(15,15,20,0.9);
  backdrop-filter: blur(10px);
  text-align:center;
  font-size:1.5rem;
  font-weight:600;
}

section {
  padding: 5rem 2rem;
  max-width: 500px;
  margin:auto;
}

.hero .card {
  border: 1px solid #222;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: 0.3s;
  background: rgba(20,20,25,0.8);
}

.hero .card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

input[type="range"] {
  width: 100%;
  margin: 1rem 0 2rem;
  accent-color: var(--accent);
  height: 6px;
  border-radius: 6px;
  background: #222;
  transition: background 0.3s;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.toggle input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 0.5rem;
}

.result {
  display: flex;
  margin-top: 1.5rem;
}

#password {
  flex:1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding:0.6rem;
  border-radius:6px 0 0 6px;
  border:1px solid #222;
  background: rgba(20,20,25,0.6);
  color: var(--fg);
  cursor: pointer;
  min-height: 40px;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
}

#password:hover {
  background: rgba(20,20,25,0.8);
  border-color: var(--accent);
}

.password-block {
  padding: 0.3rem 0.5rem;
  background: #222;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-5px);
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#copy {
  border-radius:0 6px 6px 0;
  padding:0.6rem 1rem;
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight:600;
  cursor:pointer;
  transition: background 0.3s;
}

#copy:hover {
  background: #3b63e0;
}

footer {
  text-align:center;
  padding:2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
