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

body {
    font-family: "Montserrat", sans-serif;
    background: #fbf8f4; 
    color: #303136; 
    line-height: 1.6;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}


header {
    margin-bottom: 64px;
    text-align: center; 
}

header p {
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #76e0bd 0%, #5dd4a8 100%);
    color: #303136;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 
        0 0 20px rgba(118, 224, 189, 0.5),  
        0 4px 12px rgba(118, 224, 189, 0.3); 

}

h1 {
    font-size: 52px;
    font-weight: 700;
    color: #303136; 
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

header p {
    font-size: 21px;
    color: #666;
    line-height: 1.65;
    max-width: 600px;
}


.generator {
    background: white;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: #145fe4; 
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-bottom: 32px;
    transition: background 0.2s ease;
}

.generate-btn:hover {
    background: #0d4bb8;
}

.generate-btn:active {
    transform: scale(0.98);
}


.passwords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}


.password-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password {
    width: 100%;
    padding: 20px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #303136;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    word-break: break-all;
    min-height: 80px;
}

.password:hover {
    background: #76e0bd; 
    border-color: #76e0bd;
    transform: translateY(-2px);
}

.hint {
    font-size: 12px;
    color: #999;
    padding-left: 4px;
}

.feedback {
    padding: 16px;
    background: #fad785; 
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #303136;
    min-height: 20px;
    text-align: center;
}

.feedback:empty {
    display: none;
}


.why {
    margin-bottom: 64px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: #303136;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 19px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
}

.stats-callout {
    background: linear-gradient(135deg, #145fe4 0%, #0d4bb8 100%);
    padding: 48px 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(20, 95, 228, 0.25);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: #fad785; 
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 40px;
}

.closing {
    font-size: 19px;
    color: #303136;
    font-weight: 600;
    text-align: center;
}

.length-control {
    margin-bottom: 24px;
    text-align: center;
}

.length-control label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

#length-display {
    color: #145fe4;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #145fe4;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #145fe4;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.copy-counter {
    text-align: center;
    font-size: 13px;
    color: #76e0bd;
    font-weight: 600;
    margin-bottom: 16px;
    min-height: 20px;
}

.password-history {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    min-height: 20px;
}

footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

footer p {
    color: #666; 
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}

footer a {
    color: #145fe4; 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #76e0bd; 
}


@media (max-width: 640px) {
    main {
        padding: 60px 20px 40px;
    }

    h1 {
        font-size: 36px;
    }

    header p {
        font-size: 18px;
    }

    .generator {
        padding: 32px 24px;
    }

    .passwords {
        grid-template-columns: 1fr;
    }

    .stats-callout {
        flex-direction: column;
        gap: 32px;
        padding: 40px 24px;
    }

    .stat-divider {
        width: 80px;
        height: 1px;
        margin: 0;
    }

    .stat-number {
        font-size: 48px;
    }
}