.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* HERO */

.hero-section{
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px !important;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    border-radius: 16px !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(251, 14, 118, 0.3);
}

.hero-section h1{
       font-size: 2.5rem !important;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white !important;
}

.hero-section p{
       font-size: 1.1rem !important;
    opacity: 0.95;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.5;
}

/* INPUT SECTION */

.input-section{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    margin-bottom:25px;
}

#textInput{
    width:100%;
    min-height:220px;
    resize:vertical;
    border:2px solid #e5e7eb;
    border-radius:15px;
    padding:18px;
    font-size:15px;
    font-family:inherit;
    outline:none;
    transition:.3s;
}

#textInput:focus{
    border-color:#FB0E76;
    box-shadow:0 0 0 4px rgba(251,14,118,.12);
}

.action-buttons{
    display:flex;
    gap:12px;
    margin-top:15px;
    flex-wrap:wrap;
}

.action-buttons button{
    flex:1;
    min-width:150px;
    border:none;
    border-radius:12px;
    padding:14px;
    cursor:pointer;
    font-weight:700;
    color:#fff;
    background:linear-gradient(219deg,#FB0E76 0%,#910694 100%);
    transition:.3s;
}

.action-buttons button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(251,14,118,.25);
}

/* STRING LENGTH */

.string-length-box{
	padding-top: 1px !important;
    text-align:center;
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.string-length-box h2{
    color:#555;
    font-size:18px;
    margin-bottom:3px;
}

.string-value{
	padding-top: 18px;
	padding-bottom:10px;
    font-size:50px;
    font-weight:800;
    background:linear-gradient(219deg,#FB0E76 0%,#910694 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

/* STATS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-bottom:25px;
}

.stat-card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-3px);
}

.stat-card span{
    display:block;
    font-size:14px;
    color:#777;
    margin-bottom:8px;
}

.stat-card strong{
    font-size:28px;
    color:#222;
    font-weight:800;
}

.word-result{
    font-size:22px;
    font-weight:800;
    color:#222;

    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    line-height:1.3;
}

/* CONVERTER */

.converter-section{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.converter-section h3{
    text-align:center;
    margin-bottom:18px;
    font-size:22px;
    color:#333;
}

.converter-buttons{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.converter-buttons button{
    border:none;
    border-radius:12px;
    padding:14px;
    cursor:pointer;
    color:#fff;
    font-weight:700;
    background:linear-gradient(219deg,#FB0E76 0%,#910694 100%);
    transition:.3s;
}

.converter-buttons button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(251,14,118,.25);
}

/* RESPONSIVE */

@media(max-width:768px){

    .hero-section h1{
        font-size:32px;
    }

    .string-value{
        font-size:42px;
    }

    .converter-buttons{
        grid-template-columns:repeat(2,1fr);
    }

    .action-buttons{
        flex-direction:column;
    }

    .action-buttons button{
        width:100%;
    }
}

@media(max-width:480px){

    .container{
        padding:15px;
    }

    .hero-section h1{
        font-size:28px;
    }

    .hero-section p{
        font-size:14px;
    }

    .string-value{
        font-size:36px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .converter-buttons{
        grid-template-columns:1fr;
    }

    .stat-card strong{
        font-size:24px;
    }
}