body:has(#features) {
    background: #FEFDFC;
}

body:has(#features) .container {
    padding-inline: 0 !important;
}

#hero {
    padding-bottom: 0;
}

#hero .container {
    padding-bottom: 80px;
    border-left:    1px solid rgba(0, 0, 0, 0.05);
    border-right:   1px solid rgba(0, 0, 0, 0.05);
}

#features {
    padding-bottom: 0;
}

#features .container {
    padding-bottom: 40px;
    border-top:     1px solid rgba(0, 0, 0, 0.05);
    border-left:    1px solid rgba(0, 0, 0, 0.05);
    border-right:   1px solid rgba(0, 0, 0, 0.05);
}

.features-toolbar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             28px;
    padding:         12px 24px;
    border-bottom:   1px solid rgba(0, 0, 0, 0.05);
}

.features-tabs {
    display:            flex;
    flex:               1 1 auto;
    flex-wrap:          nowrap;
    align-items:        center;
    gap:                32px;
    min-width:          0;
    overflow-x:         auto;
    scrollbar-width:    none;
    -ms-overflow-style: none;
}

.features-tabs::-webkit-scrollbar {
    display: none;
}

.features-tab {
    flex-shrink: 0;
}

.features-tab {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    padding:         4px;
    background:      transparent;
    border:          none;
    border-radius:   8px;
    cursor:          pointer;
    font-family:     'Poppins', sans-serif;
    font-size:       14px;
    font-weight:     500;
    line-height:     20px;
    color:           #70707b;
    white-space:     nowrap;
    transition:      background-color .15s ease, color .15s ease;
}

.features-tab:hover {
    color: #18181b;
}

.features-tab.is-active {
    background: #F2F4F7;
    color:      #18181b;
    padding:    4px 12px;
}

.features-search {
    position:    relative;
    flex:        0 0 320px;
    max-width:   320px;
    display:     flex;
    align-items: center;
}

.features-search__icon {
    position:      absolute;
    left:          14px;
    top:           50%;
    transform:     translateY(-50%);
    width:         20px;
    height:        20px;
    color:         #667085;
    pointer-events: none;
}

.features-search__input {
    width:         100%;
    padding:       10px 14px 10px 42px;
    border:        1px solid #EAECF0;
    border-radius: 6px;
    background:    #ffffff;
    font-family:   'Inter', 'Poppins', sans-serif;
    font-size:     14px;
    font-weight:   400;
    line-height:   20px;
    color:         #18181b;
    outline:       none;
    transition:    border-color .15s ease;
}

.features-search__input::placeholder {
    color: #667085;
}

.features-search__input:focus {
    border-color: #98A2B3;
}

.features-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
}

.features-card {
    display:         flex;
    flex-direction:  column;
    align-items:     flex-start;
    gap:             16px;
    padding:         24px;
    border-bottom:   1px solid rgba(0, 0, 0, 0.05);
    border-right:    1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color:           inherit;
}

.features-card:nth-child(3n) {
    border-right: none;
}

.features-card__icon {
    width:  40px;
    height: 40px;
}

.features-card__icon img {
    width:      100%;
    height:     100%;
    object-fit: contain;
    display:    block;
}

.features-card__body {
    flex:           1 1 auto;
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            8px;
    width:          100%;
}

.features-card__title {
    margin:      0;
    font-family: 'Poppins', sans-serif;
    font-size:   14px;
    font-weight: 600;
    line-height: 20px;
    color:       #000;
}

.features-card__desc {
    margin:      0;
    font-family: 'Poppins', sans-serif;
    font-size:   12px;
    font-weight: 400;
    line-height: 18px;
    color:       #4F4F4F;
}

.features-card__more {
    margin-top:  auto;
    font-family: 'Poppins', sans-serif;
    font-size:   12px;
    font-weight: 600;
    line-height: 18px;
    color:       #F63D68;
    opacity:     0;
    transition:  opacity .15s ease;
}

.features-card:hover .features-card__more,
.features-card:focus-visible .features-card__more {
    opacity: 1;
}

.features-empty {
    padding:     48px 24px;
    margin:      0;
    text-align:  center;
    font-family: 'Poppins', sans-serif;
    font-size:   14px;
    color:       #4F4F4F;
}

@media (max-width: 1024px) {
    .features-toolbar {
        flex-direction: column;
        align-items:    stretch;
        gap:            16px;
        padding:        16px 24px;
    }

    .features-tabs {
        order: 2;
        gap:   16px;
    }

    .features-search {
        order:     1;
        flex:      1 1 auto;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-card:nth-child(3n) {
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }

    .features-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 640px) {
    .features-toolbar {
        padding: 16px;
    }

    .features-tabs {
        overflow-x: auto;
        flex-wrap:  nowrap;
    }

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

    .features-card,
    .features-card:nth-child(3n),
    .features-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    #hero .container,
    #features .container {
        border-left:  none;
        border-right: none;
    }
}
