* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --bg: #070b14;
    --card: rgba(17, 24, 39, 0.75);

    --primary: #2563eb;
    --primary-light: #38bdf8;

    --text: #ffffff;
    --muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);

}


body {

    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(37, 99, 235, 0.2),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(56, 189, 248, 0.12),
            transparent 30%
        ),
        var(--bg);

}


.background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

}


.container {

    width: min(100% - 40px, 950px);

    margin: auto;

    padding: 50px 0;

}


/* BRAND */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 100px;

}


.logo {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    font-size: 22px;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

}


.brand h1 {

    font-size: 22px;

    letter-spacing: -0.5px;

}


.brand h1 span {

    color: var(--primary-light);

}


.brand p {

    font-size: 12px;

    color: var(--muted);

}


/* HERO */

.hero {

    text-align: center;

}


.badge {

    display: inline-block;

    padding: 8px 14px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--primary-light);

    background: rgba(37, 99, 235, 0.08);

    font-size: 13px;

    margin-bottom: 25px;

}


.hero h2 {

    font-size: clamp(
        48px,
        8vw,
        90px
    );

    line-height: .95;

    letter-spacing: -5px;

    margin-bottom: 25px;

}


.hero h2 span {

    display: block;

    background:
        linear-gradient(
            90deg,
            #fff,
            var(--primary-light)
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}


.description {

    color: var(--muted);

    font-size: 16px;

    margin-bottom: 40px;

}


/* FORM */

#shortenForm {

    max-width: 750px;

    margin: auto;

}


.input-group {

    display: flex;

    padding: 7px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--card);

    backdrop-filter: blur(20px);

}


.input-group input {

    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: white;

    padding: 15px;

    font-size: 15px;

}


.input-group input::placeholder {

    color: #64748b;

}


.input-group button {

    border: 0;

    border-radius: 13px;

    padding: 0 25px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #0284c7
        );

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}


.input-group button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 30px
        rgba(37, 99, 235, .3);

}


.custom-wrapper {

    display: flex;

    gap: 10px;

    margin-top: 12px;

}


.custom-wrapper input {

    flex: 1;

    padding: 13px 15px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.03);

    color: white;

    outline: none;

}


/* RESULT */

.result {

    max-width: 750px;

    margin: 25px auto 0;

    padding: 20px;

    border-radius: 18px;

    background:
        rgba(37,99,235,.08);

    border:
        1px solid
        rgba(37,99,235,.25);

}


.result-label {

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 10px;

}


.result-box {

    display: flex;

    gap: 10px;

    align-items: center;

}


.result-box a {

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--primary-light);

    text-decoration: none;

}


.result-box button {

    padding: 10px 18px;

    border: 0;

    border-radius: 10px;

    background: white;

    color: #0f172a;

    font-weight: 700;

    cursor: pointer;

}


#copyMessage {

    margin-top: 10px;

    color: #4ade80;

    font-size: 13px;

}


/* ERROR */

.error {

    max-width: 750px;

    margin: 20px auto;

    padding: 15px;

    border-radius: 12px;

    color: #fca5a5;

    background: rgba(239,68,68,.1);

    border: 1px solid rgba(239,68,68,.2);

}


/* LOADING */

.loading {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    color: var(--muted);

}


.spinner {

    width: 20px;

    height: 20px;

    border-radius: 50%;

    border: 3px solid #334155;

    border-top-color: var(--primary-light);

    animation: spin .8s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


.hidden {

    display: none !important;

}


/* STATS */

.stats {

    display: flex;

    justify-content: center;

    gap: 80px;

    margin-top: 100px;

}


.stat {

    text-align: center;

}


.stat strong {

    display: block;

    font-size: 30px;

}


.stat span {

    color: var(--muted);

    font-size: 13px;

}


/* FOOTER */

footer {

    margin-top: 100px;

    text-align: center;

    color: #475569;

    font-size: 12px;

}


/* RESPONSIVE */

@media (max-width: 600px) {

    .container {

        width: min(
            100% - 25px,
            950px
        );

        padding-top: 30px;

    }


    .brand {

        margin-bottom: 70px;

    }


    .hero h2 {

        letter-spacing: -3px;

    }


    .input-group {

        flex-direction: column;

    }


    .input-group button {

        padding: 14px;

    }


    .custom-wrapper {

        flex-direction: column;

    }


    .stats {

        gap: 40px;

    }

}