* {
    box-sizing: border-box;
}

:root {
    --background: #0d0d0d;
    --sidebar: #111111;

    --panel: #151515;
    --panel-hover: #191919;

    --border: #2a2a2a;

    --text: #eeeeee;
    --text-secondary: #d2d2d2;

    --muted: #8e8e8e;
    --muted-dark: #686868;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    overflow: hidden;

    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   APP
===================================================== */

.app {
    width: 100%;
    height: 100vh;

    display: flex;

    background:
        radial-gradient(
            circle at 55% 25%,
            rgba(255,255,255,0.018),
            transparent 35%
        ),
        #0d0d0d;
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    width: 92px;
    min-width: 92px;

    height: 100vh;

    background: var(--sidebar);

    border-right: 1px solid #272727;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 21px;
    padding-bottom: 22px;
}


/* =====================================================
   FIXACTLY LOGO
===================================================== */

.brand {
    width: 45px;
    height: 45px;

    padding: 7px;

    border: 0;
    border-radius: 9px;

    background: #f4f4f4;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    cursor: pointer;
}

.fixactly-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =====================================================
   SIDE NAV
===================================================== */

.side-nav {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 8px;
}

.side-button {
    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #929292;

    display: grid;
    place-items: center;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease;
}

.side-button:hover {
    background: #1d1d1d;
    color: #eeeeee;
}

.side-button.active {
    background: #303030;
    color: #eeeeee;
}

.side-button svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   BOTTOM SIDEBAR
===================================================== */

.side-bottom {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 24px;
}

.avatar {
    width: 39px;
    height: 39px;

    border-radius: 50%;

    border: 2px solid #272727;

    background: #d1b38d;

    color: #392a1d;

    display: grid;
    place-items: center;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}


/* =====================================================
   MAIN
===================================================== */

.main {
    flex: 1;

    min-width: 0;

    height: 100vh;

    overflow-y: auto;
}


/* =====================================================
   HOME
===================================================== */

.home {
    width: min(
        958px,
        calc(100% - 48px)
    );

    margin: auto;

    padding-top: 106px;
    padding-bottom: 48px;
}


/* =====================================================
   HERO
===================================================== */

.hero h1 {
    margin: 0 0 35px;

    font-size: clamp(
        39px,
        4.15vw,
        57px
    );

    line-height: 1.18;

    letter-spacing: -2.2px;

    font-weight: 650;

    color: #eeeeee;
}


/* =====================================================
   PROMPT GRID
===================================================== */

.prompt-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


/* =====================================================
   PROMPT CARD
===================================================== */

.prompt-card {
    height: 138px;

    padding: 18px 16px;

    border:
        1px solid #2b2b2b;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #121212,
            #151515
        );

    text-align: left;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.prompt-card:hover {
    border-color: #454545;

    background: #181818;

    transform: translateY(-1px);
}

.prompt-text {
    color: #d8d8d8;

    font-size: 16px;

    line-height: 1.45;
}

.prompt-icon {
    width: 24px;
    height: 24px;

    color: #c6c6c6;
}

.prompt-icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.4;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   REFRESH
===================================================== */

.refresh {
    margin-top: 19px;
    margin-bottom: 27px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #7e7e7e;

    font-size: 16px;

    display: flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;
}

.refresh:hover {
    color: #b0b0b0;
}

.refresh svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   CONVERSATION
===================================================== */

.conversation {
    border: 1px solid #2a2a2a;

    border-radius: 15px;

    overflow: hidden;

    background: rgba(24,24,24,.76);
}


/* =====================================================
   MESSAGE
===================================================== */

.message {
    display: flex;

    gap: 17px;

    padding:
        23px
        22px;
}

.message + .message {
    border-top: 1px solid #292929;
}


/* =====================================================
   MESSAGE AVATAR
===================================================== */

.message-avatar {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: grid;
    place-items: center;
}


/* USER */

.user-avatar {
    background: #7b7f80;

    color: #1d1d1d;
}

.user-avatar svg {
    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
}


/* AI */

.ai-avatar {
    background:
        linear-gradient(
            135deg,
            #67368f,
            #8b48c4
        );

    color: white;

    font-size: 22px;
}


/* =====================================================
   MESSAGE BODY
===================================================== */

.message-body {
    min-width: 0;

    flex: 1;
}

.message-meta {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 2px;
    margin-bottom: 13px;

    color: #e6e6e6;

    font-size: 16px;
}

.message-meta time {
    color: #a1a1a1;

    font-size: 14px;
}

.message p {
    margin: 0;

    color: #dedede;

    font-size: 17px;

    line-height: 1.55;
}


/* =====================================================
   COMPOSER
===================================================== */

.composer {
    position: relative;

    min-height: 143px;

    margin-top: 28px;

    padding:
        17px
        16px
        12px;

    border:
        1px solid #2b2b2b;

    border-radius: 15px;

    background: #161616;
}


/* TEXTAREA */

.composer textarea {
    width: 100%;

    min-height: 47px;

    max-height: 110px;

    resize: none;

    outline: none;

    border: 0;

    background: transparent;

    color: #e8e8e8;

    font-size: 18px;

    line-height: 1.5;

    padding: 0;
}

.composer textarea::placeholder {
    color: #999999;
}


/* =====================================================
   WEB SELECTOR
===================================================== */

.composer-top {
    position: absolute;

    top: 15px;
    right: 16px;
}

.web-selector {
    border: 0;

    border-radius: 20px;

    background: #292929;

    color: #d4d4d4;

    padding:
        9px
        11px;

    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 15px;
}

.web-selector:hover {
    background: #323232;
}

.web-selector svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.4;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.web-selector .chevron {
    width: 15px;
    height: 15px;
}


/* =====================================================
   COMPOSER BOTTOM
===================================================== */

.composer-bottom {
    position: absolute;

    left: 16px;
    right: 16px;

    bottom: 11px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


/* ACTIONS */

.composer-actions {
    display: flex;

    gap: 13px;
}

.composer-button {
    border: 0;

    padding: 0;

    background: transparent;

    color: #9b9b9b;

    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 15px;

    cursor: pointer;
}

.composer-button:hover {
    color: #d2d2d2;
}

.composer-button svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* SEND */

.send-area {
    display: flex;

    align-items: center;

    gap: 12px;
}

.counter {
    color: #9a9a9a;

    font-size: 13px;
}

.send-button {
    width: 37px;
    height: 37px;

    border: 0;

    border-radius: 10px;

    background: #f0f0f0;

    color: #252525;

    display: grid;
    place-items: center;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease;
}

.send-button:hover {
    background: #ffffff;

    transform: translateY(-1px);
}

.send-button svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.55;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   DISCLAIMER
===================================================== */

.disclaimer {
    margin-top: 27px;

    text-align: center;

    color: #6f6f6f;

    font-size: 13px;
}


/* =====================================================
   WEB MENU
===================================================== */

.web-menu {
    position: absolute;

    right: 0;
    top: 47px;

    width: 145px;

    padding: 6px;

    background: #202020;

    border: 1px solid #363636;

    border-radius: 10px;

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.4);

    z-index: 100;
}

.web-menu button {
    width: 100%;

    padding: 9px 10px;

    text-align: left;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #d8d8d8;

    cursor: pointer;
}

.web-menu button:hover {
    background: #303030;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    .home {
        padding-top: 70px;
    }

    .prompt-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    body {
        overflow: auto;
    }

    .sidebar {
        width: 64px;
        min-width: 64px;
    }

    .brand {
        width: 39px;
        height: 39px;
    }

    .side-button {
        width: 40px;
        height: 40px;
    }

    .home {
        width: calc(100% - 28px);

        padding-top: 48px;
        padding-bottom: 35px;
    }

    .hero h1 {
        font-size: 36px;

        letter-spacing: -1.5px;
    }

    .prompt-grid {
        grid-template-columns: 1fr;
    }

    .prompt-card {
        height: 115px;
    }

    .message {
        padding: 18px 15px;

        gap: 12px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }

    .message p {
        font-size: 15px;
    }

    .composer {
        min-height: 175px;
    }

    .composer-top {
        position: static;

        margin-top: 5px;
    }

    .composer-bottom {
        bottom: 12px;
    }

    .composer-button {
        font-size: 0;
    }

    .composer-button svg {
        width: 22px;
        height: 22px;
    }
}