:root {
    color-scheme: light;
    --bg: #f5f8fc;
    --surface: #ffffff;
    --soft: #f8faff;
    --text: #101828;
    --muted: #667085;
    --line: #dce4ef;
    --primary: #2563eb;
    --success: #16803c;
    --danger: #b42318;
    --shadow:
        0 14px 40px
        rgba(15,23,42,.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 90% 0%,
            #e5f3ff,
            transparent 28rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(
        calc(100% - 32px),
        1120px
    );
    margin: 0 auto;
    padding: 22px 0;
}

.brand {
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
}

.site-head nav {
    display: flex;
    gap: 18px;
}

.site-head nav a {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.wrap {
    width: min(
        calc(100% - 32px),
        900px
    );
    margin-inline: auto;
}

.hero {
    padding: 50px 0 24px;
    text-align: center;
}

.eyebrow {
    color: var(--primary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.hero h1 {
    margin: 10px 0 12px;
    font-size:
        clamp(
            2.7rem,
            7vw,
            5.2rem
        );
    line-height: .97;
    letter-spacing: -.06em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.trust {
    width: fit-content;
    margin: 15px auto 0;
    padding: 7px 11px;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-size: .78rem;
    font-weight: 750;
}

.tool-section {
    padding: 10px 0 44px;
}

.shortener-card {
    padding: clamp(
        18px,
        4vw,
        30px
    );
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

form {
    display: grid;
    gap: 15px;
}

label {
    display: grid;
    gap: 7px;
}

label > span {
    font-size: .85rem;
    font-weight: 850;
}

label > span small {
    color: var(--muted);
    font-weight: 600;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--text);
}

input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px
        rgba(37,99,235,.1);
}

.alias-field {
    display: grid;
    grid-template-columns:
        auto
        minmax(0,1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--soft);
}

.alias-field:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px
        rgba(37,99,235,.1);
}

.alias-field strong {
    padding-left: 13px;
    color: var(--muted);
    font-size: .84rem;
    white-space: nowrap;
}

.alias-field input {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.help {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}

.primary {
    min-height: 50px;
    padding: 10px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.primary:disabled {
    opacity: .6;
    cursor: wait;
}

.status {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: .82rem;
}

.status[data-level="working"] {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.status[data-level="good"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--success);
}

.status[data-level="bad"] {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--danger);
}

.result {
    margin-top: 15px;
    padding: 17px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #f8fbff;
}

.result-label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.result-url {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        auto;
    gap: 8px;
    align-items: center;
}

.result-url strong {
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--primary);
    font-size: 1rem;
}

.result-url button,
.result-actions button,
.result-actions a {
    min-height: 43px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.destination {
    margin-top: 12px;
}

.destination span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.destination p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: .82rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.content-section {
    padding: 0 16px 70px;
}

.content {
    width: min(
        100%,
        850px
    );
    margin: 0 auto;
    padding: clamp(
        22px,
        4vw,
        36px
    );
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content h2 {
    margin: 28px 0 8px;
    font-size: 1.45rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.faq {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.faq summary {
    padding: 12px 13px;
    font-weight: 800;
    cursor: pointer;
}

.faq p {
    margin: 0;
    padding: 0 13px 13px;
    color: var(--muted);
    line-height: 1.6;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(
        calc(100% - 32px),
        1120px
    );
    margin: 0 auto;
    padding: 25px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}

footer div {
    display: flex;
    gap: 14px;
}

footer a {
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .site-head nav {
        gap: 10px;
    }

    .hero {
        padding-top: 34px;
    }

    .alias-field {
        grid-template-columns: 1fr;
    }

    .alias-field strong {
        padding: 10px 13px 0;
    }

    .result-url {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}
