body {
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
}
.page {
  position: relative;
  z-index: 2;
  height: 100vh;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}
nav {
  margin-bottom: 3rem;
}
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.left {
  position: relative;
  max-width: 520px;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 1.8rem;
}
h1 {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.03em;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.88;
  font-weight: 550;
  color: #111;
}
.desc {
  margin-top: 2rem;
  max-width: 470px;
  font-size: 1rem;
  line-height: 1.95;
  color: #666;
}
.meta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #7b7b7b;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.line {
  width: 80px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0.16) 6px,
    transparent 6px,
    transparent 12px
  );
}
.right {
  position: relative;
  padding: 3rem;
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(80, 200, 75, 0.72),
    rgba(50, 150, 190, 0.54)
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.7),
    transparent 40%
  );
  pointer-events: none;
}
.dots {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  grid-template-columns: repeat(4, 6px);
  gap: 6px;
}
.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}
.password-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #777;
  margin-bottom: 1.2rem;
}
.password-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.security-info {
  margin-top: 1.4rem;
}

.strength-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
}
.strength-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: .35s ease;
  background: #111;
}
.crack-time {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: #666;
  letter-spacing: .02em;
}
#password {
  flex: 1;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 18px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.35s ease;
}
.copy-btn:hover {
  transform: translateY(-2px);
}
.copy-icon,
.check-icon {
  position: absolute;
  width: 22px;
  height: 22px;
  transition: 0.35s ease;
}
.check-icon {
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
}
.copy-btn.copied .copy-icon {
  opacity: 0;
  transform: scale(0.4) rotate(20deg);
}
.copy-btn.copied .check-icon {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.controls {
  margin-top: 2.8rem;
}
.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.control-head span {
  font-size: 0.92rem;
  font-weight: 600;
}
.length-input {
  width: 68px;
  height: 42px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: inherit;
  font-weight: 600;
}
.slider {
  width: 100%;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111 20%, rgba(0, 0, 0, 0.08) 20%);
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.options {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}
.option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.option input {
  width: 18px;
  height: 18px;
  accent-color: #111;
}
.option label {
  font-size: 0.95rem;
  color: #222;
}
.generate {
  margin-top: 3rem;
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 20px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 0.35s ease;
}
.generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}
@media (max-width: 980px) {
  body {
    overflow: auto;
  }
  .page {
    height: auto;
    min-height: 100vh;
    padding: 1.3rem;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .right {
    padding: 1.6rem;
  }
  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .options {
    grid-template-columns: 1fr;
  }
}