:root {
    --background: #f5f7fc;
    --text: #25324b;
    --muted: #78849a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, #e5efff, transparent 35%),
        radial-gradient(circle at 90% 30%, #f0eaff, transparent 35%),
        var(--background);
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    max-width: 1100px;
    margin: auto;
    padding: 28px 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, #477cf4, #8967e9);
    font-size: 24px;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px 25px 60px;
}

.welcome {
    position: relative;
    overflow: hidden;
    padding: 55px 45px;
    border-radius: 28px;
    background: linear-gradient(115deg, #e6f0ff, #f0eaff, #fff0e6);
    box-shadow: 0 15px 40px rgba(50, 70, 120, .06);
}

.welcome-label {
    color: #6679b4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.welcome h1 {
    margin: 15px 0;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -1.5px;
}

.welcome p {
    margin: 0;
    color: #68758f;
    font-size: 17px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 48px 0 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.search {
    width: 270px;
    padding: 13px 16px;
    border: 1px solid #e4e8f0;
    border-radius: 13px;
    outline: none;
    background: white;
    font-size: 14px;
}

.search:focus {
    border-color: #809cf0;
    box-shadow: 0 0 0 3px #809cf022;
}

.apps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.app-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 145px;
    padding: 24px;
    border: 1px solid #e8ebf2;
    border-radius: 22px;
    background: white;
    box-shadow: 0 8px 25px rgba(40, 60, 100, .04);
    transition: transform .2s, box-shadow .2s;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(40, 60, 100, .10);
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 34px;
}

.app-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.app-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.app-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    opacity: .6;
}

.blue .app-icon {
    background: #e4f0ff;
}

.blue .app-arrow {
    color: #3478d4;
}

.orange .app-icon {
    background: #fff0dc;
}

.orange .app-arrow {
    color: #c77925;
}

.green .app-icon {
    background: #e2f5e9;
}

.green .app-arrow {
    color: #278653;
}

.purple .app-icon {
    background: #f0e8ff;
}

.purple .app-arrow {
    color: #8052bd;
}

.empty {
    display: none;
    padding: 25px;
    color: var(--muted);
    text-align: center;
}

footer {
    max-width: 1000px;
    margin: auto;
    padding: 25px;
    border-top: 1px solid #e5e9f1;
    color: #8993a8;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 650px) {
    .container {
        padding-top: 10px;
    }

    .welcome {
        padding: 38px 25px;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search {
        width: 100%;
    }

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

    .app-card {
        min-height: 125px;
        padding: 18px;
    }

    .app-icon {
        width: 58px;
        height: 58px;
        font-size: 29px;
    }
}